Skip to content

Commit

Permalink
Regenerate client from commit 0d76884c of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Sep 25, 2024
1 parent e844a9b commit f440ff6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-24 18:16:27.931184",
"spec_repo_commit": "2eb52c63"
"regenerated": "2024-09-25 14:32:13.099536",
"spec_repo_commit": "0d76884c"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-09-24 18:16:27.945962",
"spec_repo_commit": "2eb52c63"
"regenerated": "2024-09-25 14:32:13.114777",
"spec_repo_commit": "0d76884c"
}
}
}
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6559,6 +6559,12 @@ components:
example: 1693491974000000000
format: int64
type: integer
team:
description: Name of the team owning the deployed service. If not provided,
this is automatically populated with the team associated with the service
in the Service Catalog.
example: backend
type: string
version:
description: Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/).
example: v1.12.07
Expand Down
37 changes: 36 additions & 1 deletion api/datadogV2/model_dora_deployment_request_attributes.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ type DORADeploymentRequestAttributes struct {
Service string `json:"service"`
// Unix timestamp when the deployment started. It must be in nanoseconds, milliseconds, or seconds.
StartedAt int64 `json:"started_at"`
// Name of the team owning the deployed service. If not provided, this is automatically populated with the team associated with the service in the Service Catalog.
Team *string `json:"team,omitempty"`
// Version to correlate with [APM Deployment Tracking](https://docs.datadoghq.com/tracing/services/deployment_tracking/).
Version *string `json:"version,omitempty"`
// UnparsedObject contains the raw value of the object if there was an error when deserializing into the struct
Expand Down Expand Up @@ -204,6 +206,34 @@ func (o *DORADeploymentRequestAttributes) SetStartedAt(v int64) {
o.StartedAt = v
}

// GetTeam returns the Team field value if set, zero value otherwise.
func (o *DORADeploymentRequestAttributes) GetTeam() string {
if o == nil || o.Team == nil {
var ret string
return ret
}
return *o.Team
}

// GetTeamOk returns a tuple with the Team field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DORADeploymentRequestAttributes) GetTeamOk() (*string, bool) {
if o == nil || o.Team == nil {
return nil, false
}
return o.Team, true
}

// HasTeam returns a boolean if a field has been set.
func (o *DORADeploymentRequestAttributes) HasTeam() bool {
return o != nil && o.Team != nil
}

// SetTeam gets a reference to the given string and assigns it to the Team field.
func (o *DORADeploymentRequestAttributes) SetTeam(v string) {
o.Team = &v
}

// GetVersion returns the Version field value if set, zero value otherwise.
func (o *DORADeploymentRequestAttributes) GetVersion() string {
if o == nil || o.Version == nil {
Expand Down Expand Up @@ -250,6 +280,9 @@ func (o DORADeploymentRequestAttributes) MarshalJSON() ([]byte, error) {
}
toSerialize["service"] = o.Service
toSerialize["started_at"] = o.StartedAt
if o.Team != nil {
toSerialize["team"] = o.Team
}
if o.Version != nil {
toSerialize["version"] = o.Version
}
Expand All @@ -269,6 +302,7 @@ func (o *DORADeploymentRequestAttributes) UnmarshalJSON(bytes []byte) (err error
Id *string `json:"id,omitempty"`
Service *string `json:"service"`
StartedAt *int64 `json:"started_at"`
Team *string `json:"team,omitempty"`
Version *string `json:"version,omitempty"`
}{}
if err = datadog.Unmarshal(bytes, &all); err != nil {
Expand All @@ -285,7 +319,7 @@ func (o *DORADeploymentRequestAttributes) UnmarshalJSON(bytes []byte) (err error
}
additionalProperties := make(map[string]interface{})
if err = datadog.Unmarshal(bytes, &additionalProperties); err == nil {
datadog.DeleteKeys(additionalProperties, &[]string{"env", "finished_at", "git", "id", "service", "started_at", "version"})
datadog.DeleteKeys(additionalProperties, &[]string{"env", "finished_at", "git", "id", "service", "started_at", "team", "version"})
} else {
return err
}
Expand All @@ -300,6 +334,7 @@ func (o *DORADeploymentRequestAttributes) UnmarshalJSON(bytes []byte) (err error
o.Id = all.Id
o.Service = *all.Service
o.StartedAt = *all.StartedAt
o.Team = all.Team
o.Version = all.Version

if len(additionalProperties) > 0 {
Expand Down

0 comments on commit f440ff6

Please sign in to comment.