diff --git a/.apigentools-info b/.apigentools-info index a8bf7d7d76a4..fe549b770c38 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-01 16:04:36.020848", - "spec_repo_commit": "b12889a" + "regenerated": "2021-02-01 18:36:09.996735", + "spec_repo_commit": "ad4a282" }, "v2": { "apigentools_version": "1.4.1.dev2", - "regenerated": "2021-02-01 16:04:48.006462", - "spec_repo_commit": "b12889a" + "regenerated": "2021-02-01 18:36:21.453096", + "spec_repo_commit": "ad4a282" } } } \ No newline at end of file diff --git a/data/v1/openapi.yaml b/data/v1/openapi.yaml index 79a46881e985..7010fd20122c 100644 --- a/data/v1/openapi.yaml +++ b/data/v1/openapi.yaml @@ -4443,6 +4443,13 @@ components: query: description: The monitor query. type: string + restricted_roles: + description: A list of role identifiers that can be pulled from the Roles + API. Cannot be used with `locked` option. + items: + description: A role UUID. + type: string + type: array state: $ref: '#/components/schemas/MonitorState' tags: diff --git a/docs/v1/MonitorUpdateRequest.md b/docs/v1/MonitorUpdateRequest.md index ac515bccf9d3..e680047a5901 100644 --- a/docs/v1/MonitorUpdateRequest.md +++ b/docs/v1/MonitorUpdateRequest.md @@ -16,6 +16,7 @@ | **overall_state** | [**MonitorOverallStates**](MonitorOverallStates.md) | | [optional] | | **priority** | **Integer** | Integer from 1 (high) to 5 (low) indicating alert severity. | [optional] | | **query** | **String** | The monitor query. | [optional] | +| **restricted_roles** | **Array<String>** | A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. | [optional] | | **state** | [**MonitorState**](MonitorState.md) | | [optional] | | **tags** | **Array<String>** | Tags associated to your monitor. | [optional] | | **type** | [**MonitorType**](MonitorType.md) | | [optional] | @@ -38,6 +39,7 @@ instance = DatadogAPIClient::V1::MonitorUpdateRequest.new( overall_state: null, priority: null, query: null, + restricted_roles: null, state: null, tags: null, type: null diff --git a/lib/datadog_api_client/v1/models/monitor_update_request.rb b/lib/datadog_api_client/v1/models/monitor_update_request.rb index 8473607d9591..e9acc0482708 100644 --- a/lib/datadog_api_client/v1/models/monitor_update_request.rb +++ b/lib/datadog_api_client/v1/models/monitor_update_request.rb @@ -52,6 +52,9 @@ class MonitorUpdateRequest # The monitor query. attr_accessor :query + # A list of role identifiers that can be pulled from the Roles API. Cannot be used with `locked` option. + attr_accessor :restricted_roles + attr_accessor :state # Tags associated to your monitor. @@ -74,6 +77,7 @@ def self.attribute_map :'overall_state' => :'overall_state', :'priority' => :'priority', :'query' => :'query', + :'restricted_roles' => :'restricted_roles', :'state' => :'state', :'tags' => :'tags', :'type' => :'type' @@ -100,6 +104,7 @@ def self.openapi_types :'overall_state' => :'MonitorOverallStates', :'priority' => :'Integer', :'query' => :'String', + :'restricted_roles' => :'Array', :'state' => :'MonitorState', :'tags' => :'Array', :'type' => :'MonitorType' @@ -176,6 +181,12 @@ def initialize(attributes = {}) self.query = attributes[:'query'] end + if attributes.key?(:'restricted_roles') + if (value = attributes[:'restricted_roles']).is_a?(Array) + self.restricted_roles = value + end + end + if attributes.key?(:'state') self.state = attributes[:'state'] end @@ -245,6 +256,7 @@ def ==(o) overall_state == o.overall_state && priority == o.priority && query == o.query && + restricted_roles == o.restricted_roles && state == o.state && tags == o.tags && type == o.type @@ -259,7 +271,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, state, tags, type].hash + [created, creator, deleted, id, message, modified, multi, name, options, overall_state, priority, query, restricted_roles, state, tags, type].hash end # Builds the object from hash