Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enums with varnames #650

Merged
merged 1 commit into from
Jan 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.4.1.dev2",
"regenerated": "2021-01-11 15:35:14.289149",
"spec_repo_commit": "bfe8474"
"regenerated": "2021-01-12 13:55:42.671006",
"spec_repo_commit": "5570882"
},
"v2": {
"apigentools_version": "1.4.1.dev2",
"regenerated": "2021-01-11 15:35:21.146489",
"spec_repo_commit": "bfe8474"
"regenerated": "2021-01-12 13:55:49.494829",
"spec_repo_commit": "5570882"
}
}
}
2 changes: 2 additions & 0 deletions api/v2/datadog/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ docs/IncidentFieldAttributesSingleValueType.md
docs/IncidentFieldAttributesValueType.md
docs/IncidentIntegrationMetadataType.md
docs/IncidentPostmortemType.md
docs/IncidentRelatedObject.md
docs/IncidentResponse.md
docs/IncidentResponseAttributes.md
docs/IncidentResponseData.md
Expand Down Expand Up @@ -355,6 +356,7 @@ model_incident_field_attributes_single_value_type.go
model_incident_field_attributes_value_type.go
model_incident_integration_metadata_type.go
model_incident_postmortem_type.go
model_incident_related_object.go
model_incident_response.go
model_incident_response_attributes.go
model_incident_response_data.go
Expand Down
1 change: 1 addition & 0 deletions api/v2/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ Class | Method | HTTP request | Description
- [IncidentFieldAttributesValueType](docs/IncidentFieldAttributesValueType.md)
- [IncidentIntegrationMetadataType](docs/IncidentIntegrationMetadataType.md)
- [IncidentPostmortemType](docs/IncidentPostmortemType.md)
- [IncidentRelatedObject](docs/IncidentRelatedObject.md)
- [IncidentResponse](docs/IncidentResponse.md)
- [IncidentResponseAttributes](docs/IncidentResponseAttributes.md)
- [IncidentResponseData](docs/IncidentResponseData.md)
Expand Down
45 changes: 17 additions & 28 deletions api/v2/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1036,9 +1036,7 @@ paths:
required: false
schema:
items:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
type: array
style: form
- description: Size for a given page.
Expand Down Expand Up @@ -1237,9 +1235,7 @@ paths:
required: false
schema:
items:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
type: array
style: form
responses:
Expand Down Expand Up @@ -3245,9 +3241,7 @@ paths:
name: include
required: false
schema:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
style: form
- description: Size for a given page.
explode: true
Expand Down Expand Up @@ -3454,9 +3448,7 @@ paths:
name: include
required: false
schema:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
style: form
responses:
"200":
Expand Down Expand Up @@ -3571,9 +3563,7 @@ paths:
name: include
required: false
schema:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
style: form
- description: Size for a given page.
explode: true
Expand Down Expand Up @@ -3780,9 +3770,7 @@ paths:
name: include
required: false
schema:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
style: form
responses:
"200":
Expand Down Expand Up @@ -4494,9 +4482,7 @@ components:
required: false
schema:
items:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
type: array
style: form
IncidentServiceIDPathParameter:
Expand All @@ -4516,9 +4502,7 @@ components:
name: include
required: false
schema:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
style: form
IncidentServiceSearchQueryParameter:
description: A search query that filters services by name.
Expand Down Expand Up @@ -4547,9 +4531,7 @@ components:
name: include
required: false
schema:
enum:
- users
type: string
$ref: '#/components/schemas/IncidentRelatedObject'
style: form
IncidentTeamSearchQueryParameter:
description: A search query that filters teams by name.
Expand Down Expand Up @@ -5617,6 +5599,13 @@ components:
type: string
x-enum-varnames:
- INCIDENT_POSTMORTEMS
IncidentRelatedObject:
description: Object related to an incident.
enum:
- users
type: string
x-enum-varnames:
- USERS
IncidentResponse:
description: Response with an incident.
example:
Expand Down Expand Up @@ -6101,7 +6090,7 @@ components:
type: object
IncidentServiceType:
default: services
description: Incident Service resource type.
description: Incident service resource type.
enum:
- services
example: services
Expand Down
8 changes: 4 additions & 4 deletions api/v2/datadog/api_incident_services.go

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

8 changes: 4 additions & 4 deletions api/v2/datadog/api_incident_teams.go

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

8 changes: 4 additions & 4 deletions api/v2/datadog/api_incidents.go

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

11 changes: 11 additions & 0 deletions api/v2/datadog/docs/IncidentRelatedObject.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# IncidentRelatedObject

## Enum


* `USERS` (value: `"users"`)


[[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/IncidentServicesApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func main() {
)

serviceId := "serviceId_example" // string | The ID of the incident service.
include := "include_example" // string | Specifies which types of related objects should be included in the response. (optional)
include := datadog.IncidentRelatedObject("users") // IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)

configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("GetIncidentService", true)
Expand Down Expand Up @@ -247,7 +247,7 @@ Other parameters are passed through a pointer to a apiGetIncidentServiceRequest
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**include** | **string** | Specifies which types of related objects should be included in the response. |
**include** | [**IncidentRelatedObject**](IncidentRelatedObject.md) | Specifies which types of related objects should be included in the response. |

### Return type

Expand Down Expand Up @@ -302,7 +302,7 @@ func main() {
},
)

include := "include_example" // string | Specifies which types of related objects should be included in the response. (optional)
include := datadog.IncidentRelatedObject("users") // IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
pageSize := int64(789) // int64 | Size for a given page. (optional) (default to 10)
pageOffset := int64(789) // int64 | Specific offset to use as the beginning of the returned page. (optional) (default to 0)
filter := "ExampleServiceName" // string | A search query that filters services by name. (optional)
Expand Down Expand Up @@ -333,7 +333,7 @@ Other parameters are passed through a pointer to a apiListIncidentServicesReques

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**include** | **string** | Specifies which types of related objects should be included in the response. |
**include** | [**IncidentRelatedObject**](IncidentRelatedObject.md) | Specifies which types of related objects should be included in the response. |
**pageSize** | **int64** | Size for a given page. | [default to 10]
**pageOffset** | **int64** | Specific offset to use as the beginning of the returned page. | [default to 0]
**filter** | **string** | A search query that filters services by name. |
Expand Down
8 changes: 4 additions & 4 deletions api/v2/datadog/docs/IncidentTeamsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func main() {
)

teamId := "teamId_example" // string | The ID of the incident team.
include := "include_example" // string | Specifies which types of related objects should be included in the response. (optional)
include := datadog.IncidentRelatedObject("users") // IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)

configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("GetIncidentTeam", true)
Expand Down Expand Up @@ -247,7 +247,7 @@ Other parameters are passed through a pointer to a apiGetIncidentTeamRequest str
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**include** | **string** | Specifies which types of related objects should be included in the response. |
**include** | [**IncidentRelatedObject**](IncidentRelatedObject.md) | Specifies which types of related objects should be included in the response. |

### Return type

Expand Down Expand Up @@ -302,7 +302,7 @@ func main() {
},
)

include := "include_example" // string | Specifies which types of related objects should be included in the response. (optional)
include := datadog.IncidentRelatedObject("users") // IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
pageSize := int64(789) // int64 | Size for a given page. (optional) (default to 10)
pageOffset := int64(789) // int64 | Specific offset to use as the beginning of the returned page. (optional) (default to 0)
filter := "ExampleTeamName" // string | A search query that filters teams by name. (optional)
Expand Down Expand Up @@ -333,7 +333,7 @@ Other parameters are passed through a pointer to a apiListIncidentTeamsRequest s

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**include** | **string** | Specifies which types of related objects should be included in the response. |
**include** | [**IncidentRelatedObject**](IncidentRelatedObject.md) | Specifies which types of related objects should be included in the response. |
**pageSize** | **int64** | Size for a given page. | [default to 10]
**pageOffset** | **int64** | Specific offset to use as the beginning of the returned page. | [default to 0]
**filter** | **string** | A search query that filters teams by name. |
Expand Down
8 changes: 4 additions & 4 deletions api/v2/datadog/docs/IncidentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func main() {
)

incidentId := "incidentId_example" // string | The UUID the incident.
include := []string{"Include_example"} // []string | Specifies which types of related objects should be included in the response. (optional)
include := []datadog.IncidentRelatedObject{datadog.IncidentRelatedObject("users")} // []IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)

configuration := datadog.NewConfiguration()
configuration.SetUnstableOperationEnabled("GetIncident", true)
Expand Down Expand Up @@ -247,7 +247,7 @@ Other parameters are passed through a pointer to a apiGetIncidentRequest struct
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------

**include** | **[]string** | Specifies which types of related objects should be included in the response. |
**include** | [**[]IncidentRelatedObject**](IncidentRelatedObject.md) | Specifies which types of related objects should be included in the response. |

### Return type

Expand Down Expand Up @@ -302,7 +302,7 @@ func main() {
},
)

include := []string{"Include_example"} // []string | Specifies which types of related objects should be included in the response. (optional)
include := []datadog.IncidentRelatedObject{datadog.IncidentRelatedObject("users")} // []IncidentRelatedObject | Specifies which types of related objects should be included in the response. (optional)
pageSize := int64(789) // int64 | Size for a given page. (optional) (default to 10)
pageOffset := int64(789) // int64 | Specific offset to use as the beginning of the returned page. (optional) (default to 0)

Expand Down Expand Up @@ -332,7 +332,7 @@ Other parameters are passed through a pointer to a apiListIncidentsRequest struc

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**include** | **[]string** | Specifies which types of related objects should be included in the response. |
**include** | [**[]IncidentRelatedObject**](IncidentRelatedObject.md) | Specifies which types of related objects should be included in the response. |
**pageSize** | **int64** | Size for a given page. | [default to 10]
**pageOffset** | **int64** | Specific offset to use as the beginning of the returned page. | [default to 0]

Expand Down
Loading