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

Generated code from DataDog/datadog-api-spec#311 #211

Merged
merged 1 commit into from
Apr 8, 2020
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
2 changes: 1 addition & 1 deletion .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"codegen_version": "4.3.0",
"info_version": "1",
"image": "datadog/apigentools:git-936dfd6",
"spec_repo_commit": "95ba240"
"spec_repo_commit": "abf69f4"
}
8 changes: 7 additions & 1 deletion api/v1/datadog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,13 @@ Class | Method | HTTP request | Description
- [HostTags](docs/HostTags.md)
- [HostTotals](docs/HostTotals.md)
- [IFrameWidgetDefinition](docs/IFrameWidgetDefinition.md)
- [IPPrefixes](docs/IPPrefixes.md)
- [IPPrefixesAPI](docs/IPPrefixesAPI.md)
- [IPPrefixesAPM](docs/IPPrefixesAPM.md)
- [IPPrefixesAgents](docs/IPPrefixesAgents.md)
- [IPPrefixesLogs](docs/IPPrefixesLogs.md)
- [IPPrefixesProcess](docs/IPPrefixesProcess.md)
- [IPPrefixesSynthetics](docs/IPPrefixesSynthetics.md)
- [IPPrefixesWebhooks](docs/IPPrefixesWebhooks.md)
- [IPRanges](docs/IPRanges.md)
- [IdpFormData](docs/IdpFormData.md)
- [IdpResponse](docs/IdpResponse.md)
Expand Down
156 changes: 147 additions & 9 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7942,8 +7942,146 @@ components:
- type
- url
type: object
IPPrefixes:
description: TODO.
IPPrefixesAPI:
description: Available prefix information for the API endpoints.
example:
prefixes_ipv4:
- prefixes_ipv4
- prefixes_ipv4
prefixes_ipv6:
- prefixes_ipv6
- prefixes_ipv6
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesAPM:
description: Available prefix information for the APM endpoints.
example:
prefixes_ipv4:
- prefixes_ipv4
- prefixes_ipv4
prefixes_ipv6:
- prefixes_ipv6
- prefixes_ipv6
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesAgents:
description: Available prefix information for the Agent endpoints.
example:
prefixes_ipv4:
- prefixes_ipv4
- prefixes_ipv4
prefixes_ipv6:
- prefixes_ipv6
- prefixes_ipv6
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesLogs:
description: Available prefix information for the Logs endpoints.
example:
prefixes_ipv4:
- prefixes_ipv4
- prefixes_ipv4
prefixes_ipv6:
- prefixes_ipv6
- prefixes_ipv6
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesProcess:
description: Available prefix information for the Process endpoints.
example:
prefixes_ipv4:
- prefixes_ipv4
- prefixes_ipv4
prefixes_ipv6:
- prefixes_ipv6
- prefixes_ipv6
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesSynthetics:
description: Available prefix information for the Synthetics endpoints.
example:
prefixes_ipv4:
- prefixes_ipv4
- prefixes_ipv4
prefixes_ipv6:
- prefixes_ipv6
- prefixes_ipv6
properties:
prefixes_ipv4:
description: List of IPv4 prefixes.
items:
description: IPv4 prefix
type: string
type: array
prefixes_ipv6:
description: List of IPv6 prefixes.
items:
description: IPv6 prefix
type: string
type: array
type: object
IPPrefixesWebhooks:
description: Available prefix information for the Webhook endpoints.
example:
prefixes_ipv4:
- prefixes_ipv4
Expand Down Expand Up @@ -8021,28 +8159,28 @@ components:
- prefixes_ipv6
properties:
agents:
$ref: '#/components/schemas/IPPrefixes'
$ref: '#/components/schemas/IPPrefixesAgents'
api:
$ref: '#/components/schemas/IPPrefixes'
$ref: '#/components/schemas/IPPrefixesAPI'
apm:
$ref: '#/components/schemas/IPPrefixes'
$ref: '#/components/schemas/IPPrefixesAPM'
logs:
$ref: '#/components/schemas/IPPrefixes'
$ref: '#/components/schemas/IPPrefixesLogs'
modified:
description: Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`.
example: 2019-10-31-20-00-00
type: string
process:
$ref: '#/components/schemas/IPPrefixes'
$ref: '#/components/schemas/IPPrefixesProcess'
synthetics:
$ref: '#/components/schemas/IPPrefixes'
$ref: '#/components/schemas/IPPrefixesSynthetics'
version:
description: Version of the IP list.
example: 11
format: int64
type: integer
webhooks:
$ref: '#/components/schemas/IPPrefixes'
$ref: '#/components/schemas/IPPrefixesWebhooks'
type: object
IdpFormData:
description: TODO.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# IPPrefixes
# IPPrefixesAPI

## Properties

Expand All @@ -9,70 +9,70 @@ Name | Type | Description | Notes

## Methods

### NewIPPrefixes
### NewIPPrefixesAPI

`func NewIPPrefixes() *IPPrefixes`
`func NewIPPrefixesAPI() *IPPrefixesAPI`

NewIPPrefixes instantiates a new IPPrefixes object
NewIPPrefixesAPI instantiates a new IPPrefixesAPI 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

### NewIPPrefixesWithDefaults
### NewIPPrefixesAPIWithDefaults

`func NewIPPrefixesWithDefaults() *IPPrefixes`
`func NewIPPrefixesAPIWithDefaults() *IPPrefixesAPI`

NewIPPrefixesWithDefaults instantiates a new IPPrefixes object
NewIPPrefixesAPIWithDefaults instantiates a new IPPrefixesAPI 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

### GetPrefixesIpv4

`func (o *IPPrefixes) GetPrefixesIpv4() []string`
`func (o *IPPrefixesAPI) GetPrefixesIpv4() []string`

GetPrefixesIpv4 returns the PrefixesIpv4 field if non-nil, zero value otherwise.

### GetPrefixesIpv4Ok

`func (o *IPPrefixes) GetPrefixesIpv4Ok() (*[]string, bool)`
`func (o *IPPrefixesAPI) GetPrefixesIpv4Ok() (*[]string, bool)`

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

### SetPrefixesIpv4

`func (o *IPPrefixes) SetPrefixesIpv4(v []string)`
`func (o *IPPrefixesAPI) SetPrefixesIpv4(v []string)`

SetPrefixesIpv4 sets PrefixesIpv4 field to given value.

### HasPrefixesIpv4

`func (o *IPPrefixes) HasPrefixesIpv4() bool`
`func (o *IPPrefixesAPI) HasPrefixesIpv4() bool`

HasPrefixesIpv4 returns a boolean if a field has been set.

### GetPrefixesIpv6

`func (o *IPPrefixes) GetPrefixesIpv6() []string`
`func (o *IPPrefixesAPI) GetPrefixesIpv6() []string`

GetPrefixesIpv6 returns the PrefixesIpv6 field if non-nil, zero value otherwise.

### GetPrefixesIpv6Ok

`func (o *IPPrefixes) GetPrefixesIpv6Ok() (*[]string, bool)`
`func (o *IPPrefixesAPI) GetPrefixesIpv6Ok() (*[]string, bool)`

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

### SetPrefixesIpv6

`func (o *IPPrefixes) SetPrefixesIpv6(v []string)`
`func (o *IPPrefixesAPI) SetPrefixesIpv6(v []string)`

SetPrefixesIpv6 sets PrefixesIpv6 field to given value.

### HasPrefixesIpv6

`func (o *IPPrefixes) HasPrefixesIpv6() bool`
`func (o *IPPrefixesAPI) HasPrefixesIpv6() bool`

HasPrefixesIpv6 returns a boolean if a field has been set.

Expand Down
82 changes: 82 additions & 0 deletions api/v1/datadog/docs/IPPrefixesAPM.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# IPPrefixesAPM

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**PrefixesIpv4** | Pointer to **[]string** | List of IPv4 prefixes. | [optional]
**PrefixesIpv6** | Pointer to **[]string** | List of IPv6 prefixes. | [optional]

## Methods

### NewIPPrefixesAPM

`func NewIPPrefixesAPM() *IPPrefixesAPM`

NewIPPrefixesAPM instantiates a new IPPrefixesAPM 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

### NewIPPrefixesAPMWithDefaults

`func NewIPPrefixesAPMWithDefaults() *IPPrefixesAPM`

NewIPPrefixesAPMWithDefaults instantiates a new IPPrefixesAPM 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

### GetPrefixesIpv4

`func (o *IPPrefixesAPM) GetPrefixesIpv4() []string`

GetPrefixesIpv4 returns the PrefixesIpv4 field if non-nil, zero value otherwise.

### GetPrefixesIpv4Ok

`func (o *IPPrefixesAPM) GetPrefixesIpv4Ok() (*[]string, bool)`

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

### SetPrefixesIpv4

`func (o *IPPrefixesAPM) SetPrefixesIpv4(v []string)`

SetPrefixesIpv4 sets PrefixesIpv4 field to given value.

### HasPrefixesIpv4

`func (o *IPPrefixesAPM) HasPrefixesIpv4() bool`

HasPrefixesIpv4 returns a boolean if a field has been set.

### GetPrefixesIpv6

`func (o *IPPrefixesAPM) GetPrefixesIpv6() []string`

GetPrefixesIpv6 returns the PrefixesIpv6 field if non-nil, zero value otherwise.

### GetPrefixesIpv6Ok

`func (o *IPPrefixesAPM) GetPrefixesIpv6Ok() (*[]string, bool)`

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

### SetPrefixesIpv6

`func (o *IPPrefixesAPM) SetPrefixesIpv6(v []string)`

SetPrefixesIpv6 sets PrefixesIpv6 field to given value.

### HasPrefixesIpv6

`func (o *IPPrefixesAPM) HasPrefixesIpv6() bool`

HasPrefixesIpv6 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)


Loading