Skip to content

Commit

Permalink
Regenerate client from commit c82274a of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Feb 18, 2022
1 parent cf95ca7 commit c8d0415
Show file tree
Hide file tree
Showing 37 changed files with 868 additions and 278 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.2",
"regenerated": "2022-02-17 16:22:58.293160",
"spec_repo_commit": "3d3ffe1"
"regenerated": "2022-02-18 08:32:26.002940",
"spec_repo_commit": "c82274a"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-02-17 16:22:58.307044",
"spec_repo_commit": "3d3ffe1"
"regenerated": "2022-02-18 08:32:26.015709",
"spec_repo_commit": "c82274a"
}
}
}
37 changes: 28 additions & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1431,10 +1431,10 @@ components:
description: The relationships the incident will have with other resources once
created.
properties:
commander:
$ref: '#/components/schemas/RelationshipToUser'
commander_user:
$ref: '#/components/schemas/NullableRelationshipToUser'
required:
- commander
- commander_user
type: object
IncidentCreateRequest:
description: Create request for an incident.
Expand Down Expand Up @@ -1718,7 +1718,7 @@ components:
description: The incident's relationships from a response.
properties:
commander_user:
$ref: '#/components/schemas/RelationshipToUser'
$ref: '#/components/schemas/NullableRelationshipToUser'
created_by_user:
$ref: '#/components/schemas/RelationshipToUser'
integrations:
Expand Down Expand Up @@ -2165,13 +2165,9 @@ components:
description: The incident's relationships for an update request.
properties:
commander_user:
$ref: '#/components/schemas/RelationshipToUser'
created_by_user:
$ref: '#/components/schemas/RelationshipToUser'
$ref: '#/components/schemas/NullableRelationshipToUser'
integrations:
$ref: '#/components/schemas/RelationshipToIncidentIntegrationMetadatas'
last_modified_by_user:
$ref: '#/components/schemas/RelationshipToUser'
postmortem:
$ref: '#/components/schemas/RelationshipToIncidentPostmortem'
type: object
Expand Down Expand Up @@ -3938,6 +3934,28 @@ components:
type: array
readOnly: true
type: object
NullableRelationshipToUser:
description: Relationship to user.
properties:
data:
$ref: '#/components/schemas/NullableRelationshipToUserData'
required:
- data
type: object
NullableRelationshipToUserData:
description: Relationship to user object.
nullable: true
properties:
id:
description: A unique identifier that represents the user.
example: 00000000-0000-0000-0000-000000000000
type: string
type:
$ref: '#/components/schemas/UsersType'
required:
- id
- type
type: object
Organization:
description: Organization object.
properties:
Expand Down Expand Up @@ -7145,6 +7163,7 @@ paths:
operationId: UpdateIncident
parameters:
- $ref: '#/components/parameters/IncidentIDPathParameter'
- $ref: '#/components/parameters/IncidentIncludeQueryParameter'
requestBody:
content:
application/json:
Expand Down
4 changes: 4 additions & 0 deletions api/v2/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,8 @@ docs/MetricVolumesResponse.md
docs/MetricsAndMetricTagConfigurations.md
docs/MetricsAndMetricTagConfigurationsResponse.md
docs/MetricsApi.md
docs/NullableRelationshipToUser.md
docs/NullableRelationshipToUserData.md
docs/Organization.md
docs/OrganizationAttributes.md
docs/OrganizationsType.md
Expand Down Expand Up @@ -662,6 +664,8 @@ model_metric_volumes.go
model_metric_volumes_response.go
model_metrics_and_metric_tag_configurations.go
model_metrics_and_metric_tag_configurations_response.go
model_nullable_relationship_to_user.go
model_nullable_relationship_to_user_data.go
model_organization.go
model_organization_attributes.go
model_organizations_type.go
Expand Down
2 changes: 2 additions & 0 deletions api/v2/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ All URIs are relative to *https://api.datadoghq.com*
- [MetricVolumesResponse](docs/MetricVolumesResponse.md)
- [MetricsAndMetricTagConfigurations](docs/MetricsAndMetricTagConfigurations.md)
- [MetricsAndMetricTagConfigurationsResponse](docs/MetricsAndMetricTagConfigurationsResponse.md)
- [NullableRelationshipToUser](docs/NullableRelationshipToUser.md)
- [NullableRelationshipToUserData](docs/NullableRelationshipToUserData.md)
- [Organization](docs/Organization.md)
- [OrganizationAttributes](docs/OrganizationAttributes.md)
- [OrganizationsType](docs/OrganizationsType.md)
Expand Down
28 changes: 27 additions & 1 deletion api/v2/datadog/api_incidents.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions api/v2/datadog/docs/IncidentCreateRelationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

## Properties

| Name | Type | Description | Notes |
| ------------- | ----------------------------------------------- | ----------- | ----- |
| **Commander** | [**RelationshipToUser**](RelationshipToUser.md) | |
| Name | Type | Description | Notes |
| ----------------- | --------------------------------------------------------------- | ----------- | ----- |
| **CommanderUser** | [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | |

## Methods

### NewIncidentCreateRelationships

`func NewIncidentCreateRelationships(commander RelationshipToUser) *IncidentCreateRelationships`
`func NewIncidentCreateRelationships(commanderUser NullableRelationshipToUser) *IncidentCreateRelationships`

NewIncidentCreateRelationships instantiates a new IncidentCreateRelationships object.
This constructor will assign default values to properties that have it defined,
Expand All @@ -25,23 +25,23 @@ NewIncidentCreateRelationshipsWithDefaults instantiates a new IncidentCreateRela
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.

### GetCommander
### GetCommanderUser

`func (o *IncidentCreateRelationships) GetCommander() RelationshipToUser`
`func (o *IncidentCreateRelationships) GetCommanderUser() NullableRelationshipToUser`

GetCommander returns the Commander field if non-nil, zero value otherwise.
GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise.

### GetCommanderOk
### GetCommanderUserOk

`func (o *IncidentCreateRelationships) GetCommanderOk() (*RelationshipToUser, bool)`
`func (o *IncidentCreateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`

GetCommanderOk returns a tuple with the Commander field if it's non-nil, zero value otherwise
GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCommander
### SetCommanderUser

`func (o *IncidentCreateRelationships) SetCommander(v RelationshipToUser)`
`func (o *IncidentCreateRelationships) SetCommanderUser(v NullableRelationshipToUser)`

SetCommander sets Commander field to given value.
SetCommanderUser sets CommanderUser field to given value.

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
8 changes: 4 additions & 4 deletions api/v2/datadog/docs/IncidentResponseRelationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Name | Type | Description | Notes |
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] |
| **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
| **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
Expand All @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set.

### GetCommanderUser

`func (o *IncidentResponseRelationships) GetCommanderUser() RelationshipToUser`
`func (o *IncidentResponseRelationships) GetCommanderUser() NullableRelationshipToUser`

GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise.

### GetCommanderUserOk

`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)`
`func (o *IncidentResponseRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`

GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCommanderUser

`func (o *IncidentResponseRelationships) SetCommanderUser(v RelationshipToUser)`
`func (o *IncidentResponseRelationships) SetCommanderUser(v NullableRelationshipToUser)`

SetCommanderUser sets CommanderUser field to given value.

Expand Down
68 changes: 8 additions & 60 deletions api/v2/datadog/docs/IncidentUpdateRelationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

## Properties

| Name | Type | Description | Notes |
| ---------------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
| **CommanderUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **CreatedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
| **LastModifiedByUser** | Pointer to [**RelationshipToUser**](RelationshipToUser.md) | | [optional] |
| **Postmortem** | Pointer to [**RelationshipToIncidentPostmortem**](RelationshipToIncidentPostmortem.md) | | [optional] |
| Name | Type | Description | Notes |
| ----------------- | ---------------------------------------------------------------------------------------------------------- | ----------- | ---------- |
| **CommanderUser** | Pointer to [**NullableRelationshipToUser**](NullableRelationshipToUser.md) | | [optional] |
| **Integrations** | Pointer to [**RelationshipToIncidentIntegrationMetadatas**](RelationshipToIncidentIntegrationMetadatas.md) | | [optional] |
| **Postmortem** | Pointer to [**RelationshipToIncidentPostmortem**](RelationshipToIncidentPostmortem.md) | | [optional] |

## Methods

Expand All @@ -31,20 +29,20 @@ but it doesn't guarantee that properties required by API are set.

### GetCommanderUser

`func (o *IncidentUpdateRelationships) GetCommanderUser() RelationshipToUser`
`func (o *IncidentUpdateRelationships) GetCommanderUser() NullableRelationshipToUser`

GetCommanderUser returns the CommanderUser field if non-nil, zero value otherwise.

### GetCommanderUserOk

`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*RelationshipToUser, bool)`
`func (o *IncidentUpdateRelationships) GetCommanderUserOk() (*NullableRelationshipToUser, bool)`

GetCommanderUserOk returns a tuple with the CommanderUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCommanderUser

`func (o *IncidentUpdateRelationships) SetCommanderUser(v RelationshipToUser)`
`func (o *IncidentUpdateRelationships) SetCommanderUser(v NullableRelationshipToUser)`

SetCommanderUser sets CommanderUser field to given value.

Expand All @@ -54,31 +52,6 @@ SetCommanderUser sets CommanderUser field to given value.

HasCommanderUser returns a boolean if a field has been set.

### GetCreatedByUser

`func (o *IncidentUpdateRelationships) GetCreatedByUser() RelationshipToUser`

GetCreatedByUser returns the CreatedByUser field if non-nil, zero value otherwise.

### GetCreatedByUserOk

`func (o *IncidentUpdateRelationships) GetCreatedByUserOk() (*RelationshipToUser, bool)`

GetCreatedByUserOk returns a tuple with the CreatedByUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetCreatedByUser

`func (o *IncidentUpdateRelationships) SetCreatedByUser(v RelationshipToUser)`

SetCreatedByUser sets CreatedByUser field to given value.

### HasCreatedByUser

`func (o *IncidentUpdateRelationships) HasCreatedByUser() bool`

HasCreatedByUser returns a boolean if a field has been set.

### GetIntegrations

`func (o *IncidentUpdateRelationships) GetIntegrations() RelationshipToIncidentIntegrationMetadatas`
Expand All @@ -104,31 +77,6 @@ SetIntegrations sets Integrations field to given value.

HasIntegrations returns a boolean if a field has been set.

### GetLastModifiedByUser

`func (o *IncidentUpdateRelationships) GetLastModifiedByUser() RelationshipToUser`

GetLastModifiedByUser returns the LastModifiedByUser field if non-nil, zero value otherwise.

### GetLastModifiedByUserOk

`func (o *IncidentUpdateRelationships) GetLastModifiedByUserOk() (*RelationshipToUser, bool)`

GetLastModifiedByUserOk returns a tuple with the LastModifiedByUser field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetLastModifiedByUser

`func (o *IncidentUpdateRelationships) SetLastModifiedByUser(v RelationshipToUser)`

SetLastModifiedByUser sets LastModifiedByUser field to given value.

### HasLastModifiedByUser

`func (o *IncidentUpdateRelationships) HasLastModifiedByUser() bool`

HasLastModifiedByUser returns a boolean if a field has been set.

### GetPostmortem

`func (o *IncidentUpdateRelationships) GetPostmortem() RelationshipToIncidentPostmortem`
Expand Down
Loading

0 comments on commit c8d0415

Please sign in to comment.