datadog_api_client 2.57.0 → 2.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. checksums.yaml +4 -4
  2. data/.generator/schemas/v1/openapi.yaml +2 -0
  3. data/.generator/schemas/v2/openapi.yaml +748 -397
  4. data/CHANGELOG.md +21 -0
  5. data/examples/v1/monitors/CreateMonitor_1348801712.rb +23 -0
  6. data/examples/v2/ci-visibility-github-accounts/ListCIAppGitHubAccounts.rb +5 -0
  7. data/examples/v2/ci-visibility-github-accounts/UpdateCIAppGitHubAccount.rb +20 -0
  8. data/examples/v2/dora-metrics/PatchDORADeploymentByVersion.rb +24 -0
  9. data/examples/v2/governance-console/UpdateGovernanceControl.rb +0 -1
  10. data/examples/v2/status-pages/PatchMaintenanceUpdate.rb +15 -0
  11. data/lib/datadog_api_client/configuration.rb +1 -3
  12. data/lib/datadog_api_client/inflector.rb +33 -14
  13. data/lib/datadog_api_client/v1/models/monitor_type.rb +1 -0
  14. data/lib/datadog_api_client/v2/api/ci_visibility_git_hub_accounts_api.rb +160 -0
  15. data/lib/datadog_api_client/v2/api/dora_metrics_api.rb +73 -0
  16. data/lib/datadog_api_client/v2/api/status_pages_api.rb +83 -1
  17. data/lib/datadog_api_client/v2/models/agent_trigger.rb +105 -0
  18. data/lib/datadog_api_client/v2/models/agent_trigger_wrapper.rb +135 -0
  19. data/lib/datadog_api_client/v2/models/api_trigger_wrapper.rb +1 -1
  20. data/lib/datadog_api_client/v2/models/app_trigger_wrapper.rb +1 -1
  21. data/lib/datadog_api_client/v2/models/case_trigger_wrapper.rb +1 -1
  22. data/lib/datadog_api_client/v2/models/change_event_trigger_wrapper.rb +1 -1
  23. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_attributes.rb +147 -0
  24. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_data.rb → ci_app_git_hub_account_data.rb} +10 -8
  25. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_repository.rb +115 -0
  26. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_response.rb → ci_app_git_hub_account_response.rb} +5 -5
  27. data/lib/datadog_api_client/v2/models/{rum_rate_limit_quota_reached_action.rb → ci_app_git_hub_account_type.rb} +4 -4
  28. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_request.rb → ci_app_git_hub_account_update_request.rb} +5 -5
  29. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_attributes.rb +159 -0
  30. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_data.rb +146 -0
  31. data/lib/datadog_api_client/v2/models/ci_app_git_hub_account_update_request_repository.rb +148 -0
  32. data/lib/datadog_api_client/v2/models/{rum_rate_limit_adaptive_config.rb → ci_app_git_hub_accounts_response.rb} +19 -25
  33. data/lib/datadog_api_client/v2/models/completion_condition.rb +4 -29
  34. data/lib/datadog_api_client/v2/models/completion_gate.rb +4 -29
  35. data/lib/datadog_api_client/v2/models/create_degradation_request.rb +13 -3
  36. data/lib/datadog_api_client/v2/models/create_status_page_request_data_attributes.rb +1 -11
  37. data/lib/datadog_api_client/v2/models/create_table_request_data_attributes_schema.rb +9 -1
  38. data/lib/datadog_api_client/v2/models/create_upload_request_data_attributes.rb +5 -1
  39. data/lib/datadog_api_client/v2/models/dashboard_trigger_wrapper.rb +1 -1
  40. data/lib/datadog_api_client/v2/models/database_monitoring_trigger_wrapper.rb +1 -1
  41. data/lib/datadog_api_client/v2/models/datastore_trigger_wrapper.rb +1 -1
  42. data/lib/datadog_api_client/v2/models/degradation_request_meta.rb +105 -0
  43. data/lib/datadog_api_client/v2/models/deployment_gates_fdd_rule_options.rb +13 -1
  44. data/lib/datadog_api_client/v2/models/deployment_rule_options_faulty_deployment_detection.rb +13 -1
  45. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation.rb +63 -0
  46. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_id.rb +119 -0
  47. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_remediation_by_version.rb +119 -0
  48. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request.rb +123 -0
  49. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_attributes.rb +196 -0
  50. data/lib/datadog_api_client/v2/models/dora_deployment_patch_by_version_request_data.rb +144 -0
  51. data/lib/datadog_api_client/v2/models/dora_deployment_patch_remediation.rb +15 -5
  52. data/lib/datadog_api_client/v2/models/dora_deployment_patch_request_attributes.rb +1 -1
  53. data/lib/datadog_api_client/v2/models/error_handler.rb +4 -29
  54. data/lib/datadog_api_client/v2/models/fleet_agent_info_details_v2.rb +1 -49
  55. data/lib/datadog_api_client/v2/models/form_trigger_wrapper.rb +1 -1
  56. data/lib/datadog_api_client/v2/models/github_webhook_trigger_wrapper.rb +1 -1
  57. data/lib/datadog_api_client/v2/models/governance_control_attributes.rb +1 -22
  58. data/lib/datadog_api_client/v2/models/governance_control_parameter_definition.rb +10 -13
  59. data/lib/datadog_api_client/v2/models/governance_control_update_attributes.rb +1 -11
  60. data/lib/datadog_api_client/v2/models/incident_trigger_wrapper.rb +1 -1
  61. data/lib/datadog_api_client/v2/models/input_schema_parameters.rb +4 -0
  62. data/lib/datadog_api_client/v2/models/maintenance_update.rb +105 -0
  63. data/lib/datadog_api_client/v2/models/maintenance_update_data.rb +164 -0
  64. data/lib/datadog_api_client/v2/models/maintenance_update_data_attributes.rb +167 -0
  65. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_type.rb → maintenance_update_data_attributes_status.rb} +6 -3
  66. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships.rb +125 -0
  67. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance.rb +123 -0
  68. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_maintenance_data.rb +144 -0
  69. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_attributes.rb → maintenance_update_data_relationships_user.rb} +17 -38
  70. data/lib/datadog_api_client/v2/models/maintenance_update_data_relationships_user_data.rb +144 -0
  71. data/lib/datadog_api_client/v2/models/monitor_trigger_wrapper.rb +1 -1
  72. data/lib/datadog_api_client/v2/models/notebook_trigger_wrapper.rb +1 -1
  73. data/lib/datadog_api_client/v2/models/on_call_trigger_wrapper.rb +1 -1
  74. data/lib/datadog_api_client/v2/models/outbound_edge.rb +8 -0
  75. data/lib/datadog_api_client/v2/models/parameter.rb +4 -0
  76. data/lib/datadog_api_client/v2/models/patch_degradation_request.rb +13 -3
  77. data/lib/datadog_api_client/v2/models/patch_maintenance_request_data_attributes.rb +11 -1
  78. data/lib/datadog_api_client/v2/models/patch_maintenance_update_request.rb +105 -0
  79. data/lib/datadog_api_client/v2/models/{rum_rate_limit_config_update_data.rb → patch_maintenance_update_request_data.rb} +9 -21
  80. data/lib/datadog_api_client/v2/models/patch_maintenance_update_request_data_attributes.rb +105 -0
  81. data/lib/datadog_api_client/v2/models/{rum_rate_limit_scope_type.rb → patch_maintenance_update_request_data_type.rb} +3 -3
  82. data/lib/datadog_api_client/v2/models/patch_status_page_request_data_attributes.rb +1 -11
  83. data/lib/datadog_api_client/v2/models/patch_table_request_data_attributes_schema.rb +9 -1
  84. data/lib/datadog_api_client/v2/models/readiness_gate.rb +4 -29
  85. data/lib/datadog_api_client/v2/models/retry_strategy.rb +12 -26
  86. data/lib/datadog_api_client/v2/models/retry_strategy_linear.rb +18 -29
  87. data/lib/datadog_api_client/v2/models/schedule_trigger_wrapper.rb +1 -1
  88. data/lib/datadog_api_client/v2/models/security_trigger_wrapper.rb +1 -1
  89. data/lib/datadog_api_client/v2/models/self_service_trigger_wrapper.rb +1 -1
  90. data/lib/datadog_api_client/v2/models/slack_trigger_wrapper.rb +1 -1
  91. data/lib/datadog_api_client/v2/models/software_catalog_trigger_wrapper.rb +1 -1
  92. data/lib/datadog_api_client/v2/models/spec.rb +1 -1
  93. data/lib/datadog_api_client/v2/models/step.rb +11 -2
  94. data/lib/datadog_api_client/v2/models/step_display.rb +2 -1
  95. data/lib/datadog_api_client/v2/models/table_result_v2_data_attributes_schema.rb +9 -1
  96. data/lib/datadog_api_client/v2/models/trigger.rb +1 -0
  97. data/lib/datadog_api_client/v2/models/workflow_data_attributes.rb +1 -1
  98. data/lib/datadog_api_client/v2/models/workflow_data_update_attributes.rb +1 -1
  99. data/lib/datadog_api_client/v2/models/workflow_list_item_attributes.rb +1 -1
  100. data/lib/datadog_api_client/v2/models/workflow_trigger_wrapper.rb +2 -2
  101. data/lib/datadog_api_client/version.rb +1 -1
  102. metadata +39 -18
  103. data/examples/v2/rum-rate-limit/DeleteRumRateLimitConfig.rb +0 -8
  104. data/examples/v2/rum-rate-limit/GetRumRateLimitConfig.rb +0 -8
  105. data/examples/v2/rum-rate-limit/UpdateRumRateLimitConfig.rb +0 -28
  106. data/lib/datadog_api_client/v2/api/rum_rate_limit_api.rb +0 -277
  107. data/lib/datadog_api_client/v2/models/rum_rate_limit_config_attributes.rb +0 -185
  108. data/lib/datadog_api_client/v2/models/rum_rate_limit_custom_config.rb +0 -223
  109. data/lib/datadog_api_client/v2/models/rum_rate_limit_mode.rb +0 -28
  110. data/lib/datadog_api_client/v2/models/rum_rate_limit_window_type.rb +0 -26
@@ -0,0 +1,159 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Attributes for updating a GitHub account's CI Visibility opt-in status.
21
+ # At least one of `enabled` or `repository.enabled` must be provided.
22
+ class CIAppGitHubAccountUpdateRequestAttributes
23
+ include BaseGenericModel
24
+
25
+ # The GitHub account (organization or user) name to update, identified by name.
26
+ attr_reader :account
27
+
28
+ # Whether to enable or disable CI Visibility at the account level.
29
+ attr_accessor :enabled
30
+
31
+ # The GitHub host (`github.com` or a GHES hostname) the account belongs to. Required to disambiguate
32
+ # when the same account name exists on more than one host.
33
+ attr_accessor :host
34
+
35
+ # Repository-level opt-in change to apply, identified by name.
36
+ attr_accessor :repository
37
+
38
+ attr_accessor :additional_properties
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ # @!visibility private
42
+ def self.attribute_map
43
+ {
44
+ :'account' => :'account',
45
+ :'enabled' => :'enabled',
46
+ :'host' => :'host',
47
+ :'repository' => :'repository'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ # @!visibility private
53
+ def self.openapi_types
54
+ {
55
+ :'account' => :'String',
56
+ :'enabled' => :'Boolean',
57
+ :'host' => :'String',
58
+ :'repository' => :'CIAppGitHubAccountUpdateRequestRepository'
59
+ }
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param attributes [Hash] Model attributes in the form of hash
64
+ # @!visibility private
65
+ def initialize(attributes = {})
66
+ if (!attributes.is_a?(Hash))
67
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequestAttributes` initialize method"
68
+ end
69
+
70
+ self.additional_properties = {}
71
+ # check to see if the attribute exists and convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h|
73
+ if (!self.class.attribute_map.key?(k.to_sym))
74
+ self.additional_properties[k.to_sym] = v
75
+ else
76
+ h[k.to_sym] = v
77
+ end
78
+ }
79
+
80
+ if attributes.key?(:'account')
81
+ self.account = attributes[:'account']
82
+ end
83
+
84
+ if attributes.key?(:'enabled')
85
+ self.enabled = attributes[:'enabled']
86
+ end
87
+
88
+ if attributes.key?(:'host')
89
+ self.host = attributes[:'host']
90
+ end
91
+
92
+ if attributes.key?(:'repository')
93
+ self.repository = attributes[:'repository']
94
+ end
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ # @!visibility private
100
+ def valid?
101
+ return false if @account.nil?
102
+ return false if @account.to_s.length < 1
103
+ true
104
+ end
105
+
106
+ # Custom attribute writer method with validation
107
+ # @param account [Object] Object to be assigned
108
+ # @!visibility private
109
+ def account=(account)
110
+ if account.nil?
111
+ fail ArgumentError, 'invalid value for "account", account cannot be nil.'
112
+ end
113
+ if account.to_s.length < 1
114
+ fail ArgumentError, 'invalid value for "account", the character length must be great than or equal to 1.'
115
+ end
116
+ @account = account
117
+ end
118
+
119
+ # Returns the object in the form of hash, with additionalProperties support.
120
+ # @return [Hash] Returns the object in the form of hash
121
+ # @!visibility private
122
+ def to_hash
123
+ hash = {}
124
+ self.class.attribute_map.each_pair do |attr, param|
125
+ value = self.send(attr)
126
+ if value.nil?
127
+ is_nullable = self.class.openapi_nullable.include?(attr)
128
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
129
+ end
130
+
131
+ hash[param] = _to_hash(value)
132
+ end
133
+ self.additional_properties.each_pair do |attr, value|
134
+ hash[attr] = value
135
+ end
136
+ hash
137
+ end
138
+
139
+ # Checks equality by comparing each attribute.
140
+ # @param o [Object] Object to be compared
141
+ # @!visibility private
142
+ def ==(o)
143
+ return true if self.equal?(o)
144
+ self.class == o.class &&
145
+ account == o.account &&
146
+ enabled == o.enabled &&
147
+ host == o.host &&
148
+ repository == o.repository &&
149
+ additional_properties == o.additional_properties
150
+ end
151
+
152
+ # Calculates hash code according to all attributes.
153
+ # @return [Integer] Hash code
154
+ # @!visibility private
155
+ def hash
156
+ [account, enabled, host, repository, additional_properties].hash
157
+ end
158
+ end
159
+ end
@@ -0,0 +1,146 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Data object for updating a GitHub account's CI Visibility opt-in status.
21
+ class CIAppGitHubAccountUpdateRequestData
22
+ include BaseGenericModel
23
+
24
+ # Attributes for updating a GitHub account's CI Visibility opt-in status.
25
+ # At least one of `enabled` or `repository.enabled` must be provided.
26
+ attr_reader :attributes
27
+
28
+ # JSON:API type for the GitHub account resource.
29
+ # The value must always be `ci_github_account`.
30
+ attr_reader :type
31
+
32
+ attr_accessor :additional_properties
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ # @!visibility private
36
+ def self.attribute_map
37
+ {
38
+ :'attributes' => :'attributes',
39
+ :'type' => :'type'
40
+ }
41
+ end
42
+
43
+ # Attribute type mapping.
44
+ # @!visibility private
45
+ def self.openapi_types
46
+ {
47
+ :'attributes' => :'CIAppGitHubAccountUpdateRequestAttributes',
48
+ :'type' => :'CIAppGitHubAccountType'
49
+ }
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param attributes [Hash] Model attributes in the form of hash
54
+ # @!visibility private
55
+ def initialize(attributes = {})
56
+ if (!attributes.is_a?(Hash))
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequestData` initialize method"
58
+ end
59
+
60
+ self.additional_properties = {}
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h|
63
+ if (!self.class.attribute_map.key?(k.to_sym))
64
+ self.additional_properties[k.to_sym] = v
65
+ else
66
+ h[k.to_sym] = v
67
+ end
68
+ }
69
+
70
+ if attributes.key?(:'attributes')
71
+ self.attributes = attributes[:'attributes']
72
+ end
73
+
74
+ if attributes.key?(:'type')
75
+ self.type = attributes[:'type']
76
+ end
77
+ end
78
+
79
+ # Check to see if the all the properties in the model are valid
80
+ # @return true if the model is valid
81
+ # @!visibility private
82
+ def valid?
83
+ return false if @attributes.nil?
84
+ return false if @type.nil?
85
+ true
86
+ end
87
+
88
+ # Custom attribute writer method with validation
89
+ # @param attributes [Object] Object to be assigned
90
+ # @!visibility private
91
+ def attributes=(attributes)
92
+ if attributes.nil?
93
+ fail ArgumentError, 'invalid value for "attributes", attributes cannot be nil.'
94
+ end
95
+ @attributes = attributes
96
+ end
97
+
98
+ # Custom attribute writer method with validation
99
+ # @param type [Object] Object to be assigned
100
+ # @!visibility private
101
+ def type=(type)
102
+ if type.nil?
103
+ fail ArgumentError, 'invalid value for "type", type cannot be nil.'
104
+ end
105
+ @type = type
106
+ end
107
+
108
+ # Returns the object in the form of hash, with additionalProperties support.
109
+ # @return [Hash] Returns the object in the form of hash
110
+ # @!visibility private
111
+ def to_hash
112
+ hash = {}
113
+ self.class.attribute_map.each_pair do |attr, param|
114
+ value = self.send(attr)
115
+ if value.nil?
116
+ is_nullable = self.class.openapi_nullable.include?(attr)
117
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
118
+ end
119
+
120
+ hash[param] = _to_hash(value)
121
+ end
122
+ self.additional_properties.each_pair do |attr, value|
123
+ hash[attr] = value
124
+ end
125
+ hash
126
+ end
127
+
128
+ # Checks equality by comparing each attribute.
129
+ # @param o [Object] Object to be compared
130
+ # @!visibility private
131
+ def ==(o)
132
+ return true if self.equal?(o)
133
+ self.class == o.class &&
134
+ attributes == o.attributes &&
135
+ type == o.type &&
136
+ additional_properties == o.additional_properties
137
+ end
138
+
139
+ # Calculates hash code according to all attributes.
140
+ # @return [Integer] Hash code
141
+ # @!visibility private
142
+ def hash
143
+ [attributes, type, additional_properties].hash
144
+ end
145
+ end
146
+ end
@@ -0,0 +1,148 @@
1
+ =begin
2
+ #Datadog API V2 Collection
3
+
4
+ #Collection of all Datadog Public endpoints.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@datadoghq.com
8
+ Generated by: https://github.com/DataDog/datadog-api-client-ruby/tree/master/.generator
9
+
10
+ Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
11
+ This product includes software developed at Datadog (https://www.datadoghq.com/).
12
+ Copyright 2020-Present Datadog, Inc.
13
+
14
+ =end
15
+
16
+ require 'date'
17
+ require 'time'
18
+
19
+ module DatadogAPIClient::V2
20
+ # Repository-level opt-in change to apply, identified by name.
21
+ class CIAppGitHubAccountUpdateRequestRepository
22
+ include BaseGenericModel
23
+
24
+ # Whether to enable or disable CI Visibility for this repository.
25
+ attr_reader :enabled
26
+
27
+ # The repository name to update.
28
+ attr_reader :name
29
+
30
+ attr_accessor :additional_properties
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ # @!visibility private
34
+ def self.attribute_map
35
+ {
36
+ :'enabled' => :'enabled',
37
+ :'name' => :'name'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ # @!visibility private
43
+ def self.openapi_types
44
+ {
45
+ :'enabled' => :'Boolean',
46
+ :'name' => :'String'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param attributes [Hash] Model attributes in the form of hash
52
+ # @!visibility private
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppGitHubAccountUpdateRequestRepository` initialize method"
56
+ end
57
+
58
+ self.additional_properties = {}
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ self.additional_properties[k.to_sym] = v
63
+ else
64
+ h[k.to_sym] = v
65
+ end
66
+ }
67
+
68
+ if attributes.key?(:'enabled')
69
+ self.enabled = attributes[:'enabled']
70
+ end
71
+
72
+ if attributes.key?(:'name')
73
+ self.name = attributes[:'name']
74
+ end
75
+ end
76
+
77
+ # Check to see if the all the properties in the model are valid
78
+ # @return true if the model is valid
79
+ # @!visibility private
80
+ def valid?
81
+ return false if @enabled.nil?
82
+ return false if @name.nil?
83
+ return false if @name.to_s.length < 1
84
+ true
85
+ end
86
+
87
+ # Custom attribute writer method with validation
88
+ # @param enabled [Object] Object to be assigned
89
+ # @!visibility private
90
+ def enabled=(enabled)
91
+ if enabled.nil?
92
+ fail ArgumentError, 'invalid value for "enabled", enabled cannot be nil.'
93
+ end
94
+ @enabled = enabled
95
+ end
96
+
97
+ # Custom attribute writer method with validation
98
+ # @param name [Object] Object to be assigned
99
+ # @!visibility private
100
+ def name=(name)
101
+ if name.nil?
102
+ fail ArgumentError, 'invalid value for "name", name cannot be nil.'
103
+ end
104
+ if name.to_s.length < 1
105
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
106
+ end
107
+ @name = name
108
+ end
109
+
110
+ # Returns the object in the form of hash, with additionalProperties support.
111
+ # @return [Hash] Returns the object in the form of hash
112
+ # @!visibility private
113
+ def to_hash
114
+ hash = {}
115
+ self.class.attribute_map.each_pair do |attr, param|
116
+ value = self.send(attr)
117
+ if value.nil?
118
+ is_nullable = self.class.openapi_nullable.include?(attr)
119
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
120
+ end
121
+
122
+ hash[param] = _to_hash(value)
123
+ end
124
+ self.additional_properties.each_pair do |attr, value|
125
+ hash[attr] = value
126
+ end
127
+ hash
128
+ end
129
+
130
+ # Checks equality by comparing each attribute.
131
+ # @param o [Object] Object to be compared
132
+ # @!visibility private
133
+ def ==(o)
134
+ return true if self.equal?(o)
135
+ self.class == o.class &&
136
+ enabled == o.enabled &&
137
+ name == o.name &&
138
+ additional_properties == o.additional_properties
139
+ end
140
+
141
+ # Calculates hash code according to all attributes.
142
+ # @return [Integer] Hash code
143
+ # @!visibility private
144
+ def hash
145
+ [enabled, name, additional_properties].hash
146
+ end
147
+ end
148
+ end
@@ -17,12 +17,12 @@ require 'date'
17
17
  require 'time'
18
18
 
19
19
  module DatadogAPIClient::V2
20
- # The configuration used when `mode` is `adaptive`.
21
- class RumRateLimitAdaptiveConfig
20
+ # Response object containing a list of GitHub accounts and their CI Visibility opt-in status.
21
+ class CIAppGitHubAccountsResponse
22
22
  include BaseGenericModel
23
23
 
24
- # The maximum fraction of sessions to retain, in the range `(0, 1]`.
25
- attr_reader :max_retention_rate
24
+ #
25
+ attr_reader :data
26
26
 
27
27
  attr_accessor :additional_properties
28
28
 
@@ -30,7 +30,7 @@ module DatadogAPIClient::V2
30
30
  # @!visibility private
31
31
  def self.attribute_map
32
32
  {
33
- :'max_retention_rate' => :'max_retention_rate'
33
+ :'data' => :'data'
34
34
  }
35
35
  end
36
36
 
@@ -38,7 +38,7 @@ module DatadogAPIClient::V2
38
38
  # @!visibility private
39
39
  def self.openapi_types
40
40
  {
41
- :'max_retention_rate' => :'Float'
41
+ :'data' => :'Array<CIAppGitHubAccountData>'
42
42
  }
43
43
  end
44
44
 
@@ -47,7 +47,7 @@ module DatadogAPIClient::V2
47
47
  # @!visibility private
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::RumRateLimitAdaptiveConfig` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CIAppGitHubAccountsResponse` initialize method"
51
51
  end
52
52
 
53
53
  self.additional_properties = {}
@@ -60,8 +60,10 @@ module DatadogAPIClient::V2
60
60
  end
61
61
  }
62
62
 
63
- if attributes.key?(:'max_retention_rate')
64
- self.max_retention_rate = attributes[:'max_retention_rate']
63
+ if attributes.key?(:'data')
64
+ if (value = attributes[:'data']).is_a?(Array)
65
+ self.data = value
66
+ end
65
67
  end
66
68
  end
67
69
 
@@ -69,26 +71,18 @@ module DatadogAPIClient::V2
69
71
  # @return true if the model is valid
70
72
  # @!visibility private
71
73
  def valid?
72
- return false if @max_retention_rate.nil?
73
- return false if @max_retention_rate > 1
74
- return false if @max_retention_rate <= 0
74
+ return false if @data.nil?
75
75
  true
76
76
  end
77
77
 
78
78
  # Custom attribute writer method with validation
79
- # @param max_retention_rate [Object] Object to be assigned
79
+ # @param data [Object] Object to be assigned
80
80
  # @!visibility private
81
- def max_retention_rate=(max_retention_rate)
82
- if max_retention_rate.nil?
83
- fail ArgumentError, 'invalid value for "max_retention_rate", max_retention_rate cannot be nil.'
84
- end
85
- if max_retention_rate > 1
86
- fail ArgumentError, 'invalid value for "max_retention_rate", must be smaller than or equal to 1.'
87
- end
88
- if max_retention_rate <= 0
89
- fail ArgumentError, 'invalid value for "max_retention_rate", must be greater than 0.'
81
+ def data=(data)
82
+ if data.nil?
83
+ fail ArgumentError, 'invalid value for "data", data cannot be nil.'
90
84
  end
91
- @max_retention_rate = max_retention_rate
85
+ @data = data
92
86
  end
93
87
 
94
88
  # Returns the object in the form of hash, with additionalProperties support.
@@ -117,7 +111,7 @@ module DatadogAPIClient::V2
117
111
  def ==(o)
118
112
  return true if self.equal?(o)
119
113
  self.class == o.class &&
120
- max_retention_rate == o.max_retention_rate &&
114
+ data == o.data &&
121
115
  additional_properties == o.additional_properties
122
116
  end
123
117
 
@@ -125,7 +119,7 @@ module DatadogAPIClient::V2
125
119
  # @return [Integer] Hash code
126
120
  # @!visibility private
127
121
  def hash
128
- [max_retention_rate, additional_properties].hash
122
+ [data, additional_properties].hash
129
123
  end
130
124
  end
131
125
  end
@@ -30,8 +30,6 @@ module DatadogAPIClient::V2
30
30
  # The definition of `CompletionConditionOperator` object.
31
31
  attr_reader :operator
32
32
 
33
- attr_accessor :additional_properties
34
-
35
33
  # Attribute mapping from ruby-style variable name to JSON key.
36
34
  # @!visibility private
37
35
  def self.attribute_map
@@ -60,14 +58,12 @@ module DatadogAPIClient::V2
60
58
  fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CompletionCondition` initialize method"
61
59
  end
62
60
 
63
- self.additional_properties = {}
64
61
  # check to see if the attribute exists and convert string to symbol for hash key
65
62
  attributes = attributes.each_with_object({}) { |(k, v), h|
66
63
  if (!self.class.attribute_map.key?(k.to_sym))
67
- self.additional_properties[k.to_sym] = v
68
- else
69
- h[k.to_sym] = v
64
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CompletionCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
65
  end
66
+ h[k.to_sym] = v
71
67
  }
72
68
 
73
69
  if attributes.key?(:'operand1')
@@ -112,26 +108,6 @@ module DatadogAPIClient::V2
112
108
  @operator = operator
113
109
  end
114
110
 
115
- # Returns the object in the form of hash, with additionalProperties support.
116
- # @return [Hash] Returns the object in the form of hash
117
- # @!visibility private
118
- def to_hash
119
- hash = {}
120
- self.class.attribute_map.each_pair do |attr, param|
121
- value = self.send(attr)
122
- if value.nil?
123
- is_nullable = self.class.openapi_nullable.include?(attr)
124
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
125
- end
126
-
127
- hash[param] = _to_hash(value)
128
- end
129
- self.additional_properties.each_pair do |attr, value|
130
- hash[attr] = value
131
- end
132
- hash
133
- end
134
-
135
111
  # Checks equality by comparing each attribute.
136
112
  # @param o [Object] Object to be compared
137
113
  # @!visibility private
@@ -140,15 +116,14 @@ module DatadogAPIClient::V2
140
116
  self.class == o.class &&
141
117
  operand1 == o.operand1 &&
142
118
  operand2 == o.operand2 &&
143
- operator == o.operator &&
144
- additional_properties == o.additional_properties
119
+ operator == o.operator
145
120
  end
146
121
 
147
122
  # Calculates hash code according to all attributes.
148
123
  # @return [Integer] Hash code
149
124
  # @!visibility private
150
125
  def hash
151
- [operand1, operand2, operator, additional_properties].hash
126
+ [operand1, operand2, operator].hash
152
127
  end
153
128
  end
154
129
  end
@@ -27,8 +27,6 @@ module DatadogAPIClient::V2
27
27
  # The definition of `RetryStrategy` object.
28
28
  attr_reader :retry_strategy
29
29
 
30
- attr_accessor :additional_properties
31
-
32
30
  # Attribute mapping from ruby-style variable name to JSON key.
33
31
  # @!visibility private
34
32
  def self.attribute_map
@@ -55,14 +53,12 @@ module DatadogAPIClient::V2
55
53
  fail ArgumentError, "The input argument (attributes) must be a hash in `DatadogAPIClient::V2::CompletionGate` initialize method"
56
54
  end
57
55
 
58
- self.additional_properties = {}
59
56
  # check to see if the attribute exists and convert string to symbol for hash key
60
57
  attributes = attributes.each_with_object({}) { |(k, v), h|
61
58
  if (!self.class.attribute_map.key?(k.to_sym))
62
- self.additional_properties[k.to_sym] = v
63
- else
64
- h[k.to_sym] = v
59
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DatadogAPIClient::V2::CompletionGate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
60
  end
61
+ h[k.to_sym] = v
66
62
  }
67
63
 
68
64
  if attributes.key?(:'completion_condition')
@@ -103,26 +99,6 @@ module DatadogAPIClient::V2
103
99
  @retry_strategy = retry_strategy
104
100
  end
105
101
 
106
- # Returns the object in the form of hash, with additionalProperties support.
107
- # @return [Hash] Returns the object in the form of hash
108
- # @!visibility private
109
- def to_hash
110
- hash = {}
111
- self.class.attribute_map.each_pair do |attr, param|
112
- value = self.send(attr)
113
- if value.nil?
114
- is_nullable = self.class.openapi_nullable.include?(attr)
115
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
116
- end
117
-
118
- hash[param] = _to_hash(value)
119
- end
120
- self.additional_properties.each_pair do |attr, value|
121
- hash[attr] = value
122
- end
123
- hash
124
- end
125
-
126
102
  # Checks equality by comparing each attribute.
127
103
  # @param o [Object] Object to be compared
128
104
  # @!visibility private
@@ -130,15 +106,14 @@ module DatadogAPIClient::V2
130
106
  return true if self.equal?(o)
131
107
  self.class == o.class &&
132
108
  completion_condition == o.completion_condition &&
133
- retry_strategy == o.retry_strategy &&
134
- additional_properties == o.additional_properties
109
+ retry_strategy == o.retry_strategy
135
110
  end
136
111
 
137
112
  # Calculates hash code according to all attributes.
138
113
  # @return [Integer] Hash code
139
114
  # @!visibility private
140
115
  def hash
141
- [completion_condition, retry_strategy, additional_properties].hash
116
+ [completion_condition, retry_strategy].hash
142
117
  end
143
118
  end
144
119
  end