Skip to content
Open
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
32 changes: 22 additions & 10 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13283,6 +13283,7 @@ components:
type:
$ref: '#/components/schemas/StatusPagesComponentGroupType'
required:
- attributes
- type
type: object
CreateComponentRequestDataAttributes:
Expand Down Expand Up @@ -13367,7 +13368,7 @@ components:
properties:
id:
description: The ID of the group.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -13569,6 +13570,7 @@ components:
type:
$ref: '#/components/schemas/PatchDegradationRequestDataType'
required:
- attributes
- type
type: object
CreateDegradationRequestDataAttributes:
Expand Down Expand Up @@ -13604,7 +13606,7 @@ components:
properties:
id:
description: The ID of the component. Must be a component of type `component`.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -14327,6 +14329,7 @@ components:
type:
$ref: '#/components/schemas/StatusPageDataType'
required:
- attributes
- type
type: object
CreateStatusPageRequestDataAttributes:
Expand Down Expand Up @@ -18391,7 +18394,7 @@ components:
properties:
id:
description: The ID of the component.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -18436,7 +18439,7 @@ components:
properties:
id:
description: Identifier of the component affected at the time of the update.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -18512,7 +18515,7 @@ components:
properties:
id:
description: The ID of the status page.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -43649,11 +43652,14 @@ components:
$ref: '#/components/schemas/PatchComponentRequestDataAttributes'
id:
description: The ID of the component.
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
$ref: '#/components/schemas/StatusPagesComponentGroupType'
required:
- attributes
- id
- type
type: object
PatchComponentRequestDataAttributes:
Expand Down Expand Up @@ -43692,11 +43698,14 @@ components:
$ref: '#/components/schemas/PatchDegradationRequestDataAttributes'
id:
description: The ID of the degradation.
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
$ref: '#/components/schemas/PatchDegradationRequestDataType'
required:
- attributes
- id
- type
type: object
PatchDegradationRequestDataAttributes:
Expand Down Expand Up @@ -43727,7 +43736,7 @@ components:
properties:
id:
description: The ID of the component. Must be a component of type `component`.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
name:
Expand Down Expand Up @@ -43832,11 +43841,14 @@ components:
$ref: '#/components/schemas/PatchStatusPageRequestDataAttributes'
id:
description: The ID of the status page.
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
$ref: '#/components/schemas/StatusPageDataType'
required:
- attributes
- id
- type
type: object
PatchStatusPageRequestDataAttributes:
Expand Down Expand Up @@ -58764,7 +58776,7 @@ components:
properties:
id:
description: The ID of the group the component belongs to.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -58803,7 +58815,7 @@ components:
properties:
id:
description: The ID of the status page the component belongs to.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -58945,7 +58957,7 @@ components:
nullable: true
properties:
id:
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down Expand Up @@ -58987,7 +58999,7 @@ components:
properties:
id:
description: The ID of the status page.
example: ''
example: 1234abcd-12ab-34cd-56ef-123456abcdef
format: uuid
type: string
type:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CreateComponentRequestData
include BaseGenericModel

# The supported attributes for creating a component.
attr_accessor :attributes
attr_reader :attributes

# The supported relationships for creating a component.
attr_accessor :relationships
Expand Down Expand Up @@ -87,10 +87,21 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @attributes.nil?
return false if @type.nil?
true
end

# Custom attribute writer method with validation
# @param attributes [Object] Object to be assigned
# @!visibility private
def attributes=(attributes)
if attributes.nil?
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
end
@attributes = attributes
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CreateDegradationRequestData
include BaseGenericModel

# The supported attributes for creating a degradation.
attr_accessor :attributes
attr_reader :attributes

# Degradations resource type.
attr_reader :type
Expand Down Expand Up @@ -78,10 +78,21 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @attributes.nil?
return false if @type.nil?
true
end

# Custom attribute writer method with validation
# @param attributes [Object] Object to be assigned
# @!visibility private
def attributes=(attributes)
if attributes.nil?
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
end
@attributes = attributes
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class CreateStatusPageRequestData
include BaseGenericModel

# The supported attributes for creating a status page.
attr_accessor :attributes
attr_reader :attributes

# Status pages resource type.
attr_reader :type
Expand Down Expand Up @@ -78,10 +78,21 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @attributes.nil?
return false if @type.nil?
true
end

# Custom attribute writer method with validation
# @param attributes [Object] Object to be assigned
# @!visibility private
def attributes=(attributes)
if attributes.nil?
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
end
@attributes = attributes
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class PatchComponentRequestData
include BaseGenericModel

# The supported attributes for updating a component.
attr_accessor :attributes
attr_reader :attributes

# The ID of the component.
attr_accessor :id
attr_reader :id

# Components resource type.
attr_reader :type
Expand Down Expand Up @@ -87,10 +87,32 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @attributes.nil?
return false if @id.nil?
return false if @type.nil?
true
end

# Custom attribute writer method with validation
# @param attributes [Object] Object to be assigned
# @!visibility private
def attributes=(attributes)
if attributes.nil?
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
end
@attributes = attributes
end

# Custom attribute writer method with validation
# @param id [Object] Object to be assigned
# @!visibility private
def id=(id)
if id.nil?
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
end
@id = id
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class PatchDegradationRequestData
include BaseGenericModel

# The supported attributes for updating a degradation.
attr_accessor :attributes
attr_reader :attributes

# The ID of the degradation.
attr_accessor :id
attr_reader :id

# Degradations resource type.
attr_reader :type
Expand Down Expand Up @@ -87,10 +87,32 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @attributes.nil?
return false if @id.nil?
return false if @type.nil?
true
end

# Custom attribute writer method with validation
# @param attributes [Object] Object to be assigned
# @!visibility private
def attributes=(attributes)
if attributes.nil?
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
end
@attributes = attributes
end

# Custom attribute writer method with validation
# @param id [Object] Object to be assigned
# @!visibility private
def id=(id)
if id.nil?
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
end
@id = id
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ class PatchStatusPageRequestData
include BaseGenericModel

# The supported attributes for updating a status page.
attr_accessor :attributes
attr_reader :attributes

# The ID of the status page.
attr_accessor :id
attr_reader :id

# Status pages resource type.
attr_reader :type
Expand Down Expand Up @@ -87,10 +87,32 @@ def initialize(attributes = {})
# @return true if the model is valid
# @!visibility private
def valid?
return false if @attributes.nil?
return false if @id.nil?
return false if @type.nil?
true
end

# Custom attribute writer method with validation
# @param attributes [Object] Object to be assigned
# @!visibility private
def attributes=(attributes)
if attributes.nil?
fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
end
@attributes = attributes
end

# Custom attribute writer method with validation
# @param id [Object] Object to be assigned
# @!visibility private
def id=(id)
if id.nil?
fail ArgumentError, 'invalid value for "id", id cannot be nil.'
end
@id = id
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down
Loading