Skip to content

Commit

Permalink
Enable automerging for opsgenie routes. (#1955)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Aug 14, 2024
1 parent ad57e97 commit b8c132f
Show file tree
Hide file tree
Showing 7 changed files with 87 additions and 7 deletions.
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-14 20:56:49.907311",
"spec_repo_commit": "dcc3176b"
"regenerated": "2024-08-14 22:02:38.576894",
"spec_repo_commit": "5e33062a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-14 20:56:49.925301",
"spec_repo_commit": "dcc3176b"
"regenerated": "2024-08-14 22:02:38.594610",
"spec_repo_commit": "5e33062a"
}
}
}
14 changes: 14 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14304,10 +14304,12 @@ components:
custom_url:
description: The custom URL for a custom region.
example: https://example.com
format: url
type: string
name:
description: The name for the Opsgenie service.
example: fake-opsgenie-service-name
maxLength: 100
type: string
opsgenie_api_key:
description: The Opsgenie API key for your Opsgenie service.
Expand Down Expand Up @@ -14365,12 +14367,18 @@ components:
custom_url:
description: The custom URL for a custom region.
example: null
format: url
nullable: true
type: string
name:
description: The name for the Opsgenie service.
example: fake-opsgenie-service-name
maxLength: 100
type: string
opsgenie_api_key:
description: The OpsgenieServiceResponseAttributes opsgenie_api_key.
type: string
writeOnly: true
region:
$ref: '#/components/schemas/OpsgenieServiceRegionType'
type: object
Expand All @@ -14382,6 +14390,8 @@ components:
id:
description: The ID of the Opsgenie service.
example: 596da4af-0563-4097-90ff-07230c3f9db3
maxLength: 100
minLength: 1
type: string
type:
$ref: '#/components/schemas/OpsgenieServiceType'
Expand All @@ -14405,11 +14415,13 @@ components:
custom_url:
description: The custom URL for a custom region.
example: https://example.com
format: url
nullable: true
type: string
name:
description: The name for the Opsgenie service.
example: fake-opsgenie-service-name
maxLength: 100
type: string
opsgenie_api_key:
description: The Opsgenie API key for your Opsgenie service.
Expand All @@ -14426,6 +14438,8 @@ components:
id:
description: The ID of the Opsgenie service.
example: 596da4af-0563-4097-90ff-07230c3f9db3
maxLength: 100
minLength: 1
type: string
type:
$ref: '#/components/schemas/OpsgenieServiceType'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def initialize(attributes = {})
# @!visibility private
def valid?
return false if @name.nil?
return false if @name.to_s.length > 100
return false if @opsgenie_api_key.nil?
return false if @region.nil?
true
Expand All @@ -105,6 +106,9 @@ def name=(name)
if name.nil?
fail ArgumentError, 'invalid value for "name", name cannot be nil.'
end
if name.to_s.length > 100
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
end
@name = name
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ class OpsgenieServiceResponseAttributes
attr_accessor :custom_url

# The name for the Opsgenie service.
attr_accessor :name
attr_reader :name

# The OpsgenieServiceResponseAttributes opsgenie_api_key.
attr_accessor :opsgenie_api_key

# The region for the Opsgenie service.
attr_accessor :region
Expand All @@ -36,6 +39,7 @@ def self.attribute_map
{
:'custom_url' => :'custom_url',
:'name' => :'name',
:'opsgenie_api_key' => :'opsgenie_api_key',
:'region' => :'region'
}
end
Expand All @@ -46,6 +50,7 @@ def self.openapi_types
{
:'custom_url' => :'String',
:'name' => :'String',
:'opsgenie_api_key' => :'String',
:'region' => :'OpsgenieServiceRegionType'
}
end
Expand Down Expand Up @@ -82,11 +87,33 @@ def initialize(attributes = {})
self.name = attributes[:'name']
end

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

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

# Check to see if the all the properties in the model are valid
# @return true if the model is valid
# @!visibility private
def valid?
return false if !@name.nil? && @name.to_s.length > 100
true
end

# Custom attribute writer method with validation
# @param name [Object] Object to be assigned
# @!visibility private
def name=(name)
if !name.nil? && name.to_s.length > 100
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
end
@name = name
end

# Checks equality by comparing each attribute.
# @param o [Object] Object to be compared
# @!visibility private
Expand All @@ -95,14 +122,15 @@ def ==(o)
self.class == o.class &&
custom_url == o.custom_url &&
name == o.name &&
opsgenie_api_key == o.opsgenie_api_key &&
region == o.region
end

# Calculates hash code according to all attributes.
# @return [Integer] Hash code
# @!visibility private
def hash
[custom_url, name, region].hash
[custom_url, name, opsgenie_api_key, region].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def initialize(attributes = {})
def valid?
return false if @attributes.nil?
return false if @id.nil?
return false if @id.to_s.length > 100
return false if @id.to_s.length < 1
return false if @type.nil?
true
end
Expand All @@ -106,6 +108,12 @@ def id=(id)
if id.nil?
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
end
if id.to_s.length > 100
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 100.'
end
if id.to_s.length < 1
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
end
@id = id
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class OpsgenieServiceUpdateAttributes
attr_accessor :custom_url

# The name for the Opsgenie service.
attr_accessor :name
attr_reader :name

# The Opsgenie API key for your Opsgenie service.
attr_accessor :opsgenie_api_key
Expand Down Expand Up @@ -96,6 +96,24 @@ def initialize(attributes = {})
end
end

# Check to see if the all the properties in the model are valid
# @return true if the model is valid
# @!visibility private
def valid?
return false if !@name.nil? && @name.to_s.length > 100
true
end

# Custom attribute writer method with validation
# @param name [Object] Object to be assigned
# @!visibility private
def name=(name)
if !name.nil? && name.to_s.length > 100
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 100.'
end
@name = name
end

# Checks equality by comparing each attribute.
# @param o [Object] Object to be compared
# @!visibility private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def initialize(attributes = {})
def valid?
return false if @attributes.nil?
return false if @id.nil?
return false if @id.to_s.length > 100
return false if @id.to_s.length < 1
return false if @type.nil?
true
end
Expand All @@ -106,6 +108,12 @@ def id=(id)
if id.nil?
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
end
if id.to_s.length > 100
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 100.'
end
if id.to_s.length < 1
fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
end
@id = id
end

Expand Down

0 comments on commit b8c132f

Please sign in to comment.