From 5528d8f7546351189834289572642138b45843f4 Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Tue, 21 Dec 2021 19:44:11 +0000 Subject: [PATCH] Regenerate client from commit 6a9d263 of spec repo --- .apigentools-info | 8 +- .generator/schemas/v1/openapi.yaml | 24 ++++++ api/v1/datadog/docs/UsageAuditLogsHour.md | 52 +++++++++++++ api/v1/datadog/docs/UsageCWSHour.md | 52 +++++++++++++ ...UsageCloudSecurityPostureManagementHour.md | 52 +++++++++++++ api/v1/datadog/docs/UsageDBMHour.md | 52 +++++++++++++ api/v1/datadog/model_usage_audit_logs_hour.go | 78 +++++++++++++++++++ ..._cloud_security_posture_management_hour.go | 78 +++++++++++++++++++ api/v1/datadog/model_usage_cws_hour.go | 78 +++++++++++++++++++ api/v1/datadog/model_usage_dbm_hour.go | 78 +++++++++++++++++++ 10 files changed, 548 insertions(+), 4 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index d45a9986216..c62edda7e35 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-12-20 09:54:39.711096", - "spec_repo_commit": "d90592c" + "regenerated": "2021-12-21 19:43:20.644849", + "spec_repo_commit": "6a9d263" }, "v2": { "apigentools_version": "1.5.1.dev2", - "regenerated": "2021-12-20 09:54:39.731653", - "spec_repo_commit": "d90592c" + "regenerated": "2021-12-21 19:43:20.666483", + "spec_repo_commit": "6a9d263" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index adbf8e2a3ab..b207e7b0ee1 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -12150,6 +12150,12 @@ components: hour. format: int64 type: integer + org_name: + description: The organization name. + type: string + public_id: + description: The organization public ID. + type: string type: object UsageAuditLogsResponse: description: Response containing the audit logs usage for each hour for a given @@ -12318,6 +12324,12 @@ components: description: The hour for the usage. format: date-time type: string + org_name: + description: The organization name. + type: string + public_id: + description: The organization public ID. + type: string type: object UsageCWSResponse: description: Response containing the Cloud Workload Security usage for each @@ -12347,6 +12359,12 @@ components: description: The hour for the usage. format: date-time type: string + org_name: + description: The organization name. + type: string + public_id: + description: The organization public ID. + type: string type: object UsageCloudSecurityPostureManagementResponse: description: The response containing the Cloud Security Posture Management usage @@ -12436,6 +12454,12 @@ components: description: The hour for the usage. format: date-time type: string + org_name: + description: The organization name. + type: string + public_id: + description: The organization public ID. + type: string type: object UsageDBMResponse: description: Response containing the Database Monitoring usage for each hour diff --git a/api/v1/datadog/docs/UsageAuditLogsHour.md b/api/v1/datadog/docs/UsageAuditLogsHour.md index 6c491d7c6a3..5bcb39547ab 100644 --- a/api/v1/datadog/docs/UsageAuditLogsHour.md +++ b/api/v1/datadog/docs/UsageAuditLogsHour.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ---- | ---- | ----------- | ------ **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] **LinesIndexed** | Pointer to **int64** | The total number of audit logs lines indexed during a given hour. | [optional] +**OrgName** | Pointer to **string** | The organization name. | [optional] +**PublicId** | Pointer to **string** | The organization public ID. | [optional] ## Methods @@ -76,6 +78,56 @@ SetLinesIndexed sets LinesIndexed field to given value. HasLinesIndexed returns a boolean if a field has been set. +### GetOrgName + +`func (o *UsageAuditLogsHour) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *UsageAuditLogsHour) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *UsageAuditLogsHour) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *UsageAuditLogsHour) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetPublicId + +`func (o *UsageAuditLogsHour) GetPublicId() string` + +GetPublicId returns the PublicId field if non-nil, zero value otherwise. + +### GetPublicIdOk + +`func (o *UsageAuditLogsHour) GetPublicIdOk() (*string, bool)` + +GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicId + +`func (o *UsageAuditLogsHour) SetPublicId(v string)` + +SetPublicId sets PublicId field to given value. + +### HasPublicId + +`func (o *UsageAuditLogsHour) HasPublicId() bool` + +HasPublicId returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/docs/UsageCWSHour.md b/api/v1/datadog/docs/UsageCWSHour.md index 09d9fda6368..a0ac6a60e52 100644 --- a/api/v1/datadog/docs/UsageCWSHour.md +++ b/api/v1/datadog/docs/UsageCWSHour.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **CwsContainerCount** | Pointer to **int64** | The total number of Cloud Workload Security container hours from the start of the given hour’s month until the given hour. | [optional] **CwsHostCount** | Pointer to **int64** | The total number of Cloud Workload Security host hours from the start of the given hour’s month until the given hour. | [optional] **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] +**OrgName** | Pointer to **string** | The organization name. | [optional] +**PublicId** | Pointer to **string** | The organization public ID. | [optional] ## Methods @@ -102,6 +104,56 @@ SetHour sets Hour field to given value. HasHour returns a boolean if a field has been set. +### GetOrgName + +`func (o *UsageCWSHour) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *UsageCWSHour) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *UsageCWSHour) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *UsageCWSHour) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetPublicId + +`func (o *UsageCWSHour) GetPublicId() string` + +GetPublicId returns the PublicId field if non-nil, zero value otherwise. + +### GetPublicIdOk + +`func (o *UsageCWSHour) GetPublicIdOk() (*string, bool)` + +GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicId + +`func (o *UsageCWSHour) SetPublicId(v string)` + +SetPublicId sets PublicId field to given value. + +### HasPublicId + +`func (o *UsageCWSHour) HasPublicId() bool` + +HasPublicId returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/docs/UsageCloudSecurityPostureManagementHour.md b/api/v1/datadog/docs/UsageCloudSecurityPostureManagementHour.md index cd7355fbc08..37b6032a1c2 100644 --- a/api/v1/datadog/docs/UsageCloudSecurityPostureManagementHour.md +++ b/api/v1/datadog/docs/UsageCloudSecurityPostureManagementHour.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **ContainerCount** | Pointer to **int64** | The total number of Cloud Security Posture Management containers during a given hour. | [optional] **HostCount** | Pointer to **int64** | The total number of Cloud Security Posture Management hosts during a given hour. | [optional] **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] +**OrgName** | Pointer to **string** | The organization name. | [optional] +**PublicId** | Pointer to **string** | The organization public ID. | [optional] ## Methods @@ -102,6 +104,56 @@ SetHour sets Hour field to given value. HasHour returns a boolean if a field has been set. +### GetOrgName + +`func (o *UsageCloudSecurityPostureManagementHour) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *UsageCloudSecurityPostureManagementHour) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *UsageCloudSecurityPostureManagementHour) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *UsageCloudSecurityPostureManagementHour) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetPublicId + +`func (o *UsageCloudSecurityPostureManagementHour) GetPublicId() string` + +GetPublicId returns the PublicId field if non-nil, zero value otherwise. + +### GetPublicIdOk + +`func (o *UsageCloudSecurityPostureManagementHour) GetPublicIdOk() (*string, bool)` + +GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicId + +`func (o *UsageCloudSecurityPostureManagementHour) SetPublicId(v string)` + +SetPublicId sets PublicId field to given value. + +### HasPublicId + +`func (o *UsageCloudSecurityPostureManagementHour) HasPublicId() bool` + +HasPublicId returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/docs/UsageDBMHour.md b/api/v1/datadog/docs/UsageDBMHour.md index 9dfdab28450..2849b06cce9 100644 --- a/api/v1/datadog/docs/UsageDBMHour.md +++ b/api/v1/datadog/docs/UsageDBMHour.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **DbmHostCount** | Pointer to **int64** | The total number of Database Monitoring host hours from the start of the given hour’s month until the given hour. | [optional] **DbmQueriesCount** | Pointer to **int64** | The total number of normalized Database Monitoring queries from the start of the given hour’s month until the given hour. | [optional] **Hour** | Pointer to **time.Time** | The hour for the usage. | [optional] +**OrgName** | Pointer to **string** | The organization name. | [optional] +**PublicId** | Pointer to **string** | The organization public ID. | [optional] ## Methods @@ -102,6 +104,56 @@ SetHour sets Hour field to given value. HasHour returns a boolean if a field has been set. +### GetOrgName + +`func (o *UsageDBMHour) GetOrgName() string` + +GetOrgName returns the OrgName field if non-nil, zero value otherwise. + +### GetOrgNameOk + +`func (o *UsageDBMHour) GetOrgNameOk() (*string, bool)` + +GetOrgNameOk returns a tuple with the OrgName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrgName + +`func (o *UsageDBMHour) SetOrgName(v string)` + +SetOrgName sets OrgName field to given value. + +### HasOrgName + +`func (o *UsageDBMHour) HasOrgName() bool` + +HasOrgName returns a boolean if a field has been set. + +### GetPublicId + +`func (o *UsageDBMHour) GetPublicId() string` + +GetPublicId returns the PublicId field if non-nil, zero value otherwise. + +### GetPublicIdOk + +`func (o *UsageDBMHour) GetPublicIdOk() (*string, bool)` + +GetPublicIdOk returns a tuple with the PublicId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicId + +`func (o *UsageDBMHour) SetPublicId(v string)` + +SetPublicId sets PublicId field to given value. + +### HasPublicId + +`func (o *UsageDBMHour) HasPublicId() bool` + +HasPublicId returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/api/v1/datadog/model_usage_audit_logs_hour.go b/api/v1/datadog/model_usage_audit_logs_hour.go index 29f0a9d9cf4..d351f4fc584 100644 --- a/api/v1/datadog/model_usage_audit_logs_hour.go +++ b/api/v1/datadog/model_usage_audit_logs_hour.go @@ -19,6 +19,10 @@ type UsageAuditLogsHour struct { Hour *time.Time `json:"hour,omitempty"` // The total number of audit logs lines indexed during a given hour. LinesIndexed *int64 `json:"lines_indexed,omitempty"` + // The organization name. + OrgName *string `json:"org_name,omitempty"` + // The organization public ID. + PublicId *string `json:"public_id,omitempty"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:-` } @@ -104,6 +108,70 @@ func (o *UsageAuditLogsHour) SetLinesIndexed(v int64) { o.LinesIndexed = &v } +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *UsageAuditLogsHour) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageAuditLogsHour) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *UsageAuditLogsHour) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *UsageAuditLogsHour) SetOrgName(v string) { + o.OrgName = &v +} + +// GetPublicId returns the PublicId field value if set, zero value otherwise. +func (o *UsageAuditLogsHour) GetPublicId() string { + if o == nil || o.PublicId == nil { + var ret string + return ret + } + return *o.PublicId +} + +// GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageAuditLogsHour) GetPublicIdOk() (*string, bool) { + if o == nil || o.PublicId == nil { + return nil, false + } + return o.PublicId, true +} + +// HasPublicId returns a boolean if a field has been set. +func (o *UsageAuditLogsHour) HasPublicId() bool { + if o != nil && o.PublicId != nil { + return true + } + + return false +} + +// SetPublicId gets a reference to the given string and assigns it to the PublicId field. +func (o *UsageAuditLogsHour) SetPublicId(v string) { + o.PublicId = &v +} + func (o UsageAuditLogsHour) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.UnparsedObject != nil { @@ -115,6 +183,12 @@ func (o UsageAuditLogsHour) MarshalJSON() ([]byte, error) { if o.LinesIndexed != nil { toSerialize["lines_indexed"] = o.LinesIndexed } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.PublicId != nil { + toSerialize["public_id"] = o.PublicId + } return json.Marshal(toSerialize) } @@ -123,6 +197,8 @@ func (o *UsageAuditLogsHour) UnmarshalJSON(bytes []byte) (err error) { all := struct { Hour *time.Time `json:"hour,omitempty"` LinesIndexed *int64 `json:"lines_indexed,omitempty"` + OrgName *string `json:"org_name,omitempty"` + PublicId *string `json:"public_id,omitempty"` }{} err = json.Unmarshal(bytes, &all) if err != nil { @@ -135,6 +211,8 @@ func (o *UsageAuditLogsHour) UnmarshalJSON(bytes []byte) (err error) { } o.Hour = all.Hour o.LinesIndexed = all.LinesIndexed + o.OrgName = all.OrgName + o.PublicId = all.PublicId return nil } diff --git a/api/v1/datadog/model_usage_cloud_security_posture_management_hour.go b/api/v1/datadog/model_usage_cloud_security_posture_management_hour.go index 557574ac03f..1cbdd9a4b67 100644 --- a/api/v1/datadog/model_usage_cloud_security_posture_management_hour.go +++ b/api/v1/datadog/model_usage_cloud_security_posture_management_hour.go @@ -21,6 +21,10 @@ type UsageCloudSecurityPostureManagementHour struct { HostCount *int64 `json:"host_count,omitempty"` // The hour for the usage. Hour *time.Time `json:"hour,omitempty"` + // The organization name. + OrgName *string `json:"org_name,omitempty"` + // The organization public ID. + PublicId *string `json:"public_id,omitempty"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:-` } @@ -138,6 +142,70 @@ func (o *UsageCloudSecurityPostureManagementHour) SetHour(v time.Time) { o.Hour = &v } +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *UsageCloudSecurityPostureManagementHour) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageCloudSecurityPostureManagementHour) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *UsageCloudSecurityPostureManagementHour) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *UsageCloudSecurityPostureManagementHour) SetOrgName(v string) { + o.OrgName = &v +} + +// GetPublicId returns the PublicId field value if set, zero value otherwise. +func (o *UsageCloudSecurityPostureManagementHour) GetPublicId() string { + if o == nil || o.PublicId == nil { + var ret string + return ret + } + return *o.PublicId +} + +// GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageCloudSecurityPostureManagementHour) GetPublicIdOk() (*string, bool) { + if o == nil || o.PublicId == nil { + return nil, false + } + return o.PublicId, true +} + +// HasPublicId returns a boolean if a field has been set. +func (o *UsageCloudSecurityPostureManagementHour) HasPublicId() bool { + if o != nil && o.PublicId != nil { + return true + } + + return false +} + +// SetPublicId gets a reference to the given string and assigns it to the PublicId field. +func (o *UsageCloudSecurityPostureManagementHour) SetPublicId(v string) { + o.PublicId = &v +} + func (o UsageCloudSecurityPostureManagementHour) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.UnparsedObject != nil { @@ -152,6 +220,12 @@ func (o UsageCloudSecurityPostureManagementHour) MarshalJSON() ([]byte, error) { if o.Hour != nil { toSerialize["hour"] = o.Hour } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.PublicId != nil { + toSerialize["public_id"] = o.PublicId + } return json.Marshal(toSerialize) } @@ -161,6 +235,8 @@ func (o *UsageCloudSecurityPostureManagementHour) UnmarshalJSON(bytes []byte) (e ContainerCount *int64 `json:"container_count,omitempty"` HostCount *int64 `json:"host_count,omitempty"` Hour *time.Time `json:"hour,omitempty"` + OrgName *string `json:"org_name,omitempty"` + PublicId *string `json:"public_id,omitempty"` }{} err = json.Unmarshal(bytes, &all) if err != nil { @@ -174,6 +250,8 @@ func (o *UsageCloudSecurityPostureManagementHour) UnmarshalJSON(bytes []byte) (e o.ContainerCount = all.ContainerCount o.HostCount = all.HostCount o.Hour = all.Hour + o.OrgName = all.OrgName + o.PublicId = all.PublicId return nil } diff --git a/api/v1/datadog/model_usage_cws_hour.go b/api/v1/datadog/model_usage_cws_hour.go index 43c47a89f96..82cc0fcf331 100644 --- a/api/v1/datadog/model_usage_cws_hour.go +++ b/api/v1/datadog/model_usage_cws_hour.go @@ -21,6 +21,10 @@ type UsageCWSHour struct { CwsHostCount *int64 `json:"cws_host_count,omitempty"` // The hour for the usage. Hour *time.Time `json:"hour,omitempty"` + // The organization name. + OrgName *string `json:"org_name,omitempty"` + // The organization public ID. + PublicId *string `json:"public_id,omitempty"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:-` } @@ -138,6 +142,70 @@ func (o *UsageCWSHour) SetHour(v time.Time) { o.Hour = &v } +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *UsageCWSHour) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageCWSHour) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *UsageCWSHour) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *UsageCWSHour) SetOrgName(v string) { + o.OrgName = &v +} + +// GetPublicId returns the PublicId field value if set, zero value otherwise. +func (o *UsageCWSHour) GetPublicId() string { + if o == nil || o.PublicId == nil { + var ret string + return ret + } + return *o.PublicId +} + +// GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageCWSHour) GetPublicIdOk() (*string, bool) { + if o == nil || o.PublicId == nil { + return nil, false + } + return o.PublicId, true +} + +// HasPublicId returns a boolean if a field has been set. +func (o *UsageCWSHour) HasPublicId() bool { + if o != nil && o.PublicId != nil { + return true + } + + return false +} + +// SetPublicId gets a reference to the given string and assigns it to the PublicId field. +func (o *UsageCWSHour) SetPublicId(v string) { + o.PublicId = &v +} + func (o UsageCWSHour) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.UnparsedObject != nil { @@ -152,6 +220,12 @@ func (o UsageCWSHour) MarshalJSON() ([]byte, error) { if o.Hour != nil { toSerialize["hour"] = o.Hour } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.PublicId != nil { + toSerialize["public_id"] = o.PublicId + } return json.Marshal(toSerialize) } @@ -161,6 +235,8 @@ func (o *UsageCWSHour) UnmarshalJSON(bytes []byte) (err error) { CwsContainerCount *int64 `json:"cws_container_count,omitempty"` CwsHostCount *int64 `json:"cws_host_count,omitempty"` Hour *time.Time `json:"hour,omitempty"` + OrgName *string `json:"org_name,omitempty"` + PublicId *string `json:"public_id,omitempty"` }{} err = json.Unmarshal(bytes, &all) if err != nil { @@ -174,6 +250,8 @@ func (o *UsageCWSHour) UnmarshalJSON(bytes []byte) (err error) { o.CwsContainerCount = all.CwsContainerCount o.CwsHostCount = all.CwsHostCount o.Hour = all.Hour + o.OrgName = all.OrgName + o.PublicId = all.PublicId return nil } diff --git a/api/v1/datadog/model_usage_dbm_hour.go b/api/v1/datadog/model_usage_dbm_hour.go index fc42ecf8553..9af1e93720e 100644 --- a/api/v1/datadog/model_usage_dbm_hour.go +++ b/api/v1/datadog/model_usage_dbm_hour.go @@ -21,6 +21,10 @@ type UsageDBMHour struct { DbmQueriesCount *int64 `json:"dbm_queries_count,omitempty"` // The hour for the usage. Hour *time.Time `json:"hour,omitempty"` + // The organization name. + OrgName *string `json:"org_name,omitempty"` + // The organization public ID. + PublicId *string `json:"public_id,omitempty"` // UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct UnparsedObject map[string]interface{} `json:-` } @@ -138,6 +142,70 @@ func (o *UsageDBMHour) SetHour(v time.Time) { o.Hour = &v } +// GetOrgName returns the OrgName field value if set, zero value otherwise. +func (o *UsageDBMHour) GetOrgName() string { + if o == nil || o.OrgName == nil { + var ret string + return ret + } + return *o.OrgName +} + +// GetOrgNameOk returns a tuple with the OrgName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageDBMHour) GetOrgNameOk() (*string, bool) { + if o == nil || o.OrgName == nil { + return nil, false + } + return o.OrgName, true +} + +// HasOrgName returns a boolean if a field has been set. +func (o *UsageDBMHour) HasOrgName() bool { + if o != nil && o.OrgName != nil { + return true + } + + return false +} + +// SetOrgName gets a reference to the given string and assigns it to the OrgName field. +func (o *UsageDBMHour) SetOrgName(v string) { + o.OrgName = &v +} + +// GetPublicId returns the PublicId field value if set, zero value otherwise. +func (o *UsageDBMHour) GetPublicId() string { + if o == nil || o.PublicId == nil { + var ret string + return ret + } + return *o.PublicId +} + +// GetPublicIdOk returns a tuple with the PublicId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UsageDBMHour) GetPublicIdOk() (*string, bool) { + if o == nil || o.PublicId == nil { + return nil, false + } + return o.PublicId, true +} + +// HasPublicId returns a boolean if a field has been set. +func (o *UsageDBMHour) HasPublicId() bool { + if o != nil && o.PublicId != nil { + return true + } + + return false +} + +// SetPublicId gets a reference to the given string and assigns it to the PublicId field. +func (o *UsageDBMHour) SetPublicId(v string) { + o.PublicId = &v +} + func (o UsageDBMHour) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.UnparsedObject != nil { @@ -152,6 +220,12 @@ func (o UsageDBMHour) MarshalJSON() ([]byte, error) { if o.Hour != nil { toSerialize["hour"] = o.Hour } + if o.OrgName != nil { + toSerialize["org_name"] = o.OrgName + } + if o.PublicId != nil { + toSerialize["public_id"] = o.PublicId + } return json.Marshal(toSerialize) } @@ -161,6 +235,8 @@ func (o *UsageDBMHour) UnmarshalJSON(bytes []byte) (err error) { DbmHostCount *int64 `json:"dbm_host_count,omitempty"` DbmQueriesCount *int64 `json:"dbm_queries_count,omitempty"` Hour *time.Time `json:"hour,omitempty"` + OrgName *string `json:"org_name,omitempty"` + PublicId *string `json:"public_id,omitempty"` }{} err = json.Unmarshal(bytes, &all) if err != nil { @@ -174,6 +250,8 @@ func (o *UsageDBMHour) UnmarshalJSON(bytes []byte) (err error) { o.DbmHostCount = all.DbmHostCount o.DbmQueriesCount = all.DbmQueriesCount o.Hour = all.Hour + o.OrgName = all.OrgName + o.PublicId = all.PublicId return nil }