Skip to content

Commit

Permalink
Regenerate client from commit 579028d9 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Aug 14, 2024
1 parent 30359c1 commit 3308dcc
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-12 20:42:16.724787",
"spec_repo_commit": "7a16d6c5"
"regenerated": "2024-08-14 17:39:43.408530",
"spec_repo_commit": "579028d9"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-12 20:42:16.744063",
"spec_repo_commit": "7a16d6c5"
"regenerated": "2024-08-14 17:39:43.426548",
"spec_repo_commit": "579028d9"
}
}
}
14 changes: 14 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14290,10 +14290,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 @@ -14351,12 +14353,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 @@ -14368,6 +14376,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 @@ -14391,11 +14401,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 @@ -14412,6 +14424,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 3308dcc

Please sign in to comment.