From 9e125e9ca4e426c9988ae10c3de293797e6247d0 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 26 Oct 2021 22:49:38 +0000 Subject: [PATCH] Regenerate client from commit 6e4a2f9 of spec repo --- .apigentools-info | 8 ++++---- api/v1/datadog/api/openapi.yaml | 8 ++++---- api/v1/datadog/docs/Dashboard.md | 4 ++-- api/v1/datadog/model_dashboard.go | 8 ++++++-- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 7cc31a42137..288118afb82 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-10-25 17:56:52.560931", - "spec_repo_commit": "ad22b00" + "regenerated": "2021-10-26 22:48:57.978620", + "spec_repo_commit": "6e4a2f9" }, "v2": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-10-25 17:57:28.088829", - "spec_repo_commit": "ad22b00" + "regenerated": "2021-10-26 22:49:36.417615", + "spec_repo_commit": "6e4a2f9" } } } \ No newline at end of file diff --git a/api/v1/datadog/api/openapi.yaml b/api/v1/datadog/api/openapi.yaml index 4b4662f0c8b..024fd9659a4 100644 --- a/api/v1/datadog/api/openapi.yaml +++ b/api/v1/datadog/api/openapi.yaml @@ -11814,8 +11814,10 @@ components: type: string is_read_only: default: false + deprecated: true description: Whether this dashboard is read-only. If True, only the author - and admins can make changes to it. + and admins can make changes to it. Prefer using `restricted_roles` to + manage write authorization. example: false type: boolean layout_type: @@ -11837,9 +11839,7 @@ components: $ref: '#/components/schemas/DashboardReflowType' restricted_roles: description: A list of role identifiers. Only the author and users associated - with at least one of these roles can edit this dashboard. Overrides the - `is_read_only` property if both are present. **This feature is currently - in beta.** + with at least one of these roles can edit this dashboard. items: description: A role UUID. type: string diff --git a/api/v1/datadog/docs/Dashboard.md b/api/v1/datadog/docs/Dashboard.md index 5a435426158..65144e721fd 100644 --- a/api/v1/datadog/docs/Dashboard.md +++ b/api/v1/datadog/docs/Dashboard.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **CreatedAt** | Pointer to **time.Time** | Creation date of the dashboard. | [optional] [readonly] **Description** | Pointer to **NullableString** | Description of the dashboard. | [optional] **Id** | Pointer to **string** | ID of the dashboard. | [optional] [readonly] -**IsReadOnly** | Pointer to **bool** | Whether this dashboard is read-only. If True, only the author and admins can make changes to it. | [optional] [default to false] +**IsReadOnly** | Pointer to **bool** | Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization. | [optional] [default to false] **LayoutType** | [**DashboardLayoutType**](DashboardLayoutType.md) | | **ModifiedAt** | Pointer to **time.Time** | Modification date of the dashboard. | [optional] [readonly] **NotifyList** | Pointer to **[]string** | List of handles of users to notify when changes are made to this dashboard. | [optional] **ReflowType** | Pointer to [**DashboardReflowType**](DashboardReflowType.md) | | [optional] -**RestrictedRoles** | Pointer to **[]string** | A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. Overrides the `is_read_only` property if both are present. **This feature is currently in beta.** | [optional] +**RestrictedRoles** | Pointer to **[]string** | A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. | [optional] **TemplateVariablePresets** | Pointer to [**[]DashboardTemplateVariablePreset**](DashboardTemplateVariablePreset.md) | Array of template variables saved views. | [optional] **TemplateVariables** | Pointer to [**[]DashboardTemplateVariable**](DashboardTemplateVariable.md) | List of template variables for this dashboard. | [optional] **Title** | **string** | Title of the dashboard. | diff --git a/api/v1/datadog/model_dashboard.go b/api/v1/datadog/model_dashboard.go index 20b4034fa31..df75df69737 100644 --- a/api/v1/datadog/model_dashboard.go +++ b/api/v1/datadog/model_dashboard.go @@ -24,7 +24,8 @@ type Dashboard struct { Description NullableString `json:"description,omitempty"` // ID of the dashboard. Id *string `json:"id,omitempty"` - // Whether this dashboard is read-only. If True, only the author and admins can make changes to it. + // Whether this dashboard is read-only. If True, only the author and admins can make changes to it. Prefer using `restricted_roles` to manage write authorization. + // Deprecated IsReadOnly *bool `json:"is_read_only,omitempty"` LayoutType DashboardLayoutType `json:"layout_type"` // Modification date of the dashboard. @@ -32,7 +33,7 @@ type Dashboard struct { // List of handles of users to notify when changes are made to this dashboard. NotifyList []string `json:"notify_list,omitempty"` ReflowType *DashboardReflowType `json:"reflow_type,omitempty"` - // A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. Overrides the `is_read_only` property if both are present. **This feature is currently in beta.** + // A list of role identifiers. Only the author and users associated with at least one of these roles can edit this dashboard. RestrictedRoles *[]string `json:"restricted_roles,omitempty"` // Array of template variables saved views. TemplateVariablePresets []DashboardTemplateVariablePreset `json:"template_variable_presets,omitempty"` @@ -212,6 +213,7 @@ func (o *Dashboard) SetId(v string) { } // GetIsReadOnly returns the IsReadOnly field value if set, zero value otherwise. +// Deprecated func (o *Dashboard) GetIsReadOnly() bool { if o == nil || o.IsReadOnly == nil { var ret bool @@ -222,6 +224,7 @@ func (o *Dashboard) GetIsReadOnly() bool { // GetIsReadOnlyOk returns a tuple with the IsReadOnly field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *Dashboard) GetIsReadOnlyOk() (*bool, bool) { if o == nil || o.IsReadOnly == nil { return nil, false @@ -239,6 +242,7 @@ func (o *Dashboard) HasIsReadOnly() bool { } // SetIsReadOnly gets a reference to the given bool and assigns it to the IsReadOnly field. +// Deprecated func (o *Dashboard) SetIsReadOnly(v bool) { o.IsReadOnly = &v }