Skip to content
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
1 change: 0 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48210,7 +48210,6 @@ components:
$ref: "#/components/schemas/IncidentUserDefinedRolePolicy"
required:
- name
- policy
type: object
IncidentUserDefinedRoleDataAttributesResponse:
description: Attributes of an incident user-defined role.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class IncidentUserDefinedRoleDataAttributesRequest
attr_reader :name

# Policy configuration for a user-defined role.
attr_reader :policy
attr_accessor :policy

attr_accessor :additional_properties

Expand Down Expand Up @@ -96,7 +96,6 @@ def initialize(attributes = {})
# @!visibility private
def valid?
return false if @name.nil?
return false if @policy.nil?
true
end

Expand All @@ -110,16 +109,6 @@ def name=(name)
@name = name
end

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

# Returns the object in the form of hash, with additionalProperties support.
# @return [Hash] Returns the object in the form of hash
# @!visibility private
Expand Down
Loading