Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable automerging for cloudflare routes. #1953

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-12 20:42:16.724787",
"spec_repo_commit": "7a16d6c5"
"regenerated": "2024-08-14 20:10:56.970167",
"spec_repo_commit": "fafdefa8"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-12 20:42:16.744063",
"spec_repo_commit": "7a16d6c5"
"regenerated": "2024-08-14 20:10:56.988392",
"spec_repo_commit": "fafdefa8"
}
}
}
7 changes: 7 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4412,6 +4412,10 @@ components:
CloudflareAccountResponseAttributes:
description: Attributes object of a Cloudflare account.
properties:
api_key:
description: The CloudflareAccountResponseAttributes api_key.
type: string
writeOnly: true
email:
description: The email associated with the Cloudflare account.
example: test-email@example.com
Expand Down Expand Up @@ -4484,6 +4488,9 @@ components:
key is provided (and not a token), this field is also required.
example: test-email@example.com
type: string
name:
description: The CloudflareAccountUpdateRequestAttributes name.
type: string
resources:
description: An allowlist of resources to restrict pulling metrics for.
example:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ module DatadogAPIClient::V2
class CloudflareAccountResponseAttributes
include BaseGenericModel

# The CloudflareAccountResponseAttributes api_key.
attr_accessor :api_key

# The email associated with the Cloudflare account.
attr_accessor :email

Expand All @@ -37,6 +40,7 @@ class CloudflareAccountResponseAttributes
# @!visibility private
def self.attribute_map
{
:'api_key' => :'api_key',
:'email' => :'email',
:'name' => :'name',
:'resources' => :'resources',
Expand All @@ -48,6 +52,7 @@ def self.attribute_map
# @!visibility private
def self.openapi_types
{
:'api_key' => :'String',
:'email' => :'String',
:'name' => :'String',
:'resources' => :'Array<String>',
Expand All @@ -71,6 +76,10 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'api_key')
self.api_key = attributes[:'api_key']
end

if attributes.key?(:'email')
self.email = attributes[:'email']
end
Expand Down Expand Up @@ -116,6 +125,7 @@ def name=(name)
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
api_key == o.api_key &&
email == o.email &&
name == o.name &&
resources == o.resources &&
Expand All @@ -126,7 +136,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[email, name, resources, zones].hash
[api_key, email, name, resources, zones].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class CloudflareAccountUpdateRequestAttributes
# The email associated with the Cloudflare account. If an API key is provided (and not a token), this field is also required.
attr_accessor :email

# The CloudflareAccountUpdateRequestAttributes name.
attr_accessor :name

# An allowlist of resources to restrict pulling metrics for.
attr_accessor :resources

Expand All @@ -39,6 +42,7 @@ def self.attribute_map
{
:'api_key' => :'api_key',
:'email' => :'email',
:'name' => :'name',
:'resources' => :'resources',
:'zones' => :'zones'
}
Expand All @@ -50,6 +54,7 @@ def self.openapi_types
{
:'api_key' => :'String',
:'email' => :'String',
:'name' => :'String',
:'resources' => :'Array<String>',
:'zones' => :'Array<String>'
}
Expand Down Expand Up @@ -79,6 +84,10 @@ def initialize(attributes = {})
self.email = attributes[:'email']
end

if attributes.key?(:'name')
self.name = attributes[:'name']
end

if attributes.key?(:'resources')
if (value = attributes[:'resources']).is_a?(Array)
self.resources = value
Expand Down Expand Up @@ -118,6 +127,7 @@ def ==(o)
self.class == o.class &&
api_key == o.api_key &&
email == o.email &&
name == o.name &&
resources == o.resources &&
zones == o.zones
end
Expand All @@ -126,7 +136,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[api_key, email, resources, zones].hash
[api_key, email, name, resources, zones].hash
end
end
end
Loading