From bf9f4cf1b153a9bd74feba0498877149699d0733 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" Date: Mon, 17 Apr 2023 15:30:39 +0000 Subject: [PATCH] Add support for shared dashboards endpoints (#1928) * include type in composite literal (by Sherzod) * Regenerate client from commit c9aa3e76 of spec repo --------- Co-authored-by: Kevin Zou Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec a2c19579a0ce0bea4f4e00116d32cf581029941c --- .../v2/api/datadogV1/index.html | 5446 ++++++++++++++++- .../v2/api/datadog/index.html | 10 +- .../v2/api/datadogV1/api_dashboards.go.html | 1424 +++-- .../v2/api/datadogV1/doc.go.html | 391 +- .../v2/api/datadogV1/index.html | 1755 +++--- .../model_dashboard_global_time.go.html | 175 + ...el_dashboard_global_time_live_span.go.html | 190 + .../model_dashboard_invite_type.go.html | 176 + .../model_dashboard_share_type.go.html | 178 + .../datadogV1/model_dashboard_type.go.html | 178 + ...l_delete_shared_dashboard_response.go.html | 167 + ...selectable_template_variable_items.go.html | 273 + .../datadogV1/model_shared_dashboard.go.html | 581 ++ .../model_shared_dashboard_author.go.html | 202 + .../model_shared_dashboard_invites.go.html | 214 + ...odel_shared_dashboard_invites_data.go.html | 224 + ...ared_dashboard_invites_data_object.go.html | 220 + ...ard_invites_data_object_attributes.go.html | 364 ++ ...odel_shared_dashboard_invites_meta.go.html | 174 + ...shared_dashboard_invites_meta_page.go.html | 167 + ...el_shared_dashboard_update_request.go.html | 348 ++ ...shboard_update_request_global_time.go.html | 225 + .../v2/api/datadogV2/index.html | 1964 +++--- 23 files changed, 12611 insertions(+), 2435 deletions(-) create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_dashboard_global_time.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_dashboard_global_time_live_span.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_dashboard_invite_type.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_dashboard_share_type.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_dashboard_type.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_delete_shared_dashboard_response.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_selectable_template_variable_items.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_author.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_invites.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_invites_data.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_invites_data_object.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_invites_data_object_attributes.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_invites_meta.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_invites_meta_page.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_update_request.go.html create mode 100644 src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/model_shared_dashboard_update_request_global_time.go.html diff --git a/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html b/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html index 009ef89b822..76bb7a03ed3 100644 --- a/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html +++ b/pkg/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/index.html @@ -119,12 +119,19 @@

Overview ▾

DashboardListsApi.ListDashboardLists
  • DashboardListsApi.UpdateDashboardList
  • DashboardsApi.CreateDashboard +
  • DashboardsApi.CreatePublicDashboard
  • DashboardsApi.DeleteDashboard
  • DashboardsApi.DeleteDashboards +
  • DashboardsApi.DeletePublicDashboard +
  • DashboardsApi.DeletePublicDashboardInvitation
  • DashboardsApi.GetDashboard +
  • DashboardsApi.GetPublicDashboard +
  • DashboardsApi.GetPublicDashboardInvitations
  • DashboardsApi.ListDashboards
  • DashboardsApi.RestoreDashboards +
  • DashboardsApi.SendPublicDashboardInvitation
  • DashboardsApi.UpdateDashboard +
  • DashboardsApi.UpdatePublicDashboard
  • DowntimesApi.CancelDowntime
  • DowntimesApi.CancelDowntimesByScope
  • DowntimesApi.CreateDowntime @@ -3118,6 +3125,75 @@

    Index ▾

    +
    type DashboardGlobalTime
    + + +
        func NewDashboardGlobalTime() *DashboardGlobalTime
    + + +
        func NewDashboardGlobalTimeWithDefaults() *DashboardGlobalTime
    + + + +
        func (o *DashboardGlobalTime) GetLiveSpan() DashboardGlobalTimeLiveSpan
    + + +
        func (o *DashboardGlobalTime) GetLiveSpanOk() (*DashboardGlobalTimeLiveSpan, bool)
    + + +
        func (o *DashboardGlobalTime) HasLiveSpan() bool
    + + +
        func (o DashboardGlobalTime) MarshalJSON() ([]byte, error)
    + + +
        func (o *DashboardGlobalTime) SetLiveSpan(v DashboardGlobalTimeLiveSpan)
    + + +
        func (o *DashboardGlobalTime) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type DashboardGlobalTimeLiveSpan
    + + +
        func NewDashboardGlobalTimeLiveSpanFromValue(v string) (*DashboardGlobalTimeLiveSpan, error)
    + + + +
        func (v *DashboardGlobalTimeLiveSpan) GetAllowedValues() []DashboardGlobalTimeLiveSpan
    + + +
        func (v DashboardGlobalTimeLiveSpan) IsValid() bool
    + + +
        func (v DashboardGlobalTimeLiveSpan) Ptr() *DashboardGlobalTimeLiveSpan
    + + +
        func (v *DashboardGlobalTimeLiveSpan) UnmarshalJSON(src []byte) error
    + + + +
    type DashboardInviteType
    + + +
        func NewDashboardInviteTypeFromValue(v string) (*DashboardInviteType, error)
    + + + +
        func (v *DashboardInviteType) GetAllowedValues() []DashboardInviteType
    + + +
        func (v DashboardInviteType) IsValid() bool
    + + +
        func (v DashboardInviteType) Ptr() *DashboardInviteType
    + + +
        func (v *DashboardInviteType) UnmarshalJSON(src []byte) error
    + + +
    type DashboardLayoutType
    @@ -3395,6 +3471,26 @@

    Index ▾

    +
    type DashboardShareType
    + + +
        func NewDashboardShareTypeFromValue(v string) (*DashboardShareType, error)
    + + + +
        func (v *DashboardShareType) GetAllowedValues() []DashboardShareType
    + + +
        func (v DashboardShareType) IsValid() bool
    + + +
        func (v DashboardShareType) Ptr() *DashboardShareType
    + + +
        func (v *DashboardShareType) UnmarshalJSON(src []byte) error
    + + +
    type DashboardSummary
    @@ -3735,6 +3831,26 @@

    Index ▾

    +
    type DashboardType
    + + +
        func NewDashboardTypeFromValue(v string) (*DashboardType, error)
    + + + +
        func (v *DashboardType) GetAllowedValues() []DashboardType
    + + +
        func (v DashboardType) IsValid() bool
    + + +
        func (v DashboardType) Ptr() *DashboardType
    + + +
        func (v *DashboardType) UnmarshalJSON(src []byte) error
    + + +
    type DashboardsApi
    @@ -3745,23 +3861,44 @@

    Index ▾

        func (a *DashboardsApi) CreateDashboard(ctx _context.Context, body Dashboard) (Dashboard, *_nethttp.Response, error)
    +
        func (a *DashboardsApi) CreatePublicDashboard(ctx _context.Context, body SharedDashboard) (SharedDashboard, *_nethttp.Response, error)
    + +
        func (a *DashboardsApi) DeleteDashboard(ctx _context.Context, dashboardId string) (DashboardDeleteResponse, *_nethttp.Response, error)
        func (a *DashboardsApi) DeleteDashboards(ctx _context.Context, body DashboardBulkDeleteRequest) (*_nethttp.Response, error)
    +
        func (a *DashboardsApi) DeletePublicDashboard(ctx _context.Context, token string) (DeleteSharedDashboardResponse, *_nethttp.Response, error)
    + + +
        func (a *DashboardsApi) DeletePublicDashboardInvitation(ctx _context.Context, token string, body SharedDashboardInvites) (*_nethttp.Response, error)
    + +
        func (a *DashboardsApi) GetDashboard(ctx _context.Context, dashboardId string) (Dashboard, *_nethttp.Response, error)
    +
        func (a *DashboardsApi) GetPublicDashboard(ctx _context.Context, token string) (SharedDashboard, *_nethttp.Response, error)
    + + +
        func (a *DashboardsApi) GetPublicDashboardInvitations(ctx _context.Context, token string, o ...GetPublicDashboardInvitationsOptionalParameters) (SharedDashboardInvites, *_nethttp.Response, error)
    + +
        func (a *DashboardsApi) ListDashboards(ctx _context.Context, o ...ListDashboardsOptionalParameters) (DashboardSummary, *_nethttp.Response, error)
        func (a *DashboardsApi) RestoreDashboards(ctx _context.Context, body DashboardRestoreRequest) (*_nethttp.Response, error)
    +
        func (a *DashboardsApi) SendPublicDashboardInvitation(ctx _context.Context, token string, body SharedDashboardInvites) (SharedDashboardInvites, *_nethttp.Response, error)
    + +
        func (a *DashboardsApi) UpdateDashboard(ctx _context.Context, dashboardId string, body Dashboard) (Dashboard, *_nethttp.Response, error)
    + +
        func (a *DashboardsApi) UpdatePublicDashboard(ctx _context.Context, token string, body SharedDashboardUpdateRequest) (SharedDashboard, *_nethttp.Response, error)
    +
    type DeleteHostTagsOptionalParameters
    @@ -3797,6 +3934,35 @@

    Index ▾

    +
    type DeleteSharedDashboardResponse
    + + +
        func NewDeleteSharedDashboardResponse() *DeleteSharedDashboardResponse
    + + +
        func NewDeleteSharedDashboardResponseWithDefaults() *DeleteSharedDashboardResponse
    + + + +
        func (o *DeleteSharedDashboardResponse) GetDeletedPublicDashboardToken() string
    + + +
        func (o *DeleteSharedDashboardResponse) GetDeletedPublicDashboardTokenOk() (*string, bool)
    + + +
        func (o *DeleteSharedDashboardResponse) HasDeletedPublicDashboardToken() bool
    + + +
        func (o DeleteSharedDashboardResponse) MarshalJSON() ([]byte, error)
    + + +
        func (o *DeleteSharedDashboardResponse) SetDeletedPublicDashboardToken(v string)
    + + +
        func (o *DeleteSharedDashboardResponse) UnmarshalJSON(bytes []byte) (err error)
    + + +
    type DeletedMonitor
    @@ -7907,6 +8073,20 @@

    Index ▾

    +
    type GetPublicDashboardInvitationsOptionalParameters
    + + +
        func NewGetPublicDashboardInvitationsOptionalParameters() *GetPublicDashboardInvitationsOptionalParameters
    + + + +
        func (r *GetPublicDashboardInvitationsOptionalParameters) WithPageNumber(pageNumber int64) *GetPublicDashboardInvitationsOptionalParameters
    + + +
        func (r *GetPublicDashboardInvitationsOptionalParameters) WithPageSize(pageSize int64) *GetPublicDashboardInvitationsOptionalParameters
    + + +
    type GetSLOHistoryOptionalParameters
    @@ -21550,6 +21730,58 @@

    Index ▾

    +
    type NullableDashboardGlobalTimeLiveSpan
    + + +
        func NewNullableDashboardGlobalTimeLiveSpan(val *DashboardGlobalTimeLiveSpan) *NullableDashboardGlobalTimeLiveSpan
    + + + +
        func (v NullableDashboardGlobalTimeLiveSpan) Get() *DashboardGlobalTimeLiveSpan
    + + +
        func (v NullableDashboardGlobalTimeLiveSpan) IsSet() bool
    + + +
        func (v NullableDashboardGlobalTimeLiveSpan) MarshalJSON() ([]byte, error)
    + + +
        func (v *NullableDashboardGlobalTimeLiveSpan) Set(val *DashboardGlobalTimeLiveSpan)
    + + +
        func (v *NullableDashboardGlobalTimeLiveSpan) UnmarshalJSON(src []byte) error
    + + +
        func (v *NullableDashboardGlobalTimeLiveSpan) Unset()
    + + + +
    type NullableDashboardInviteType
    + + +
        func NewNullableDashboardInviteType(val *DashboardInviteType) *NullableDashboardInviteType
    + + + +
        func (v NullableDashboardInviteType) Get() *DashboardInviteType
    + + +
        func (v NullableDashboardInviteType) IsSet() bool
    + + +
        func (v NullableDashboardInviteType) MarshalJSON() ([]byte, error)
    + + +
        func (v *NullableDashboardInviteType) Set(val *DashboardInviteType)
    + + +
        func (v *NullableDashboardInviteType) UnmarshalJSON(src []byte) error
    + + +
        func (v *NullableDashboardInviteType) Unset()
    + + +
    type NullableDashboardLayoutType
    @@ -21628,6 +21860,58 @@

    Index ▾

    +
    type NullableDashboardShareType
    + + +
        func NewNullableDashboardShareType(val *DashboardShareType) *NullableDashboardShareType
    + + + +
        func (v NullableDashboardShareType) Get() *DashboardShareType
    + + +
        func (v NullableDashboardShareType) IsSet() bool
    + + +
        func (v NullableDashboardShareType) MarshalJSON() ([]byte, error)
    + + +
        func (v *NullableDashboardShareType) Set(val *DashboardShareType)
    + + +
        func (v *NullableDashboardShareType) UnmarshalJSON(src []byte) error
    + + +
        func (v *NullableDashboardShareType) Unset()
    + + + +
    type NullableDashboardType
    + + +
        func NewNullableDashboardType(val *DashboardType) *NullableDashboardType
    + + + +
        func (v NullableDashboardType) Get() *DashboardType
    + + +
        func (v NullableDashboardType) IsSet() bool
    + + +
        func (v NullableDashboardType) MarshalJSON() ([]byte, error)
    + + +
        func (v *NullableDashboardType) Set(val *DashboardType)
    + + +
        func (v *NullableDashboardType) UnmarshalJSON(src []byte) error
    + + +
        func (v *NullableDashboardType) Unset()
    + + +
    type NullableDistributionPointItem
    @@ -24462,6 +24746,58 @@

    Index ▾

    +
    type NullableSharedDashboardInvitesData
    + + +
        func NewNullableSharedDashboardInvitesData(val *SharedDashboardInvitesData) *NullableSharedDashboardInvitesData
    + + + +
        func (v NullableSharedDashboardInvitesData) Get() *SharedDashboardInvitesData
    + + +
        func (v NullableSharedDashboardInvitesData) IsSet() bool
    + + +
        func (v NullableSharedDashboardInvitesData) MarshalJSON() ([]byte, error)
    + + +
        func (v *NullableSharedDashboardInvitesData) Set(val *SharedDashboardInvitesData)
    + + +
        func (v *NullableSharedDashboardInvitesData) UnmarshalJSON(src []byte) error
    + + +
        func (v *NullableSharedDashboardInvitesData) Unset()
    + + + +
    type NullableSharedDashboardUpdateRequestGlobalTime
    + + +
        func NewNullableSharedDashboardUpdateRequestGlobalTime(val *SharedDashboardUpdateRequestGlobalTime) *NullableSharedDashboardUpdateRequestGlobalTime
    + + + +
        func (v NullableSharedDashboardUpdateRequestGlobalTime) Get() *SharedDashboardUpdateRequestGlobalTime
    + + +
        func (v NullableSharedDashboardUpdateRequestGlobalTime) IsSet() bool
    + + +
        func (v NullableSharedDashboardUpdateRequestGlobalTime) MarshalJSON() ([]byte, error)
    + + +
        func (v *NullableSharedDashboardUpdateRequestGlobalTime) Set(val *SharedDashboardUpdateRequestGlobalTime)
    + + +
        func (v *NullableSharedDashboardUpdateRequestGlobalTime) UnmarshalJSON(src []byte) error
    + + +
        func (v *NullableSharedDashboardUpdateRequestGlobalTime) Unset()
    + + +
    type NullableSignalArchiveReason
    @@ -33269,6 +33605,71 @@

    Index ▾

    +
    type SelectableTemplateVariableItems
    + + +
        func NewSelectableTemplateVariableItems() *SelectableTemplateVariableItems
    + + +
        func NewSelectableTemplateVariableItemsWithDefaults() *SelectableTemplateVariableItems
    + + + +
        func (o *SelectableTemplateVariableItems) GetDefaultValue() string
    + + +
        func (o *SelectableTemplateVariableItems) GetDefaultValueOk() (*string, bool)
    + + +
        func (o *SelectableTemplateVariableItems) GetName() string
    + + +
        func (o *SelectableTemplateVariableItems) GetNameOk() (*string, bool)
    + + +
        func (o *SelectableTemplateVariableItems) GetPrefix() string
    + + +
        func (o *SelectableTemplateVariableItems) GetPrefixOk() (*string, bool)
    + + +
        func (o *SelectableTemplateVariableItems) GetVisibleTags() []string
    + + +
        func (o *SelectableTemplateVariableItems) GetVisibleTagsOk() (*[]string, bool)
    + + +
        func (o *SelectableTemplateVariableItems) HasDefaultValue() bool
    + + +
        func (o *SelectableTemplateVariableItems) HasName() bool
    + + +
        func (o *SelectableTemplateVariableItems) HasPrefix() bool
    + + +
        func (o *SelectableTemplateVariableItems) HasVisibleTags() bool
    + + +
        func (o SelectableTemplateVariableItems) MarshalJSON() ([]byte, error)
    + + +
        func (o *SelectableTemplateVariableItems) SetDefaultValue(v string)
    + + +
        func (o *SelectableTemplateVariableItems) SetName(v string)
    + + +
        func (o *SelectableTemplateVariableItems) SetPrefix(v string)
    + + +
        func (o *SelectableTemplateVariableItems) SetVisibleTags(v []string)
    + + +
        func (o *SelectableTemplateVariableItems) UnmarshalJSON(bytes []byte) (err error)
    + + +
    type Series
    @@ -34243,6 +34644,563 @@

    Index ▾

    +
    type SharedDashboard
    + + +
        func NewSharedDashboard(dashboardId string, dashboardType DashboardType) *SharedDashboard
    + + +
        func NewSharedDashboardWithDefaults() *SharedDashboard
    + + + +
        func (o *SharedDashboard) GetAuthor() SharedDashboardAuthor
    + + +
        func (o *SharedDashboard) GetAuthorOk() (*SharedDashboardAuthor, bool)
    + + +
        func (o *SharedDashboard) GetCreatedAt() time.Time
    + + +
        func (o *SharedDashboard) GetCreatedAtOk() (*time.Time, bool)
    + + +
        func (o *SharedDashboard) GetDashboardId() string
    + + +
        func (o *SharedDashboard) GetDashboardIdOk() (*string, bool)
    + + +
        func (o *SharedDashboard) GetDashboardType() DashboardType
    + + +
        func (o *SharedDashboard) GetDashboardTypeOk() (*DashboardType, bool)
    + + +
        func (o *SharedDashboard) GetGlobalTime() DashboardGlobalTime
    + + +
        func (o *SharedDashboard) GetGlobalTimeOk() (*DashboardGlobalTime, bool)
    + + +
        func (o *SharedDashboard) GetGlobalTimeSelectableEnabled() bool
    + + +
        func (o *SharedDashboard) GetGlobalTimeSelectableEnabledOk() (*bool, bool)
    + + +
        func (o *SharedDashboard) GetPublicUrl() string
    + + +
        func (o *SharedDashboard) GetPublicUrlOk() (*string, bool)
    + + +
        func (o *SharedDashboard) GetSelectableTemplateVars() []SelectableTemplateVariableItems
    + + +
        func (o *SharedDashboard) GetSelectableTemplateVarsOk() (*[]SelectableTemplateVariableItems, bool)
    + + +
        func (o *SharedDashboard) GetShareList() []string
    + + +
        func (o *SharedDashboard) GetShareListOk() (*[]string, bool)
    + + +
        func (o *SharedDashboard) GetShareType() DashboardShareType
    + + +
        func (o *SharedDashboard) GetShareTypeOk() (*DashboardShareType, bool)
    + + +
        func (o *SharedDashboard) GetToken() string
    + + +
        func (o *SharedDashboard) GetTokenOk() (*string, bool)
    + + +
        func (o *SharedDashboard) HasAuthor() bool
    + + +
        func (o *SharedDashboard) HasCreatedAt() bool
    + + +
        func (o *SharedDashboard) HasGlobalTime() bool
    + + +
        func (o *SharedDashboard) HasGlobalTimeSelectableEnabled() bool
    + + +
        func (o *SharedDashboard) HasPublicUrl() bool
    + + +
        func (o *SharedDashboard) HasSelectableTemplateVars() bool
    + + +
        func (o *SharedDashboard) HasShareList() bool
    + + +
        func (o *SharedDashboard) HasShareType() bool
    + + +
        func (o *SharedDashboard) HasToken() bool
    + + +
        func (o SharedDashboard) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboard) SetAuthor(v SharedDashboardAuthor)
    + + +
        func (o *SharedDashboard) SetCreatedAt(v time.Time)
    + + +
        func (o *SharedDashboard) SetDashboardId(v string)
    + + +
        func (o *SharedDashboard) SetDashboardType(v DashboardType)
    + + +
        func (o *SharedDashboard) SetGlobalTime(v DashboardGlobalTime)
    + + +
        func (o *SharedDashboard) SetGlobalTimeSelectableEnabled(v bool)
    + + +
        func (o *SharedDashboard) SetGlobalTimeSelectableEnabledNil()
    + + +
        func (o *SharedDashboard) SetPublicUrl(v string)
    + + +
        func (o *SharedDashboard) SetSelectableTemplateVars(v []SelectableTemplateVariableItems)
    + + +
        func (o *SharedDashboard) SetShareList(v []string)
    + + +
        func (o *SharedDashboard) SetShareType(v DashboardShareType)
    + + +
        func (o *SharedDashboard) SetShareTypeNil()
    + + +
        func (o *SharedDashboard) SetToken(v string)
    + + +
        func (o *SharedDashboard) UnmarshalJSON(bytes []byte) (err error)
    + + +
        func (o *SharedDashboard) UnsetGlobalTimeSelectableEnabled()
    + + +
        func (o *SharedDashboard) UnsetShareType()
    + + + +
    type SharedDashboardAuthor
    + + +
        func NewSharedDashboardAuthor() *SharedDashboardAuthor
    + + +
        func NewSharedDashboardAuthorWithDefaults() *SharedDashboardAuthor
    + + + +
        func (o *SharedDashboardAuthor) GetHandle() string
    + + +
        func (o *SharedDashboardAuthor) GetHandleOk() (*string, bool)
    + + +
        func (o *SharedDashboardAuthor) GetName() string
    + + +
        func (o *SharedDashboardAuthor) GetNameOk() (*string, bool)
    + + +
        func (o *SharedDashboardAuthor) HasHandle() bool
    + + +
        func (o *SharedDashboardAuthor) HasName() bool
    + + +
        func (o SharedDashboardAuthor) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardAuthor) SetHandle(v string)
    + + +
        func (o *SharedDashboardAuthor) SetName(v string)
    + + +
        func (o *SharedDashboardAuthor) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SharedDashboardInvites
    + + +
        func NewSharedDashboardInvites(data SharedDashboardInvitesData) *SharedDashboardInvites
    + + +
        func NewSharedDashboardInvitesWithDefaults() *SharedDashboardInvites
    + + + +
        func (o *SharedDashboardInvites) GetData() SharedDashboardInvitesData
    + + +
        func (o *SharedDashboardInvites) GetDataOk() (*SharedDashboardInvitesData, bool)
    + + +
        func (o *SharedDashboardInvites) GetMeta() SharedDashboardInvitesMeta
    + + +
        func (o *SharedDashboardInvites) GetMetaOk() (*SharedDashboardInvitesMeta, bool)
    + + +
        func (o *SharedDashboardInvites) HasMeta() bool
    + + +
        func (o SharedDashboardInvites) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardInvites) SetData(v SharedDashboardInvitesData)
    + + +
        func (o *SharedDashboardInvites) SetMeta(v SharedDashboardInvitesMeta)
    + + +
        func (o *SharedDashboardInvites) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SharedDashboardInvitesData
    + + +
        func SharedDashboardInvitesDataListAsSharedDashboardInvitesData(v *[]SharedDashboardInvitesDataObject) SharedDashboardInvitesData
    + + +
        func SharedDashboardInvitesDataObjectAsSharedDashboardInvitesData(v *SharedDashboardInvitesDataObject) SharedDashboardInvitesData
    + + + +
        func (obj *SharedDashboardInvitesData) GetActualInstance() interface{}
    + + +
        func (obj SharedDashboardInvitesData) MarshalJSON() ([]byte, error)
    + + +
        func (obj *SharedDashboardInvitesData) UnmarshalJSON(data []byte) error
    + + + +
    type SharedDashboardInvitesDataObject
    + + +
        func NewSharedDashboardInvitesDataObject(attributes SharedDashboardInvitesDataObjectAttributes, typeVar DashboardInviteType) *SharedDashboardInvitesDataObject
    + + +
        func NewSharedDashboardInvitesDataObjectWithDefaults() *SharedDashboardInvitesDataObject
    + + + +
        func (o *SharedDashboardInvitesDataObject) GetAttributes() SharedDashboardInvitesDataObjectAttributes
    + + +
        func (o *SharedDashboardInvitesDataObject) GetAttributesOk() (*SharedDashboardInvitesDataObjectAttributes, bool)
    + + +
        func (o *SharedDashboardInvitesDataObject) GetType() DashboardInviteType
    + + +
        func (o *SharedDashboardInvitesDataObject) GetTypeOk() (*DashboardInviteType, bool)
    + + +
        func (o SharedDashboardInvitesDataObject) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardInvitesDataObject) SetAttributes(v SharedDashboardInvitesDataObjectAttributes)
    + + +
        func (o *SharedDashboardInvitesDataObject) SetType(v DashboardInviteType)
    + + +
        func (o *SharedDashboardInvitesDataObject) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SharedDashboardInvitesDataObjectAttributes
    + + +
        func NewSharedDashboardInvitesDataObjectAttributes() *SharedDashboardInvitesDataObjectAttributes
    + + +
        func NewSharedDashboardInvitesDataObjectAttributesWithDefaults() *SharedDashboardInvitesDataObjectAttributes
    + + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetCreatedAt() time.Time
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetCreatedAtOk() (*time.Time, bool)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetEmail() string
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetEmailOk() (*string, bool)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetHasSession() bool
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetHasSessionOk() (*bool, bool)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetInvitationExpiry() time.Time
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetInvitationExpiryOk() (*time.Time, bool)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetSessionExpiry() time.Time
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetSessionExpiryOk() (*time.Time, bool)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetShareToken() string
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) GetShareTokenOk() (*string, bool)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) HasCreatedAt() bool
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) HasEmail() bool
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) HasHasSession() bool
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) HasInvitationExpiry() bool
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) HasSessionExpiry() bool
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) HasShareToken() bool
    + + +
        func (o SharedDashboardInvitesDataObjectAttributes) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) SetCreatedAt(v time.Time)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) SetEmail(v string)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) SetHasSession(v bool)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) SetInvitationExpiry(v time.Time)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) SetSessionExpiry(v time.Time)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) SetSessionExpiryNil()
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) SetShareToken(v string)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) UnmarshalJSON(bytes []byte) (err error)
    + + +
        func (o *SharedDashboardInvitesDataObjectAttributes) UnsetSessionExpiry()
    + + + +
    type SharedDashboardInvitesMeta
    + + +
        func NewSharedDashboardInvitesMeta() *SharedDashboardInvitesMeta
    + + +
        func NewSharedDashboardInvitesMetaWithDefaults() *SharedDashboardInvitesMeta
    + + + +
        func (o *SharedDashboardInvitesMeta) GetPage() SharedDashboardInvitesMetaPage
    + + +
        func (o *SharedDashboardInvitesMeta) GetPageOk() (*SharedDashboardInvitesMetaPage, bool)
    + + +
        func (o *SharedDashboardInvitesMeta) HasPage() bool
    + + +
        func (o SharedDashboardInvitesMeta) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardInvitesMeta) SetPage(v SharedDashboardInvitesMetaPage)
    + + +
        func (o *SharedDashboardInvitesMeta) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SharedDashboardInvitesMetaPage
    + + +
        func NewSharedDashboardInvitesMetaPage() *SharedDashboardInvitesMetaPage
    + + +
        func NewSharedDashboardInvitesMetaPageWithDefaults() *SharedDashboardInvitesMetaPage
    + + + +
        func (o *SharedDashboardInvitesMetaPage) GetTotalCount() int64
    + + +
        func (o *SharedDashboardInvitesMetaPage) GetTotalCountOk() (*int64, bool)
    + + +
        func (o *SharedDashboardInvitesMetaPage) HasTotalCount() bool
    + + +
        func (o SharedDashboardInvitesMetaPage) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardInvitesMetaPage) SetTotalCount(v int64)
    + + +
        func (o *SharedDashboardInvitesMetaPage) UnmarshalJSON(bytes []byte) (err error)
    + + + +
    type SharedDashboardUpdateRequest
    + + +
        func NewSharedDashboardUpdateRequest(globalTime NullableSharedDashboardUpdateRequestGlobalTime) *SharedDashboardUpdateRequest
    + + +
        func NewSharedDashboardUpdateRequestWithDefaults() *SharedDashboardUpdateRequest
    + + + +
        func (o *SharedDashboardUpdateRequest) GetGlobalTime() SharedDashboardUpdateRequestGlobalTime
    + + +
        func (o *SharedDashboardUpdateRequest) GetGlobalTimeOk() (*SharedDashboardUpdateRequestGlobalTime, bool)
    + + +
        func (o *SharedDashboardUpdateRequest) GetGlobalTimeSelectableEnabled() bool
    + + +
        func (o *SharedDashboardUpdateRequest) GetGlobalTimeSelectableEnabledOk() (*bool, bool)
    + + +
        func (o *SharedDashboardUpdateRequest) GetSelectableTemplateVars() []SelectableTemplateVariableItems
    + + +
        func (o *SharedDashboardUpdateRequest) GetSelectableTemplateVarsOk() (*[]SelectableTemplateVariableItems, bool)
    + + +
        func (o *SharedDashboardUpdateRequest) GetShareList() []string
    + + +
        func (o *SharedDashboardUpdateRequest) GetShareListOk() (*[]string, bool)
    + + +
        func (o *SharedDashboardUpdateRequest) GetShareType() DashboardShareType
    + + +
        func (o *SharedDashboardUpdateRequest) GetShareTypeOk() (*DashboardShareType, bool)
    + + +
        func (o *SharedDashboardUpdateRequest) HasGlobalTimeSelectableEnabled() bool
    + + +
        func (o *SharedDashboardUpdateRequest) HasSelectableTemplateVars() bool
    + + +
        func (o *SharedDashboardUpdateRequest) HasShareList() bool
    + + +
        func (o *SharedDashboardUpdateRequest) HasShareType() bool
    + + +
        func (o SharedDashboardUpdateRequest) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardUpdateRequest) SetGlobalTime(v SharedDashboardUpdateRequestGlobalTime)
    + + +
        func (o *SharedDashboardUpdateRequest) SetGlobalTimeSelectableEnabled(v bool)
    + + +
        func (o *SharedDashboardUpdateRequest) SetGlobalTimeSelectableEnabledNil()
    + + +
        func (o *SharedDashboardUpdateRequest) SetSelectableTemplateVars(v []SelectableTemplateVariableItems)
    + + +
        func (o *SharedDashboardUpdateRequest) SetShareList(v []string)
    + + +
        func (o *SharedDashboardUpdateRequest) SetShareType(v DashboardShareType)
    + + +
        func (o *SharedDashboardUpdateRequest) SetShareTypeNil()
    + + +
        func (o *SharedDashboardUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
    + + +
        func (o *SharedDashboardUpdateRequest) UnsetGlobalTimeSelectableEnabled()
    + + +
        func (o *SharedDashboardUpdateRequest) UnsetShareType()
    + + + +
    type SharedDashboardUpdateRequestGlobalTime
    + + +
        func NewSharedDashboardUpdateRequestGlobalTime() *SharedDashboardUpdateRequestGlobalTime
    + + +
        func NewSharedDashboardUpdateRequestGlobalTimeWithDefaults() *SharedDashboardUpdateRequestGlobalTime
    + + + +
        func (o *SharedDashboardUpdateRequestGlobalTime) GetLiveSpan() DashboardGlobalTimeLiveSpan
    + + +
        func (o *SharedDashboardUpdateRequestGlobalTime) GetLiveSpanOk() (*DashboardGlobalTimeLiveSpan, bool)
    + + +
        func (o *SharedDashboardUpdateRequestGlobalTime) HasLiveSpan() bool
    + + +
        func (o SharedDashboardUpdateRequestGlobalTime) MarshalJSON() ([]byte, error)
    + + +
        func (o *SharedDashboardUpdateRequestGlobalTime) SetLiveSpan(v DashboardGlobalTimeLiveSpan)
    + + +
        func (o *SharedDashboardUpdateRequestGlobalTime) UnmarshalJSON(bytes []byte) (err error)
    + + +
    type SignalArchiveReason
    @@ -56073,6 +57031,12 @@

    Package files

    model_dashboard_delete_response.go + model_dashboard_global_time.go + + model_dashboard_global_time_live_span.go + + model_dashboard_invite_type.go + model_dashboard_layout_type.go model_dashboard_list.go @@ -56087,6 +57051,8 @@

    Package files

    model_dashboard_restore_request.go + model_dashboard_share_type.go + model_dashboard_summary.go model_dashboard_summary_definition.go @@ -56097,6 +57063,10 @@

    Package files

    model_dashboard_template_variable_preset_value.go + model_dashboard_type.go + + model_delete_shared_dashboard_response.go + model_deleted_monitor.go model_distribution_point_item.go @@ -56745,6 +57715,8 @@

    Package files

    model_search_slo_timeframe.go + model_selectable_template_variable_items.go + model_series.go model_service_check.go @@ -56765,6 +57737,26 @@

    Package files

    model_service_summary_widget_definition_type.go + model_shared_dashboard.go + + model_shared_dashboard_author.go + + model_shared_dashboard_invites.go + + model_shared_dashboard_invites_data.go + + model_shared_dashboard_invites_data_object.go + + model_shared_dashboard_invites_data_object_attributes.go + + model_shared_dashboard_invites_meta.go + + model_shared_dashboard_invites_meta_page.go + + model_shared_dashboard_update_request.go + + model_shared_dashboard_update_request_global_time.go + model_signal_archive_reason.go model_signal_assignee_update_request.go @@ -70617,6 +71609,339 @@

    func (*DashboardDeleteResponse) < +

    type DashboardGlobalTime + + + +

    +

    DashboardGlobalTime Object containing the live span selection for the dashboard. + +

    type DashboardGlobalTime struct {
    +    // Dashboard global time live_span selection
    +    LiveSpan *DashboardGlobalTimeLiveSpan `json:"live_span,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewDashboardGlobalTime + + + +

    +
    func NewDashboardGlobalTime() *DashboardGlobalTime
    +

    NewDashboardGlobalTime instantiates a new DashboardGlobalTime object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewDashboardGlobalTimeWithDefaults + + + +

    +
    func NewDashboardGlobalTimeWithDefaults() *DashboardGlobalTime
    +

    NewDashboardGlobalTimeWithDefaults instantiates a new DashboardGlobalTime object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*DashboardGlobalTime) GetLiveSpan + + + +

    +
    func (o *DashboardGlobalTime) GetLiveSpan() DashboardGlobalTimeLiveSpan
    +

    GetLiveSpan returns the LiveSpan field value if set, zero value otherwise. + + + + + + +

    func (*DashboardGlobalTime) GetLiveSpanOk + + + +

    +
    func (o *DashboardGlobalTime) GetLiveSpanOk() (*DashboardGlobalTimeLiveSpan, bool)
    +

    GetLiveSpanOk returns a tuple with the LiveSpan field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*DashboardGlobalTime) HasLiveSpan + + + +

    +
    func (o *DashboardGlobalTime) HasLiveSpan() bool
    +

    HasLiveSpan returns a boolean if a field has been set. + + + + + + +

    func (DashboardGlobalTime) MarshalJSON + + + +

    +
    func (o DashboardGlobalTime) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*DashboardGlobalTime) SetLiveSpan + + + +

    +
    func (o *DashboardGlobalTime) SetLiveSpan(v DashboardGlobalTimeLiveSpan)
    +

    SetLiveSpan gets a reference to the given DashboardGlobalTimeLiveSpan and assigns it to the LiveSpan field. + + + + + + +

    func (*DashboardGlobalTime) UnmarshalJSON + + + +

    +
    func (o *DashboardGlobalTime) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type DashboardGlobalTimeLiveSpan + + + +

    +

    DashboardGlobalTimeLiveSpan Dashboard global time live_span selection + +

    type DashboardGlobalTimeLiveSpan string
    + + +

    List of DashboardGlobalTimeLiveSpan. + +

    const (
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_FIFTEEN_MINUTES DashboardGlobalTimeLiveSpan = "15m"
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_ONE_HOUR        DashboardGlobalTimeLiveSpan = "1h"
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_FOUR_HOURS      DashboardGlobalTimeLiveSpan = "4h"
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_ONE_DAY         DashboardGlobalTimeLiveSpan = "1d"
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_TWO_DAYS        DashboardGlobalTimeLiveSpan = "2d"
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_ONE_WEEK        DashboardGlobalTimeLiveSpan = "1w"
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_ONE_MONTH       DashboardGlobalTimeLiveSpan = "1mo"
    +    DASHBOARDGLOBALTIMELIVESPAN_PAST_THREE_MONTHS    DashboardGlobalTimeLiveSpan = "3mo"
    +)
    + + + + + + + + + + +

    func NewDashboardGlobalTimeLiveSpanFromValue + + + +

    +
    func NewDashboardGlobalTimeLiveSpanFromValue(v string) (*DashboardGlobalTimeLiveSpan, error)
    +

    NewDashboardGlobalTimeLiveSpanFromValue returns a pointer to a valid DashboardGlobalTimeLiveSpan +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*DashboardGlobalTimeLiveSpan) GetAllowedValues + + + +

    +
    func (v *DashboardGlobalTimeLiveSpan) GetAllowedValues() []DashboardGlobalTimeLiveSpan
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (DashboardGlobalTimeLiveSpan) IsValid + + + +

    +
    func (v DashboardGlobalTimeLiveSpan) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (DashboardGlobalTimeLiveSpan) Ptr + + + +

    +
    func (v DashboardGlobalTimeLiveSpan) Ptr() *DashboardGlobalTimeLiveSpan
    +

    Ptr returns reference to DashboardGlobalTimeLiveSpan value. + + + + + + +

    func (*DashboardGlobalTimeLiveSpan) UnmarshalJSON + + + +

    +
    func (v *DashboardGlobalTimeLiveSpan) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type DashboardInviteType + + + +

    +

    DashboardInviteType Type for shared dashboard invitation request body. + +

    type DashboardInviteType string
    + + +

    List of DashboardInviteType. + +

    const (
    +    DASHBOARDINVITETYPE_PUBLIC_DASHBOARD_INVITATION DashboardInviteType = "public_dashboard_invitation"
    +)
    + + + + + + + + + + +

    func NewDashboardInviteTypeFromValue + + + +

    +
    func NewDashboardInviteTypeFromValue(v string) (*DashboardInviteType, error)
    +

    NewDashboardInviteTypeFromValue returns a pointer to a valid DashboardInviteType +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*DashboardInviteType) GetAllowedValues + + + +

    +
    func (v *DashboardInviteType) GetAllowedValues() []DashboardInviteType
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (DashboardInviteType) IsValid + + + +

    +
    func (v DashboardInviteType) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (DashboardInviteType) Ptr + + + +

    +
    func (v DashboardInviteType) Ptr() *DashboardInviteType
    +

    Ptr returns reference to DashboardInviteType value. + + + + + + +

    func (*DashboardInviteType) UnmarshalJSON + + + +

    +
    func (v *DashboardInviteType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + +

    type DashboardLayoutType @@ -71919,6 +73244,101 @@

    func (*DashboardRestoreRequest) < +

    type DashboardShareType + + + +

    +

    DashboardShareType Type of sharing access (either open to anyone who has the public URL or invite-only). + +

    type DashboardShareType string
    + + +

    List of DashboardShareType. + +

    const (
    +    DASHBOARDSHARETYPE_OPEN   DashboardShareType = "open"
    +    DASHBOARDSHARETYPE_INVITE DashboardShareType = "invite"
    +)
    + + + + + + + + + + +

    func NewDashboardShareTypeFromValue + + + +

    +
    func NewDashboardShareTypeFromValue(v string) (*DashboardShareType, error)
    +

    NewDashboardShareTypeFromValue returns a pointer to a valid DashboardShareType +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*DashboardShareType) GetAllowedValues + + + +

    +
    func (v *DashboardShareType) GetAllowedValues() []DashboardShareType
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (DashboardShareType) IsValid + + + +

    +
    func (v DashboardShareType) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (DashboardShareType) Ptr + + + +

    +
    func (v DashboardShareType) Ptr() *DashboardShareType
    +

    Ptr returns reference to DashboardShareType value. + + + + + + +

    func (*DashboardShareType) UnmarshalJSON + + + +

    +
    func (v *DashboardShareType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + +

    type DashboardSummary @@ -73511,6 +74931,101 @@

    func (*DashboardTemp +

    type DashboardType + + + +

    +

    DashboardType The type of the associated private dashboard. + +

    type DashboardType string
    + + +

    List of DashboardType. + +

    const (
    +    DASHBOARDTYPE_CUSTOM_TIMEBOARD   DashboardType = "custom_timeboard"
    +    DASHBOARDTYPE_CUSTOM_SCREENBOARD DashboardType = "custom_screenboard"
    +)
    + + + + + + + + + + +

    func NewDashboardTypeFromValue + + + +

    +
    func NewDashboardTypeFromValue(v string) (*DashboardType, error)
    +

    NewDashboardTypeFromValue returns a pointer to a valid DashboardType +for the value passed as argument, or an error if the value passed is not allowed by the enum. + + + + + + + +

    func (*DashboardType) GetAllowedValues + + + +

    +
    func (v *DashboardType) GetAllowedValues() []DashboardType
    +

    GetAllowedValues reeturns the list of possible values. + + + + + + +

    func (DashboardType) IsValid + + + +

    +
    func (v DashboardType) IsValid() bool
    +

    IsValid return true if the value is valid for the enum, false otherwise. + + + + + + +

    func (DashboardType) Ptr + + + +

    +
    func (v DashboardType) Ptr() *DashboardType
    +

    Ptr returns reference to DashboardType value. + + + + + + +

    func (*DashboardType) UnmarshalJSON + + + +

    +
    func (v *DashboardType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + +

    type DashboardsApi @@ -73530,7 +75045,7 @@

    type func NewDashboardsApi +

    func NewDashboardsApi @@ -73559,7 +75074,21 @@

    func (*DashboardsApi) func (*DashboardsApi) DeleteDashboard +

    func (*DashboardsApi) CreatePublicDashboard + + + +

    +
    func (a *DashboardsApi) CreatePublicDashboard(ctx _context.Context, body SharedDashboard) (SharedDashboard, *_nethttp.Response, error)
    +

    CreatePublicDashboard Create a shared dashboard. +Share a specified private dashboard, generating a URL at which it can be publicly viewed. + + + + + + +

    func (*DashboardsApi) DeleteDashboard @@ -73573,7 +75102,7 @@

    func (*DashboardsApi) func (*DashboardsApi) DeleteDashboards +

    func (*DashboardsApi) DeleteDashboards @@ -73587,7 +75116,35 @@

    func (*DashboardsApi) func (*DashboardsApi) GetDashboard +

    func (*DashboardsApi) DeletePublicDashboard + + + +

    +
    func (a *DashboardsApi) DeletePublicDashboard(ctx _context.Context, token string) (DeleteSharedDashboardResponse, *_nethttp.Response, error)
    +

    DeletePublicDashboard Revoke a shared dashboard URL. +Revoke the public URL for a dashboard (rendering it private) associated with the specified token. + + + + + + +

    func (*DashboardsApi) DeletePublicDashboardInvitation + + + +

    +
    func (a *DashboardsApi) DeletePublicDashboardInvitation(ctx _context.Context, token string, body SharedDashboardInvites) (*_nethttp.Response, error)
    +

    DeletePublicDashboardInvitation Revoke shared dashboard invitations. +Revoke previously sent invitation emails and active sessions used to access a given shared dashboard for specific email addresses. + + + + + + +

    func (*DashboardsApi) GetDashboard @@ -73601,7 +75158,35 @@

    func (*DashboardsApi) func (*DashboardsApi) ListDashboards +

    func (*DashboardsApi) GetPublicDashboard + + + +

    +
    func (a *DashboardsApi) GetPublicDashboard(ctx _context.Context, token string) (SharedDashboard, *_nethttp.Response, error)
    +

    GetPublicDashboard Get a shared dashboard. +Fetch an existing shared dashboard's sharing metadata associated with the specified token. + + + + + + +

    func (*DashboardsApi) GetPublicDashboardInvitations + + + +

    +
    func (a *DashboardsApi) GetPublicDashboardInvitations(ctx _context.Context, token string, o ...GetPublicDashboardInvitationsOptionalParameters) (SharedDashboardInvites, *_nethttp.Response, error)
    +

    GetPublicDashboardInvitations Get all invitations for a shared dashboard. +Describe the invitations that exist for the given shared dashboard (paginated). + + + + + + +

    func (*DashboardsApi) ListDashboards @@ -73617,7 +75202,7 @@

    func (*DashboardsApi) func (*DashboardsApi) RestoreDashboards +

    func (*DashboardsApi) RestoreDashboards @@ -73631,7 +75216,21 @@

    func (*DashboardsApi) func (*DashboardsApi) UpdateDashboard +

    func (*DashboardsApi) SendPublicDashboardInvitation + + + +

    +
    func (a *DashboardsApi) SendPublicDashboardInvitation(ctx _context.Context, token string, body SharedDashboardInvites) (SharedDashboardInvites, *_nethttp.Response, error)
    +

    SendPublicDashboardInvitation Send shared dashboard invitation email. +Send emails to specified email addresses containing links to access a given authenticated shared dashboard. Email addresses must already belong to the authenticated shared dashboard's share_list. + + + + + + +

    func (*DashboardsApi) UpdateDashboard @@ -73644,6 +75243,20 @@

    func (*DashboardsApi) func (*DashboardsApi) UpdatePublicDashboard + + + +

    +
    func (a *DashboardsApi) UpdatePublicDashboard(ctx _context.Context, token string, body SharedDashboardUpdateRequest) (SharedDashboard, *_nethttp.Response, error)
    +

    UpdatePublicDashboard Update a shared dashboard. +Update a shared dashboard associated with the specified token. + + + + + @@ -73800,6 +75413,144 @@

    func (*DeleteSLOOptionalParameter +

    type DeleteSharedDashboardResponse + + + +

    +

    DeleteSharedDashboardResponse Response containing token of deleted shared dashboard. + +

    type DeleteSharedDashboardResponse struct {
    +    // Token associated with the shared dashboard that was revoked.
    +    DeletedPublicDashboardToken *string `json:"deleted_public_dashboard_token,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewDeleteSharedDashboardResponse + + + +

    +
    func NewDeleteSharedDashboardResponse() *DeleteSharedDashboardResponse
    +

    NewDeleteSharedDashboardResponse instantiates a new DeleteSharedDashboardResponse object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewDeleteSharedDashboardResponseWithDefaults + + + +

    +
    func NewDeleteSharedDashboardResponseWithDefaults() *DeleteSharedDashboardResponse
    +

    NewDeleteSharedDashboardResponseWithDefaults instantiates a new DeleteSharedDashboardResponse object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*DeleteSharedDashboardResponse) GetDeletedPublicDashboardToken + + + +

    +
    func (o *DeleteSharedDashboardResponse) GetDeletedPublicDashboardToken() string
    +

    GetDeletedPublicDashboardToken returns the DeletedPublicDashboardToken field value if set, zero value otherwise. + + + + + + +

    func (*DeleteSharedDashboardResponse) GetDeletedPublicDashboardTokenOk + + + +

    +
    func (o *DeleteSharedDashboardResponse) GetDeletedPublicDashboardTokenOk() (*string, bool)
    +

    GetDeletedPublicDashboardTokenOk returns a tuple with the DeletedPublicDashboardToken field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*DeleteSharedDashboardResponse) HasDeletedPublicDashboardToken + + + +

    +
    func (o *DeleteSharedDashboardResponse) HasDeletedPublicDashboardToken() bool
    +

    HasDeletedPublicDashboardToken returns a boolean if a field has been set. + + + + + + +

    func (DeleteSharedDashboardResponse) MarshalJSON + + + +

    +
    func (o DeleteSharedDashboardResponse) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*DeleteSharedDashboardResponse) SetDeletedPublicDashboardToken + + + +

    +
    func (o *DeleteSharedDashboardResponse) SetDeletedPublicDashboardToken(v string)
    +

    SetDeletedPublicDashboardToken gets a reference to the given string and assigns it to the DeletedPublicDashboardToken field. + + + + + + +

    func (*DeleteSharedDashboardResponse) UnmarshalJSON + + + +

    +
    func (o *DeleteSharedDashboardResponse) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + +

    type DeletedMonitor @@ -93063,6 +94814,71 @@

    func +

    type GetPublicDashboardInvitationsOptionalParameters + + + +

    +

    GetPublicDashboardInvitationsOptionalParameters holds optional parameters for GetPublicDashboardInvitations. + +

    type GetPublicDashboardInvitationsOptionalParameters struct {
    +    PageSize   *int64
    +    PageNumber *int64
    +}
    +
    + + + + + + + + + + + +

    func NewGetPublicDashboardInvitationsOptionalParameters + + + +

    +
    func NewGetPublicDashboardInvitationsOptionalParameters() *GetPublicDashboardInvitationsOptionalParameters
    +

    NewGetPublicDashboardInvitationsOptionalParameters creates an empty struct for parameters. + + + + + + + +

    func (*GetPublicDashboardInvitationsOptionalParameters) WithPageNumber + + + +

    +
    func (r *GetPublicDashboardInvitationsOptionalParameters) WithPageNumber(pageNumber int64) *GetPublicDashboardInvitationsOptionalParameters
    +

    WithPageNumber sets the corresponding parameter name and returns the struct. + + + + + + +

    func (*GetPublicDashboardInvitationsOptionalParameters) WithPageSize + + + +

    +
    func (r *GetPublicDashboardInvitationsOptionalParameters) WithPageSize(pageSize int64) *GetPublicDashboardInvitationsOptionalParameters
    +

    WithPageSize sets the corresponding parameter name and returns the struct. + + + + + + + +

    type GetSLOHistoryOptionalParameters @@ -108491,7 +110307,7 @@

    func (*ListActiveMetr -

    type ListDashboardsOptionalParameters +

    type ListDashboardsOptionalParameters @@ -108514,7 +110330,7 @@

    type func NewListDashboardsOptionalParameters +

    func NewListDashboardsOptionalParameters @@ -108528,7 +110344,7 @@

    func func (*ListDashboardsOptionalParameters) WithFilterDeleted +

    func (*ListDashboardsOptionalParameters) WithFilterDeleted @@ -108541,7 +110357,7 @@

    func (*ListDashboard -

    func (*ListDashboardsOptionalParameters) WithFilterShared +

    func (*ListDashboardsOptionalParameters) WithFilterShared @@ -157189,6 +159005,238 @@

    func (*NullableContentEncoding) type NullableDashboardGlobalTimeLiveSpan + + + +

    +

    NullableDashboardGlobalTimeLiveSpan handles when a null is used for DashboardGlobalTimeLiveSpan. + +

    type NullableDashboardGlobalTimeLiveSpan struct {
    +    // contains filtered or unexported fields
    +}
    +
    + + + + + + + + + + + +

    func NewNullableDashboardGlobalTimeLiveSpan + + + +

    +
    func NewNullableDashboardGlobalTimeLiveSpan(val *DashboardGlobalTimeLiveSpan) *NullableDashboardGlobalTimeLiveSpan
    +

    NewNullableDashboardGlobalTimeLiveSpan initializes the struct as if Set has been called. + + + + + + + +

    func (NullableDashboardGlobalTimeLiveSpan) Get + + + +

    +
    func (v NullableDashboardGlobalTimeLiveSpan) Get() *DashboardGlobalTimeLiveSpan
    +

    Get returns the associated value. + + + + + + +

    func (NullableDashboardGlobalTimeLiveSpan) IsSet + + + +

    +
    func (v NullableDashboardGlobalTimeLiveSpan) IsSet() bool
    +

    IsSet returns whether Set has been called. + + + + + + +

    func (NullableDashboardGlobalTimeLiveSpan) MarshalJSON + + + +

    +
    func (v NullableDashboardGlobalTimeLiveSpan) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the associated value. + + + + + + +

    func (*NullableDashboardGlobalTimeLiveSpan) Set + + + +

    +
    func (v *NullableDashboardGlobalTimeLiveSpan) Set(val *DashboardGlobalTimeLiveSpan)
    +

    Set changes the value and indicates it's been called. + + + + + + +

    func (*NullableDashboardGlobalTimeLiveSpan) UnmarshalJSON + + + +

    +
    func (v *NullableDashboardGlobalTimeLiveSpan) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the payload and sets the flag as if Set has been called. + + + + + + +

    func (*NullableDashboardGlobalTimeLiveSpan) Unset + + + +

    +
    func (v *NullableDashboardGlobalTimeLiveSpan) Unset()
    +

    Unset sets the value to nil and resets the set flag. + + + + + + + + +

    type NullableDashboardInviteType + + + +

    +

    NullableDashboardInviteType handles when a null is used for DashboardInviteType. + +

    type NullableDashboardInviteType struct {
    +    // contains filtered or unexported fields
    +}
    +
    + + + + + + + + + + + +

    func NewNullableDashboardInviteType + + + +

    +
    func NewNullableDashboardInviteType(val *DashboardInviteType) *NullableDashboardInviteType
    +

    NewNullableDashboardInviteType initializes the struct as if Set has been called. + + + + + + + +

    func (NullableDashboardInviteType) Get + + + +

    +
    func (v NullableDashboardInviteType) Get() *DashboardInviteType
    +

    Get returns the associated value. + + + + + + +

    func (NullableDashboardInviteType) IsSet + + + +

    +
    func (v NullableDashboardInviteType) IsSet() bool
    +

    IsSet returns whether Set has been called. + + + + + + +

    func (NullableDashboardInviteType) MarshalJSON + + + +

    +
    func (v NullableDashboardInviteType) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the associated value. + + + + + + +

    func (*NullableDashboardInviteType) Set + + + +

    +
    func (v *NullableDashboardInviteType) Set(val *DashboardInviteType)
    +

    Set changes the value and indicates it's been called. + + + + + + +

    func (*NullableDashboardInviteType) UnmarshalJSON + + + +

    +
    func (v *NullableDashboardInviteType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the payload and sets the flag as if Set has been called. + + + + + + +

    func (*NullableDashboardInviteType) Unset + + + +

    +
    func (v *NullableDashboardInviteType) Unset()
    +

    Unset sets the value to nil and resets the set flag. + + + + + + + +

    type NullableDashboardLayoutType @@ -157537,6 +159585,238 @@

    func (*NullableDashboardResourceTyp +

    type NullableDashboardShareType + + + +

    +

    NullableDashboardShareType handles when a null is used for DashboardShareType. + +

    type NullableDashboardShareType struct {
    +    // contains filtered or unexported fields
    +}
    +
    + + + + + + + + + + + +

    func NewNullableDashboardShareType + + + +

    +
    func NewNullableDashboardShareType(val *DashboardShareType) *NullableDashboardShareType
    +

    NewNullableDashboardShareType initializes the struct as if Set has been called. + + + + + + + +

    func (NullableDashboardShareType) Get + + + +

    +
    func (v NullableDashboardShareType) Get() *DashboardShareType
    +

    Get returns the associated value. + + + + + + +

    func (NullableDashboardShareType) IsSet + + + +

    +
    func (v NullableDashboardShareType) IsSet() bool
    +

    IsSet returns whether Set has been called. + + + + + + +

    func (NullableDashboardShareType) MarshalJSON + + + +

    +
    func (v NullableDashboardShareType) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the associated value. + + + + + + +

    func (*NullableDashboardShareType) Set + + + +

    +
    func (v *NullableDashboardShareType) Set(val *DashboardShareType)
    +

    Set changes the value and indicates it's been called. + + + + + + +

    func (*NullableDashboardShareType) UnmarshalJSON + + + +

    +
    func (v *NullableDashboardShareType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the payload and sets the flag as if Set has been called. + + + + + + +

    func (*NullableDashboardShareType) Unset + + + +

    +
    func (v *NullableDashboardShareType) Unset()
    +

    Unset sets the value to nil and resets the set flag. + + + + + + + + +

    type NullableDashboardType + + + +

    +

    NullableDashboardType handles when a null is used for DashboardType. + +

    type NullableDashboardType struct {
    +    // contains filtered or unexported fields
    +}
    +
    + + + + + + + + + + + +

    func NewNullableDashboardType + + + +

    +
    func NewNullableDashboardType(val *DashboardType) *NullableDashboardType
    +

    NewNullableDashboardType initializes the struct as if Set has been called. + + + + + + + +

    func (NullableDashboardType) Get + + + +

    +
    func (v NullableDashboardType) Get() *DashboardType
    +

    Get returns the associated value. + + + + + + +

    func (NullableDashboardType) IsSet + + + +

    +
    func (v NullableDashboardType) IsSet() bool
    +

    IsSet returns whether Set has been called. + + + + + + +

    func (NullableDashboardType) MarshalJSON + + + +

    +
    func (v NullableDashboardType) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the associated value. + + + + + + +

    func (*NullableDashboardType) Set + + + +

    +
    func (v *NullableDashboardType) Set(val *DashboardType)
    +

    Set changes the value and indicates it's been called. + + + + + + +

    func (*NullableDashboardType) UnmarshalJSON + + + +

    +
    func (v *NullableDashboardType) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the payload and sets the flag as if Set has been called. + + + + + + +

    func (*NullableDashboardType) Unset + + + +

    +
    func (v *NullableDashboardType) Unset()
    +

    Unset sets the value to nil and resets the set flag. + + + + + + + +

    type NullableDistributionPointItem @@ -170181,6 +172461,238 @@

    func (*NullableService +

    type NullableSharedDashboardInvitesData + + + +

    +

    NullableSharedDashboardInvitesData handles when a null is used for SharedDashboardInvitesData. + +

    type NullableSharedDashboardInvitesData struct {
    +    // contains filtered or unexported fields
    +}
    +
    + + + + + + + + + + + +

    func NewNullableSharedDashboardInvitesData + + + +

    +
    func NewNullableSharedDashboardInvitesData(val *SharedDashboardInvitesData) *NullableSharedDashboardInvitesData
    +

    NewNullableSharedDashboardInvitesData initializes the struct as if Set has been called. + + + + + + + +

    func (NullableSharedDashboardInvitesData) Get + + + +

    +
    func (v NullableSharedDashboardInvitesData) Get() *SharedDashboardInvitesData
    +

    Get returns the associated value. + + + + + + +

    func (NullableSharedDashboardInvitesData) IsSet + + + +

    +
    func (v NullableSharedDashboardInvitesData) IsSet() bool
    +

    IsSet returns whether Set has been called. + + + + + + +

    func (NullableSharedDashboardInvitesData) MarshalJSON + + + +

    +
    func (v NullableSharedDashboardInvitesData) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the associated value. + + + + + + +

    func (*NullableSharedDashboardInvitesData) Set + + + +

    +
    func (v *NullableSharedDashboardInvitesData) Set(val *SharedDashboardInvitesData)
    +

    Set changes the value and indicates it's been called. + + + + + + +

    func (*NullableSharedDashboardInvitesData) UnmarshalJSON + + + +

    +
    func (v *NullableSharedDashboardInvitesData) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the payload and sets the flag as if Set has been called. + + + + + + +

    func (*NullableSharedDashboardInvitesData) Unset + + + +

    +
    func (v *NullableSharedDashboardInvitesData) Unset()
    +

    Unset sets the value to nil and resets the set flag/ + + + + + + + + +

    type NullableSharedDashboardUpdateRequestGlobalTime + + + +

    +

    NullableSharedDashboardUpdateRequestGlobalTime handles when a null is used for SharedDashboardUpdateRequestGlobalTime. + +

    type NullableSharedDashboardUpdateRequestGlobalTime struct {
    +    // contains filtered or unexported fields
    +}
    +
    + + + + + + + + + + + +

    func NewNullableSharedDashboardUpdateRequestGlobalTime + + + +

    +
    func NewNullableSharedDashboardUpdateRequestGlobalTime(val *SharedDashboardUpdateRequestGlobalTime) *NullableSharedDashboardUpdateRequestGlobalTime
    +

    NewNullableSharedDashboardUpdateRequestGlobalTime initializes the struct as if Set has been called. + + + + + + + +

    func (NullableSharedDashboardUpdateRequestGlobalTime) Get + + + +

    +
    func (v NullableSharedDashboardUpdateRequestGlobalTime) Get() *SharedDashboardUpdateRequestGlobalTime
    +

    Get returns the associated value. + + + + + + +

    func (NullableSharedDashboardUpdateRequestGlobalTime) IsSet + + + +

    +
    func (v NullableSharedDashboardUpdateRequestGlobalTime) IsSet() bool
    +

    IsSet returns whether Set has been called. + + + + + + +

    func (NullableSharedDashboardUpdateRequestGlobalTime) MarshalJSON + + + +

    +
    func (v NullableSharedDashboardUpdateRequestGlobalTime) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the associated value. + + + + + + +

    func (*NullableSharedDashboardUpdateRequestGlobalTime) Set + + + +

    +
    func (v *NullableSharedDashboardUpdateRequestGlobalTime) Set(val *SharedDashboardUpdateRequestGlobalTime)
    +

    Set changes the value and indicates it's been called. + + + + + + +

    func (*NullableSharedDashboardUpdateRequestGlobalTime) UnmarshalJSON + + + +

    +
    func (v *NullableSharedDashboardUpdateRequestGlobalTime) UnmarshalJSON(src []byte) error
    +

    UnmarshalJSON deserializes the payload and sets the flag as if Set has been called. + + + + + + +

    func (*NullableSharedDashboardUpdateRequestGlobalTime) Unset + + + +

    +
    func (v *NullableSharedDashboardUpdateRequestGlobalTime) Unset()
    +

    Unset sets the value to nil and resets the set flag/ + + + + + + + +

    type NullableSignalArchiveReason @@ -210913,6 +213425,310 @@

    func (*Security +

    type SelectableTemplateVariableItems + + + +

    +

    SelectableTemplateVariableItems Object containing the template variable's name, associated tag/attribute, default value and selectable values. + +

    type SelectableTemplateVariableItems struct {
    +    // The default value of the template variable.
    +    DefaultValue *string `json:"default_value,omitempty"`
    +    // Name of the template variable.
    +    Name *string `json:"name,omitempty"`
    +    // The tag/attribute key associated with the template variable.
    +    Prefix *string `json:"prefix,omitempty"`
    +    // List of visible tag values on the shared dashboard.
    +    VisibleTags []string `json:"visible_tags,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSelectableTemplateVariableItems + + + +

    +
    func NewSelectableTemplateVariableItems() *SelectableTemplateVariableItems
    +

    NewSelectableTemplateVariableItems instantiates a new SelectableTemplateVariableItems object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSelectableTemplateVariableItemsWithDefaults + + + +

    +
    func NewSelectableTemplateVariableItemsWithDefaults() *SelectableTemplateVariableItems
    +

    NewSelectableTemplateVariableItemsWithDefaults instantiates a new SelectableTemplateVariableItems object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SelectableTemplateVariableItems) GetDefaultValue + + + +

    +
    func (o *SelectableTemplateVariableItems) GetDefaultValue() string
    +

    GetDefaultValue returns the DefaultValue field value if set, zero value otherwise. + + + + + + +

    func (*SelectableTemplateVariableItems) GetDefaultValueOk + + + +

    +
    func (o *SelectableTemplateVariableItems) GetDefaultValueOk() (*string, bool)
    +

    GetDefaultValueOk returns a tuple with the DefaultValue field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SelectableTemplateVariableItems) GetName + + + +

    +
    func (o *SelectableTemplateVariableItems) GetName() string
    +

    GetName returns the Name field value if set, zero value otherwise. + + + + + + +

    func (*SelectableTemplateVariableItems) GetNameOk + + + +

    +
    func (o *SelectableTemplateVariableItems) GetNameOk() (*string, bool)
    +

    GetNameOk returns a tuple with the Name field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SelectableTemplateVariableItems) GetPrefix + + + +

    +
    func (o *SelectableTemplateVariableItems) GetPrefix() string
    +

    GetPrefix returns the Prefix field value if set, zero value otherwise. + + + + + + +

    func (*SelectableTemplateVariableItems) GetPrefixOk + + + +

    +
    func (o *SelectableTemplateVariableItems) GetPrefixOk() (*string, bool)
    +

    GetPrefixOk returns a tuple with the Prefix field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SelectableTemplateVariableItems) GetVisibleTags + + + +

    +
    func (o *SelectableTemplateVariableItems) GetVisibleTags() []string
    +

    GetVisibleTags returns the VisibleTags field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SelectableTemplateVariableItems) GetVisibleTagsOk + + + +

    +
    func (o *SelectableTemplateVariableItems) GetVisibleTagsOk() (*[]string, bool)
    +

    GetVisibleTagsOk returns a tuple with the VisibleTags field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SelectableTemplateVariableItems) HasDefaultValue + + + +

    +
    func (o *SelectableTemplateVariableItems) HasDefaultValue() bool
    +

    HasDefaultValue returns a boolean if a field has been set. + + + + + + +

    func (*SelectableTemplateVariableItems) HasName + + + +

    +
    func (o *SelectableTemplateVariableItems) HasName() bool
    +

    HasName returns a boolean if a field has been set. + + + + + + +

    func (*SelectableTemplateVariableItems) HasPrefix + + + +

    +
    func (o *SelectableTemplateVariableItems) HasPrefix() bool
    +

    HasPrefix returns a boolean if a field has been set. + + + + + + +

    func (*SelectableTemplateVariableItems) HasVisibleTags + + + +

    +
    func (o *SelectableTemplateVariableItems) HasVisibleTags() bool
    +

    HasVisibleTags returns a boolean if a field has been set. + + + + + + +

    func (SelectableTemplateVariableItems) MarshalJSON + + + +

    +
    func (o SelectableTemplateVariableItems) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SelectableTemplateVariableItems) SetDefaultValue + + + +

    +
    func (o *SelectableTemplateVariableItems) SetDefaultValue(v string)
    +

    SetDefaultValue gets a reference to the given string and assigns it to the DefaultValue field. + + + + + + +

    func (*SelectableTemplateVariableItems) SetName + + + +

    +
    func (o *SelectableTemplateVariableItems) SetName(v string)
    +

    SetName gets a reference to the given string and assigns it to the Name field. + + + + + + +

    func (*SelectableTemplateVariableItems) SetPrefix + + + +

    +
    func (o *SelectableTemplateVariableItems) SetPrefix(v string)
    +

    SetPrefix gets a reference to the given string and assigns it to the Prefix field. + + + + + + +

    func (*SelectableTemplateVariableItems) SetVisibleTags + + + +

    +
    func (o *SelectableTemplateVariableItems) SetVisibleTags(v []string)
    +

    SetVisibleTags gets a reference to the given []string and assigns it to the VisibleTags field. + + + + + + +

    func (*SelectableTemplateVariableItems) UnmarshalJSON + + + +

    +
    func (o *SelectableTemplateVariableItems) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + +

    type Series @@ -215500,6 +218316,2614 @@

    func (*ServiceSummaryW +

    type SharedDashboard + + + +

    +

    SharedDashboard The metadata object associated with how a dashboard has been/will be shared. + +

    type SharedDashboard struct {
    +    // User who shared the dashboard.
    +    Author *SharedDashboardAuthor `json:"author,omitempty"`
    +    // Date the dashboard was shared.
    +    CreatedAt *time.Time `json:"created_at,omitempty"`
    +    // ID of the dashboard to share.
    +    DashboardId string `json:"dashboard_id"`
    +    // The type of the associated private dashboard.
    +    DashboardType DashboardType `json:"dashboard_type"`
    +    // Object containing the live span selection for the dashboard.
    +    GlobalTime *DashboardGlobalTime `json:"global_time,omitempty"`
    +    // Whether to allow viewers to select a different global time setting for the shared dashboard.
    +    GlobalTimeSelectableEnabled datadog.NullableBool `json:"global_time_selectable_enabled,omitempty"`
    +    // URL of the shared dashboard.
    +    PublicUrl *string `json:"public_url,omitempty"`
    +    // List of objects representing template variables on the shared dashboard which can have selectable values.
    +    SelectableTemplateVars []SelectableTemplateVariableItems `json:"selectable_template_vars,omitempty"`
    +    // List of email addresses that can receive an invitation to access to the shared dashboard.
    +    ShareList []string `json:"share_list,omitempty"`
    +    // Type of sharing access (either open to anyone who has the public URL or invite-only).
    +    ShareType NullableDashboardShareType `json:"share_type,omitempty"`
    +    // A unique token assigned to the shared dashboard.
    +    Token *string `json:"token,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboard + + + +

    +
    func NewSharedDashboard(dashboardId string, dashboardType DashboardType) *SharedDashboard
    +

    NewSharedDashboard instantiates a new SharedDashboard object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardWithDefaults + + + +

    +
    func NewSharedDashboardWithDefaults() *SharedDashboard
    +

    NewSharedDashboardWithDefaults instantiates a new SharedDashboard object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboard) GetAuthor + + + +

    +
    func (o *SharedDashboard) GetAuthor() SharedDashboardAuthor
    +

    GetAuthor returns the Author field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboard) GetAuthorOk + + + +

    +
    func (o *SharedDashboard) GetAuthorOk() (*SharedDashboardAuthor, bool)
    +

    GetAuthorOk returns a tuple with the Author field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboard) GetCreatedAt + + + +

    +
    func (o *SharedDashboard) GetCreatedAt() time.Time
    +

    GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboard) GetCreatedAtOk + + + +

    +
    func (o *SharedDashboard) GetCreatedAtOk() (*time.Time, bool)
    +

    GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboard) GetDashboardId + + + +

    +
    func (o *SharedDashboard) GetDashboardId() string
    +

    GetDashboardId returns the DashboardId field value. + + + + + + +

    func (*SharedDashboard) GetDashboardIdOk + + + +

    +
    func (o *SharedDashboard) GetDashboardIdOk() (*string, bool)
    +

    GetDashboardIdOk returns a tuple with the DashboardId field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboard) GetDashboardType + + + +

    +
    func (o *SharedDashboard) GetDashboardType() DashboardType
    +

    GetDashboardType returns the DashboardType field value. + + + + + + +

    func (*SharedDashboard) GetDashboardTypeOk + + + +

    +
    func (o *SharedDashboard) GetDashboardTypeOk() (*DashboardType, bool)
    +

    GetDashboardTypeOk returns a tuple with the DashboardType field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboard) GetGlobalTime + + + +

    +
    func (o *SharedDashboard) GetGlobalTime() DashboardGlobalTime
    +

    GetGlobalTime returns the GlobalTime field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboard) GetGlobalTimeOk + + + +

    +
    func (o *SharedDashboard) GetGlobalTimeOk() (*DashboardGlobalTime, bool)
    +

    GetGlobalTimeOk returns a tuple with the GlobalTime field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboard) GetGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboard) GetGlobalTimeSelectableEnabled() bool
    +

    GetGlobalTimeSelectableEnabled returns the GlobalTimeSelectableEnabled field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboard) GetGlobalTimeSelectableEnabledOk + + + +

    +
    func (o *SharedDashboard) GetGlobalTimeSelectableEnabledOk() (*bool, bool)
    +

    GetGlobalTimeSelectableEnabledOk returns a tuple with the GlobalTimeSelectableEnabled field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboard) GetPublicUrl + + + +

    +
    func (o *SharedDashboard) GetPublicUrl() string
    +

    GetPublicUrl returns the PublicUrl field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboard) GetPublicUrlOk + + + +

    +
    func (o *SharedDashboard) GetPublicUrlOk() (*string, bool)
    +

    GetPublicUrlOk returns a tuple with the PublicUrl field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboard) GetSelectableTemplateVars + + + +

    +
    func (o *SharedDashboard) GetSelectableTemplateVars() []SelectableTemplateVariableItems
    +

    GetSelectableTemplateVars returns the SelectableTemplateVars field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboard) GetSelectableTemplateVarsOk + + + +

    +
    func (o *SharedDashboard) GetSelectableTemplateVarsOk() (*[]SelectableTemplateVariableItems, bool)
    +

    GetSelectableTemplateVarsOk returns a tuple with the SelectableTemplateVars field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboard) GetShareList + + + +

    +
    func (o *SharedDashboard) GetShareList() []string
    +

    GetShareList returns the ShareList field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboard) GetShareListOk + + + +

    +
    func (o *SharedDashboard) GetShareListOk() (*[]string, bool)
    +

    GetShareListOk returns a tuple with the ShareList field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboard) GetShareType + + + +

    +
    func (o *SharedDashboard) GetShareType() DashboardShareType
    +

    GetShareType returns the ShareType field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboard) GetShareTypeOk + + + +

    +
    func (o *SharedDashboard) GetShareTypeOk() (*DashboardShareType, bool)
    +

    GetShareTypeOk returns a tuple with the ShareType field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboard) GetToken + + + +

    +
    func (o *SharedDashboard) GetToken() string
    +

    GetToken returns the Token field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboard) GetTokenOk + + + +

    +
    func (o *SharedDashboard) GetTokenOk() (*string, bool)
    +

    GetTokenOk returns a tuple with the Token field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboard) HasAuthor + + + +

    +
    func (o *SharedDashboard) HasAuthor() bool
    +

    HasAuthor returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasCreatedAt + + + +

    +
    func (o *SharedDashboard) HasCreatedAt() bool
    +

    HasCreatedAt returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasGlobalTime + + + +

    +
    func (o *SharedDashboard) HasGlobalTime() bool
    +

    HasGlobalTime returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboard) HasGlobalTimeSelectableEnabled() bool
    +

    HasGlobalTimeSelectableEnabled returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasPublicUrl + + + +

    +
    func (o *SharedDashboard) HasPublicUrl() bool
    +

    HasPublicUrl returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasSelectableTemplateVars + + + +

    +
    func (o *SharedDashboard) HasSelectableTemplateVars() bool
    +

    HasSelectableTemplateVars returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasShareList + + + +

    +
    func (o *SharedDashboard) HasShareList() bool
    +

    HasShareList returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasShareType + + + +

    +
    func (o *SharedDashboard) HasShareType() bool
    +

    HasShareType returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboard) HasToken + + + +

    +
    func (o *SharedDashboard) HasToken() bool
    +

    HasToken returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboard) MarshalJSON + + + +

    +
    func (o SharedDashboard) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboard) SetAuthor + + + +

    +
    func (o *SharedDashboard) SetAuthor(v SharedDashboardAuthor)
    +

    SetAuthor gets a reference to the given SharedDashboardAuthor and assigns it to the Author field. + + + + + + +

    func (*SharedDashboard) SetCreatedAt + + + +

    +
    func (o *SharedDashboard) SetCreatedAt(v time.Time)
    +

    SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. + + + + + + +

    func (*SharedDashboard) SetDashboardId + + + +

    +
    func (o *SharedDashboard) SetDashboardId(v string)
    +

    SetDashboardId sets field value. + + + + + + +

    func (*SharedDashboard) SetDashboardType + + + +

    +
    func (o *SharedDashboard) SetDashboardType(v DashboardType)
    +

    SetDashboardType sets field value. + + + + + + +

    func (*SharedDashboard) SetGlobalTime + + + +

    +
    func (o *SharedDashboard) SetGlobalTime(v DashboardGlobalTime)
    +

    SetGlobalTime gets a reference to the given DashboardGlobalTime and assigns it to the GlobalTime field. + + + + + + +

    func (*SharedDashboard) SetGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboard) SetGlobalTimeSelectableEnabled(v bool)
    +

    SetGlobalTimeSelectableEnabled gets a reference to the given datadog.NullableBool and assigns it to the GlobalTimeSelectableEnabled field. + + + + + + +

    func (*SharedDashboard) SetGlobalTimeSelectableEnabledNil + + + +

    +
    func (o *SharedDashboard) SetGlobalTimeSelectableEnabledNil()
    +

    SetGlobalTimeSelectableEnabledNil sets the value for GlobalTimeSelectableEnabled to be an explicit nil. + + + + + + +

    func (*SharedDashboard) SetPublicUrl + + + +

    +
    func (o *SharedDashboard) SetPublicUrl(v string)
    +

    SetPublicUrl gets a reference to the given string and assigns it to the PublicUrl field. + + + + + + +

    func (*SharedDashboard) SetSelectableTemplateVars + + + +

    +
    func (o *SharedDashboard) SetSelectableTemplateVars(v []SelectableTemplateVariableItems)
    +

    SetSelectableTemplateVars gets a reference to the given []SelectableTemplateVariableItems and assigns it to the SelectableTemplateVars field. + + + + + + +

    func (*SharedDashboard) SetShareList + + + +

    +
    func (o *SharedDashboard) SetShareList(v []string)
    +

    SetShareList gets a reference to the given []string and assigns it to the ShareList field. + + + + + + +

    func (*SharedDashboard) SetShareType + + + +

    +
    func (o *SharedDashboard) SetShareType(v DashboardShareType)
    +

    SetShareType gets a reference to the given NullableDashboardShareType and assigns it to the ShareType field. + + + + + + +

    func (*SharedDashboard) SetShareTypeNil + + + +

    +
    func (o *SharedDashboard) SetShareTypeNil()
    +

    SetShareTypeNil sets the value for ShareType to be an explicit nil. + + + + + + +

    func (*SharedDashboard) SetToken + + + +

    +
    func (o *SharedDashboard) SetToken(v string)
    +

    SetToken gets a reference to the given string and assigns it to the Token field. + + + + + + +

    func (*SharedDashboard) UnmarshalJSON + + + +

    +
    func (o *SharedDashboard) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + +

    func (*SharedDashboard) UnsetGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboard) UnsetGlobalTimeSelectableEnabled()
    +

    UnsetGlobalTimeSelectableEnabled ensures that no value is present for GlobalTimeSelectableEnabled, not even an explicit nil. + + + + + + +

    func (*SharedDashboard) UnsetShareType + + + +

    +
    func (o *SharedDashboard) UnsetShareType()
    +

    UnsetShareType ensures that no value is present for ShareType, not even an explicit nil. + + + + + + + + +

    type SharedDashboardAuthor + + + +

    +

    SharedDashboardAuthor User who shared the dashboard. + +

    type SharedDashboardAuthor struct {
    +    // Identifier of the user who shared the dashboard.
    +    Handle *string `json:"handle,omitempty"`
    +    // Name of the user who shared the dashboard.
    +    Name *string `json:"name,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardAuthor + + + +

    +
    func NewSharedDashboardAuthor() *SharedDashboardAuthor
    +

    NewSharedDashboardAuthor instantiates a new SharedDashboardAuthor object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardAuthorWithDefaults + + + +

    +
    func NewSharedDashboardAuthorWithDefaults() *SharedDashboardAuthor
    +

    NewSharedDashboardAuthorWithDefaults instantiates a new SharedDashboardAuthor object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardAuthor) GetHandle + + + +

    +
    func (o *SharedDashboardAuthor) GetHandle() string
    +

    GetHandle returns the Handle field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardAuthor) GetHandleOk + + + +

    +
    func (o *SharedDashboardAuthor) GetHandleOk() (*string, bool)
    +

    GetHandleOk returns a tuple with the Handle field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardAuthor) GetName + + + +

    +
    func (o *SharedDashboardAuthor) GetName() string
    +

    GetName returns the Name field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardAuthor) GetNameOk + + + +

    +
    func (o *SharedDashboardAuthor) GetNameOk() (*string, bool)
    +

    GetNameOk returns a tuple with the Name field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardAuthor) HasHandle + + + +

    +
    func (o *SharedDashboardAuthor) HasHandle() bool
    +

    HasHandle returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardAuthor) HasName + + + +

    +
    func (o *SharedDashboardAuthor) HasName() bool
    +

    HasName returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboardAuthor) MarshalJSON + + + +

    +
    func (o SharedDashboardAuthor) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardAuthor) SetHandle + + + +

    +
    func (o *SharedDashboardAuthor) SetHandle(v string)
    +

    SetHandle gets a reference to the given string and assigns it to the Handle field. + + + + + + +

    func (*SharedDashboardAuthor) SetName + + + +

    +
    func (o *SharedDashboardAuthor) SetName(v string)
    +

    SetName gets a reference to the given string and assigns it to the Name field. + + + + + + +

    func (*SharedDashboardAuthor) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardAuthor) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SharedDashboardInvites + + + +

    +

    SharedDashboardInvites Invitations data and metadata that exists for a shared dashboard returned by the API. + +

    type SharedDashboardInvites struct {
    +    // An object or list of objects containing the information for an invitation to a shared dashboard.
    +    Data SharedDashboardInvitesData `json:"data"`
    +    // Pagination metadata returned by the API.
    +    Meta *SharedDashboardInvitesMeta `json:"meta,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardInvites + + + +

    +
    func NewSharedDashboardInvites(data SharedDashboardInvitesData) *SharedDashboardInvites
    +

    NewSharedDashboardInvites instantiates a new SharedDashboardInvites object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardInvitesWithDefaults + + + +

    +
    func NewSharedDashboardInvitesWithDefaults() *SharedDashboardInvites
    +

    NewSharedDashboardInvitesWithDefaults instantiates a new SharedDashboardInvites object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardInvites) GetData + + + +

    +
    func (o *SharedDashboardInvites) GetData() SharedDashboardInvitesData
    +

    GetData returns the Data field value. + + + + + + +

    func (*SharedDashboardInvites) GetDataOk + + + +

    +
    func (o *SharedDashboardInvites) GetDataOk() (*SharedDashboardInvitesData, bool)
    +

    GetDataOk returns a tuple with the Data field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvites) GetMeta + + + +

    +
    func (o *SharedDashboardInvites) GetMeta() SharedDashboardInvitesMeta
    +

    GetMeta returns the Meta field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvites) GetMetaOk + + + +

    +
    func (o *SharedDashboardInvites) GetMetaOk() (*SharedDashboardInvitesMeta, bool)
    +

    GetMetaOk returns a tuple with the Meta field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvites) HasMeta + + + +

    +
    func (o *SharedDashboardInvites) HasMeta() bool
    +

    HasMeta returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboardInvites) MarshalJSON + + + +

    +
    func (o SharedDashboardInvites) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardInvites) SetData + + + +

    +
    func (o *SharedDashboardInvites) SetData(v SharedDashboardInvitesData)
    +

    SetData sets field value. + + + + + + +

    func (*SharedDashboardInvites) SetMeta + + + +

    +
    func (o *SharedDashboardInvites) SetMeta(v SharedDashboardInvitesMeta)
    +

    SetMeta gets a reference to the given SharedDashboardInvitesMeta and assigns it to the Meta field. + + + + + + +

    func (*SharedDashboardInvites) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardInvites) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SharedDashboardInvitesData + + + +

    +

    SharedDashboardInvitesData - An object or list of objects containing the information for an invitation to a shared dashboard. + +

    type SharedDashboardInvitesData struct {
    +    SharedDashboardInvitesDataObject *SharedDashboardInvitesDataObject
    +    SharedDashboardInvitesDataList   *[]SharedDashboardInvitesDataObject
    +
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject interface{}
    +}
    +
    + + + + + + + + + + + +

    func SharedDashboardInvitesDataListAsSharedDashboardInvitesData + + + +

    +
    func SharedDashboardInvitesDataListAsSharedDashboardInvitesData(v *[]SharedDashboardInvitesDataObject) SharedDashboardInvitesData
    +

    SharedDashboardInvitesDataListAsSharedDashboardInvitesData is a convenience function that returns []SharedDashboardInvitesDataObject wrapped in SharedDashboardInvitesData. + + + + + +

    func SharedDashboardInvitesDataObjectAsSharedDashboardInvitesData + + + +

    +
    func SharedDashboardInvitesDataObjectAsSharedDashboardInvitesData(v *SharedDashboardInvitesDataObject) SharedDashboardInvitesData
    +

    SharedDashboardInvitesDataObjectAsSharedDashboardInvitesData is a convenience function that returns SharedDashboardInvitesDataObject wrapped in SharedDashboardInvitesData. + + + + + + + +

    func (*SharedDashboardInvitesData) GetActualInstance + + + +

    +
    func (obj *SharedDashboardInvitesData) GetActualInstance() interface{}
    +

    GetActualInstance returns the actual instance. + + + + + + +

    func (SharedDashboardInvitesData) MarshalJSON + + + +

    +
    func (obj SharedDashboardInvitesData) MarshalJSON() ([]byte, error)
    +

    MarshalJSON turns data from the first non-nil pointers in the struct to JSON. + + + + + + +

    func (*SharedDashboardInvitesData) UnmarshalJSON + + + +

    +
    func (obj *SharedDashboardInvitesData) UnmarshalJSON(data []byte) error
    +

    UnmarshalJSON turns data into one of the pointers in the struct. + + + + + + + + +

    type SharedDashboardInvitesDataObject + + + +

    +

    SharedDashboardInvitesDataObject Object containing the information for an invitation to a shared dashboard. + +

    type SharedDashboardInvitesDataObject struct {
    +    // Attributes of the shared dashboard invitation
    +    Attributes SharedDashboardInvitesDataObjectAttributes `json:"attributes"`
    +    // Type for shared dashboard invitation request body.
    +    Type DashboardInviteType `json:"type"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardInvitesDataObject + + + +

    +
    func NewSharedDashboardInvitesDataObject(attributes SharedDashboardInvitesDataObjectAttributes, typeVar DashboardInviteType) *SharedDashboardInvitesDataObject
    +

    NewSharedDashboardInvitesDataObject instantiates a new SharedDashboardInvitesDataObject object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardInvitesDataObjectWithDefaults + + + +

    +
    func NewSharedDashboardInvitesDataObjectWithDefaults() *SharedDashboardInvitesDataObject
    +

    NewSharedDashboardInvitesDataObjectWithDefaults instantiates a new SharedDashboardInvitesDataObject object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardInvitesDataObject) GetAttributes + + + +

    +
    func (o *SharedDashboardInvitesDataObject) GetAttributes() SharedDashboardInvitesDataObjectAttributes
    +

    GetAttributes returns the Attributes field value. + + + + + + +

    func (*SharedDashboardInvitesDataObject) GetAttributesOk + + + +

    +
    func (o *SharedDashboardInvitesDataObject) GetAttributesOk() (*SharedDashboardInvitesDataObjectAttributes, bool)
    +

    GetAttributesOk returns a tuple with the Attributes field value +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObject) GetType + + + +

    +
    func (o *SharedDashboardInvitesDataObject) GetType() DashboardInviteType
    +

    GetType returns the Type field value. + + + + + + +

    func (*SharedDashboardInvitesDataObject) GetTypeOk + + + +

    +
    func (o *SharedDashboardInvitesDataObject) GetTypeOk() (*DashboardInviteType, bool)
    +

    GetTypeOk returns a tuple with the Type field value +and a boolean to check if the value has been set. + + + + + + +

    func (SharedDashboardInvitesDataObject) MarshalJSON + + + +

    +
    func (o SharedDashboardInvitesDataObject) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardInvitesDataObject) SetAttributes + + + +

    +
    func (o *SharedDashboardInvitesDataObject) SetAttributes(v SharedDashboardInvitesDataObjectAttributes)
    +

    SetAttributes sets field value. + + + + + + +

    func (*SharedDashboardInvitesDataObject) SetType + + + +

    +
    func (o *SharedDashboardInvitesDataObject) SetType(v DashboardInviteType)
    +

    SetType sets field value. + + + + + + +

    func (*SharedDashboardInvitesDataObject) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardInvitesDataObject) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SharedDashboardInvitesDataObjectAttributes + + + +

    +

    SharedDashboardInvitesDataObjectAttributes Attributes of the shared dashboard invitation + +

    type SharedDashboardInvitesDataObjectAttributes struct {
    +    // When the invitation was sent.
    +    CreatedAt *time.Time `json:"created_at,omitempty"`
    +    // An email address that an invitation has been (or if used in invitation request, will be) sent to.
    +    Email *string `json:"email,omitempty"`
    +    // Indicates whether an active session exists for the invitation (produced when a user clicks the link in the email).
    +    HasSession *bool `json:"has_session,omitempty"`
    +    // When the invitation expires.
    +    InvitationExpiry *time.Time `json:"invitation_expiry,omitempty"`
    +    // When the invited user's session expires. null if the invitation has no associated session.
    +    SessionExpiry datadog.NullableTime `json:"session_expiry,omitempty"`
    +    // The unique token of the shared dashboard that was (or is to be) shared.
    +    ShareToken *string `json:"share_token,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardInvitesDataObjectAttributes + + + +

    +
    func NewSharedDashboardInvitesDataObjectAttributes() *SharedDashboardInvitesDataObjectAttributes
    +

    NewSharedDashboardInvitesDataObjectAttributes instantiates a new SharedDashboardInvitesDataObjectAttributes object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardInvitesDataObjectAttributesWithDefaults + + + +

    +
    func NewSharedDashboardInvitesDataObjectAttributesWithDefaults() *SharedDashboardInvitesDataObjectAttributes
    +

    NewSharedDashboardInvitesDataObjectAttributesWithDefaults instantiates a new SharedDashboardInvitesDataObjectAttributes object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetCreatedAt + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetCreatedAt() time.Time
    +

    GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetCreatedAtOk + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetCreatedAtOk() (*time.Time, bool)
    +

    GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetEmail + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetEmail() string
    +

    GetEmail returns the Email field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetEmailOk + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetEmailOk() (*string, bool)
    +

    GetEmailOk returns a tuple with the Email field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetHasSession + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetHasSession() bool
    +

    GetHasSession returns the HasSession field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetHasSessionOk + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetHasSessionOk() (*bool, bool)
    +

    GetHasSessionOk returns a tuple with the HasSession field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetInvitationExpiry + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetInvitationExpiry() time.Time
    +

    GetInvitationExpiry returns the InvitationExpiry field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetInvitationExpiryOk + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetInvitationExpiryOk() (*time.Time, bool)
    +

    GetInvitationExpiryOk returns a tuple with the InvitationExpiry field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetSessionExpiry + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetSessionExpiry() time.Time
    +

    GetSessionExpiry returns the SessionExpiry field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetSessionExpiryOk + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetSessionExpiryOk() (*time.Time, bool)
    +

    GetSessionExpiryOk returns a tuple with the SessionExpiry field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetShareToken + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetShareToken() string
    +

    GetShareToken returns the ShareToken field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) GetShareTokenOk + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) GetShareTokenOk() (*string, bool)
    +

    GetShareTokenOk returns a tuple with the ShareToken field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) HasCreatedAt + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) HasCreatedAt() bool
    +

    HasCreatedAt returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) HasEmail + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) HasEmail() bool
    +

    HasEmail returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) HasHasSession + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) HasHasSession() bool
    +

    HasHasSession returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) HasInvitationExpiry + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) HasInvitationExpiry() bool
    +

    HasInvitationExpiry returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) HasSessionExpiry + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) HasSessionExpiry() bool
    +

    HasSessionExpiry returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) HasShareToken + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) HasShareToken() bool
    +

    HasShareToken returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboardInvitesDataObjectAttributes) MarshalJSON + + + +

    +
    func (o SharedDashboardInvitesDataObjectAttributes) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) SetCreatedAt + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) SetCreatedAt(v time.Time)
    +

    SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) SetEmail + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) SetEmail(v string)
    +

    SetEmail gets a reference to the given string and assigns it to the Email field. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) SetHasSession + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) SetHasSession(v bool)
    +

    SetHasSession gets a reference to the given bool and assigns it to the HasSession field. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) SetInvitationExpiry + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) SetInvitationExpiry(v time.Time)
    +

    SetInvitationExpiry gets a reference to the given time.Time and assigns it to the InvitationExpiry field. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) SetSessionExpiry + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) SetSessionExpiry(v time.Time)
    +

    SetSessionExpiry gets a reference to the given datadog.NullableTime and assigns it to the SessionExpiry field. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) SetSessionExpiryNil + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) SetSessionExpiryNil()
    +

    SetSessionExpiryNil sets the value for SessionExpiry to be an explicit nil. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) SetShareToken + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) SetShareToken(v string)
    +

    SetShareToken gets a reference to the given string and assigns it to the ShareToken field. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + +

    func (*SharedDashboardInvitesDataObjectAttributes) UnsetSessionExpiry + + + +

    +
    func (o *SharedDashboardInvitesDataObjectAttributes) UnsetSessionExpiry()
    +

    UnsetSessionExpiry ensures that no value is present for SessionExpiry, not even an explicit nil. + + + + + + + + +

    type SharedDashboardInvitesMeta + + + +

    +

    SharedDashboardInvitesMeta Pagination metadata returned by the API. + +

    type SharedDashboardInvitesMeta struct {
    +    // Object containing the total count of invitations across all pages
    +    Page *SharedDashboardInvitesMetaPage `json:"page,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardInvitesMeta + + + +

    +
    func NewSharedDashboardInvitesMeta() *SharedDashboardInvitesMeta
    +

    NewSharedDashboardInvitesMeta instantiates a new SharedDashboardInvitesMeta object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardInvitesMetaWithDefaults + + + +

    +
    func NewSharedDashboardInvitesMetaWithDefaults() *SharedDashboardInvitesMeta
    +

    NewSharedDashboardInvitesMetaWithDefaults instantiates a new SharedDashboardInvitesMeta object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardInvitesMeta) GetPage + + + +

    +
    func (o *SharedDashboardInvitesMeta) GetPage() SharedDashboardInvitesMetaPage
    +

    GetPage returns the Page field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvitesMeta) GetPageOk + + + +

    +
    func (o *SharedDashboardInvitesMeta) GetPageOk() (*SharedDashboardInvitesMetaPage, bool)
    +

    GetPageOk returns a tuple with the Page field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesMeta) HasPage + + + +

    +
    func (o *SharedDashboardInvitesMeta) HasPage() bool
    +

    HasPage returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboardInvitesMeta) MarshalJSON + + + +

    +
    func (o SharedDashboardInvitesMeta) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardInvitesMeta) SetPage + + + +

    +
    func (o *SharedDashboardInvitesMeta) SetPage(v SharedDashboardInvitesMetaPage)
    +

    SetPage gets a reference to the given SharedDashboardInvitesMetaPage and assigns it to the Page field. + + + + + + +

    func (*SharedDashboardInvitesMeta) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardInvitesMeta) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SharedDashboardInvitesMetaPage + + + +

    +

    SharedDashboardInvitesMetaPage Object containing the total count of invitations across all pages + +

    type SharedDashboardInvitesMetaPage struct {
    +    // The total number of invitations on this shared board, across all pages.
    +    TotalCount *int64 `json:"total_count,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardInvitesMetaPage + + + +

    +
    func NewSharedDashboardInvitesMetaPage() *SharedDashboardInvitesMetaPage
    +

    NewSharedDashboardInvitesMetaPage instantiates a new SharedDashboardInvitesMetaPage object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardInvitesMetaPageWithDefaults + + + +

    +
    func NewSharedDashboardInvitesMetaPageWithDefaults() *SharedDashboardInvitesMetaPage
    +

    NewSharedDashboardInvitesMetaPageWithDefaults instantiates a new SharedDashboardInvitesMetaPage object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardInvitesMetaPage) GetTotalCount + + + +

    +
    func (o *SharedDashboardInvitesMetaPage) GetTotalCount() int64
    +

    GetTotalCount returns the TotalCount field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardInvitesMetaPage) GetTotalCountOk + + + +

    +
    func (o *SharedDashboardInvitesMetaPage) GetTotalCountOk() (*int64, bool)
    +

    GetTotalCountOk returns a tuple with the TotalCount field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardInvitesMetaPage) HasTotalCount + + + +

    +
    func (o *SharedDashboardInvitesMetaPage) HasTotalCount() bool
    +

    HasTotalCount returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboardInvitesMetaPage) MarshalJSON + + + +

    +
    func (o SharedDashboardInvitesMetaPage) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardInvitesMetaPage) SetTotalCount + + + +

    +
    func (o *SharedDashboardInvitesMetaPage) SetTotalCount(v int64)
    +

    SetTotalCount gets a reference to the given int64 and assigns it to the TotalCount field. + + + + + + +

    func (*SharedDashboardInvitesMetaPage) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardInvitesMetaPage) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + + +

    type SharedDashboardUpdateRequest + + + +

    +

    SharedDashboardUpdateRequest Update a shared dashboard's settings. + +

    type SharedDashboardUpdateRequest struct {
    +    // Timeframe setting for the shared dashboard.
    +    GlobalTime NullableSharedDashboardUpdateRequestGlobalTime `json:"global_time"`
    +    // Whether to allow viewers to select a different global time setting for the shared dashboard.
    +    GlobalTimeSelectableEnabled datadog.NullableBool `json:"global_time_selectable_enabled,omitempty"`
    +    // List of objects representing template variables on the shared dashboard which can have selectable values.
    +    SelectableTemplateVars []SelectableTemplateVariableItems `json:"selectable_template_vars,omitempty"`
    +    // List of email addresses that can be given access to the shared dashboard.
    +    ShareList []string `json:"share_list,omitempty"`
    +    // Type of sharing access (either open to anyone who has the public URL or invite-only).
    +    ShareType NullableDashboardShareType `json:"share_type,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardUpdateRequest + + + +

    +
    func NewSharedDashboardUpdateRequest(globalTime NullableSharedDashboardUpdateRequestGlobalTime) *SharedDashboardUpdateRequest
    +

    NewSharedDashboardUpdateRequest instantiates a new SharedDashboardUpdateRequest object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardUpdateRequestWithDefaults + + + +

    +
    func NewSharedDashboardUpdateRequestWithDefaults() *SharedDashboardUpdateRequest
    +

    NewSharedDashboardUpdateRequestWithDefaults instantiates a new SharedDashboardUpdateRequest object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardUpdateRequest) GetGlobalTime + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetGlobalTime() SharedDashboardUpdateRequestGlobalTime
    +

    GetGlobalTime returns the GlobalTime field value. +If the value is explicit nil, the zero value for SharedDashboardUpdateRequestGlobalTime will be returned. + + + + + + +

    func (*SharedDashboardUpdateRequest) GetGlobalTimeOk + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetGlobalTimeOk() (*SharedDashboardUpdateRequestGlobalTime, bool)
    +

    GetGlobalTimeOk returns a tuple with the GlobalTime field value +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboardUpdateRequest) GetGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetGlobalTimeSelectableEnabled() bool
    +

    GetGlobalTimeSelectableEnabled returns the GlobalTimeSelectableEnabled field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboardUpdateRequest) GetGlobalTimeSelectableEnabledOk + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetGlobalTimeSelectableEnabledOk() (*bool, bool)
    +

    GetGlobalTimeSelectableEnabledOk returns a tuple with the GlobalTimeSelectableEnabled field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboardUpdateRequest) GetSelectableTemplateVars + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetSelectableTemplateVars() []SelectableTemplateVariableItems
    +

    GetSelectableTemplateVars returns the SelectableTemplateVars field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboardUpdateRequest) GetSelectableTemplateVarsOk + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetSelectableTemplateVarsOk() (*[]SelectableTemplateVariableItems, bool)
    +

    GetSelectableTemplateVarsOk returns a tuple with the SelectableTemplateVars field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboardUpdateRequest) GetShareList + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetShareList() []string
    +

    GetShareList returns the ShareList field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboardUpdateRequest) GetShareListOk + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetShareListOk() (*[]string, bool)
    +

    GetShareListOk returns a tuple with the ShareList field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboardUpdateRequest) GetShareType + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetShareType() DashboardShareType
    +

    GetShareType returns the ShareType field value if set, zero value otherwise (both if not set or set to explicit null). + + + + + + +

    func (*SharedDashboardUpdateRequest) GetShareTypeOk + + + +

    +
    func (o *SharedDashboardUpdateRequest) GetShareTypeOk() (*DashboardShareType, bool)
    +

    GetShareTypeOk returns a tuple with the ShareType field value if set, nil otherwise +and a boolean to check if the value has been set. +NOTE: If the value is an explicit nil, `nil, true` will be returned. + + + + + + +

    func (*SharedDashboardUpdateRequest) HasGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboardUpdateRequest) HasGlobalTimeSelectableEnabled() bool
    +

    HasGlobalTimeSelectableEnabled returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardUpdateRequest) HasSelectableTemplateVars + + + +

    +
    func (o *SharedDashboardUpdateRequest) HasSelectableTemplateVars() bool
    +

    HasSelectableTemplateVars returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardUpdateRequest) HasShareList + + + +

    +
    func (o *SharedDashboardUpdateRequest) HasShareList() bool
    +

    HasShareList returns a boolean if a field has been set. + + + + + + +

    func (*SharedDashboardUpdateRequest) HasShareType + + + +

    +
    func (o *SharedDashboardUpdateRequest) HasShareType() bool
    +

    HasShareType returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboardUpdateRequest) MarshalJSON + + + +

    +
    func (o SharedDashboardUpdateRequest) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardUpdateRequest) SetGlobalTime + + + +

    +
    func (o *SharedDashboardUpdateRequest) SetGlobalTime(v SharedDashboardUpdateRequestGlobalTime)
    +

    SetGlobalTime sets field value. + + + + + + +

    func (*SharedDashboardUpdateRequest) SetGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboardUpdateRequest) SetGlobalTimeSelectableEnabled(v bool)
    +

    SetGlobalTimeSelectableEnabled gets a reference to the given datadog.NullableBool and assigns it to the GlobalTimeSelectableEnabled field. + + + + + + +

    func (*SharedDashboardUpdateRequest) SetGlobalTimeSelectableEnabledNil + + + +

    +
    func (o *SharedDashboardUpdateRequest) SetGlobalTimeSelectableEnabledNil()
    +

    SetGlobalTimeSelectableEnabledNil sets the value for GlobalTimeSelectableEnabled to be an explicit nil. + + + + + + +

    func (*SharedDashboardUpdateRequest) SetSelectableTemplateVars + + + +

    +
    func (o *SharedDashboardUpdateRequest) SetSelectableTemplateVars(v []SelectableTemplateVariableItems)
    +

    SetSelectableTemplateVars gets a reference to the given []SelectableTemplateVariableItems and assigns it to the SelectableTemplateVars field. + + + + + + +

    func (*SharedDashboardUpdateRequest) SetShareList + + + +

    +
    func (o *SharedDashboardUpdateRequest) SetShareList(v []string)
    +

    SetShareList gets a reference to the given []string and assigns it to the ShareList field. + + + + + + +

    func (*SharedDashboardUpdateRequest) SetShareType + + + +

    +
    func (o *SharedDashboardUpdateRequest) SetShareType(v DashboardShareType)
    +

    SetShareType gets a reference to the given NullableDashboardShareType and assigns it to the ShareType field. + + + + + + +

    func (*SharedDashboardUpdateRequest) SetShareTypeNil + + + +

    +
    func (o *SharedDashboardUpdateRequest) SetShareTypeNil()
    +

    SetShareTypeNil sets the value for ShareType to be an explicit nil. + + + + + + +

    func (*SharedDashboardUpdateRequest) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardUpdateRequest) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + +

    func (*SharedDashboardUpdateRequest) UnsetGlobalTimeSelectableEnabled + + + +

    +
    func (o *SharedDashboardUpdateRequest) UnsetGlobalTimeSelectableEnabled()
    +

    UnsetGlobalTimeSelectableEnabled ensures that no value is present for GlobalTimeSelectableEnabled, not even an explicit nil. + + + + + + +

    func (*SharedDashboardUpdateRequest) UnsetShareType + + + +

    +
    func (o *SharedDashboardUpdateRequest) UnsetShareType()
    +

    UnsetShareType ensures that no value is present for ShareType, not even an explicit nil. + + + + + + + + +

    type SharedDashboardUpdateRequestGlobalTime + + + +

    +

    SharedDashboardUpdateRequestGlobalTime Timeframe setting for the shared dashboard. + +

    type SharedDashboardUpdateRequestGlobalTime struct {
    +    // Dashboard global time live_span selection
    +    LiveSpan *DashboardGlobalTimeLiveSpan `json:"live_span,omitempty"`
    +    // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
    +    UnparsedObject       map[string]interface{} `json:"-"`
    +    AdditionalProperties map[string]interface{}
    +}
    +
    + + + + + + + + + + + +

    func NewSharedDashboardUpdateRequestGlobalTime + + + +

    +
    func NewSharedDashboardUpdateRequestGlobalTime() *SharedDashboardUpdateRequestGlobalTime
    +

    NewSharedDashboardUpdateRequestGlobalTime instantiates a new SharedDashboardUpdateRequestGlobalTime object. +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed. + + + + + +

    func NewSharedDashboardUpdateRequestGlobalTimeWithDefaults + + + +

    +
    func NewSharedDashboardUpdateRequestGlobalTimeWithDefaults() *SharedDashboardUpdateRequestGlobalTime
    +

    NewSharedDashboardUpdateRequestGlobalTimeWithDefaults instantiates a new SharedDashboardUpdateRequestGlobalTime object. +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set. + + + + + + + +

    func (*SharedDashboardUpdateRequestGlobalTime) GetLiveSpan + + + +

    +
    func (o *SharedDashboardUpdateRequestGlobalTime) GetLiveSpan() DashboardGlobalTimeLiveSpan
    +

    GetLiveSpan returns the LiveSpan field value if set, zero value otherwise. + + + + + + +

    func (*SharedDashboardUpdateRequestGlobalTime) GetLiveSpanOk + + + +

    +
    func (o *SharedDashboardUpdateRequestGlobalTime) GetLiveSpanOk() (*DashboardGlobalTimeLiveSpan, bool)
    +

    GetLiveSpanOk returns a tuple with the LiveSpan field value if set, nil otherwise +and a boolean to check if the value has been set. + + + + + + +

    func (*SharedDashboardUpdateRequestGlobalTime) HasLiveSpan + + + +

    +
    func (o *SharedDashboardUpdateRequestGlobalTime) HasLiveSpan() bool
    +

    HasLiveSpan returns a boolean if a field has been set. + + + + + + +

    func (SharedDashboardUpdateRequestGlobalTime) MarshalJSON + + + +

    +
    func (o SharedDashboardUpdateRequestGlobalTime) MarshalJSON() ([]byte, error)
    +

    MarshalJSON serializes the struct using spec logic. + + + + + + +

    func (*SharedDashboardUpdateRequestGlobalTime) SetLiveSpan + + + +

    +
    func (o *SharedDashboardUpdateRequestGlobalTime) SetLiveSpan(v DashboardGlobalTimeLiveSpan)
    +

    SetLiveSpan gets a reference to the given DashboardGlobalTimeLiveSpan and assigns it to the LiveSpan field. + + + + + + +

    func (*SharedDashboardUpdateRequestGlobalTime) UnmarshalJSON + + + +

    +
    func (o *SharedDashboardUpdateRequestGlobalTime) UnmarshalJSON(bytes []byte) (err error)
    +

    UnmarshalJSON deserializes the given payload. + + + + + + + +

    type SignalArchiveReason diff --git a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html index 0c7bf87343f..6d914cfbc9d 100644 --- a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html +++ b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadog/index.html @@ -79,7 +79,7 @@

    14554 - 2023-04-14 16:41:43.656174056 +0000 UTC + 2023-04-17 15:29:53.576357113 +0000 UTC @@ -88,7 +88,7 @@

    18536 - 2023-04-14 16:41:43.656174056 +0000 UTC + 2023-04-17 15:29:53.576357113 +0000 UTC @@ -97,7 +97,7 @@

    405 - 2023-04-14 16:41:43.656174056 +0000 UTC + 2023-04-17 15:29:53.576357113 +0000 UTC @@ -106,7 +106,7 @@

    11787 - 2023-04-14 16:41:43.656174056 +0000 UTC + 2023-04-17 15:29:53.576357113 +0000 UTC @@ -115,7 +115,7 @@

    589 - 2023-04-14 16:41:43.656174056 +0000 UTC + 2023-04-17 15:29:53.576357113 +0000 UTC diff --git a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_dashboards.go.html b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_dashboards.go.html index 3682317cbfd..ce4ec5c54a7 100644 --- a/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_dashboards.go.html +++ b/src/github.com/DataDog/datadog-api-client-go/v2/api/datadogV1/api_dashboards.go.html @@ -147,466 +147,1002 @@

    90   return localVarReturnValue, localVarHTTPResponse, nil 91  } 92   - 93  // DeleteDashboard Delete a dashboard. - 94  // Delete a dashboard using the specified ID. - 95  func (a *DashboardsApi) DeleteDashboard(ctx _context.Context, dashboardId string) (DashboardDeleteResponse, *_nethttp.Response, error) { + 93  // CreatePublicDashboard Create a shared dashboard. + 94  // Share a specified private dashboard, generating a URL at which it can be publicly viewed. + 95  func (a *DashboardsApi) CreatePublicDashboard(ctx _context.Context, body SharedDashboard) (SharedDashboard, *_nethttp.Response, error) { 96   var ( - 97   localVarHTTPMethod = _nethttp.MethodDelete + 97   localVarHTTPMethod = _nethttp.MethodPost 98   localVarPostBody interface{} - 99   localVarReturnValue DashboardDeleteResponse + 99   localVarReturnValue SharedDashboard 100   ) 101   - 102   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.DeleteDashboard") + 102   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.CreatePublicDashboard") 103   if err != nil { 104   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} 105   } 106   - 107   localVarPath := localBasePath + "/api/v1/dashboard/{dashboard_id}" - 108   localVarPath = strings.Replace(localVarPath, "{"+"dashboard_id"+"}", _neturl.PathEscape(datadog.ParameterToString(dashboardId, "")), -1) - 109   - 110   localVarHeaderParams := make(map[string]string) - 111   localVarQueryParams := _neturl.Values{} - 112   localVarFormParams := _neturl.Values{} + 107   localVarPath := localBasePath + "/api/v1/dashboard/public" + 108   + 109   localVarHeaderParams := make(map[string]string) + 110   localVarQueryParams := _neturl.Values{} + 111   localVarFormParams := _neturl.Values{} + 112   localVarHeaderParams["Content-Type"] = "application/json" 113   localVarHeaderParams["Accept"] = "application/json" 114   - 115   datadog.SetAuthKeys( - 116   ctx, - 117   &localVarHeaderParams, - 118   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 119   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 120   ) - 121   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 122   if err != nil { - 123   return localVarReturnValue, nil, err - 124   } - 125   - 126   localVarHTTPResponse, err := a.Client.CallAPI(req) - 127   if err != nil || localVarHTTPResponse == nil { - 128   return localVarReturnValue, localVarHTTPResponse, err - 129   } - 130   - 131   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 132   if err != nil { - 133   return localVarReturnValue, localVarHTTPResponse, err - 134   } - 135   - 136   if localVarHTTPResponse.StatusCode >= 300 { - 137   newErr := datadog.GenericOpenAPIError{ - 138   ErrorBody: localVarBody, - 139   ErrorMessage: localVarHTTPResponse.Status, - 140   } - 141   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 142   var v APIErrorResponse - 143   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 144   if err != nil { - 145   return localVarReturnValue, localVarHTTPResponse, newErr - 146   } - 147   newErr.ErrorModel = v - 148   } - 149   return localVarReturnValue, localVarHTTPResponse, newErr - 150   } - 151   - 152   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 153   if err != nil { - 154   newErr := datadog.GenericOpenAPIError{ - 155   ErrorBody: localVarBody, - 156   ErrorMessage: err.Error(), - 157   } - 158   return localVarReturnValue, localVarHTTPResponse, newErr - 159   } - 160   - 161   return localVarReturnValue, localVarHTTPResponse, nil - 162  } - 163   - 164  // DeleteDashboards Delete dashboards. - 165  // Delete dashboards using the specified IDs. If there are any failures, no dashboards will be deleted (partial success is not allowed). - 166  func (a *DashboardsApi) DeleteDashboards(ctx _context.Context, body DashboardBulkDeleteRequest) (*_nethttp.Response, error) { - 167   var ( - 168   localVarHTTPMethod = _nethttp.MethodDelete - 169   localVarPostBody interface{} - 170   ) - 171   - 172   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.DeleteDashboards") - 173   if err != nil { - 174   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 175   } - 176   - 177   localVarPath := localBasePath + "/api/v1/dashboard" - 178   - 179   localVarHeaderParams := make(map[string]string) - 180   localVarQueryParams := _neturl.Values{} - 181   localVarFormParams := _neturl.Values{} - 182   localVarHeaderParams["Content-Type"] = "application/json" - 183   localVarHeaderParams["Accept"] = "*/*" - 184   - 185   // body params - 186   localVarPostBody = &body - 187   datadog.SetAuthKeys( - 188   ctx, - 189   &localVarHeaderParams, - 190   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 191   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 192   ) - 193   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 194   if err != nil { - 195   return nil, err - 196   } - 197   - 198   localVarHTTPResponse, err := a.Client.CallAPI(req) - 199   if err != nil || localVarHTTPResponse == nil { - 200   return localVarHTTPResponse, err - 201   } - 202   - 203   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 204   if err != nil { - 205   return localVarHTTPResponse, err - 206   } - 207   - 208   if localVarHTTPResponse.StatusCode >= 300 { - 209   newErr := datadog.GenericOpenAPIError{ - 210   ErrorBody: localVarBody, - 211   ErrorMessage: localVarHTTPResponse.Status, - 212   } - 213   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 214   var v APIErrorResponse - 215   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 216   if err != nil { - 217   return localVarHTTPResponse, newErr - 218   } - 219   newErr.ErrorModel = v - 220   } - 221   return localVarHTTPResponse, newErr - 222   } - 223   - 224   return localVarHTTPResponse, nil - 225  } - 226   - 227  // GetDashboard Get a dashboard. - 228  // Get a dashboard using the specified ID. - 229  func (a *DashboardsApi) GetDashboard(ctx _context.Context, dashboardId string) (Dashboard, *_nethttp.Response, error) { - 230   var ( - 231   localVarHTTPMethod = _nethttp.MethodGet - 232   localVarPostBody interface{} - 233   localVarReturnValue Dashboard - 234   ) - 235   - 236   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.GetDashboard") - 237   if err != nil { - 238   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 239   } - 240   - 241   localVarPath := localBasePath + "/api/v1/dashboard/{dashboard_id}" - 242   localVarPath = strings.Replace(localVarPath, "{"+"dashboard_id"+"}", _neturl.PathEscape(datadog.ParameterToString(dashboardId, "")), -1) - 243   - 244   localVarHeaderParams := make(map[string]string) - 245   localVarQueryParams := _neturl.Values{} - 246   localVarFormParams := _neturl.Values{} - 247   localVarHeaderParams["Accept"] = "application/json" - 248   - 249   datadog.SetAuthKeys( - 250   ctx, - 251   &localVarHeaderParams, - 252   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 253   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 254   ) - 255   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 256   if err != nil { - 257   return localVarReturnValue, nil, err - 258   } - 259   - 260   localVarHTTPResponse, err := a.Client.CallAPI(req) - 261   if err != nil || localVarHTTPResponse == nil { - 262   return localVarReturnValue, localVarHTTPResponse, err - 263   } - 264   - 265   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 266   if err != nil { - 267   return localVarReturnValue, localVarHTTPResponse, err - 268   } - 269   - 270   if localVarHTTPResponse.StatusCode >= 300 { - 271   newErr := datadog.GenericOpenAPIError{ - 272   ErrorBody: localVarBody, - 273   ErrorMessage: localVarHTTPResponse.Status, - 274   } - 275   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 276   var v APIErrorResponse - 277   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 278   if err != nil { - 279   return localVarReturnValue, localVarHTTPResponse, newErr - 280   } - 281   newErr.ErrorModel = v - 282   } - 283   return localVarReturnValue, localVarHTTPResponse, newErr - 284   } - 285   - 286   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 287   if err != nil { - 288   newErr := datadog.GenericOpenAPIError{ - 289   ErrorBody: localVarBody, - 290   ErrorMessage: err.Error(), - 291   } - 292   return localVarReturnValue, localVarHTTPResponse, newErr - 293   } - 294   - 295   return localVarReturnValue, localVarHTTPResponse, nil - 296  } - 297   - 298  // ListDashboardsOptionalParameters holds optional parameters for ListDashboards. - 299  type ListDashboardsOptionalParameters struct { - 300   FilterShared *bool - 301   FilterDeleted *bool - 302  } - 303   - 304  // NewListDashboardsOptionalParameters creates an empty struct for parameters. - 305  func NewListDashboardsOptionalParameters() *ListDashboardsOptionalParameters { - 306   this := ListDashboardsOptionalParameters{} - 307   return &this - 308  } - 309   - 310  // WithFilterShared sets the corresponding parameter name and returns the struct. - 311  func (r *ListDashboardsOptionalParameters) WithFilterShared(filterShared bool) *ListDashboardsOptionalParameters { - 312   r.FilterShared = &filterShared - 313   return r - 314  } - 315   - 316  // WithFilterDeleted sets the corresponding parameter name and returns the struct. - 317  func (r *ListDashboardsOptionalParameters) WithFilterDeleted(filterDeleted bool) *ListDashboardsOptionalParameters { - 318   r.FilterDeleted = &filterDeleted - 319   return r - 320  } + 115   // body params + 116   localVarPostBody = &body + 117   datadog.SetAuthKeys( + 118   ctx, + 119   &localVarHeaderParams, + 120   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 121   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 122   ) + 123   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 124   if err != nil { + 125   return localVarReturnValue, nil, err + 126   } + 127   + 128   localVarHTTPResponse, err := a.Client.CallAPI(req) + 129   if err != nil || localVarHTTPResponse == nil { + 130   return localVarReturnValue, localVarHTTPResponse, err + 131   } + 132   + 133   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 134   if err != nil { + 135   return localVarReturnValue, localVarHTTPResponse, err + 136   } + 137   + 138   if localVarHTTPResponse.StatusCode >= 300 { + 139   newErr := datadog.GenericOpenAPIError{ + 140   ErrorBody: localVarBody, + 141   ErrorMessage: localVarHTTPResponse.Status, + 142   } + 143   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 144   var v APIErrorResponse + 145   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 146   if err != nil { + 147   return localVarReturnValue, localVarHTTPResponse, newErr + 148   } + 149   newErr.ErrorModel = v + 150   } + 151   return localVarReturnValue, localVarHTTPResponse, newErr + 152   } + 153   + 154   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 155   if err != nil { + 156   newErr := datadog.GenericOpenAPIError{ + 157   ErrorBody: localVarBody, + 158   ErrorMessage: err.Error(), + 159   } + 160   return localVarReturnValue, localVarHTTPResponse, newErr + 161   } + 162   + 163   return localVarReturnValue, localVarHTTPResponse, nil + 164  } + 165   + 166  // DeleteDashboard Delete a dashboard. + 167  // Delete a dashboard using the specified ID. + 168  func (a *DashboardsApi) DeleteDashboard(ctx _context.Context, dashboardId string) (DashboardDeleteResponse, *_nethttp.Response, error) { + 169   var ( + 170   localVarHTTPMethod = _nethttp.MethodDelete + 171   localVarPostBody interface{} + 172   localVarReturnValue DashboardDeleteResponse + 173   ) + 174   + 175   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.DeleteDashboard") + 176   if err != nil { + 177   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 178   } + 179   + 180   localVarPath := localBasePath + "/api/v1/dashboard/{dashboard_id}" + 181   localVarPath = strings.Replace(localVarPath, "{"+"dashboard_id"+"}", _neturl.PathEscape(datadog.ParameterToString(dashboardId, "")), -1) + 182   + 183   localVarHeaderParams := make(map[string]string) + 184   localVarQueryParams := _neturl.Values{} + 185   localVarFormParams := _neturl.Values{} + 186   localVarHeaderParams["Accept"] = "application/json" + 187   + 188   datadog.SetAuthKeys( + 189   ctx, + 190   &localVarHeaderParams, + 191   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 192   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 193   ) + 194   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 195   if err != nil { + 196   return localVarReturnValue, nil, err + 197   } + 198   + 199   localVarHTTPResponse, err := a.Client.CallAPI(req) + 200   if err != nil || localVarHTTPResponse == nil { + 201   return localVarReturnValue, localVarHTTPResponse, err + 202   } + 203   + 204   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 205   if err != nil { + 206   return localVarReturnValue, localVarHTTPResponse, err + 207   } + 208   + 209   if localVarHTTPResponse.StatusCode >= 300 { + 210   newErr := datadog.GenericOpenAPIError{ + 211   ErrorBody: localVarBody, + 212   ErrorMessage: localVarHTTPResponse.Status, + 213   } + 214   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 215   var v APIErrorResponse + 216   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 217   if err != nil { + 218   return localVarReturnValue, localVarHTTPResponse, newErr + 219   } + 220   newErr.ErrorModel = v + 221   } + 222   return localVarReturnValue, localVarHTTPResponse, newErr + 223   } + 224   + 225   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 226   if err != nil { + 227   newErr := datadog.GenericOpenAPIError{ + 228   ErrorBody: localVarBody, + 229   ErrorMessage: err.Error(), + 230   } + 231   return localVarReturnValue, localVarHTTPResponse, newErr + 232   } + 233   + 234   return localVarReturnValue, localVarHTTPResponse, nil + 235  } + 236   + 237  // DeleteDashboards Delete dashboards. + 238  // Delete dashboards using the specified IDs. If there are any failures, no dashboards will be deleted (partial success is not allowed). + 239  func (a *DashboardsApi) DeleteDashboards(ctx _context.Context, body DashboardBulkDeleteRequest) (*_nethttp.Response, error) { + 240   var ( + 241   localVarHTTPMethod = _nethttp.MethodDelete + 242   localVarPostBody interface{} + 243   ) + 244   + 245   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.DeleteDashboards") + 246   if err != nil { + 247   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 248   } + 249   + 250   localVarPath := localBasePath + "/api/v1/dashboard" + 251   + 252   localVarHeaderParams := make(map[string]string) + 253   localVarQueryParams := _neturl.Values{} + 254   localVarFormParams := _neturl.Values{} + 255   localVarHeaderParams["Content-Type"] = "application/json" + 256   localVarHeaderParams["Accept"] = "*/*" + 257   + 258   // body params + 259   localVarPostBody = &body + 260   datadog.SetAuthKeys( + 261   ctx, + 262   &localVarHeaderParams, + 263   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 264   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 265   ) + 266   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 267   if err != nil { + 268   return nil, err + 269   } + 270   + 271   localVarHTTPResponse, err := a.Client.CallAPI(req) + 272   if err != nil || localVarHTTPResponse == nil { + 273   return localVarHTTPResponse, err + 274   } + 275   + 276   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 277   if err != nil { + 278   return localVarHTTPResponse, err + 279   } + 280   + 281   if localVarHTTPResponse.StatusCode >= 300 { + 282   newErr := datadog.GenericOpenAPIError{ + 283   ErrorBody: localVarBody, + 284   ErrorMessage: localVarHTTPResponse.Status, + 285   } + 286   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 287   var v APIErrorResponse + 288   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 289   if err != nil { + 290   return localVarHTTPResponse, newErr + 291   } + 292   newErr.ErrorModel = v + 293   } + 294   return localVarHTTPResponse, newErr + 295   } + 296   + 297   return localVarHTTPResponse, nil + 298  } + 299   + 300  // DeletePublicDashboard Revoke a shared dashboard URL. + 301  // Revoke the public URL for a dashboard (rendering it private) associated with the specified token. + 302  func (a *DashboardsApi) DeletePublicDashboard(ctx _context.Context, token string) (DeleteSharedDashboardResponse, *_nethttp.Response, error) { + 303   var ( + 304   localVarHTTPMethod = _nethttp.MethodDelete + 305   localVarPostBody interface{} + 306   localVarReturnValue DeleteSharedDashboardResponse + 307   ) + 308   + 309   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.DeletePublicDashboard") + 310   if err != nil { + 311   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 312   } + 313   + 314   localVarPath := localBasePath + "/api/v1/dashboard/public/{token}" + 315   localVarPath = strings.Replace(localVarPath, "{"+"token"+"}", _neturl.PathEscape(datadog.ParameterToString(token, "")), -1) + 316   + 317   localVarHeaderParams := make(map[string]string) + 318   localVarQueryParams := _neturl.Values{} + 319   localVarFormParams := _neturl.Values{} + 320   localVarHeaderParams["Accept"] = "application/json" 321   - 322  // ListDashboards Get all dashboards. - 323  // Get all dashboards. - 324  // - 325  // **Note**: This query will only return custom created or cloned dashboards. - 326  // This query will not return preset dashboards. - 327  func (a *DashboardsApi) ListDashboards(ctx _context.Context, o ...ListDashboardsOptionalParameters) (DashboardSummary, *_nethttp.Response, error) { - 328   var ( - 329   localVarHTTPMethod = _nethttp.MethodGet - 330   localVarPostBody interface{} - 331   localVarReturnValue DashboardSummary - 332   optionalParams ListDashboardsOptionalParameters - 333   ) - 334   - 335   if len(o) > 1 { - 336   return localVarReturnValue, nil, datadog.ReportError("only one argument of type ListDashboardsOptionalParameters is allowed") - 337   } - 338   if len(o) == 1 { - 339   optionalParams = o[0] - 340   } - 341   - 342   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.ListDashboards") - 343   if err != nil { - 344   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 345   } - 346   - 347   localVarPath := localBasePath + "/api/v1/dashboard" - 348   - 349   localVarHeaderParams := make(map[string]string) - 350   localVarQueryParams := _neturl.Values{} - 351   localVarFormParams := _neturl.Values{} - 352   if optionalParams.FilterShared != nil { - 353   localVarQueryParams.Add("filter[shared]", datadog.ParameterToString(*optionalParams.FilterShared, "")) - 354   } - 355   if optionalParams.FilterDeleted != nil { - 356   localVarQueryParams.Add("filter[deleted]", datadog.ParameterToString(*optionalParams.FilterDeleted, "")) + 322   datadog.SetAuthKeys( + 323   ctx, + 324   &localVarHeaderParams, + 325   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 326   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 327   ) + 328   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 329   if err != nil { + 330   return localVarReturnValue, nil, err + 331   } + 332   + 333   localVarHTTPResponse, err := a.Client.CallAPI(req) + 334   if err != nil || localVarHTTPResponse == nil { + 335   return localVarReturnValue, localVarHTTPResponse, err + 336   } + 337   + 338   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 339   if err != nil { + 340   return localVarReturnValue, localVarHTTPResponse, err + 341   } + 342   + 343   if localVarHTTPResponse.StatusCode >= 300 { + 344   newErr := datadog.GenericOpenAPIError{ + 345   ErrorBody: localVarBody, + 346   ErrorMessage: localVarHTTPResponse.Status, + 347   } + 348   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 349   var v APIErrorResponse + 350   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 351   if err != nil { + 352   return localVarReturnValue, localVarHTTPResponse, newErr + 353   } + 354   newErr.ErrorModel = v + 355   } + 356   return localVarReturnValue, localVarHTTPResponse, newErr 357   } - 358   localVarHeaderParams["Accept"] = "application/json" - 359   - 360   datadog.SetAuthKeys( - 361   ctx, - 362   &localVarHeaderParams, - 363   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 364   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 365   ) - 366   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 367   if err != nil { - 368   return localVarReturnValue, nil, err - 369   } + 358   + 359   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 360   if err != nil { + 361   newErr := datadog.GenericOpenAPIError{ + 362   ErrorBody: localVarBody, + 363   ErrorMessage: err.Error(), + 364   } + 365   return localVarReturnValue, localVarHTTPResponse, newErr + 366   } + 367   + 368   return localVarReturnValue, localVarHTTPResponse, nil + 369  } 370   - 371   localVarHTTPResponse, err := a.Client.CallAPI(req) - 372   if err != nil || localVarHTTPResponse == nil { - 373   return localVarReturnValue, localVarHTTPResponse, err - 374   } - 375   - 376   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 377   if err != nil { - 378   return localVarReturnValue, localVarHTTPResponse, err - 379   } - 380   - 381   if localVarHTTPResponse.StatusCode >= 300 { - 382   newErr := datadog.GenericOpenAPIError{ - 383   ErrorBody: localVarBody, - 384   ErrorMessage: localVarHTTPResponse.Status, - 385   } - 386   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 429 { - 387   var v APIErrorResponse - 388   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 389   if err != nil { - 390   return localVarReturnValue, localVarHTTPResponse, newErr - 391   } - 392   newErr.ErrorModel = v - 393   } - 394   return localVarReturnValue, localVarHTTPResponse, newErr - 395   } - 396   - 397   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 398   if err != nil { - 399   newErr := datadog.GenericOpenAPIError{ - 400   ErrorBody: localVarBody, - 401   ErrorMessage: err.Error(), - 402   } - 403   return localVarReturnValue, localVarHTTPResponse, newErr + 371  // DeletePublicDashboardInvitation Revoke shared dashboard invitations. + 372  // Revoke previously sent invitation emails and active sessions used to access a given shared dashboard for specific email addresses. + 373  func (a *DashboardsApi) DeletePublicDashboardInvitation(ctx _context.Context, token string, body SharedDashboardInvites) (*_nethttp.Response, error) { + 374   var ( + 375   localVarHTTPMethod = _nethttp.MethodDelete + 376   localVarPostBody interface{} + 377   ) + 378   + 379   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.DeletePublicDashboardInvitation") + 380   if err != nil { + 381   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 382   } + 383   + 384   localVarPath := localBasePath + "/api/v1/dashboard/public/{token}/invitation" + 385   localVarPath = strings.Replace(localVarPath, "{"+"token"+"}", _neturl.PathEscape(datadog.ParameterToString(token, "")), -1) + 386   + 387   localVarHeaderParams := make(map[string]string) + 388   localVarQueryParams := _neturl.Values{} + 389   localVarFormParams := _neturl.Values{} + 390   localVarHeaderParams["Content-Type"] = "application/json" + 391   localVarHeaderParams["Accept"] = "*/*" + 392   + 393   // body params + 394   localVarPostBody = &body + 395   datadog.SetAuthKeys( + 396   ctx, + 397   &localVarHeaderParams, + 398   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 399   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 400   ) + 401   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 402   if err != nil { + 403   return nil, err 404   } 405   - 406   return localVarReturnValue, localVarHTTPResponse, nil - 407  } - 408   - 409  // RestoreDashboards Restore deleted dashboards. - 410  // Restore dashboards using the specified IDs. If there are any failures, no dashboards will be restored (partial success is not allowed). - 411  func (a *DashboardsApi) RestoreDashboards(ctx _context.Context, body DashboardRestoreRequest) (*_nethttp.Response, error) { - 412   var ( - 413   localVarHTTPMethod = _nethttp.MethodPatch - 414   localVarPostBody interface{} - 415   ) - 416   - 417   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.RestoreDashboards") - 418   if err != nil { - 419   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 420   } - 421   - 422   localVarPath := localBasePath + "/api/v1/dashboard" - 423   - 424   localVarHeaderParams := make(map[string]string) - 425   localVarQueryParams := _neturl.Values{} - 426   localVarFormParams := _neturl.Values{} - 427   localVarHeaderParams["Content-Type"] = "application/json" - 428   localVarHeaderParams["Accept"] = "*/*" - 429   - 430   // body params - 431   localVarPostBody = &body - 432   datadog.SetAuthKeys( - 433   ctx, - 434   &localVarHeaderParams, - 435   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 436   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 437   ) - 438   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 439   if err != nil { - 440   return nil, err - 441   } - 442   - 443   localVarHTTPResponse, err := a.Client.CallAPI(req) - 444   if err != nil || localVarHTTPResponse == nil { - 445   return localVarHTTPResponse, err - 446   } - 447   - 448   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 449   if err != nil { - 450   return localVarHTTPResponse, err - 451   } - 452   - 453   if localVarHTTPResponse.StatusCode >= 300 { - 454   newErr := datadog.GenericOpenAPIError{ - 455   ErrorBody: localVarBody, - 456   ErrorMessage: localVarHTTPResponse.Status, - 457   } - 458   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 459   var v APIErrorResponse - 460   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 461   if err != nil { - 462   return localVarHTTPResponse, newErr - 463   } - 464   newErr.ErrorModel = v - 465   } - 466   return localVarHTTPResponse, newErr - 467   } - 468   - 469   return localVarHTTPResponse, nil - 470  } - 471   - 472  // UpdateDashboard Update a dashboard. - 473  // Update a dashboard using the specified ID. - 474  func (a *DashboardsApi) UpdateDashboard(ctx _context.Context, dashboardId string, body Dashboard) (Dashboard, *_nethttp.Response, error) { - 475   var ( - 476   localVarHTTPMethod = _nethttp.MethodPut - 477   localVarPostBody interface{} - 478   localVarReturnValue Dashboard - 479   ) - 480   - 481   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.UpdateDashboard") - 482   if err != nil { - 483   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} - 484   } - 485   - 486   localVarPath := localBasePath + "/api/v1/dashboard/{dashboard_id}" - 487   localVarPath = strings.Replace(localVarPath, "{"+"dashboard_id"+"}", _neturl.PathEscape(datadog.ParameterToString(dashboardId, "")), -1) - 488   - 489   localVarHeaderParams := make(map[string]string) - 490   localVarQueryParams := _neturl.Values{} - 491   localVarFormParams := _neturl.Values{} - 492   localVarHeaderParams["Content-Type"] = "application/json" - 493   localVarHeaderParams["Accept"] = "application/json" - 494   - 495   // body params - 496   localVarPostBody = &body - 497   datadog.SetAuthKeys( - 498   ctx, - 499   &localVarHeaderParams, - 500   [2]string{"apiKeyAuth", "DD-API-KEY"}, - 501   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, - 502   ) - 503   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) - 504   if err != nil { - 505   return localVarReturnValue, nil, err - 506   } - 507   - 508   localVarHTTPResponse, err := a.Client.CallAPI(req) - 509   if err != nil || localVarHTTPResponse == nil { - 510   return localVarReturnValue, localVarHTTPResponse, err - 511   } - 512   - 513   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) - 514   if err != nil { - 515   return localVarReturnValue, localVarHTTPResponse, err - 516   } - 517   - 518   if localVarHTTPResponse.StatusCode >= 300 { - 519   newErr := datadog.GenericOpenAPIError{ - 520   ErrorBody: localVarBody, - 521   ErrorMessage: localVarHTTPResponse.Status, - 522   } - 523   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { - 524   var v APIErrorResponse - 525   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - 526   if err != nil { - 527   return localVarReturnValue, localVarHTTPResponse, newErr - 528   } - 529   newErr.ErrorModel = v - 530   } - 531   return localVarReturnValue, localVarHTTPResponse, newErr - 532   } - 533   - 534   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 406   localVarHTTPResponse, err := a.Client.CallAPI(req) + 407   if err != nil || localVarHTTPResponse == nil { + 408   return localVarHTTPResponse, err + 409   } + 410   + 411   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 412   if err != nil { + 413   return localVarHTTPResponse, err + 414   } + 415   + 416   if localVarHTTPResponse.StatusCode >= 300 { + 417   newErr := datadog.GenericOpenAPIError{ + 418   ErrorBody: localVarBody, + 419   ErrorMessage: localVarHTTPResponse.Status, + 420   } + 421   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 422   var v APIErrorResponse + 423   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 424   if err != nil { + 425   return localVarHTTPResponse, newErr + 426   } + 427   newErr.ErrorModel = v + 428   } + 429   return localVarHTTPResponse, newErr + 430   } + 431   + 432   return localVarHTTPResponse, nil + 433  } + 434   + 435  // GetDashboard Get a dashboard. + 436  // Get a dashboard using the specified ID. + 437  func (a *DashboardsApi) GetDashboard(ctx _context.Context, dashboardId string) (Dashboard, *_nethttp.Response, error) { + 438   var ( + 439   localVarHTTPMethod = _nethttp.MethodGet + 440   localVarPostBody interface{} + 441   localVarReturnValue Dashboard + 442   ) + 443   + 444   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.GetDashboard") + 445   if err != nil { + 446   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 447   } + 448   + 449   localVarPath := localBasePath + "/api/v1/dashboard/{dashboard_id}" + 450   localVarPath = strings.Replace(localVarPath, "{"+"dashboard_id"+"}", _neturl.PathEscape(datadog.ParameterToString(dashboardId, "")), -1) + 451   + 452   localVarHeaderParams := make(map[string]string) + 453   localVarQueryParams := _neturl.Values{} + 454   localVarFormParams := _neturl.Values{} + 455   localVarHeaderParams["Accept"] = "application/json" + 456   + 457   datadog.SetAuthKeys( + 458   ctx, + 459   &localVarHeaderParams, + 460   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 461   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 462   ) + 463   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 464   if err != nil { + 465   return localVarReturnValue, nil, err + 466   } + 467   + 468   localVarHTTPResponse, err := a.Client.CallAPI(req) + 469   if err != nil || localVarHTTPResponse == nil { + 470   return localVarReturnValue, localVarHTTPResponse, err + 471   } + 472   + 473   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 474   if err != nil { + 475   return localVarReturnValue, localVarHTTPResponse, err + 476   } + 477   + 478   if localVarHTTPResponse.StatusCode >= 300 { + 479   newErr := datadog.GenericOpenAPIError{ + 480   ErrorBody: localVarBody, + 481   ErrorMessage: localVarHTTPResponse.Status, + 482   } + 483   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 484   var v APIErrorResponse + 485   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 486   if err != nil { + 487   return localVarReturnValue, localVarHTTPResponse, newErr + 488   } + 489   newErr.ErrorModel = v + 490   } + 491   return localVarReturnValue, localVarHTTPResponse, newErr + 492   } + 493   + 494   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 495   if err != nil { + 496   newErr := datadog.GenericOpenAPIError{ + 497   ErrorBody: localVarBody, + 498   ErrorMessage: err.Error(), + 499   } + 500   return localVarReturnValue, localVarHTTPResponse, newErr + 501   } + 502   + 503   return localVarReturnValue, localVarHTTPResponse, nil + 504  } + 505   + 506  // GetPublicDashboard Get a shared dashboard. + 507  // Fetch an existing shared dashboard's sharing metadata associated with the specified token. + 508  func (a *DashboardsApi) GetPublicDashboard(ctx _context.Context, token string) (SharedDashboard, *_nethttp.Response, error) { + 509   var ( + 510   localVarHTTPMethod = _nethttp.MethodGet + 511   localVarPostBody interface{} + 512   localVarReturnValue SharedDashboard + 513   ) + 514   + 515   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.GetPublicDashboard") + 516   if err != nil { + 517   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 518   } + 519   + 520   localVarPath := localBasePath + "/api/v1/dashboard/public/{token}" + 521   localVarPath = strings.Replace(localVarPath, "{"+"token"+"}", _neturl.PathEscape(datadog.ParameterToString(token, "")), -1) + 522   + 523   localVarHeaderParams := make(map[string]string) + 524   localVarQueryParams := _neturl.Values{} + 525   localVarFormParams := _neturl.Values{} + 526   localVarHeaderParams["Accept"] = "application/json" + 527   + 528   datadog.SetAuthKeys( + 529   ctx, + 530   &localVarHeaderParams, + 531   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 532   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 533   ) + 534   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) 535   if err != nil { - 536   newErr := datadog.GenericOpenAPIError{ - 537   ErrorBody: localVarBody, - 538   ErrorMessage: err.Error(), - 539   } - 540   return localVarReturnValue, localVarHTTPResponse, newErr - 541   } - 542   - 543   return localVarReturnValue, localVarHTTPResponse, nil - 544  } - 545   - 546  // NewDashboardsApi Returns NewDashboardsApi. - 547  func NewDashboardsApi(client *datadog.APIClient) *DashboardsApi { - 548   return &DashboardsApi{ - 549   Client: client, - 550   } - 551  } - 552   + 536   return localVarReturnValue, nil, err + 537   } + 538   + 539   localVarHTTPResponse, err := a.Client.CallAPI(req) + 540   if err != nil || localVarHTTPResponse == nil { + 541   return localVarReturnValue, localVarHTTPResponse, err + 542   } + 543   + 544   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 545   if err != nil { + 546   return localVarReturnValue, localVarHTTPResponse, err + 547   } + 548   + 549   if localVarHTTPResponse.StatusCode >= 300 { + 550   newErr := datadog.GenericOpenAPIError{ + 551   ErrorBody: localVarBody, + 552   ErrorMessage: localVarHTTPResponse.Status, + 553   } + 554   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 555   var v APIErrorResponse + 556   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 557   if err != nil { + 558   return localVarReturnValue, localVarHTTPResponse, newErr + 559   } + 560   newErr.ErrorModel = v + 561   } + 562   return localVarReturnValue, localVarHTTPResponse, newErr + 563   } + 564   + 565   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 566   if err != nil { + 567   newErr := datadog.GenericOpenAPIError{ + 568   ErrorBody: localVarBody, + 569   ErrorMessage: err.Error(), + 570   } + 571   return localVarReturnValue, localVarHTTPResponse, newErr + 572   } + 573   + 574   return localVarReturnValue, localVarHTTPResponse, nil + 575  } + 576   + 577  // GetPublicDashboardInvitationsOptionalParameters holds optional parameters for GetPublicDashboardInvitations. + 578  type GetPublicDashboardInvitationsOptionalParameters struct { + 579   PageSize *int64 + 580   PageNumber *int64 + 581  } + 582   + 583  // NewGetPublicDashboardInvitationsOptionalParameters creates an empty struct for parameters. + 584  func NewGetPublicDashboardInvitationsOptionalParameters() *GetPublicDashboardInvitationsOptionalParameters { + 585   this := GetPublicDashboardInvitationsOptionalParameters{} + 586   return &this + 587  } + 588   + 589  // WithPageSize sets the corresponding parameter name and returns the struct. + 590  func (r *GetPublicDashboardInvitationsOptionalParameters) WithPageSize(pageSize int64) *GetPublicDashboardInvitationsOptionalParameters { + 591   r.PageSize = &pageSize + 592   return r + 593  } + 594   + 595  // WithPageNumber sets the corresponding parameter name and returns the struct. + 596  func (r *GetPublicDashboardInvitationsOptionalParameters) WithPageNumber(pageNumber int64) *GetPublicDashboardInvitationsOptionalParameters { + 597   r.PageNumber = &pageNumber + 598   return r + 599  } + 600   + 601  // GetPublicDashboardInvitations Get all invitations for a shared dashboard. + 602  // Describe the invitations that exist for the given shared dashboard (paginated). + 603  func (a *DashboardsApi) GetPublicDashboardInvitations(ctx _context.Context, token string, o ...GetPublicDashboardInvitationsOptionalParameters) (SharedDashboardInvites, *_nethttp.Response, error) { + 604   var ( + 605   localVarHTTPMethod = _nethttp.MethodGet + 606   localVarPostBody interface{} + 607   localVarReturnValue SharedDashboardInvites + 608   optionalParams GetPublicDashboardInvitationsOptionalParameters + 609   ) + 610   + 611   if len(o) > 1 { + 612   return localVarReturnValue, nil, datadog.ReportError("only one argument of type GetPublicDashboardInvitationsOptionalParameters is allowed") + 613   } + 614   if len(o) == 1 { + 615   optionalParams = o[0] + 616   } + 617   + 618   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.GetPublicDashboardInvitations") + 619   if err != nil { + 620   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 621   } + 622   + 623   localVarPath := localBasePath + "/api/v1/dashboard/public/{token}/invitation" + 624   localVarPath = strings.Replace(localVarPath, "{"+"token"+"}", _neturl.PathEscape(datadog.ParameterToString(token, "")), -1) + 625   + 626   localVarHeaderParams := make(map[string]string) + 627   localVarQueryParams := _neturl.Values{} + 628   localVarFormParams := _neturl.Values{} + 629   if optionalParams.PageSize != nil { + 630   localVarQueryParams.Add("page_size", datadog.ParameterToString(*optionalParams.PageSize, "")) + 631   } + 632   if optionalParams.PageNumber != nil { + 633   localVarQueryParams.Add("page_number", datadog.ParameterToString(*optionalParams.PageNumber, "")) + 634   } + 635   localVarHeaderParams["Accept"] = "application/json" + 636   + 637   datadog.SetAuthKeys( + 638   ctx, + 639   &localVarHeaderParams, + 640   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 641   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 642   ) + 643   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 644   if err != nil { + 645   return localVarReturnValue, nil, err + 646   } + 647   + 648   localVarHTTPResponse, err := a.Client.CallAPI(req) + 649   if err != nil || localVarHTTPResponse == nil { + 650   return localVarReturnValue, localVarHTTPResponse, err + 651   } + 652   + 653   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 654   if err != nil { + 655   return localVarReturnValue, localVarHTTPResponse, err + 656   } + 657   + 658   if localVarHTTPResponse.StatusCode >= 300 { + 659   newErr := datadog.GenericOpenAPIError{ + 660   ErrorBody: localVarBody, + 661   ErrorMessage: localVarHTTPResponse.Status, + 662   } + 663   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 664   var v APIErrorResponse + 665   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 666   if err != nil { + 667   return localVarReturnValue, localVarHTTPResponse, newErr + 668   } + 669   newErr.ErrorModel = v + 670   } + 671   return localVarReturnValue, localVarHTTPResponse, newErr + 672   } + 673   + 674   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 675   if err != nil { + 676   newErr := datadog.GenericOpenAPIError{ + 677   ErrorBody: localVarBody, + 678   ErrorMessage: err.Error(), + 679   } + 680   return localVarReturnValue, localVarHTTPResponse, newErr + 681   } + 682   + 683   return localVarReturnValue, localVarHTTPResponse, nil + 684  } + 685   + 686  // ListDashboardsOptionalParameters holds optional parameters for ListDashboards. + 687  type ListDashboardsOptionalParameters struct { + 688   FilterShared *bool + 689   FilterDeleted *bool + 690  } + 691   + 692  // NewListDashboardsOptionalParameters creates an empty struct for parameters. + 693  func NewListDashboardsOptionalParameters() *ListDashboardsOptionalParameters { + 694   this := ListDashboardsOptionalParameters{} + 695   return &this + 696  } + 697   + 698  // WithFilterShared sets the corresponding parameter name and returns the struct. + 699  func (r *ListDashboardsOptionalParameters) WithFilterShared(filterShared bool) *ListDashboardsOptionalParameters { + 700   r.FilterShared = &filterShared + 701   return r + 702  } + 703   + 704  // WithFilterDeleted sets the corresponding parameter name and returns the struct. + 705  func (r *ListDashboardsOptionalParameters) WithFilterDeleted(filterDeleted bool) *ListDashboardsOptionalParameters { + 706   r.FilterDeleted = &filterDeleted + 707   return r + 708  } + 709   + 710  // ListDashboards Get all dashboards. + 711  // Get all dashboards. + 712  // + 713  // **Note**: This query will only return custom created or cloned dashboards. + 714  // This query will not return preset dashboards. + 715  func (a *DashboardsApi) ListDashboards(ctx _context.Context, o ...ListDashboardsOptionalParameters) (DashboardSummary, *_nethttp.Response, error) { + 716   var ( + 717   localVarHTTPMethod = _nethttp.MethodGet + 718   localVarPostBody interface{} + 719   localVarReturnValue DashboardSummary + 720   optionalParams ListDashboardsOptionalParameters + 721   ) + 722   + 723   if len(o) > 1 { + 724   return localVarReturnValue, nil, datadog.ReportError("only one argument of type ListDashboardsOptionalParameters is allowed") + 725   } + 726   if len(o) == 1 { + 727   optionalParams = o[0] + 728   } + 729   + 730   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.ListDashboards") + 731   if err != nil { + 732   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 733   } + 734   + 735   localVarPath := localBasePath + "/api/v1/dashboard" + 736   + 737   localVarHeaderParams := make(map[string]string) + 738   localVarQueryParams := _neturl.Values{} + 739   localVarFormParams := _neturl.Values{} + 740   if optionalParams.FilterShared != nil { + 741   localVarQueryParams.Add("filter[shared]", datadog.ParameterToString(*optionalParams.FilterShared, "")) + 742   } + 743   if optionalParams.FilterDeleted != nil { + 744   localVarQueryParams.Add("filter[deleted]", datadog.ParameterToString(*optionalParams.FilterDeleted, "")) + 745   } + 746   localVarHeaderParams["Accept"] = "application/json" + 747   + 748   datadog.SetAuthKeys( + 749   ctx, + 750   &localVarHeaderParams, + 751   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 752   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 753   ) + 754   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 755   if err != nil { + 756   return localVarReturnValue, nil, err + 757   } + 758   + 759   localVarHTTPResponse, err := a.Client.CallAPI(req) + 760   if err != nil || localVarHTTPResponse == nil { + 761   return localVarReturnValue, localVarHTTPResponse, err + 762   } + 763   + 764   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 765   if err != nil { + 766   return localVarReturnValue, localVarHTTPResponse, err + 767   } + 768   + 769   if localVarHTTPResponse.StatusCode >= 300 { + 770   newErr := datadog.GenericOpenAPIError{ + 771   ErrorBody: localVarBody, + 772   ErrorMessage: localVarHTTPResponse.Status, + 773   } + 774   if localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 429 { + 775   var v APIErrorResponse + 776   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 777   if err != nil { + 778   return localVarReturnValue, localVarHTTPResponse, newErr + 779   } + 780   newErr.ErrorModel = v + 781   } + 782   return localVarReturnValue, localVarHTTPResponse, newErr + 783   } + 784   + 785   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 786   if err != nil { + 787   newErr := datadog.GenericOpenAPIError{ + 788   ErrorBody: localVarBody, + 789   ErrorMessage: err.Error(), + 790   } + 791   return localVarReturnValue, localVarHTTPResponse, newErr + 792   } + 793   + 794   return localVarReturnValue, localVarHTTPResponse, nil + 795  } + 796   + 797  // RestoreDashboards Restore deleted dashboards. + 798  // Restore dashboards using the specified IDs. If there are any failures, no dashboards will be restored (partial success is not allowed). + 799  func (a *DashboardsApi) RestoreDashboards(ctx _context.Context, body DashboardRestoreRequest) (*_nethttp.Response, error) { + 800   var ( + 801   localVarHTTPMethod = _nethttp.MethodPatch + 802   localVarPostBody interface{} + 803   ) + 804   + 805   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.RestoreDashboards") + 806   if err != nil { + 807   return nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 808   } + 809   + 810   localVarPath := localBasePath + "/api/v1/dashboard" + 811   + 812   localVarHeaderParams := make(map[string]string) + 813   localVarQueryParams := _neturl.Values{} + 814   localVarFormParams := _neturl.Values{} + 815   localVarHeaderParams["Content-Type"] = "application/json" + 816   localVarHeaderParams["Accept"] = "*/*" + 817   + 818   // body params + 819   localVarPostBody = &body + 820   datadog.SetAuthKeys( + 821   ctx, + 822   &localVarHeaderParams, + 823   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 824   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 825   ) + 826   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 827   if err != nil { + 828   return nil, err + 829   } + 830   + 831   localVarHTTPResponse, err := a.Client.CallAPI(req) + 832   if err != nil || localVarHTTPResponse == nil { + 833   return localVarHTTPResponse, err + 834   } + 835   + 836   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 837   if err != nil { + 838   return localVarHTTPResponse, err + 839   } + 840   + 841   if localVarHTTPResponse.StatusCode >= 300 { + 842   newErr := datadog.GenericOpenAPIError{ + 843   ErrorBody: localVarBody, + 844   ErrorMessage: localVarHTTPResponse.Status, + 845   } + 846   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 847   var v APIErrorResponse + 848   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 849   if err != nil { + 850   return localVarHTTPResponse, newErr + 851   } + 852   newErr.ErrorModel = v + 853   } + 854   return localVarHTTPResponse, newErr + 855   } + 856   + 857   return localVarHTTPResponse, nil + 858  } + 859   + 860  // SendPublicDashboardInvitation Send shared dashboard invitation email. + 861  // Send emails to specified email addresses containing links to access a given authenticated shared dashboard. Email addresses must already belong to the authenticated shared dashboard's share_list. + 862  func (a *DashboardsApi) SendPublicDashboardInvitation(ctx _context.Context, token string, body SharedDashboardInvites) (SharedDashboardInvites, *_nethttp.Response, error) { + 863   var ( + 864   localVarHTTPMethod = _nethttp.MethodPost + 865   localVarPostBody interface{} + 866   localVarReturnValue SharedDashboardInvites + 867   ) + 868   + 869   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.SendPublicDashboardInvitation") + 870   if err != nil { + 871   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 872   } + 873   + 874   localVarPath := localBasePath + "/api/v1/dashboard/public/{token}/invitation" + 875   localVarPath = strings.Replace(localVarPath, "{"+"token"+"}", _neturl.PathEscape(datadog.ParameterToString(token, "")), -1) + 876   + 877   localVarHeaderParams := make(map[string]string) + 878   localVarQueryParams := _neturl.Values{} + 879   localVarFormParams := _neturl.Values{} + 880   localVarHeaderParams["Content-Type"] = "application/json" + 881   localVarHeaderParams["Accept"] = "application/json" + 882   + 883   // body params + 884   localVarPostBody = &body + 885   datadog.SetAuthKeys( + 886   ctx, + 887   &localVarHeaderParams, + 888   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 889   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 890   ) + 891   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 892   if err != nil { + 893   return localVarReturnValue, nil, err + 894   } + 895   + 896   localVarHTTPResponse, err := a.Client.CallAPI(req) + 897   if err != nil || localVarHTTPResponse == nil { + 898   return localVarReturnValue, localVarHTTPResponse, err + 899   } + 900   + 901   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 902   if err != nil { + 903   return localVarReturnValue, localVarHTTPResponse, err + 904   } + 905   + 906   if localVarHTTPResponse.StatusCode >= 300 { + 907   newErr := datadog.GenericOpenAPIError{ + 908   ErrorBody: localVarBody, + 909   ErrorMessage: localVarHTTPResponse.Status, + 910   } + 911   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 912   var v APIErrorResponse + 913   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 914   if err != nil { + 915   return localVarReturnValue, localVarHTTPResponse, newErr + 916   } + 917   newErr.ErrorModel = v + 918   } + 919   return localVarReturnValue, localVarHTTPResponse, newErr + 920   } + 921   + 922   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 923   if err != nil { + 924   newErr := datadog.GenericOpenAPIError{ + 925   ErrorBody: localVarBody, + 926   ErrorMessage: err.Error(), + 927   } + 928   return localVarReturnValue, localVarHTTPResponse, newErr + 929   } + 930   + 931   return localVarReturnValue, localVarHTTPResponse, nil + 932  } + 933   + 934  // UpdateDashboard Update a dashboard. + 935  // Update a dashboard using the specified ID. + 936  func (a *DashboardsApi) UpdateDashboard(ctx _context.Context, dashboardId string, body Dashboard) (Dashboard, *_nethttp.Response, error) { + 937   var ( + 938   localVarHTTPMethod = _nethttp.MethodPut + 939   localVarPostBody interface{} + 940   localVarReturnValue Dashboard + 941   ) + 942   + 943   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.UpdateDashboard") + 944   if err != nil { + 945   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 946   } + 947   + 948   localVarPath := localBasePath + "/api/v1/dashboard/{dashboard_id}" + 949   localVarPath = strings.Replace(localVarPath, "{"+"dashboard_id"+"}", _neturl.PathEscape(datadog.ParameterToString(dashboardId, "")), -1) + 950   + 951   localVarHeaderParams := make(map[string]string) + 952   localVarQueryParams := _neturl.Values{} + 953   localVarFormParams := _neturl.Values{} + 954   localVarHeaderParams["Content-Type"] = "application/json" + 955   localVarHeaderParams["Accept"] = "application/json" + 956   + 957   // body params + 958   localVarPostBody = &body + 959   datadog.SetAuthKeys( + 960   ctx, + 961   &localVarHeaderParams, + 962   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 963   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 964   ) + 965   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 966   if err != nil { + 967   return localVarReturnValue, nil, err + 968   } + 969   + 970   localVarHTTPResponse, err := a.Client.CallAPI(req) + 971   if err != nil || localVarHTTPResponse == nil { + 972   return localVarReturnValue, localVarHTTPResponse, err + 973   } + 974   + 975   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 976   if err != nil { + 977   return localVarReturnValue, localVarHTTPResponse, err + 978   } + 979   + 980   if localVarHTTPResponse.StatusCode >= 300 { + 981   newErr := datadog.GenericOpenAPIError{ + 982   ErrorBody: localVarBody, + 983   ErrorMessage: localVarHTTPResponse.Status, + 984   } + 985   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 986   var v APIErrorResponse + 987   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 988   if err != nil { + 989   return localVarReturnValue, localVarHTTPResponse, newErr + 990   } + 991   newErr.ErrorModel = v + 992   } + 993   return localVarReturnValue, localVarHTTPResponse, newErr + 994   } + 995   + 996   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 997   if err != nil { + 998   newErr := datadog.GenericOpenAPIError{ + 999   ErrorBody: localVarBody, + 1000   ErrorMessage: err.Error(), + 1001   } + 1002   return localVarReturnValue, localVarHTTPResponse, newErr + 1003   } + 1004   + 1005   return localVarReturnValue, localVarHTTPResponse, nil + 1006  } + 1007   + 1008  // UpdatePublicDashboard Update a shared dashboard. + 1009  // Update a shared dashboard associated with the specified token. + 1010  func (a *DashboardsApi) UpdatePublicDashboard(ctx _context.Context, token string, body SharedDashboardUpdateRequest) (SharedDashboard, *_nethttp.Response, error) { + 1011   var ( + 1012   localVarHTTPMethod = _nethttp.MethodPut + 1013   localVarPostBody interface{} + 1014   localVarReturnValue SharedDashboard + 1015   ) + 1016   + 1017   localBasePath, err := a.Client.Cfg.ServerURLWithContext(ctx, "v1.DashboardsApi.UpdatePublicDashboard") + 1018   if err != nil { + 1019   return localVarReturnValue, nil, datadog.GenericOpenAPIError{ErrorMessage: err.Error()} + 1020   } + 1021   + 1022   localVarPath := localBasePath + "/api/v1/dashboard/public/{token}" + 1023   localVarPath = strings.Replace(localVarPath, "{"+"token"+"}", _neturl.PathEscape(datadog.ParameterToString(token, "")), -1) + 1024   + 1025   localVarHeaderParams := make(map[string]string) + 1026   localVarQueryParams := _neturl.Values{} + 1027   localVarFormParams := _neturl.Values{} + 1028   localVarHeaderParams["Content-Type"] = "application/json" + 1029   localVarHeaderParams["Accept"] = "application/json" + 1030   + 1031   // body params + 1032   localVarPostBody = &body + 1033   datadog.SetAuthKeys( + 1034   ctx, + 1035   &localVarHeaderParams, + 1036   [2]string{"apiKeyAuth", "DD-API-KEY"}, + 1037   [2]string{"appKeyAuth", "DD-APPLICATION-KEY"}, + 1038   ) + 1039   req, err := a.Client.PrepareRequest(ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, nil) + 1040   if err != nil { + 1041   return localVarReturnValue, nil, err + 1042   } + 1043   + 1044   localVarHTTPResponse, err := a.Client.CallAPI(req) + 1045   if err != nil || localVarHTTPResponse == nil { + 1046   return localVarReturnValue, localVarHTTPResponse, err + 1047   } + 1048   + 1049   localVarBody, err := datadog.ReadBody(localVarHTTPResponse) + 1050   if err != nil { + 1051   return localVarReturnValue, localVarHTTPResponse, err + 1052   } + 1053   + 1054   if localVarHTTPResponse.StatusCode >= 300 { + 1055   newErr := datadog.GenericOpenAPIError{ + 1056   ErrorBody: localVarBody, + 1057   ErrorMessage: localVarHTTPResponse.Status, + 1058   } + 1059   if localVarHTTPResponse.StatusCode == 400 || localVarHTTPResponse.StatusCode == 403 || localVarHTTPResponse.StatusCode == 404 || localVarHTTPResponse.StatusCode == 429 { + 1060   var v APIErrorResponse + 1061   err = a.Client.Decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1062   if err != nil { + 1063   return localVarReturnValue, localVarHTTPResponse, newErr + 1064   } + 1065   newErr.ErrorModel = v + 1066   } + 1067   return localVarReturnValue, localVarHTTPResponse, newErr + 1068   } + 1069   + 1070   err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + 1071   if err != nil { + 1072   newErr := datadog.GenericOpenAPIError{ + 1073   ErrorBody: localVarBody, + 1074   ErrorMessage: err.Error(), + 1075   } + 1076   return localVarReturnValue, localVarHTTPResponse, newErr + 1077   } + 1078   + 1079   return localVarReturnValue, localVarHTTPResponse, nil + 1080  } + 1081   + 1082  // NewDashboardsApi Returns NewDashboardsApi. + 1083  func NewDashboardsApi(client *datadog.APIClient) *DashboardsApi { + 1084   return &DashboardsApi{ + 1085   Client: client, + 1086   } + 1087  } + 1088