From 1c09b407f65899faadb79302807764d1484f759e Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Wed, 8 Apr 2020 18:32:55 +0000 Subject: [PATCH] Regenerate client from commit abf69f4 of spec repo --- .apigentools-info | 2 +- api/v1/datadog/README.md | 8 +- api/v1/datadog/api/openapi.yaml | 156 +++++++++++++++++- .../docs/{IPPrefixes.md => IPPrefixesAPI.md} | 30 ++-- api/v1/datadog/docs/IPPrefixesAPM.md | 82 +++++++++ api/v1/datadog/docs/IPPrefixesAgents.md | 82 +++++++++ api/v1/datadog/docs/IPPrefixesLogs.md | 82 +++++++++ api/v1/datadog/docs/IPPrefixesProcess.md | 82 +++++++++ api/v1/datadog/docs/IPPrefixesSynthetics.md | 82 +++++++++ api/v1/datadog/docs/IPPrefixesWebhooks.md | 82 +++++++++ api/v1/datadog/docs/IPRanges.md | 56 +++---- api/v1/datadog/model_ip_prefixes_agents.go | 149 +++++++++++++++++ ...p_prefixes.go => model_ip_prefixes_api.go} | 54 +++--- api/v1/datadog/model_ip_prefixes_apm.go | 149 +++++++++++++++++ api/v1/datadog/model_ip_prefixes_logs.go | 149 +++++++++++++++++ api/v1/datadog/model_ip_prefixes_process.go | 149 +++++++++++++++++ .../datadog/model_ip_prefixes_synthetics.go | 149 +++++++++++++++++ api/v1/datadog/model_ip_prefixes_webhooks.go | 149 +++++++++++++++++ api/v1/datadog/model_ip_ranges.go | 88 +++++----- 19 files changed, 1655 insertions(+), 125 deletions(-) rename api/v1/datadog/docs/{IPPrefixes.md => IPPrefixesAPI.md} (70%) create mode 100644 api/v1/datadog/docs/IPPrefixesAPM.md create mode 100644 api/v1/datadog/docs/IPPrefixesAgents.md create mode 100644 api/v1/datadog/docs/IPPrefixesLogs.md create mode 100644 api/v1/datadog/docs/IPPrefixesProcess.md create mode 100644 api/v1/datadog/docs/IPPrefixesSynthetics.md create mode 100644 api/v1/datadog/docs/IPPrefixesWebhooks.md create mode 100644 api/v1/datadog/model_ip_prefixes_agents.go rename api/v1/datadog/{model_ip_prefixes.go => model_ip_prefixes_api.go} (66%) create mode 100644 api/v1/datadog/model_ip_prefixes_apm.go create mode 100644 api/v1/datadog/model_ip_prefixes_logs.go create mode 100644 api/v1/datadog/model_ip_prefixes_process.go create mode 100644 api/v1/datadog/model_ip_prefixes_synthetics.go create mode 100644 api/v1/datadog/model_ip_prefixes_webhooks.go diff --git a/.apigentools-info b/.apigentools-info index cce9d3c076c..ce35a8fe574 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } \ No newline at end of file diff --git a/api/v1/datadog/README.md b/api/v1/datadog/README.md index a87e828003b..60154c6f584 100644 --- a/api/v1/datadog/README.md +++ b/api/v1/datadog/README.md @@ -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) diff --git a/api/v1/datadog/api/openapi.yaml b/api/v1/datadog/api/openapi.yaml index 811a862e013..9295d650261 100644 --- a/api/v1/datadog/api/openapi.yaml +++ b/api/v1/datadog/api/openapi.yaml @@ -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 @@ -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. diff --git a/api/v1/datadog/docs/IPPrefixes.md b/api/v1/datadog/docs/IPPrefixesAPI.md similarity index 70% rename from api/v1/datadog/docs/IPPrefixes.md rename to api/v1/datadog/docs/IPPrefixesAPI.md index 8f48c734348..5d752586a01 100644 --- a/api/v1/datadog/docs/IPPrefixes.md +++ b/api/v1/datadog/docs/IPPrefixesAPI.md @@ -1,4 +1,4 @@ -# IPPrefixes +# IPPrefixesAPI ## Properties @@ -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. diff --git a/api/v1/datadog/docs/IPPrefixesAPM.md b/api/v1/datadog/docs/IPPrefixesAPM.md new file mode 100644 index 00000000000..78e3d39f9b5 --- /dev/null +++ b/api/v1/datadog/docs/IPPrefixesAPM.md @@ -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) + + diff --git a/api/v1/datadog/docs/IPPrefixesAgents.md b/api/v1/datadog/docs/IPPrefixesAgents.md new file mode 100644 index 00000000000..bf1675ff23f --- /dev/null +++ b/api/v1/datadog/docs/IPPrefixesAgents.md @@ -0,0 +1,82 @@ +# IPPrefixesAgents + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrefixesIpv4** | Pointer to **[]string** | List of IPv4 prefixes. | [optional] +**PrefixesIpv6** | Pointer to **[]string** | List of IPv6 prefixes. | [optional] + +## Methods + +### NewIPPrefixesAgents + +`func NewIPPrefixesAgents() *IPPrefixesAgents` + +NewIPPrefixesAgents instantiates a new IPPrefixesAgents 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 + +### NewIPPrefixesAgentsWithDefaults + +`func NewIPPrefixesAgentsWithDefaults() *IPPrefixesAgents` + +NewIPPrefixesAgentsWithDefaults instantiates a new IPPrefixesAgents 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 *IPPrefixesAgents) GetPrefixesIpv4() []string` + +GetPrefixesIpv4 returns the PrefixesIpv4 field if non-nil, zero value otherwise. + +### GetPrefixesIpv4Ok + +`func (o *IPPrefixesAgents) 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 *IPPrefixesAgents) SetPrefixesIpv4(v []string)` + +SetPrefixesIpv4 sets PrefixesIpv4 field to given value. + +### HasPrefixesIpv4 + +`func (o *IPPrefixesAgents) HasPrefixesIpv4() bool` + +HasPrefixesIpv4 returns a boolean if a field has been set. + +### GetPrefixesIpv6 + +`func (o *IPPrefixesAgents) GetPrefixesIpv6() []string` + +GetPrefixesIpv6 returns the PrefixesIpv6 field if non-nil, zero value otherwise. + +### GetPrefixesIpv6Ok + +`func (o *IPPrefixesAgents) 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 *IPPrefixesAgents) SetPrefixesIpv6(v []string)` + +SetPrefixesIpv6 sets PrefixesIpv6 field to given value. + +### HasPrefixesIpv6 + +`func (o *IPPrefixesAgents) 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) + + diff --git a/api/v1/datadog/docs/IPPrefixesLogs.md b/api/v1/datadog/docs/IPPrefixesLogs.md new file mode 100644 index 00000000000..7d247571b46 --- /dev/null +++ b/api/v1/datadog/docs/IPPrefixesLogs.md @@ -0,0 +1,82 @@ +# IPPrefixesLogs + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrefixesIpv4** | Pointer to **[]string** | List of IPv4 prefixes. | [optional] +**PrefixesIpv6** | Pointer to **[]string** | List of IPv6 prefixes. | [optional] + +## Methods + +### NewIPPrefixesLogs + +`func NewIPPrefixesLogs() *IPPrefixesLogs` + +NewIPPrefixesLogs instantiates a new IPPrefixesLogs 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 + +### NewIPPrefixesLogsWithDefaults + +`func NewIPPrefixesLogsWithDefaults() *IPPrefixesLogs` + +NewIPPrefixesLogsWithDefaults instantiates a new IPPrefixesLogs 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 *IPPrefixesLogs) GetPrefixesIpv4() []string` + +GetPrefixesIpv4 returns the PrefixesIpv4 field if non-nil, zero value otherwise. + +### GetPrefixesIpv4Ok + +`func (o *IPPrefixesLogs) 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 *IPPrefixesLogs) SetPrefixesIpv4(v []string)` + +SetPrefixesIpv4 sets PrefixesIpv4 field to given value. + +### HasPrefixesIpv4 + +`func (o *IPPrefixesLogs) HasPrefixesIpv4() bool` + +HasPrefixesIpv4 returns a boolean if a field has been set. + +### GetPrefixesIpv6 + +`func (o *IPPrefixesLogs) GetPrefixesIpv6() []string` + +GetPrefixesIpv6 returns the PrefixesIpv6 field if non-nil, zero value otherwise. + +### GetPrefixesIpv6Ok + +`func (o *IPPrefixesLogs) 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 *IPPrefixesLogs) SetPrefixesIpv6(v []string)` + +SetPrefixesIpv6 sets PrefixesIpv6 field to given value. + +### HasPrefixesIpv6 + +`func (o *IPPrefixesLogs) 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) + + diff --git a/api/v1/datadog/docs/IPPrefixesProcess.md b/api/v1/datadog/docs/IPPrefixesProcess.md new file mode 100644 index 00000000000..c74bf9ab344 --- /dev/null +++ b/api/v1/datadog/docs/IPPrefixesProcess.md @@ -0,0 +1,82 @@ +# IPPrefixesProcess + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrefixesIpv4** | Pointer to **[]string** | List of IPv4 prefixes. | [optional] +**PrefixesIpv6** | Pointer to **[]string** | List of IPv6 prefixes. | [optional] + +## Methods + +### NewIPPrefixesProcess + +`func NewIPPrefixesProcess() *IPPrefixesProcess` + +NewIPPrefixesProcess instantiates a new IPPrefixesProcess 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 + +### NewIPPrefixesProcessWithDefaults + +`func NewIPPrefixesProcessWithDefaults() *IPPrefixesProcess` + +NewIPPrefixesProcessWithDefaults instantiates a new IPPrefixesProcess 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 *IPPrefixesProcess) GetPrefixesIpv4() []string` + +GetPrefixesIpv4 returns the PrefixesIpv4 field if non-nil, zero value otherwise. + +### GetPrefixesIpv4Ok + +`func (o *IPPrefixesProcess) 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 *IPPrefixesProcess) SetPrefixesIpv4(v []string)` + +SetPrefixesIpv4 sets PrefixesIpv4 field to given value. + +### HasPrefixesIpv4 + +`func (o *IPPrefixesProcess) HasPrefixesIpv4() bool` + +HasPrefixesIpv4 returns a boolean if a field has been set. + +### GetPrefixesIpv6 + +`func (o *IPPrefixesProcess) GetPrefixesIpv6() []string` + +GetPrefixesIpv6 returns the PrefixesIpv6 field if non-nil, zero value otherwise. + +### GetPrefixesIpv6Ok + +`func (o *IPPrefixesProcess) 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 *IPPrefixesProcess) SetPrefixesIpv6(v []string)` + +SetPrefixesIpv6 sets PrefixesIpv6 field to given value. + +### HasPrefixesIpv6 + +`func (o *IPPrefixesProcess) 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) + + diff --git a/api/v1/datadog/docs/IPPrefixesSynthetics.md b/api/v1/datadog/docs/IPPrefixesSynthetics.md new file mode 100644 index 00000000000..abf0a031001 --- /dev/null +++ b/api/v1/datadog/docs/IPPrefixesSynthetics.md @@ -0,0 +1,82 @@ +# IPPrefixesSynthetics + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrefixesIpv4** | Pointer to **[]string** | List of IPv4 prefixes. | [optional] +**PrefixesIpv6** | Pointer to **[]string** | List of IPv6 prefixes. | [optional] + +## Methods + +### NewIPPrefixesSynthetics + +`func NewIPPrefixesSynthetics() *IPPrefixesSynthetics` + +NewIPPrefixesSynthetics instantiates a new IPPrefixesSynthetics 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 + +### NewIPPrefixesSyntheticsWithDefaults + +`func NewIPPrefixesSyntheticsWithDefaults() *IPPrefixesSynthetics` + +NewIPPrefixesSyntheticsWithDefaults instantiates a new IPPrefixesSynthetics 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 *IPPrefixesSynthetics) GetPrefixesIpv4() []string` + +GetPrefixesIpv4 returns the PrefixesIpv4 field if non-nil, zero value otherwise. + +### GetPrefixesIpv4Ok + +`func (o *IPPrefixesSynthetics) 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 *IPPrefixesSynthetics) SetPrefixesIpv4(v []string)` + +SetPrefixesIpv4 sets PrefixesIpv4 field to given value. + +### HasPrefixesIpv4 + +`func (o *IPPrefixesSynthetics) HasPrefixesIpv4() bool` + +HasPrefixesIpv4 returns a boolean if a field has been set. + +### GetPrefixesIpv6 + +`func (o *IPPrefixesSynthetics) GetPrefixesIpv6() []string` + +GetPrefixesIpv6 returns the PrefixesIpv6 field if non-nil, zero value otherwise. + +### GetPrefixesIpv6Ok + +`func (o *IPPrefixesSynthetics) 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 *IPPrefixesSynthetics) SetPrefixesIpv6(v []string)` + +SetPrefixesIpv6 sets PrefixesIpv6 field to given value. + +### HasPrefixesIpv6 + +`func (o *IPPrefixesSynthetics) 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) + + diff --git a/api/v1/datadog/docs/IPPrefixesWebhooks.md b/api/v1/datadog/docs/IPPrefixesWebhooks.md new file mode 100644 index 00000000000..a960e9cca47 --- /dev/null +++ b/api/v1/datadog/docs/IPPrefixesWebhooks.md @@ -0,0 +1,82 @@ +# IPPrefixesWebhooks + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**PrefixesIpv4** | Pointer to **[]string** | List of IPv4 prefixes. | [optional] +**PrefixesIpv6** | Pointer to **[]string** | List of IPv6 prefixes. | [optional] + +## Methods + +### NewIPPrefixesWebhooks + +`func NewIPPrefixesWebhooks() *IPPrefixesWebhooks` + +NewIPPrefixesWebhooks instantiates a new IPPrefixesWebhooks 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 + +### NewIPPrefixesWebhooksWithDefaults + +`func NewIPPrefixesWebhooksWithDefaults() *IPPrefixesWebhooks` + +NewIPPrefixesWebhooksWithDefaults instantiates a new IPPrefixesWebhooks 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 *IPPrefixesWebhooks) GetPrefixesIpv4() []string` + +GetPrefixesIpv4 returns the PrefixesIpv4 field if non-nil, zero value otherwise. + +### GetPrefixesIpv4Ok + +`func (o *IPPrefixesWebhooks) 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 *IPPrefixesWebhooks) SetPrefixesIpv4(v []string)` + +SetPrefixesIpv4 sets PrefixesIpv4 field to given value. + +### HasPrefixesIpv4 + +`func (o *IPPrefixesWebhooks) HasPrefixesIpv4() bool` + +HasPrefixesIpv4 returns a boolean if a field has been set. + +### GetPrefixesIpv6 + +`func (o *IPPrefixesWebhooks) GetPrefixesIpv6() []string` + +GetPrefixesIpv6 returns the PrefixesIpv6 field if non-nil, zero value otherwise. + +### GetPrefixesIpv6Ok + +`func (o *IPPrefixesWebhooks) 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 *IPPrefixesWebhooks) SetPrefixesIpv6(v []string)` + +SetPrefixesIpv6 sets PrefixesIpv6 field to given value. + +### HasPrefixesIpv6 + +`func (o *IPPrefixesWebhooks) 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) + + diff --git a/api/v1/datadog/docs/IPRanges.md b/api/v1/datadog/docs/IPRanges.md index 5e32073be2a..cedd23f7afa 100644 --- a/api/v1/datadog/docs/IPRanges.md +++ b/api/v1/datadog/docs/IPRanges.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Agents** | Pointer to [**IPPrefixes**](IPPrefixes.md) | | [optional] -**Api** | Pointer to [**IPPrefixes**](IPPrefixes.md) | | [optional] -**Apm** | Pointer to [**IPPrefixes**](IPPrefixes.md) | | [optional] -**Logs** | Pointer to [**IPPrefixes**](IPPrefixes.md) | | [optional] +**Agents** | Pointer to [**IPPrefixesAgents**](IPPrefixesAgents.md) | | [optional] +**Api** | Pointer to [**IPPrefixesAPI**](IPPrefixesAPI.md) | | [optional] +**Apm** | Pointer to [**IPPrefixesAPM**](IPPrefixesAPM.md) | | [optional] +**Logs** | Pointer to [**IPPrefixesLogs**](IPPrefixesLogs.md) | | [optional] **Modified** | Pointer to **string** | Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. | [optional] -**Process** | Pointer to [**IPPrefixes**](IPPrefixes.md) | | [optional] -**Synthetics** | Pointer to [**IPPrefixes**](IPPrefixes.md) | | [optional] +**Process** | Pointer to [**IPPrefixesProcess**](IPPrefixesProcess.md) | | [optional] +**Synthetics** | Pointer to [**IPPrefixesSynthetics**](IPPrefixesSynthetics.md) | | [optional] **Version** | Pointer to **int64** | Version of the IP list. | [optional] -**Webhooks** | Pointer to [**IPPrefixes**](IPPrefixes.md) | | [optional] +**Webhooks** | Pointer to [**IPPrefixesWebhooks**](IPPrefixesWebhooks.md) | | [optional] ## Methods @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetAgents -`func (o *IPRanges) GetAgents() IPPrefixes` +`func (o *IPRanges) GetAgents() IPPrefixesAgents` GetAgents returns the Agents field if non-nil, zero value otherwise. ### GetAgentsOk -`func (o *IPRanges) GetAgentsOk() (*IPPrefixes, bool)` +`func (o *IPRanges) GetAgentsOk() (*IPPrefixesAgents, bool)` GetAgentsOk returns a tuple with the Agents field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAgents -`func (o *IPRanges) SetAgents(v IPPrefixes)` +`func (o *IPRanges) SetAgents(v IPPrefixesAgents)` SetAgents sets Agents field to given value. @@ -60,20 +60,20 @@ HasAgents returns a boolean if a field has been set. ### GetApi -`func (o *IPRanges) GetApi() IPPrefixes` +`func (o *IPRanges) GetApi() IPPrefixesAPI` GetApi returns the Api field if non-nil, zero value otherwise. ### GetApiOk -`func (o *IPRanges) GetApiOk() (*IPPrefixes, bool)` +`func (o *IPRanges) GetApiOk() (*IPPrefixesAPI, bool)` GetApiOk returns a tuple with the Api field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetApi -`func (o *IPRanges) SetApi(v IPPrefixes)` +`func (o *IPRanges) SetApi(v IPPrefixesAPI)` SetApi sets Api field to given value. @@ -85,20 +85,20 @@ HasApi returns a boolean if a field has been set. ### GetApm -`func (o *IPRanges) GetApm() IPPrefixes` +`func (o *IPRanges) GetApm() IPPrefixesAPM` GetApm returns the Apm field if non-nil, zero value otherwise. ### GetApmOk -`func (o *IPRanges) GetApmOk() (*IPPrefixes, bool)` +`func (o *IPRanges) GetApmOk() (*IPPrefixesAPM, bool)` GetApmOk returns a tuple with the Apm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetApm -`func (o *IPRanges) SetApm(v IPPrefixes)` +`func (o *IPRanges) SetApm(v IPPrefixesAPM)` SetApm sets Apm field to given value. @@ -110,20 +110,20 @@ HasApm returns a boolean if a field has been set. ### GetLogs -`func (o *IPRanges) GetLogs() IPPrefixes` +`func (o *IPRanges) GetLogs() IPPrefixesLogs` GetLogs returns the Logs field if non-nil, zero value otherwise. ### GetLogsOk -`func (o *IPRanges) GetLogsOk() (*IPPrefixes, bool)` +`func (o *IPRanges) GetLogsOk() (*IPPrefixesLogs, bool)` GetLogsOk returns a tuple with the Logs field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLogs -`func (o *IPRanges) SetLogs(v IPPrefixes)` +`func (o *IPRanges) SetLogs(v IPPrefixesLogs)` SetLogs sets Logs field to given value. @@ -160,20 +160,20 @@ HasModified returns a boolean if a field has been set. ### GetProcess -`func (o *IPRanges) GetProcess() IPPrefixes` +`func (o *IPRanges) GetProcess() IPPrefixesProcess` GetProcess returns the Process field if non-nil, zero value otherwise. ### GetProcessOk -`func (o *IPRanges) GetProcessOk() (*IPPrefixes, bool)` +`func (o *IPRanges) GetProcessOk() (*IPPrefixesProcess, bool)` GetProcessOk returns a tuple with the Process field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProcess -`func (o *IPRanges) SetProcess(v IPPrefixes)` +`func (o *IPRanges) SetProcess(v IPPrefixesProcess)` SetProcess sets Process field to given value. @@ -185,20 +185,20 @@ HasProcess returns a boolean if a field has been set. ### GetSynthetics -`func (o *IPRanges) GetSynthetics() IPPrefixes` +`func (o *IPRanges) GetSynthetics() IPPrefixesSynthetics` GetSynthetics returns the Synthetics field if non-nil, zero value otherwise. ### GetSyntheticsOk -`func (o *IPRanges) GetSyntheticsOk() (*IPPrefixes, bool)` +`func (o *IPRanges) GetSyntheticsOk() (*IPPrefixesSynthetics, bool)` GetSyntheticsOk returns a tuple with the Synthetics field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSynthetics -`func (o *IPRanges) SetSynthetics(v IPPrefixes)` +`func (o *IPRanges) SetSynthetics(v IPPrefixesSynthetics)` SetSynthetics sets Synthetics field to given value. @@ -235,20 +235,20 @@ HasVersion returns a boolean if a field has been set. ### GetWebhooks -`func (o *IPRanges) GetWebhooks() IPPrefixes` +`func (o *IPRanges) GetWebhooks() IPPrefixesWebhooks` GetWebhooks returns the Webhooks field if non-nil, zero value otherwise. ### GetWebhooksOk -`func (o *IPRanges) GetWebhooksOk() (*IPPrefixes, bool)` +`func (o *IPRanges) GetWebhooksOk() (*IPPrefixesWebhooks, bool)` GetWebhooksOk returns a tuple with the Webhooks field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWebhooks -`func (o *IPRanges) SetWebhooks(v IPPrefixes)` +`func (o *IPRanges) SetWebhooks(v IPPrefixesWebhooks)` SetWebhooks sets Webhooks field to given value. diff --git a/api/v1/datadog/model_ip_prefixes_agents.go b/api/v1/datadog/model_ip_prefixes_agents.go new file mode 100644 index 00000000000..d86ed934b5c --- /dev/null +++ b/api/v1/datadog/model_ip_prefixes_agents.go @@ -0,0 +1,149 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" +) + +// IPPrefixesAgents Available prefix information for the Agent endpoints. +type IPPrefixesAgents struct { + // List of IPv4 prefixes. + PrefixesIpv4 *[]string `json:"prefixes_ipv4,omitempty"` + // List of IPv6 prefixes. + PrefixesIpv6 *[]string `json:"prefixes_ipv6,omitempty"` +} + +// NewIPPrefixesAgents instantiates a new IPPrefixesAgents 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 +func NewIPPrefixesAgents() *IPPrefixesAgents { + this := IPPrefixesAgents{} + return &this +} + +// NewIPPrefixesAgentsWithDefaults instantiates a new IPPrefixesAgents 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 +func NewIPPrefixesAgentsWithDefaults() *IPPrefixesAgents { + this := IPPrefixesAgents{} + return &this +} + +// GetPrefixesIpv4 returns the PrefixesIpv4 field value if set, zero value otherwise. +func (o *IPPrefixesAgents) GetPrefixesIpv4() []string { + if o == nil || o.PrefixesIpv4 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv4 +} + +// GetPrefixesIpv4Ok returns a tuple with the PrefixesIpv4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesAgents) GetPrefixesIpv4Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv4 == nil { + return nil, false + } + return o.PrefixesIpv4, true +} + +// HasPrefixesIpv4 returns a boolean if a field has been set. +func (o *IPPrefixesAgents) HasPrefixesIpv4() bool { + if o != nil && o.PrefixesIpv4 != nil { + return true + } + + return false +} + +// SetPrefixesIpv4 gets a reference to the given []string and assigns it to the PrefixesIpv4 field. +func (o *IPPrefixesAgents) SetPrefixesIpv4(v []string) { + o.PrefixesIpv4 = &v +} + +// GetPrefixesIpv6 returns the PrefixesIpv6 field value if set, zero value otherwise. +func (o *IPPrefixesAgents) GetPrefixesIpv6() []string { + if o == nil || o.PrefixesIpv6 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv6 +} + +// GetPrefixesIpv6Ok returns a tuple with the PrefixesIpv6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesAgents) GetPrefixesIpv6Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv6 == nil { + return nil, false + } + return o.PrefixesIpv6, true +} + +// HasPrefixesIpv6 returns a boolean if a field has been set. +func (o *IPPrefixesAgents) HasPrefixesIpv6() bool { + if o != nil && o.PrefixesIpv6 != nil { + return true + } + + return false +} + +// SetPrefixesIpv6 gets a reference to the given []string and assigns it to the PrefixesIpv6 field. +func (o *IPPrefixesAgents) SetPrefixesIpv6(v []string) { + o.PrefixesIpv6 = &v +} + +func (o IPPrefixesAgents) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PrefixesIpv4 != nil { + toSerialize["prefixes_ipv4"] = o.PrefixesIpv4 + } + if o.PrefixesIpv6 != nil { + toSerialize["prefixes_ipv6"] = o.PrefixesIpv6 + } + return json.Marshal(toSerialize) +} + +type NullableIPPrefixesAgents struct { + value *IPPrefixesAgents + isSet bool +} + +func (v NullableIPPrefixesAgents) Get() *IPPrefixesAgents { + return v.value +} + +func (v *NullableIPPrefixesAgents) Set(val *IPPrefixesAgents) { + v.value = val + v.isSet = true +} + +func (v NullableIPPrefixesAgents) IsSet() bool { + return v.isSet +} + +func (v *NullableIPPrefixesAgents) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPPrefixesAgents(val *IPPrefixesAgents) *NullableIPPrefixesAgents { + return &NullableIPPrefixesAgents{value: val, isSet: true} +} + +func (v NullableIPPrefixesAgents) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPPrefixesAgents) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/v1/datadog/model_ip_prefixes.go b/api/v1/datadog/model_ip_prefixes_api.go similarity index 66% rename from api/v1/datadog/model_ip_prefixes.go rename to api/v1/datadog/model_ip_prefixes_api.go index 37b8543aa63..a87334998e2 100644 --- a/api/v1/datadog/model_ip_prefixes.go +++ b/api/v1/datadog/model_ip_prefixes_api.go @@ -12,33 +12,33 @@ import ( "encoding/json" ) -// IPPrefixes TODO. -type IPPrefixes struct { +// IPPrefixesAPI Available prefix information for the API endpoints. +type IPPrefixesAPI struct { // List of IPv4 prefixes. PrefixesIpv4 *[]string `json:"prefixes_ipv4,omitempty"` // List of IPv6 prefixes. PrefixesIpv6 *[]string `json:"prefixes_ipv6,omitempty"` } -// 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 -func NewIPPrefixes() *IPPrefixes { - this := IPPrefixes{} +func NewIPPrefixesAPI() *IPPrefixesAPI { + this := IPPrefixesAPI{} return &this } -// 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 -func NewIPPrefixesWithDefaults() *IPPrefixes { - this := IPPrefixes{} +func NewIPPrefixesAPIWithDefaults() *IPPrefixesAPI { + this := IPPrefixesAPI{} return &this } // GetPrefixesIpv4 returns the PrefixesIpv4 field value if set, zero value otherwise. -func (o *IPPrefixes) GetPrefixesIpv4() []string { +func (o *IPPrefixesAPI) GetPrefixesIpv4() []string { if o == nil || o.PrefixesIpv4 == nil { var ret []string return ret @@ -48,7 +48,7 @@ func (o *IPPrefixes) GetPrefixesIpv4() []string { // GetPrefixesIpv4Ok returns a tuple with the PrefixesIpv4 field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPPrefixes) GetPrefixesIpv4Ok() (*[]string, bool) { +func (o *IPPrefixesAPI) GetPrefixesIpv4Ok() (*[]string, bool) { if o == nil || o.PrefixesIpv4 == nil { return nil, false } @@ -56,7 +56,7 @@ func (o *IPPrefixes) GetPrefixesIpv4Ok() (*[]string, bool) { } // HasPrefixesIpv4 returns a boolean if a field has been set. -func (o *IPPrefixes) HasPrefixesIpv4() bool { +func (o *IPPrefixesAPI) HasPrefixesIpv4() bool { if o != nil && o.PrefixesIpv4 != nil { return true } @@ -65,12 +65,12 @@ func (o *IPPrefixes) HasPrefixesIpv4() bool { } // SetPrefixesIpv4 gets a reference to the given []string and assigns it to the PrefixesIpv4 field. -func (o *IPPrefixes) SetPrefixesIpv4(v []string) { +func (o *IPPrefixesAPI) SetPrefixesIpv4(v []string) { o.PrefixesIpv4 = &v } // GetPrefixesIpv6 returns the PrefixesIpv6 field value if set, zero value otherwise. -func (o *IPPrefixes) GetPrefixesIpv6() []string { +func (o *IPPrefixesAPI) GetPrefixesIpv6() []string { if o == nil || o.PrefixesIpv6 == nil { var ret []string return ret @@ -80,7 +80,7 @@ func (o *IPPrefixes) GetPrefixesIpv6() []string { // GetPrefixesIpv6Ok returns a tuple with the PrefixesIpv6 field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPPrefixes) GetPrefixesIpv6Ok() (*[]string, bool) { +func (o *IPPrefixesAPI) GetPrefixesIpv6Ok() (*[]string, bool) { if o == nil || o.PrefixesIpv6 == nil { return nil, false } @@ -88,7 +88,7 @@ func (o *IPPrefixes) GetPrefixesIpv6Ok() (*[]string, bool) { } // HasPrefixesIpv6 returns a boolean if a field has been set. -func (o *IPPrefixes) HasPrefixesIpv6() bool { +func (o *IPPrefixesAPI) HasPrefixesIpv6() bool { if o != nil && o.PrefixesIpv6 != nil { return true } @@ -97,11 +97,11 @@ func (o *IPPrefixes) HasPrefixesIpv6() bool { } // SetPrefixesIpv6 gets a reference to the given []string and assigns it to the PrefixesIpv6 field. -func (o *IPPrefixes) SetPrefixesIpv6(v []string) { +func (o *IPPrefixesAPI) SetPrefixesIpv6(v []string) { o.PrefixesIpv6 = &v } -func (o IPPrefixes) MarshalJSON() ([]byte, error) { +func (o IPPrefixesAPI) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if o.PrefixesIpv4 != nil { toSerialize["prefixes_ipv4"] = o.PrefixesIpv4 @@ -112,38 +112,38 @@ func (o IPPrefixes) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -type NullableIPPrefixes struct { - value *IPPrefixes +type NullableIPPrefixesAPI struct { + value *IPPrefixesAPI isSet bool } -func (v NullableIPPrefixes) Get() *IPPrefixes { +func (v NullableIPPrefixesAPI) Get() *IPPrefixesAPI { return v.value } -func (v *NullableIPPrefixes) Set(val *IPPrefixes) { +func (v *NullableIPPrefixesAPI) Set(val *IPPrefixesAPI) { v.value = val v.isSet = true } -func (v NullableIPPrefixes) IsSet() bool { +func (v NullableIPPrefixesAPI) IsSet() bool { return v.isSet } -func (v *NullableIPPrefixes) Unset() { +func (v *NullableIPPrefixesAPI) Unset() { v.value = nil v.isSet = false } -func NewNullableIPPrefixes(val *IPPrefixes) *NullableIPPrefixes { - return &NullableIPPrefixes{value: val, isSet: true} +func NewNullableIPPrefixesAPI(val *IPPrefixesAPI) *NullableIPPrefixesAPI { + return &NullableIPPrefixesAPI{value: val, isSet: true} } -func (v NullableIPPrefixes) MarshalJSON() ([]byte, error) { +func (v NullableIPPrefixesAPI) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableIPPrefixes) UnmarshalJSON(src []byte) error { +func (v *NullableIPPrefixesAPI) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/api/v1/datadog/model_ip_prefixes_apm.go b/api/v1/datadog/model_ip_prefixes_apm.go new file mode 100644 index 00000000000..10734cdbe7f --- /dev/null +++ b/api/v1/datadog/model_ip_prefixes_apm.go @@ -0,0 +1,149 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" +) + +// IPPrefixesAPM Available prefix information for the APM endpoints. +type IPPrefixesAPM struct { + // List of IPv4 prefixes. + PrefixesIpv4 *[]string `json:"prefixes_ipv4,omitempty"` + // List of IPv6 prefixes. + PrefixesIpv6 *[]string `json:"prefixes_ipv6,omitempty"` +} + +// 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 +func NewIPPrefixesAPM() *IPPrefixesAPM { + this := IPPrefixesAPM{} + return &this +} + +// 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 +func NewIPPrefixesAPMWithDefaults() *IPPrefixesAPM { + this := IPPrefixesAPM{} + return &this +} + +// GetPrefixesIpv4 returns the PrefixesIpv4 field value if set, zero value otherwise. +func (o *IPPrefixesAPM) GetPrefixesIpv4() []string { + if o == nil || o.PrefixesIpv4 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv4 +} + +// GetPrefixesIpv4Ok returns a tuple with the PrefixesIpv4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesAPM) GetPrefixesIpv4Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv4 == nil { + return nil, false + } + return o.PrefixesIpv4, true +} + +// HasPrefixesIpv4 returns a boolean if a field has been set. +func (o *IPPrefixesAPM) HasPrefixesIpv4() bool { + if o != nil && o.PrefixesIpv4 != nil { + return true + } + + return false +} + +// SetPrefixesIpv4 gets a reference to the given []string and assigns it to the PrefixesIpv4 field. +func (o *IPPrefixesAPM) SetPrefixesIpv4(v []string) { + o.PrefixesIpv4 = &v +} + +// GetPrefixesIpv6 returns the PrefixesIpv6 field value if set, zero value otherwise. +func (o *IPPrefixesAPM) GetPrefixesIpv6() []string { + if o == nil || o.PrefixesIpv6 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv6 +} + +// GetPrefixesIpv6Ok returns a tuple with the PrefixesIpv6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesAPM) GetPrefixesIpv6Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv6 == nil { + return nil, false + } + return o.PrefixesIpv6, true +} + +// HasPrefixesIpv6 returns a boolean if a field has been set. +func (o *IPPrefixesAPM) HasPrefixesIpv6() bool { + if o != nil && o.PrefixesIpv6 != nil { + return true + } + + return false +} + +// SetPrefixesIpv6 gets a reference to the given []string and assigns it to the PrefixesIpv6 field. +func (o *IPPrefixesAPM) SetPrefixesIpv6(v []string) { + o.PrefixesIpv6 = &v +} + +func (o IPPrefixesAPM) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PrefixesIpv4 != nil { + toSerialize["prefixes_ipv4"] = o.PrefixesIpv4 + } + if o.PrefixesIpv6 != nil { + toSerialize["prefixes_ipv6"] = o.PrefixesIpv6 + } + return json.Marshal(toSerialize) +} + +type NullableIPPrefixesAPM struct { + value *IPPrefixesAPM + isSet bool +} + +func (v NullableIPPrefixesAPM) Get() *IPPrefixesAPM { + return v.value +} + +func (v *NullableIPPrefixesAPM) Set(val *IPPrefixesAPM) { + v.value = val + v.isSet = true +} + +func (v NullableIPPrefixesAPM) IsSet() bool { + return v.isSet +} + +func (v *NullableIPPrefixesAPM) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPPrefixesAPM(val *IPPrefixesAPM) *NullableIPPrefixesAPM { + return &NullableIPPrefixesAPM{value: val, isSet: true} +} + +func (v NullableIPPrefixesAPM) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPPrefixesAPM) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/v1/datadog/model_ip_prefixes_logs.go b/api/v1/datadog/model_ip_prefixes_logs.go new file mode 100644 index 00000000000..949f3f20095 --- /dev/null +++ b/api/v1/datadog/model_ip_prefixes_logs.go @@ -0,0 +1,149 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" +) + +// IPPrefixesLogs Available prefix information for the Logs endpoints. +type IPPrefixesLogs struct { + // List of IPv4 prefixes. + PrefixesIpv4 *[]string `json:"prefixes_ipv4,omitempty"` + // List of IPv6 prefixes. + PrefixesIpv6 *[]string `json:"prefixes_ipv6,omitempty"` +} + +// NewIPPrefixesLogs instantiates a new IPPrefixesLogs 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 +func NewIPPrefixesLogs() *IPPrefixesLogs { + this := IPPrefixesLogs{} + return &this +} + +// NewIPPrefixesLogsWithDefaults instantiates a new IPPrefixesLogs 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 +func NewIPPrefixesLogsWithDefaults() *IPPrefixesLogs { + this := IPPrefixesLogs{} + return &this +} + +// GetPrefixesIpv4 returns the PrefixesIpv4 field value if set, zero value otherwise. +func (o *IPPrefixesLogs) GetPrefixesIpv4() []string { + if o == nil || o.PrefixesIpv4 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv4 +} + +// GetPrefixesIpv4Ok returns a tuple with the PrefixesIpv4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesLogs) GetPrefixesIpv4Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv4 == nil { + return nil, false + } + return o.PrefixesIpv4, true +} + +// HasPrefixesIpv4 returns a boolean if a field has been set. +func (o *IPPrefixesLogs) HasPrefixesIpv4() bool { + if o != nil && o.PrefixesIpv4 != nil { + return true + } + + return false +} + +// SetPrefixesIpv4 gets a reference to the given []string and assigns it to the PrefixesIpv4 field. +func (o *IPPrefixesLogs) SetPrefixesIpv4(v []string) { + o.PrefixesIpv4 = &v +} + +// GetPrefixesIpv6 returns the PrefixesIpv6 field value if set, zero value otherwise. +func (o *IPPrefixesLogs) GetPrefixesIpv6() []string { + if o == nil || o.PrefixesIpv6 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv6 +} + +// GetPrefixesIpv6Ok returns a tuple with the PrefixesIpv6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesLogs) GetPrefixesIpv6Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv6 == nil { + return nil, false + } + return o.PrefixesIpv6, true +} + +// HasPrefixesIpv6 returns a boolean if a field has been set. +func (o *IPPrefixesLogs) HasPrefixesIpv6() bool { + if o != nil && o.PrefixesIpv6 != nil { + return true + } + + return false +} + +// SetPrefixesIpv6 gets a reference to the given []string and assigns it to the PrefixesIpv6 field. +func (o *IPPrefixesLogs) SetPrefixesIpv6(v []string) { + o.PrefixesIpv6 = &v +} + +func (o IPPrefixesLogs) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PrefixesIpv4 != nil { + toSerialize["prefixes_ipv4"] = o.PrefixesIpv4 + } + if o.PrefixesIpv6 != nil { + toSerialize["prefixes_ipv6"] = o.PrefixesIpv6 + } + return json.Marshal(toSerialize) +} + +type NullableIPPrefixesLogs struct { + value *IPPrefixesLogs + isSet bool +} + +func (v NullableIPPrefixesLogs) Get() *IPPrefixesLogs { + return v.value +} + +func (v *NullableIPPrefixesLogs) Set(val *IPPrefixesLogs) { + v.value = val + v.isSet = true +} + +func (v NullableIPPrefixesLogs) IsSet() bool { + return v.isSet +} + +func (v *NullableIPPrefixesLogs) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPPrefixesLogs(val *IPPrefixesLogs) *NullableIPPrefixesLogs { + return &NullableIPPrefixesLogs{value: val, isSet: true} +} + +func (v NullableIPPrefixesLogs) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPPrefixesLogs) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/v1/datadog/model_ip_prefixes_process.go b/api/v1/datadog/model_ip_prefixes_process.go new file mode 100644 index 00000000000..df88780dadc --- /dev/null +++ b/api/v1/datadog/model_ip_prefixes_process.go @@ -0,0 +1,149 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" +) + +// IPPrefixesProcess Available prefix information for the Process endpoints. +type IPPrefixesProcess struct { + // List of IPv4 prefixes. + PrefixesIpv4 *[]string `json:"prefixes_ipv4,omitempty"` + // List of IPv6 prefixes. + PrefixesIpv6 *[]string `json:"prefixes_ipv6,omitempty"` +} + +// NewIPPrefixesProcess instantiates a new IPPrefixesProcess 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 +func NewIPPrefixesProcess() *IPPrefixesProcess { + this := IPPrefixesProcess{} + return &this +} + +// NewIPPrefixesProcessWithDefaults instantiates a new IPPrefixesProcess 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 +func NewIPPrefixesProcessWithDefaults() *IPPrefixesProcess { + this := IPPrefixesProcess{} + return &this +} + +// GetPrefixesIpv4 returns the PrefixesIpv4 field value if set, zero value otherwise. +func (o *IPPrefixesProcess) GetPrefixesIpv4() []string { + if o == nil || o.PrefixesIpv4 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv4 +} + +// GetPrefixesIpv4Ok returns a tuple with the PrefixesIpv4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesProcess) GetPrefixesIpv4Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv4 == nil { + return nil, false + } + return o.PrefixesIpv4, true +} + +// HasPrefixesIpv4 returns a boolean if a field has been set. +func (o *IPPrefixesProcess) HasPrefixesIpv4() bool { + if o != nil && o.PrefixesIpv4 != nil { + return true + } + + return false +} + +// SetPrefixesIpv4 gets a reference to the given []string and assigns it to the PrefixesIpv4 field. +func (o *IPPrefixesProcess) SetPrefixesIpv4(v []string) { + o.PrefixesIpv4 = &v +} + +// GetPrefixesIpv6 returns the PrefixesIpv6 field value if set, zero value otherwise. +func (o *IPPrefixesProcess) GetPrefixesIpv6() []string { + if o == nil || o.PrefixesIpv6 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv6 +} + +// GetPrefixesIpv6Ok returns a tuple with the PrefixesIpv6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesProcess) GetPrefixesIpv6Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv6 == nil { + return nil, false + } + return o.PrefixesIpv6, true +} + +// HasPrefixesIpv6 returns a boolean if a field has been set. +func (o *IPPrefixesProcess) HasPrefixesIpv6() bool { + if o != nil && o.PrefixesIpv6 != nil { + return true + } + + return false +} + +// SetPrefixesIpv6 gets a reference to the given []string and assigns it to the PrefixesIpv6 field. +func (o *IPPrefixesProcess) SetPrefixesIpv6(v []string) { + o.PrefixesIpv6 = &v +} + +func (o IPPrefixesProcess) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PrefixesIpv4 != nil { + toSerialize["prefixes_ipv4"] = o.PrefixesIpv4 + } + if o.PrefixesIpv6 != nil { + toSerialize["prefixes_ipv6"] = o.PrefixesIpv6 + } + return json.Marshal(toSerialize) +} + +type NullableIPPrefixesProcess struct { + value *IPPrefixesProcess + isSet bool +} + +func (v NullableIPPrefixesProcess) Get() *IPPrefixesProcess { + return v.value +} + +func (v *NullableIPPrefixesProcess) Set(val *IPPrefixesProcess) { + v.value = val + v.isSet = true +} + +func (v NullableIPPrefixesProcess) IsSet() bool { + return v.isSet +} + +func (v *NullableIPPrefixesProcess) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPPrefixesProcess(val *IPPrefixesProcess) *NullableIPPrefixesProcess { + return &NullableIPPrefixesProcess{value: val, isSet: true} +} + +func (v NullableIPPrefixesProcess) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPPrefixesProcess) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/v1/datadog/model_ip_prefixes_synthetics.go b/api/v1/datadog/model_ip_prefixes_synthetics.go new file mode 100644 index 00000000000..2332a10f129 --- /dev/null +++ b/api/v1/datadog/model_ip_prefixes_synthetics.go @@ -0,0 +1,149 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" +) + +// IPPrefixesSynthetics Available prefix information for the Synthetics endpoints. +type IPPrefixesSynthetics struct { + // List of IPv4 prefixes. + PrefixesIpv4 *[]string `json:"prefixes_ipv4,omitempty"` + // List of IPv6 prefixes. + PrefixesIpv6 *[]string `json:"prefixes_ipv6,omitempty"` +} + +// NewIPPrefixesSynthetics instantiates a new IPPrefixesSynthetics 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 +func NewIPPrefixesSynthetics() *IPPrefixesSynthetics { + this := IPPrefixesSynthetics{} + return &this +} + +// NewIPPrefixesSyntheticsWithDefaults instantiates a new IPPrefixesSynthetics 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 +func NewIPPrefixesSyntheticsWithDefaults() *IPPrefixesSynthetics { + this := IPPrefixesSynthetics{} + return &this +} + +// GetPrefixesIpv4 returns the PrefixesIpv4 field value if set, zero value otherwise. +func (o *IPPrefixesSynthetics) GetPrefixesIpv4() []string { + if o == nil || o.PrefixesIpv4 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv4 +} + +// GetPrefixesIpv4Ok returns a tuple with the PrefixesIpv4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesSynthetics) GetPrefixesIpv4Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv4 == nil { + return nil, false + } + return o.PrefixesIpv4, true +} + +// HasPrefixesIpv4 returns a boolean if a field has been set. +func (o *IPPrefixesSynthetics) HasPrefixesIpv4() bool { + if o != nil && o.PrefixesIpv4 != nil { + return true + } + + return false +} + +// SetPrefixesIpv4 gets a reference to the given []string and assigns it to the PrefixesIpv4 field. +func (o *IPPrefixesSynthetics) SetPrefixesIpv4(v []string) { + o.PrefixesIpv4 = &v +} + +// GetPrefixesIpv6 returns the PrefixesIpv6 field value if set, zero value otherwise. +func (o *IPPrefixesSynthetics) GetPrefixesIpv6() []string { + if o == nil || o.PrefixesIpv6 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv6 +} + +// GetPrefixesIpv6Ok returns a tuple with the PrefixesIpv6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesSynthetics) GetPrefixesIpv6Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv6 == nil { + return nil, false + } + return o.PrefixesIpv6, true +} + +// HasPrefixesIpv6 returns a boolean if a field has been set. +func (o *IPPrefixesSynthetics) HasPrefixesIpv6() bool { + if o != nil && o.PrefixesIpv6 != nil { + return true + } + + return false +} + +// SetPrefixesIpv6 gets a reference to the given []string and assigns it to the PrefixesIpv6 field. +func (o *IPPrefixesSynthetics) SetPrefixesIpv6(v []string) { + o.PrefixesIpv6 = &v +} + +func (o IPPrefixesSynthetics) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PrefixesIpv4 != nil { + toSerialize["prefixes_ipv4"] = o.PrefixesIpv4 + } + if o.PrefixesIpv6 != nil { + toSerialize["prefixes_ipv6"] = o.PrefixesIpv6 + } + return json.Marshal(toSerialize) +} + +type NullableIPPrefixesSynthetics struct { + value *IPPrefixesSynthetics + isSet bool +} + +func (v NullableIPPrefixesSynthetics) Get() *IPPrefixesSynthetics { + return v.value +} + +func (v *NullableIPPrefixesSynthetics) Set(val *IPPrefixesSynthetics) { + v.value = val + v.isSet = true +} + +func (v NullableIPPrefixesSynthetics) IsSet() bool { + return v.isSet +} + +func (v *NullableIPPrefixesSynthetics) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPPrefixesSynthetics(val *IPPrefixesSynthetics) *NullableIPPrefixesSynthetics { + return &NullableIPPrefixesSynthetics{value: val, isSet: true} +} + +func (v NullableIPPrefixesSynthetics) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPPrefixesSynthetics) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/v1/datadog/model_ip_prefixes_webhooks.go b/api/v1/datadog/model_ip_prefixes_webhooks.go new file mode 100644 index 00000000000..c8534c5c14e --- /dev/null +++ b/api/v1/datadog/model_ip_prefixes_webhooks.go @@ -0,0 +1,149 @@ +/* + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2019-Present Datadog, Inc. + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package datadog + +import ( + "encoding/json" +) + +// IPPrefixesWebhooks Available prefix information for the Webhook endpoints. +type IPPrefixesWebhooks struct { + // List of IPv4 prefixes. + PrefixesIpv4 *[]string `json:"prefixes_ipv4,omitempty"` + // List of IPv6 prefixes. + PrefixesIpv6 *[]string `json:"prefixes_ipv6,omitempty"` +} + +// NewIPPrefixesWebhooks instantiates a new IPPrefixesWebhooks 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 +func NewIPPrefixesWebhooks() *IPPrefixesWebhooks { + this := IPPrefixesWebhooks{} + return &this +} + +// NewIPPrefixesWebhooksWithDefaults instantiates a new IPPrefixesWebhooks 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 +func NewIPPrefixesWebhooksWithDefaults() *IPPrefixesWebhooks { + this := IPPrefixesWebhooks{} + return &this +} + +// GetPrefixesIpv4 returns the PrefixesIpv4 field value if set, zero value otherwise. +func (o *IPPrefixesWebhooks) GetPrefixesIpv4() []string { + if o == nil || o.PrefixesIpv4 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv4 +} + +// GetPrefixesIpv4Ok returns a tuple with the PrefixesIpv4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesWebhooks) GetPrefixesIpv4Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv4 == nil { + return nil, false + } + return o.PrefixesIpv4, true +} + +// HasPrefixesIpv4 returns a boolean if a field has been set. +func (o *IPPrefixesWebhooks) HasPrefixesIpv4() bool { + if o != nil && o.PrefixesIpv4 != nil { + return true + } + + return false +} + +// SetPrefixesIpv4 gets a reference to the given []string and assigns it to the PrefixesIpv4 field. +func (o *IPPrefixesWebhooks) SetPrefixesIpv4(v []string) { + o.PrefixesIpv4 = &v +} + +// GetPrefixesIpv6 returns the PrefixesIpv6 field value if set, zero value otherwise. +func (o *IPPrefixesWebhooks) GetPrefixesIpv6() []string { + if o == nil || o.PrefixesIpv6 == nil { + var ret []string + return ret + } + return *o.PrefixesIpv6 +} + +// GetPrefixesIpv6Ok returns a tuple with the PrefixesIpv6 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPPrefixesWebhooks) GetPrefixesIpv6Ok() (*[]string, bool) { + if o == nil || o.PrefixesIpv6 == nil { + return nil, false + } + return o.PrefixesIpv6, true +} + +// HasPrefixesIpv6 returns a boolean if a field has been set. +func (o *IPPrefixesWebhooks) HasPrefixesIpv6() bool { + if o != nil && o.PrefixesIpv6 != nil { + return true + } + + return false +} + +// SetPrefixesIpv6 gets a reference to the given []string and assigns it to the PrefixesIpv6 field. +func (o *IPPrefixesWebhooks) SetPrefixesIpv6(v []string) { + o.PrefixesIpv6 = &v +} + +func (o IPPrefixesWebhooks) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if o.PrefixesIpv4 != nil { + toSerialize["prefixes_ipv4"] = o.PrefixesIpv4 + } + if o.PrefixesIpv6 != nil { + toSerialize["prefixes_ipv6"] = o.PrefixesIpv6 + } + return json.Marshal(toSerialize) +} + +type NullableIPPrefixesWebhooks struct { + value *IPPrefixesWebhooks + isSet bool +} + +func (v NullableIPPrefixesWebhooks) Get() *IPPrefixesWebhooks { + return v.value +} + +func (v *NullableIPPrefixesWebhooks) Set(val *IPPrefixesWebhooks) { + v.value = val + v.isSet = true +} + +func (v NullableIPPrefixesWebhooks) IsSet() bool { + return v.isSet +} + +func (v *NullableIPPrefixesWebhooks) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPPrefixesWebhooks(val *IPPrefixesWebhooks) *NullableIPPrefixesWebhooks { + return &NullableIPPrefixesWebhooks{value: val, isSet: true} +} + +func (v NullableIPPrefixesWebhooks) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPPrefixesWebhooks) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/api/v1/datadog/model_ip_ranges.go b/api/v1/datadog/model_ip_ranges.go index 82758017c02..f4c0fe620ac 100644 --- a/api/v1/datadog/model_ip_ranges.go +++ b/api/v1/datadog/model_ip_ranges.go @@ -14,17 +14,17 @@ import ( // IPRanges TODO. type IPRanges struct { - Agents *IPPrefixes `json:"agents,omitempty"` - Api *IPPrefixes `json:"api,omitempty"` - Apm *IPPrefixes `json:"apm,omitempty"` - Logs *IPPrefixes `json:"logs,omitempty"` + Agents *IPPrefixesAgents `json:"agents,omitempty"` + Api *IPPrefixesAPI `json:"api,omitempty"` + Apm *IPPrefixesAPM `json:"apm,omitempty"` + Logs *IPPrefixesLogs `json:"logs,omitempty"` // Date when last updated, in the form `YYYY-MM-DD-hh-mm-ss`. - Modified *string `json:"modified,omitempty"` - Process *IPPrefixes `json:"process,omitempty"` - Synthetics *IPPrefixes `json:"synthetics,omitempty"` + Modified *string `json:"modified,omitempty"` + Process *IPPrefixesProcess `json:"process,omitempty"` + Synthetics *IPPrefixesSynthetics `json:"synthetics,omitempty"` // Version of the IP list. - Version *int64 `json:"version,omitempty"` - Webhooks *IPPrefixes `json:"webhooks,omitempty"` + Version *int64 `json:"version,omitempty"` + Webhooks *IPPrefixesWebhooks `json:"webhooks,omitempty"` } // NewIPRanges instantiates a new IPRanges object @@ -45,9 +45,9 @@ func NewIPRangesWithDefaults() *IPRanges { } // GetAgents returns the Agents field value if set, zero value otherwise. -func (o *IPRanges) GetAgents() IPPrefixes { +func (o *IPRanges) GetAgents() IPPrefixesAgents { if o == nil || o.Agents == nil { - var ret IPPrefixes + var ret IPPrefixesAgents return ret } return *o.Agents @@ -55,7 +55,7 @@ func (o *IPRanges) GetAgents() IPPrefixes { // GetAgentsOk returns a tuple with the Agents field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPRanges) GetAgentsOk() (*IPPrefixes, bool) { +func (o *IPRanges) GetAgentsOk() (*IPPrefixesAgents, bool) { if o == nil || o.Agents == nil { return nil, false } @@ -71,15 +71,15 @@ func (o *IPRanges) HasAgents() bool { return false } -// SetAgents gets a reference to the given IPPrefixes and assigns it to the Agents field. -func (o *IPRanges) SetAgents(v IPPrefixes) { +// SetAgents gets a reference to the given IPPrefixesAgents and assigns it to the Agents field. +func (o *IPRanges) SetAgents(v IPPrefixesAgents) { o.Agents = &v } // GetApi returns the Api field value if set, zero value otherwise. -func (o *IPRanges) GetApi() IPPrefixes { +func (o *IPRanges) GetApi() IPPrefixesAPI { if o == nil || o.Api == nil { - var ret IPPrefixes + var ret IPPrefixesAPI return ret } return *o.Api @@ -87,7 +87,7 @@ func (o *IPRanges) GetApi() IPPrefixes { // GetApiOk returns a tuple with the Api field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPRanges) GetApiOk() (*IPPrefixes, bool) { +func (o *IPRanges) GetApiOk() (*IPPrefixesAPI, bool) { if o == nil || o.Api == nil { return nil, false } @@ -103,15 +103,15 @@ func (o *IPRanges) HasApi() bool { return false } -// SetApi gets a reference to the given IPPrefixes and assigns it to the Api field. -func (o *IPRanges) SetApi(v IPPrefixes) { +// SetApi gets a reference to the given IPPrefixesAPI and assigns it to the Api field. +func (o *IPRanges) SetApi(v IPPrefixesAPI) { o.Api = &v } // GetApm returns the Apm field value if set, zero value otherwise. -func (o *IPRanges) GetApm() IPPrefixes { +func (o *IPRanges) GetApm() IPPrefixesAPM { if o == nil || o.Apm == nil { - var ret IPPrefixes + var ret IPPrefixesAPM return ret } return *o.Apm @@ -119,7 +119,7 @@ func (o *IPRanges) GetApm() IPPrefixes { // GetApmOk returns a tuple with the Apm field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPRanges) GetApmOk() (*IPPrefixes, bool) { +func (o *IPRanges) GetApmOk() (*IPPrefixesAPM, bool) { if o == nil || o.Apm == nil { return nil, false } @@ -135,15 +135,15 @@ func (o *IPRanges) HasApm() bool { return false } -// SetApm gets a reference to the given IPPrefixes and assigns it to the Apm field. -func (o *IPRanges) SetApm(v IPPrefixes) { +// SetApm gets a reference to the given IPPrefixesAPM and assigns it to the Apm field. +func (o *IPRanges) SetApm(v IPPrefixesAPM) { o.Apm = &v } // GetLogs returns the Logs field value if set, zero value otherwise. -func (o *IPRanges) GetLogs() IPPrefixes { +func (o *IPRanges) GetLogs() IPPrefixesLogs { if o == nil || o.Logs == nil { - var ret IPPrefixes + var ret IPPrefixesLogs return ret } return *o.Logs @@ -151,7 +151,7 @@ func (o *IPRanges) GetLogs() IPPrefixes { // GetLogsOk returns a tuple with the Logs field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPRanges) GetLogsOk() (*IPPrefixes, bool) { +func (o *IPRanges) GetLogsOk() (*IPPrefixesLogs, bool) { if o == nil || o.Logs == nil { return nil, false } @@ -167,8 +167,8 @@ func (o *IPRanges) HasLogs() bool { return false } -// SetLogs gets a reference to the given IPPrefixes and assigns it to the Logs field. -func (o *IPRanges) SetLogs(v IPPrefixes) { +// SetLogs gets a reference to the given IPPrefixesLogs and assigns it to the Logs field. +func (o *IPRanges) SetLogs(v IPPrefixesLogs) { o.Logs = &v } @@ -205,9 +205,9 @@ func (o *IPRanges) SetModified(v string) { } // GetProcess returns the Process field value if set, zero value otherwise. -func (o *IPRanges) GetProcess() IPPrefixes { +func (o *IPRanges) GetProcess() IPPrefixesProcess { if o == nil || o.Process == nil { - var ret IPPrefixes + var ret IPPrefixesProcess return ret } return *o.Process @@ -215,7 +215,7 @@ func (o *IPRanges) GetProcess() IPPrefixes { // GetProcessOk returns a tuple with the Process field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPRanges) GetProcessOk() (*IPPrefixes, bool) { +func (o *IPRanges) GetProcessOk() (*IPPrefixesProcess, bool) { if o == nil || o.Process == nil { return nil, false } @@ -231,15 +231,15 @@ func (o *IPRanges) HasProcess() bool { return false } -// SetProcess gets a reference to the given IPPrefixes and assigns it to the Process field. -func (o *IPRanges) SetProcess(v IPPrefixes) { +// SetProcess gets a reference to the given IPPrefixesProcess and assigns it to the Process field. +func (o *IPRanges) SetProcess(v IPPrefixesProcess) { o.Process = &v } // GetSynthetics returns the Synthetics field value if set, zero value otherwise. -func (o *IPRanges) GetSynthetics() IPPrefixes { +func (o *IPRanges) GetSynthetics() IPPrefixesSynthetics { if o == nil || o.Synthetics == nil { - var ret IPPrefixes + var ret IPPrefixesSynthetics return ret } return *o.Synthetics @@ -247,7 +247,7 @@ func (o *IPRanges) GetSynthetics() IPPrefixes { // GetSyntheticsOk returns a tuple with the Synthetics field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPRanges) GetSyntheticsOk() (*IPPrefixes, bool) { +func (o *IPRanges) GetSyntheticsOk() (*IPPrefixesSynthetics, bool) { if o == nil || o.Synthetics == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *IPRanges) HasSynthetics() bool { return false } -// SetSynthetics gets a reference to the given IPPrefixes and assigns it to the Synthetics field. -func (o *IPRanges) SetSynthetics(v IPPrefixes) { +// SetSynthetics gets a reference to the given IPPrefixesSynthetics and assigns it to the Synthetics field. +func (o *IPRanges) SetSynthetics(v IPPrefixesSynthetics) { o.Synthetics = &v } @@ -301,9 +301,9 @@ func (o *IPRanges) SetVersion(v int64) { } // GetWebhooks returns the Webhooks field value if set, zero value otherwise. -func (o *IPRanges) GetWebhooks() IPPrefixes { +func (o *IPRanges) GetWebhooks() IPPrefixesWebhooks { if o == nil || o.Webhooks == nil { - var ret IPPrefixes + var ret IPPrefixesWebhooks return ret } return *o.Webhooks @@ -311,7 +311,7 @@ func (o *IPRanges) GetWebhooks() IPPrefixes { // GetWebhooksOk returns a tuple with the Webhooks field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IPRanges) GetWebhooksOk() (*IPPrefixes, bool) { +func (o *IPRanges) GetWebhooksOk() (*IPPrefixesWebhooks, bool) { if o == nil || o.Webhooks == nil { return nil, false } @@ -327,8 +327,8 @@ func (o *IPRanges) HasWebhooks() bool { return false } -// SetWebhooks gets a reference to the given IPPrefixes and assigns it to the Webhooks field. -func (o *IPRanges) SetWebhooks(v IPPrefixes) { +// SetWebhooks gets a reference to the given IPPrefixesWebhooks and assigns it to the Webhooks field. +func (o *IPRanges) SetWebhooks(v IPPrefixesWebhooks) { o.Webhooks = &v }