Skip to content

Commit 487e3ef

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit cd4dc5f of spec repo (DataDog#3596)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 2e3d842 commit 487e3ef

2 files changed

Lines changed: 1 addition & 13 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48210,7 +48210,6 @@ components:
4821048210
$ref: "#/components/schemas/IncidentUserDefinedRolePolicy"
4821148211
required:
4821248212
- name
48213-
- policy
4821448213
type: object
4821548214
IncidentUserDefinedRoleDataAttributesResponse:
4821648215
description: Attributes of an incident user-defined role.

lib/datadog_api_client/v2/models/incident_user_defined_role_data_attributes_request.rb

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class IncidentUserDefinedRoleDataAttributesRequest
2828
attr_reader :name
2929

3030
# Policy configuration for a user-defined role.
31-
attr_reader :policy
31+
attr_accessor :policy
3232

3333
attr_accessor :additional_properties
3434

@@ -96,7 +96,6 @@ def initialize(attributes = {})
9696
# @!visibility private
9797
def valid?
9898
return false if @name.nil?
99-
return false if @policy.nil?
10099
true
101100
end
102101

@@ -110,16 +109,6 @@ def name=(name)
110109
@name = name
111110
end
112111

113-
# Custom attribute writer method with validation
114-
# @param policy [Object] Object to be assigned
115-
# @!visibility private
116-
def policy=(policy)
117-
if policy.nil?
118-
fail ArgumentError, 'invalid value for "policy", policy cannot be nil.'
119-
end
120-
@policy = policy
121-
end
122-
123112
# Returns the object in the form of hash, with additionalProperties support.
124113
# @return [Hash] Returns the object in the form of hash
125114
# @!visibility private

0 commit comments

Comments
 (0)