From 6575859cec7f93a8bb42a21f5ee42f38da2f39d4 Mon Sep 17 00:00:00 2001 From: Anil Gadiyar Date: Tue, 20 Aug 2024 12:29:03 +0530 Subject: [PATCH] Inclusion of client code for cloud discovery --- client/client.go | 3 + clouddiscovery/.openapi-generator-ignore | 23 + clouddiscovery/.openapi-generator/FILES | 62 + clouddiscovery/.openapi-generator/VERSION | 1 + clouddiscovery/README.md | 143 ++ clouddiscovery/api/openapi.yaml | 2117 +++++++++++++++++ clouddiscovery/api_accounts.go | 213 ++ clouddiscovery/api_providers.go | 676 ++++++ clouddiscovery/api_sub_accounts.go | 144 ++ clouddiscovery/client.go | 54 + clouddiscovery/docs/AccountsAPI.md | 81 + clouddiscovery/docs/ApiPageInfo.md | 108 + clouddiscovery/docs/DdidnsrickettsAccount.md | 493 ++++ .../docs/DdidnsrickettsAccountListResponse.md | 82 + .../docs/DdidnsrickettsAdditionalConfig.md | 134 ++ clouddiscovery/docs/DdidnsrickettsCategory.md | 82 + .../docs/DdidnsrickettsCredentialConfig.md | 108 + .../DdidnsrickettsCredentialPreference.md | 82 + .../docs/DdidnsrickettsDNSConfig.md | 160 ++ .../docs/DdidnsrickettsDestination.md | 181 ++ .../docs/DdidnsrickettsDestinationConfig.md | 82 + .../docs/DdidnsrickettsDiscoveryConfig.md | 519 ++++ .../docs/DdidnsrickettsIPAMConfig.md | 82 + clouddiscovery/docs/DdidnsrickettsObject.md | 82 + .../docs/DdidnsrickettsObjectType.md | 108 + .../DdidnsrickettsProviderCreateResponse.md | 56 + .../DdidnsrickettsProviderListResponse.md | 82 + .../DdidnsrickettsProviderReadResponse.md | 56 + .../DdidnsrickettsProviderUpdateResponse.md | 56 + clouddiscovery/docs/DdidnsrickettsResource.md | 82 + .../docs/DdidnsrickettsSourceConfig.md | 259 ++ .../DdidnsrickettsSubAccountListRequestV2.md | 160 ++ .../DdidnsrickettsSubAccountListResponseV2.md | 82 + .../DdidnsrickettsSubAccountProvCredConfig.md | 108 + .../docs/DdidnsrickettsSubAccountV2.md | 82 + clouddiscovery/docs/ProvidersAPI.md | 359 +++ clouddiscovery/docs/SubAccountsAPI.md | 75 + clouddiscovery/model_api_page_info.go | 230 ++ .../model_ddidnsricketts_account.go | 810 +++++++ ...el_ddidnsricketts_account_list_response.go | 190 ++ .../model_ddidnsricketts_additional_config.go | 264 ++ .../model_ddidnsricketts_category.go | 190 ++ .../model_ddidnsricketts_credential_config.go | 227 ++ ...el_ddidnsricketts_credential_preference.go | 190 ++ .../model_ddidnsricketts_destination.go | 358 +++ ...model_ddidnsricketts_destination_config.go | 190 ++ .../model_ddidnsricketts_discovery_config.go | 851 +++++++ .../model_ddidnsricketts_dns_config.go | 302 +++ .../model_ddidnsricketts_ipam_config.go | 190 ++ clouddiscovery/model_ddidnsricketts_object.go | 190 ++ .../model_ddidnsricketts_object_type.go | 227 ++ ...ddidnsricketts_provider_create_response.go | 153 ++ ...l_ddidnsricketts_provider_list_response.go | 190 ++ ...l_ddidnsricketts_provider_read_response.go | 153 ++ ...ddidnsricketts_provider_update_response.go | 153 ++ .../model_ddidnsricketts_resource.go | 190 ++ .../model_ddidnsricketts_source_config.go | 471 ++++ ...dnsricketts_sub_account_list_request_v2.go | 302 +++ ...nsricketts_sub_account_list_response_v2.go | 190 ++ ...nsricketts_sub_account_prov_cred_config.go | 227 ++ .../model_ddidnsricketts_sub_account_v2.go | 190 ++ clouddiscovery/test/api_accounts_test.go | 38 + clouddiscovery/test/api_providers_test.go | 91 + clouddiscovery/test/api_sub_accounts_test.go | 38 + clouddiscovery/utils.go | 347 +++ 65 files changed, 14419 insertions(+) create mode 100644 clouddiscovery/.openapi-generator-ignore create mode 100644 clouddiscovery/.openapi-generator/FILES create mode 100644 clouddiscovery/.openapi-generator/VERSION create mode 100644 clouddiscovery/README.md create mode 100644 clouddiscovery/api/openapi.yaml create mode 100644 clouddiscovery/api_accounts.go create mode 100644 clouddiscovery/api_providers.go create mode 100644 clouddiscovery/api_sub_accounts.go create mode 100644 clouddiscovery/client.go create mode 100644 clouddiscovery/docs/AccountsAPI.md create mode 100644 clouddiscovery/docs/ApiPageInfo.md create mode 100644 clouddiscovery/docs/DdidnsrickettsAccount.md create mode 100644 clouddiscovery/docs/DdidnsrickettsAccountListResponse.md create mode 100644 clouddiscovery/docs/DdidnsrickettsAdditionalConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsCategory.md create mode 100644 clouddiscovery/docs/DdidnsrickettsCredentialConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsCredentialPreference.md create mode 100644 clouddiscovery/docs/DdidnsrickettsDNSConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsDestination.md create mode 100644 clouddiscovery/docs/DdidnsrickettsDestinationConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsDiscoveryConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsIPAMConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsObject.md create mode 100644 clouddiscovery/docs/DdidnsrickettsObjectType.md create mode 100644 clouddiscovery/docs/DdidnsrickettsProviderCreateResponse.md create mode 100644 clouddiscovery/docs/DdidnsrickettsProviderListResponse.md create mode 100644 clouddiscovery/docs/DdidnsrickettsProviderReadResponse.md create mode 100644 clouddiscovery/docs/DdidnsrickettsProviderUpdateResponse.md create mode 100644 clouddiscovery/docs/DdidnsrickettsResource.md create mode 100644 clouddiscovery/docs/DdidnsrickettsSourceConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsSubAccountListRequestV2.md create mode 100644 clouddiscovery/docs/DdidnsrickettsSubAccountListResponseV2.md create mode 100644 clouddiscovery/docs/DdidnsrickettsSubAccountProvCredConfig.md create mode 100644 clouddiscovery/docs/DdidnsrickettsSubAccountV2.md create mode 100644 clouddiscovery/docs/ProvidersAPI.md create mode 100644 clouddiscovery/docs/SubAccountsAPI.md create mode 100644 clouddiscovery/model_api_page_info.go create mode 100644 clouddiscovery/model_ddidnsricketts_account.go create mode 100644 clouddiscovery/model_ddidnsricketts_account_list_response.go create mode 100644 clouddiscovery/model_ddidnsricketts_additional_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_category.go create mode 100644 clouddiscovery/model_ddidnsricketts_credential_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_credential_preference.go create mode 100644 clouddiscovery/model_ddidnsricketts_destination.go create mode 100644 clouddiscovery/model_ddidnsricketts_destination_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_discovery_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_dns_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_ipam_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_object.go create mode 100644 clouddiscovery/model_ddidnsricketts_object_type.go create mode 100644 clouddiscovery/model_ddidnsricketts_provider_create_response.go create mode 100644 clouddiscovery/model_ddidnsricketts_provider_list_response.go create mode 100644 clouddiscovery/model_ddidnsricketts_provider_read_response.go create mode 100644 clouddiscovery/model_ddidnsricketts_provider_update_response.go create mode 100644 clouddiscovery/model_ddidnsricketts_resource.go create mode 100644 clouddiscovery/model_ddidnsricketts_source_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_sub_account_list_request_v2.go create mode 100644 clouddiscovery/model_ddidnsricketts_sub_account_list_response_v2.go create mode 100644 clouddiscovery/model_ddidnsricketts_sub_account_prov_cred_config.go create mode 100644 clouddiscovery/model_ddidnsricketts_sub_account_v2.go create mode 100644 clouddiscovery/test/api_accounts_test.go create mode 100644 clouddiscovery/test/api_providers_test.go create mode 100644 clouddiscovery/test/api_sub_accounts_test.go create mode 100644 clouddiscovery/utils.go diff --git a/client/client.go b/client/client.go index a68782d..55193cd 100644 --- a/client/client.go +++ b/client/client.go @@ -2,6 +2,7 @@ package client import ( "github.com/infobloxopen/bloxone-go-client/anycast" + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" "github.com/infobloxopen/bloxone-go-client/dfp" "github.com/infobloxopen/bloxone-go-client/dnsconfig" "github.com/infobloxopen/bloxone-go-client/dnsdata" @@ -18,6 +19,7 @@ import ( // APIClient is an aggregation of different BloxOne API clients. type APIClient struct { IPAddressManagementAPI *ipam.APIClient + CloudDiscoveryAPI *clouddiscovery.APIClient DNSConfigurationAPI *dnsconfig.APIClient DNSDataAPI *dnsdata.APIClient HostActivationAPI *infraprovision.APIClient @@ -54,6 +56,7 @@ type APIClient struct { func NewAPIClient(options ...option.ClientOption) *APIClient { return &APIClient{ IPAddressManagementAPI: ipam.NewAPIClient(options...), + CloudDiscoveryAPI: clouddiscovery.NewAPIClient(options...), DNSConfigurationAPI: dnsconfig.NewAPIClient(options...), DNSDataAPI: dnsdata.NewAPIClient(options...), HostActivationAPI: infraprovision.NewAPIClient(options...), diff --git a/clouddiscovery/.openapi-generator-ignore b/clouddiscovery/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/clouddiscovery/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/clouddiscovery/.openapi-generator/FILES b/clouddiscovery/.openapi-generator/FILES new file mode 100644 index 0000000..a02ecdb --- /dev/null +++ b/clouddiscovery/.openapi-generator/FILES @@ -0,0 +1,62 @@ +.openapi-generator-ignore +README.md +api/openapi.yaml +api_accounts.go +api_providers.go +api_sub_accounts.go +client.go +docs/AccountsAPI.md +docs/ApiPageInfo.md +docs/DdidnsrickettsAccount.md +docs/DdidnsrickettsAccountListResponse.md +docs/DdidnsrickettsAdditionalConfig.md +docs/DdidnsrickettsCategory.md +docs/DdidnsrickettsCredentialConfig.md +docs/DdidnsrickettsCredentialPreference.md +docs/DdidnsrickettsDNSConfig.md +docs/DdidnsrickettsDestination.md +docs/DdidnsrickettsDestinationConfig.md +docs/DdidnsrickettsDiscoveryConfig.md +docs/DdidnsrickettsIPAMConfig.md +docs/DdidnsrickettsObject.md +docs/DdidnsrickettsObjectType.md +docs/DdidnsrickettsProviderCreateResponse.md +docs/DdidnsrickettsProviderListResponse.md +docs/DdidnsrickettsProviderReadResponse.md +docs/DdidnsrickettsProviderUpdateResponse.md +docs/DdidnsrickettsResource.md +docs/DdidnsrickettsSourceConfig.md +docs/DdidnsrickettsSubAccountListRequestV2.md +docs/DdidnsrickettsSubAccountListResponseV2.md +docs/DdidnsrickettsSubAccountProvCredConfig.md +docs/DdidnsrickettsSubAccountV2.md +docs/ProvidersAPI.md +docs/SubAccountsAPI.md +model_api_page_info.go +model_ddidnsricketts_account.go +model_ddidnsricketts_account_list_response.go +model_ddidnsricketts_additional_config.go +model_ddidnsricketts_category.go +model_ddidnsricketts_credential_config.go +model_ddidnsricketts_credential_preference.go +model_ddidnsricketts_destination.go +model_ddidnsricketts_destination_config.go +model_ddidnsricketts_discovery_config.go +model_ddidnsricketts_dns_config.go +model_ddidnsricketts_ipam_config.go +model_ddidnsricketts_object.go +model_ddidnsricketts_object_type.go +model_ddidnsricketts_provider_create_response.go +model_ddidnsricketts_provider_list_response.go +model_ddidnsricketts_provider_read_response.go +model_ddidnsricketts_provider_update_response.go +model_ddidnsricketts_resource.go +model_ddidnsricketts_source_config.go +model_ddidnsricketts_sub_account_list_request_v2.go +model_ddidnsricketts_sub_account_list_response_v2.go +model_ddidnsricketts_sub_account_prov_cred_config.go +model_ddidnsricketts_sub_account_v2.go +test/api_accounts_test.go +test/api_providers_test.go +test/api_sub_accounts_test.go +utils.go diff --git a/clouddiscovery/.openapi-generator/VERSION b/clouddiscovery/.openapi-generator/VERSION new file mode 100644 index 0000000..18bb418 --- /dev/null +++ b/clouddiscovery/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.5.0 diff --git a/clouddiscovery/README.md b/clouddiscovery/README.md new file mode 100644 index 0000000..1458e65 --- /dev/null +++ b/clouddiscovery/README.md @@ -0,0 +1,143 @@ +# Go API client for Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets + +Base Paths: +1. provider: **_/api/cloud_discovery/v2/_** + + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: v2 +- Generator version: 7.5.0 +- Build package: com.infoblox.codegen.BloxoneGoClientCodegen + +## Installation + +Install the package using `go get`: +```bash +go get github.com/infobloxopen/bloxone-go-client/clouddiscovery +``` + +Import the package into your code: +```go +import "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```go +os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port") +``` + +To create a new API client, you can use the `NewAPIClient` function as shown below +```go +client := clouddiscovery.NewAPIClient() +``` + +## Configuration + +The `NewAPIClient` function accepts a variadic list of `option.ClientOption` functions that can be used to configure the client. +It requires the `option` package to be imported. You can import the package using: +```go +import "github.com/infobloxopen/bloxone-go-client/option" +``` + +### Client Name +The client name is used to identify the client in the logs. By default, the client name is set to `bloxone-go-client`. You can change this using the `option.WithClientName` option. For example: +```go +client := clouddiscovery.NewAPIClient(option.WithClientName("my-client")) +``` + +### Server URL + +The default URL for the Cloud Services Portal is `https://csp.infoblox.com`. If you need to change this, you can use `option.WithCSPUrl` to set the URL. For example: + +```go +client := clouddiscovery.NewAPIClient(option.WithCSPUrl("https://csp.eu.infoblox.com")) +``` + +You can also set the URL using the environment variable `BLOXONE_CSP_URL` + +### Authorization + +An API key is required to access Discovery Configuration API V2. You can obtain an API key by following the instructions in the guide for [Configuring User API Keys](https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys). + +To use an API key with Discovery Configuration API V2, you can use the `option.WithAPIKey` option. For example: + +```go +client := clouddiscovery.NewAPIClient(option.WithAPIKey("YOUR_API_KEY")) +``` + +You can also set the API key using the environment variable `BLOXONE_API_KEY` + +Note: The API key is a secret and should be handled securely. Hardcoding the API key in your code is not recommended. + +### Default Tags + +You can set default tags for all API requests using the `option.WithDefaultTags` option. For example: + +```go +client := clouddiscovery.NewAPIClient(option.WithDefaultTags(map[string]string{"tag1": "value1", "tag2": "value2"})) +``` +This will add the tags `tag1=value1` and `tag2=value2` to all API requests that support tags in the request body. + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*AccountsAPI* | [**List**](docs/AccountsAPI.md#list) | **Get** /accounts | List Accounts +*ProvidersAPI* | [**Create**](docs/ProvidersAPI.md#create) | **Post** /providers | Create Provider +*ProvidersAPI* | [**Delete**](docs/ProvidersAPI.md#delete) | **Delete** /providers/{id} | Delete Provider +*ProvidersAPI* | [**List**](docs/ProvidersAPI.md#list) | **Get** /providers | List Provider +*ProvidersAPI* | [**Read**](docs/ProvidersAPI.md#read) | **Get** /providers/{id} | Read Provider +*ProvidersAPI* | [**Update**](docs/ProvidersAPI.md#update) | **Put** /providers/{id} | Update Provider +*SubAccountsAPI* | [**List**](docs/SubAccountsAPI.md#list) | **Post** /sub_accounts | List Sub-accounts + + +## Documentation For Models + + - [ApiPageInfo](docs/ApiPageInfo.md) + - [DdidnsrickettsAccount](docs/DdidnsrickettsAccount.md) + - [DdidnsrickettsAccountListResponse](docs/DdidnsrickettsAccountListResponse.md) + - [DdidnsrickettsAdditionalConfig](docs/DdidnsrickettsAdditionalConfig.md) + - [DdidnsrickettsCategory](docs/DdidnsrickettsCategory.md) + - [DdidnsrickettsCredentialConfig](docs/DdidnsrickettsCredentialConfig.md) + - [DdidnsrickettsCredentialPreference](docs/DdidnsrickettsCredentialPreference.md) + - [DdidnsrickettsDNSConfig](docs/DdidnsrickettsDNSConfig.md) + - [DdidnsrickettsDestination](docs/DdidnsrickettsDestination.md) + - [DdidnsrickettsDestinationConfig](docs/DdidnsrickettsDestinationConfig.md) + - [DdidnsrickettsDiscoveryConfig](docs/DdidnsrickettsDiscoveryConfig.md) + - [DdidnsrickettsIPAMConfig](docs/DdidnsrickettsIPAMConfig.md) + - [DdidnsrickettsObject](docs/DdidnsrickettsObject.md) + - [DdidnsrickettsObjectType](docs/DdidnsrickettsObjectType.md) + - [DdidnsrickettsProviderCreateResponse](docs/DdidnsrickettsProviderCreateResponse.md) + - [DdidnsrickettsProviderListResponse](docs/DdidnsrickettsProviderListResponse.md) + - [DdidnsrickettsProviderReadResponse](docs/DdidnsrickettsProviderReadResponse.md) + - [DdidnsrickettsProviderUpdateResponse](docs/DdidnsrickettsProviderUpdateResponse.md) + - [DdidnsrickettsResource](docs/DdidnsrickettsResource.md) + - [DdidnsrickettsSourceConfig](docs/DdidnsrickettsSourceConfig.md) + - [DdidnsrickettsSubAccountListRequestV2](docs/DdidnsrickettsSubAccountListRequestV2.md) + - [DdidnsrickettsSubAccountListResponseV2](docs/DdidnsrickettsSubAccountListResponseV2.md) + - [DdidnsrickettsSubAccountProvCredConfig](docs/DdidnsrickettsSubAccountProvCredConfig.md) + - [DdidnsrickettsSubAccountV2](docs/DdidnsrickettsSubAccountV2.md) + + +## Documentation for Utility Methods + +Due to the fact that model structure members are all pointers, this package contains +a number of utility functions to easily obtain pointers to values of basic types. +Each of these functions takes a value of the given basic type and returns a pointer to it: + +* `PtrBool` +* `PtrInt` +* `PtrInt32` +* `PtrInt64` +* `PtrFloat` +* `PtrFloat32` +* `PtrFloat64` +* `PtrString` +* `PtrTime` diff --git a/clouddiscovery/api/openapi.yaml b/clouddiscovery/api/openapi.yaml new file mode 100644 index 0000000..dee1ba0 --- /dev/null +++ b/clouddiscovery/api/openapi.yaml @@ -0,0 +1,2117 @@ +openapi: 3.0.1 +info: + description: "The Discovery configuration service is a BloxOne Service that provides\ + \ configuration for accessing and syncing the Cloud assets \n\nBase Paths: \n\ + 1. provider: **/api/cloud_discovery/v2/** \n" + title: Discovery Configuration API V2 + version: v2 +servers: +- url: / +security: +- ApiKeyAuth: [] +paths: + /accounts: + get: + description: Use this method to list Accounts + operationId: AccountsList + parameters: + - description: "\n\nA collection of response resources can be transformed by\ + \ specifying a set of JSON tags to be returned. For a “flat” resource, the\ + \ tag name is straightforward. If field selection is allowed on non-flat\ + \ hierarchical resources, the service should implement a qualified naming\ + \ scheme such as dot-qualification to reference data down the hierarchy.\ + \ If a resource does not have the specified tag, the tag does not appear\ + \ in the output resource.\n\nSpecify this parameter as a comma-separated\ + \ list of JSON tag names.\n\n\t\t\t\t\t\t" + in: query + name: _fields + schema: + type: string + - description: "\n\nA collection of response resources can be filtered by a\ + \ logical expression string that includes JSON tag references to values\ + \ in each resource, literal values, and logical operators. If a resource\ + \ does not have the specified tag, its value is assumed to be null.\n\n\ + Literal values include numbers (integer and floating-point), and quoted\ + \ (both single- or double-quoted) literal strings, and 'null'. The following\ + \ operators are commonly used in filter expressions:\n\n| Op | Description\ + \ | \n| -- | ----------- | \n| == | \ + \ Equal | \n| != | Not Equal | \n\ + | > | Greater Than | \n| >= | Greater Than or Equal\ + \ To | \n| < | Less Than | \n| <= | Less Than\ + \ or Equal To | \n| and | Logical AND | \n| ~ |\ + \ Matches Regex | \n| !~ | Does Not Match Regex |\ + \ \n| or | Logical OR | \n| not | Logical NOT \ + \ | \n| () | Groupping Operators |\n\n\t\t\t\t\t\t" + in: query + name: _filter + schema: + type: string + - description: "\n\nThe integer index (zero-origin) of the offset into a collection\ + \ of resources. If omitted or null the value is assumed to be '0'.\n\n\t\ + \t\t\t\t\t\t" + in: query + name: _offset + schema: + type: integer + - description: "\n\nThe integer number of resources to be returned in the response.\ + \ The service may impose maximum value. If omitted the service may impose\ + \ a default value.\n\n\t\t\t\t\t\t\t" + in: query + name: _limit + schema: + type: integer + - description: "\n\nThe service-defined string used to identify a page of resources.\ + \ A null value indicates the first page.\n\n\t\t\t\t\t\t\t" + in: query + name: _page_token + schema: + type: string + - description: "\n\nA collection of response resources can be sorted by their\ + \ JSON tags. For a 'flat' resource, the tag name is straightforward. If\ + \ sorting is allowed on non-flat hierarchical resources, the service should\ + \ implement a qualified naming scheme such as dot-qualification to reference\ + \ data down the hierarchy. If a resource does not have the specified tag,\ + \ its value is assumed to be null.)\n\nSpecify this parameter as a comma-separated\ + \ list of JSON tag names. The sort direction can be specified by a suffix\ + \ separated by whitespace before the tag name. The suffix 'asc' sorts the\ + \ data in ascending order. The suffix 'desc' sorts the data in descending\ + \ order. If no suffix is specified the data is sorted in ascending order.\n\ + \n\t\t\t\t\t\t" + in: query + name: _order_by + schema: + type: string + - description: This parameter is used for filtering by tags. + in: query + name: _tfilter + schema: + type: string + - description: This parameter is used for sorting by tags. + in: query + name: _torder_by + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsAccountListResponse' + description: GET operation response + summary: List Accounts + tags: + - Accounts + /providers: + get: + description: Use this method to list Provider + operationId: ProvidersList + parameters: + - description: "\n\nA collection of response resources can be transformed by\ + \ specifying a set of JSON tags to be returned. For a “flat” resource, the\ + \ tag name is straightforward. If field selection is allowed on non-flat\ + \ hierarchical resources, the service should implement a qualified naming\ + \ scheme such as dot-qualification to reference data down the hierarchy.\ + \ If a resource does not have the specified tag, the tag does not appear\ + \ in the output resource.\n\nSpecify this parameter as a comma-separated\ + \ list of JSON tag names.\n\n\t\t\t\t\t\t" + in: query + name: _fields + schema: + type: string + - description: "\n\nA collection of response resources can be filtered by a\ + \ logical expression string that includes JSON tag references to values\ + \ in each resource, literal values, and logical operators. If a resource\ + \ does not have the specified tag, its value is assumed to be null.\n\n\ + Literal values include numbers (integer and floating-point), and quoted\ + \ (both single- or double-quoted) literal strings, and 'null'. The following\ + \ operators are commonly used in filter expressions:\n\n| Op | Description\ + \ | \n| -- | ----------- | \n| == | \ + \ Equal | \n| != | Not Equal | \n\ + | > | Greater Than | \n| >= | Greater Than or Equal\ + \ To | \n| < | Less Than | \n| <= | Less Than\ + \ or Equal To | \n| and | Logical AND | \n| ~ |\ + \ Matches Regex | \n| !~ | Does Not Match Regex |\ + \ \n| or | Logical OR | \n| not | Logical NOT \ + \ | \n| () | Groupping Operators |\n\n\t\t\t\t\t\t" + in: query + name: _filter + schema: + type: string + - description: "\n\nThe integer index (zero-origin) of the offset into a collection\ + \ of resources. If omitted or null the value is assumed to be '0'.\n\n\t\ + \t\t\t\t\t\t" + in: query + name: _offset + schema: + type: integer + - description: "\n\nThe integer number of resources to be returned in the response.\ + \ The service may impose maximum value. If omitted the service may impose\ + \ a default value.\n\n\t\t\t\t\t\t\t" + in: query + name: _limit + schema: + type: integer + - description: "\n\nThe service-defined string used to identify a page of resources.\ + \ A null value indicates the first page.\n\n\t\t\t\t\t\t\t" + in: query + name: _page_token + schema: + type: string + - description: "\n\nA collection of response resources can be sorted by their\ + \ JSON tags. For a 'flat' resource, the tag name is straightforward. If\ + \ sorting is allowed on non-flat hierarchical resources, the service should\ + \ implement a qualified naming scheme such as dot-qualification to reference\ + \ data down the hierarchy. If a resource does not have the specified tag,\ + \ its value is assumed to be null.)\n\nSpecify this parameter as a comma-separated\ + \ list of JSON tag names. The sort direction can be specified by a suffix\ + \ separated by whitespace before the tag name. The suffix 'asc' sorts the\ + \ data in ascending order. The suffix 'desc' sorts the data in descending\ + \ order. If no suffix is specified the data is sorted in ascending order.\n\ + \n\t\t\t\t\t\t" + in: query + name: _order_by + schema: + type: string + - description: This parameter is used for filtering by tags. + in: query + name: _tfilter + schema: + type: string + - description: This parameter is used for sorting by tags. + in: query + name: _torder_by + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsProviderListResponse' + description: GET operation response + summary: List Provider + tags: + - Providers + post: + description: Use this method to create Provider + operationId: ProvidersCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsDiscoveryConfig' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsProviderCreateResponse' + description: POST operation response + summary: Create Provider + tags: + - Providers + x-codegen-request-body-name: body + /providers/{id}: + delete: + description: Use this method to delete Provider + operationId: ProvidersDelete + parameters: + - in: path + name: id + required: true + schema: + type: string + responses: + "204": + content: {} + description: No Content + summary: Delete Provider + tags: + - Providers + get: + description: Use this method to retrieve a single Provider by ID + operationId: ProvidersRead + parameters: + - in: path + name: id + required: true + schema: + type: string + - description: "\n\nA collection of response resources can be transformed by\ + \ specifying a set of JSON tags to be returned. For a “flat” resource, the\ + \ tag name is straightforward. If field selection is allowed on non-flat\ + \ hierarchical resources, the service should implement a qualified naming\ + \ scheme such as dot-qualification to reference data down the hierarchy.\ + \ If a resource does not have the specified tag, the tag does not appear\ + \ in the output resource.\n\nSpecify this parameter as a comma-separated\ + \ list of JSON tag names.\n\n\t\t\t\t\t\t" + in: query + name: _fields + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsProviderReadResponse' + description: GET operation response + summary: Read Provider + tags: + - Providers + put: + description: Use this method to update Provider + operationId: ProvidersUpdate + parameters: + - description: Auto-generated unique discovery config ID. Format BloxID. + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsDiscoveryConfig' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsProviderUpdateResponse' + description: PUT operation response + summary: Update Provider + tags: + - Providers + x-codegen-request-body-name: body + /sub_accounts: + post: + description: Use this method to list Sub-accounts + operationId: sub_accountsList + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsSubAccountListRequestV2' + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/ddidnsrickettsSubAccountListResponseV2' + description: POST operation response + summary: List Sub-accounts + tags: + - sub_accounts + x-codegen-request-body-name: body +components: + schemas: + apiPageInfo: + description: |- + PageInfo represents both server-driven and client-driven pagination response. + Server-driven pagination is a model in which the server returns some + amount of data along with an token indicating there is more data + and where subsequent queries can get the next page of data. + Client-driven pagination is a model in which rows are addressable by + offset and page size (limit). + example: + offset: 0 + size: 6 + page_token: page_token + properties: + offset: + description: |- + The service may optionally include the offset of the next page of resources. + A null value indicates no more pages. + format: int32 + type: integer + page_token: + description: |- + The service response should contain a string to indicate + the next page of resources. + A null value indicates no more pages. + type: string + size: + description: The service may optionally include the total number of resources + being paged. + format: int32 + type: integer + type: object + ddidnsrickettsAccount: + description: Source account information + example: + status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + properties: + composite_status: + title: combined status of the account and the all the destinations statuses + type: string + composite_status_message: + description: Status message of the sync operation. + type: string + created_at: + description: Timestamp when the object has been created. + format: date-time + readOnly: true + type: string + deleted_at: + description: Timestamp when the object has been deleted. + format: date-time + readOnly: true + type: string + dhcp_server_id: + readOnly: true + title: DHCP Server ID. MSAD case + type: string + dns_server_id: + description: DNS Server ID. + readOnly: true + type: string + id: + description: Auto-generated unique source account ID. Format BloxID. + readOnly: true + type: string + last_successful_sync: + description: Last successful sync timestamp. + format: date-time + readOnly: true + type: string + last_sync: + description: Last sync timestamp. + format: date-time + readOnly: true + type: string + name: + description: Name of the source account. + type: string + parent_id: + description: Parent ID. + type: string + percent_complete: + description: Sync progress as a percentage. + format: int32 + readOnly: true + type: integer + provider_account_id: + title: "Provider Account ID value, such as aws account_id, azure subscription_id,\ + \ gcp project_id" + type: string + schedule_id: + description: Schedule ID. + readOnly: true + type: string + state: + readOnly: true + title: "State represents the current state of the account, ex.: authorized,\ + \ unauthorized, excluded, disabled" + type: string + status: + description: Status of the sync operation. + readOnly: true + type: string + status_message: + description: Status message of the sync operation. + readOnly: true + type: string + updated_at: + description: Timestamp when the object has been updated. + format: date-time + readOnly: true + type: string + required: + - name + title: Account + type: object + ddidnsrickettsAccountListResponse: + description: The Account object List response format. + example: + page: + offset: 0 + size: 6 + page_token: page_token + results: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + properties: + page: + $ref: '#/components/schemas/apiPageInfo' + results: + items: + $ref: '#/components/schemas/ddidnsrickettsAccount' + type: array + title: AccountListResponse + type: object + ddidnsrickettsAdditionalConfig: + example: + object_type: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + excluded_accounts: + - excluded_accounts + - excluded_accounts + internal_ranges_enabled: true + forward_zone_enabled: true + properties: + excluded_accounts: + items: + type: string + title: excluded_accounts + type: array + forward_zone_enabled: + format: boolean + title: zone_forwarding refers to forwarding zone feature enabled or disabled. + values "true" or "false" + type: boolean + internal_ranges_enabled: + format: boolean + title: manage internal ranges for cloud provider GCP + type: boolean + object_type: + $ref: '#/components/schemas/ddidnsrickettsObjectType' + title: AdditionalConfig + type: object + ddidnsrickettsCategory: + description: Category ... + example: + excluded: true + id: id + properties: + excluded: + format: boolean + type: boolean + id: + readOnly: true + type: string + type: object + ddidnsrickettsCredentialConfig: + example: + access_identifier: access_identifier + region: region + enclave: enclave + properties: + access_identifier: + title: "access_identifier values: role_arn_1, tenant_id_123,project_id_123" + type: string + enclave: + title: enclave define whether its commercial or govt cloud + type: string + region: + title: region values for aws + type: string + title: CredentialConfig defines the credential configuration in source_configs + type: object + ddidnsrickettsCredentialPreference: + example: + credential_type: credential_type + access_identifier_type: access_identifier_type + properties: + access_identifier_type: + title: "access_identifier constants: role_id, tenant_id,project_id" + type: string + credential_type: + title: credential_type static or dynamic + type: string + title: CredentialPreference defines the credential preferences for the user + type: object + ddidnsrickettsDNSConfig: + example: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + properties: + consolidated_zone_data_enabled: + format: boolean + title: consolidated_zone_data_enabled consolidates public & private zones + into a single view + type: boolean + split_view_enabled: + description: "split_view_enabled consolidates private zones into a single\ + \ view, which is separate from the public zone view." + format: boolean + type: boolean + sync_type: + title: "sync_type values: \"read_only\", \"read_write\"" + type: string + view_id: + type: string + view_name: + type: string + type: object + ddidnsrickettsDestination: + description: Destination information + example: + destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + properties: + config: + $ref: '#/components/schemas/ddidnsrickettsDestinationConfig' + created_at: + description: Timestamp when the object has been created. + format: date-time + readOnly: true + type: string + deleted_at: + description: Timestamp when the object has been deleted. + format: date-time + readOnly: true + type: string + destination_type: + description: "Destination type: DNS / IPAM / ACCOUNT." + type: string + id: + description: Auto-generated unique destination ID. Format BloxID. + readOnly: true + type: string + updated_at: + description: Timestamp when the object has been updated. + format: date-time + readOnly: true + type: string + required: + - destination_type + title: Destination + type: object + ddidnsrickettsDestinationConfig: + example: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + properties: + dns: + $ref: '#/components/schemas/ddidnsrickettsDNSConfig' + ipam: + $ref: '#/components/schemas/ddidnsrickettsIPAMConfig' + title: DestinationConfig defines the destination configuration represented as + json object + type: object + ddidnsrickettsDiscoveryConfig: + description: Discovery configuration + example: + provider_type: provider_type + status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + destinations: + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + account_preference: account_preference + desired_state: desired_state + sync_interval: sync_interval + deleted_at: 2000-01-23T04:56:07.000+00:00 + destination_types_enabled: + - destination_types_enabled + - destination_types_enabled + source_configs: + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + additional_config: + object_type: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + excluded_accounts: + - excluded_accounts + - excluded_accounts + internal_ranges_enabled: true + forward_zone_enabled: true + tags: + key: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + credential_preference: + credential_type: credential_type + access_identifier_type: access_identifier_type + name: name + id: id + status: status + properties: + account_preference: + description: "Account preference. For ex.: single, multiple, auto-discover-multiple." + type: string + additional_config: + $ref: '#/components/schemas/ddidnsrickettsAdditionalConfig' + created_at: + description: Timestamp when the object has been created. + format: date-time + readOnly: true + type: string + credential_preference: + $ref: '#/components/schemas/ddidnsrickettsCredentialPreference' + deleted_at: + description: Timestamp when the object has been deleted. + format: date-time + readOnly: true + type: string + description: + description: Description of the discovery config. Optional. + type: string + desired_state: + description: Desired state. Default is "enabled". + type: string + destination_types_enabled: + description: "Destinations types enabled: Ex.: DNS, IPAM and ACCOUNT." + items: + type: string + type: array + destinations: + description: Destinations. + items: + $ref: '#/components/schemas/ddidnsrickettsDestination' + type: array + id: + description: Auto-generated unique discovery config ID. Format BloxID. + readOnly: true + type: string + last_sync: + description: Last sync timestamp. + format: date-time + type: string + name: + description: Name of the discovery config. + type: string + provider_type: + description: "Provider type. Ex.: Amazon Web Services, Google Cloud Platform,\ + \ Microsoft Azure." + type: string + source_configs: + description: Source configs. + items: + $ref: '#/components/schemas/ddidnsrickettsSourceConfig' + type: array + status: + description: |- + Status of the sync operation. + In single account case, Its the combined status of account & all the destinations statuses + In auto discover case, Its the status of the account discovery only. + type: string + status_message: + description: Aggregate status message of the sync operation. + type: string + sync_interval: + title: "Time between sync jobs in minutes. Default is \"Auto\". Other supported\ + \ values: 15, 30, 60, 120, 180, 240, 360, 480, 720, 1440" + type: string + tags: + additionalProperties: + type: object + description: Tagging specifics. + type: object + updated_at: + description: Timestamp when the object has been updated. + format: date-time + readOnly: true + type: string + required: + - name + title: DiscoveryConfig + type: object + ddidnsrickettsIPAMConfig: + example: + ip_space: ip_space + dhcp_server: dhcp_server + properties: + dhcp_server: + type: string + ip_space: + type: string + type: object + ddidnsrickettsObject: + example: + resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + properties: + category: + $ref: '#/components/schemas/ddidnsrickettsCategory' + resource_set: + items: + $ref: '#/components/schemas/ddidnsrickettsResource' + type: array + title: Object + type: object + ddidnsrickettsObjectType: + example: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + properties: + discover_new: + format: boolean + type: boolean + objects: + items: + $ref: '#/components/schemas/ddidnsrickettsObject' + type: array + version: + format: float + type: number + type: object + ddidnsrickettsProviderCreateResponse: + description: The Provider object create response format. + example: + result: + provider_type: provider_type + status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + destinations: + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + account_preference: account_preference + desired_state: desired_state + sync_interval: sync_interval + deleted_at: 2000-01-23T04:56:07.000+00:00 + destination_types_enabled: + - destination_types_enabled + - destination_types_enabled + source_configs: + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + additional_config: + object_type: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + excluded_accounts: + - excluded_accounts + - excluded_accounts + internal_ranges_enabled: true + forward_zone_enabled: true + tags: + key: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + credential_preference: + credential_type: credential_type + access_identifier_type: access_identifier_type + name: name + id: id + status: status + properties: + result: + $ref: '#/components/schemas/ddidnsrickettsDiscoveryConfig' + title: ProviderCreateResponse + type: object + ddidnsrickettsProviderListResponse: + description: The Provider object List response format. + example: + page: + offset: 0 + size: 6 + page_token: page_token + results: + - provider_type: provider_type + status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + destinations: + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + account_preference: account_preference + desired_state: desired_state + sync_interval: sync_interval + deleted_at: 2000-01-23T04:56:07.000+00:00 + destination_types_enabled: + - destination_types_enabled + - destination_types_enabled + source_configs: + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + additional_config: + object_type: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + excluded_accounts: + - excluded_accounts + - excluded_accounts + internal_ranges_enabled: true + forward_zone_enabled: true + tags: + key: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + credential_preference: + credential_type: credential_type + access_identifier_type: access_identifier_type + name: name + id: id + status: status + - provider_type: provider_type + status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + destinations: + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + account_preference: account_preference + desired_state: desired_state + sync_interval: sync_interval + deleted_at: 2000-01-23T04:56:07.000+00:00 + destination_types_enabled: + - destination_types_enabled + - destination_types_enabled + source_configs: + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + additional_config: + object_type: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + excluded_accounts: + - excluded_accounts + - excluded_accounts + internal_ranges_enabled: true + forward_zone_enabled: true + tags: + key: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + credential_preference: + credential_type: credential_type + access_identifier_type: access_identifier_type + name: name + id: id + status: status + properties: + page: + $ref: '#/components/schemas/apiPageInfo' + results: + items: + $ref: '#/components/schemas/ddidnsrickettsDiscoveryConfig' + type: array + title: ProviderListResponse + type: object + ddidnsrickettsProviderReadResponse: + description: The Provider object read response format. + example: + result: + provider_type: provider_type + status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + destinations: + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + account_preference: account_preference + desired_state: desired_state + sync_interval: sync_interval + deleted_at: 2000-01-23T04:56:07.000+00:00 + destination_types_enabled: + - destination_types_enabled + - destination_types_enabled + source_configs: + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + additional_config: + object_type: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + excluded_accounts: + - excluded_accounts + - excluded_accounts + internal_ranges_enabled: true + forward_zone_enabled: true + tags: + key: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + credential_preference: + credential_type: credential_type + access_identifier_type: access_identifier_type + name: name + id: id + status: status + properties: + result: + $ref: '#/components/schemas/ddidnsrickettsDiscoveryConfig' + title: ProviderReadResponse + type: object + ddidnsrickettsProviderUpdateResponse: + description: The Provider object to update response format. + example: + result: + provider_type: provider_type + status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + destinations: + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + - destination_type: destination_type + updated_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + config: + ipam: + ip_space: ip_space + dhcp_server: dhcp_server + dns: + split_view_enabled: true + sync_type: sync_type + view_id: view_id + consolidated_zone_data_enabled: true + view_name: view_name + deleted_at: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + description: description + account_preference: account_preference + desired_state: desired_state + sync_interval: sync_interval + deleted_at: 2000-01-23T04:56:07.000+00:00 + destination_types_enabled: + - destination_types_enabled + - destination_types_enabled + source_configs: + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + - updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + additional_config: + object_type: + objects: + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + - resource_set: + - excluded: true + id: id + - excluded: true + id: id + category: + excluded: true + id: id + version: 0.8008282 + discover_new: true + excluded_accounts: + - excluded_accounts + - excluded_accounts + internal_ranges_enabled: true + forward_zone_enabled: true + tags: + key: "{}" + updated_at: 2000-01-23T04:56:07.000+00:00 + credential_preference: + credential_type: credential_type + access_identifier_type: access_identifier_type + name: name + id: id + status: status + properties: + result: + $ref: '#/components/schemas/ddidnsrickettsDiscoveryConfig' + title: ProviderUpdateResponse + type: object + ddidnsrickettsResource: + example: + excluded: true + id: id + properties: + excluded: + format: boolean + type: boolean + id: + readOnly: true + type: string + title: Resource + type: object + ddidnsrickettsSourceConfig: + description: Source configuration + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + account_schedule_id: account_schedule_id + credential_config: + access_identifier: access_identifier + region: region + enclave: enclave + cloud_credential_id: cloud_credential_id + created_at: 2000-01-23T04:56:07.000+00:00 + restricted_to_accounts: + - restricted_to_accounts + - restricted_to_accounts + accounts: + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + - status_message: status_message + last_sync: 2000-01-23T04:56:07.000+00:00 + created_at: 2000-01-23T04:56:07.000+00:00 + composite_status: composite_status + deleted_at: 2000-01-23T04:56:07.000+00:00 + percent_complete: 1 + last_successful_sync: 2000-01-23T04:56:07.000+00:00 + dhcp_server_id: dhcp_server_id + provider_account_id: provider_account_id + updated_at: 2000-01-23T04:56:07.000+00:00 + parent_id: parent_id + name: name + id: id + state: state + composite_status_message: composite_status_message + dns_server_id: dns_server_id + schedule_id: schedule_id + status: status + id: id + deleted_at: 2000-01-23T04:56:07.000+00:00 + properties: + account_schedule_id: + description: Account Schedule ID. + readOnly: true + type: string + accounts: + items: + $ref: '#/components/schemas/ddidnsrickettsAccount' + title: accounts + type: array + cloud_credential_id: + description: Cloud Credential ID. + type: string + created_at: + description: Timestamp when the object has been created. + format: date-time + readOnly: true + type: string + credential_config: + $ref: '#/components/schemas/ddidnsrickettsCredentialConfig' + deleted_at: + description: Timestamp when the object has been deleted. + format: date-time + readOnly: true + type: string + id: + description: Auto-generated unique source config ID. Format BloxID. + readOnly: true + type: string + restricted_to_accounts: + description: Provider account IDs such as accountID/ SubscriptionID to be + restricted for a given source_config. + items: + type: string + type: array + updated_at: + description: Timestamp when the object has been updated. + format: date-time + readOnly: true + type: string + required: + - cloud_credential_id + title: SourceConfig + type: object + ddidnsrickettsSubAccountListRequestV2: + properties: + access_type: + title: access_type represents static/dynamic credential access type + type: string + credential_id: + type: string + fields: + description: atlas.api.field_selection + type: string + provider_credentials_config: + $ref: '#/components/schemas/ddidnsrickettsSubAccountProvCredConfig' + provider_type: + type: string + type: object + ddidnsrickettsSubAccountListResponseV2: + example: + page: + offset: 0 + size: 6 + page_token: page_token + results: + - name: name + id: id + - name: name + id: id + properties: + page: + $ref: '#/components/schemas/apiPageInfo' + results: + items: + $ref: '#/components/schemas/ddidnsrickettsSubAccountV2' + type: array + type: object + ddidnsrickettsSubAccountProvCredConfig: + properties: + project_id: + title: gcp project_id + type: string + role_arn: + title: aws role ARN + type: string + tenant_id: + title: azure tenant_id + type: string + type: object + ddidnsrickettsSubAccountV2: + example: + name: name + id: id + properties: + id: + readOnly: true + type: string + name: + type: string + title: Sub Account contains information regarding the accounts which can be + accessed with a given credentials + type: object + securitySchemes: + ApiKeyAuth: + in: header + name: Authorization + type: apiKey +x-original-swagger-version: "2.0" diff --git a/clouddiscovery/api_accounts.go b/clouddiscovery/api_accounts.go new file mode 100644 index 0000000..10d805f --- /dev/null +++ b/clouddiscovery/api_accounts.go @@ -0,0 +1,213 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type AccountsAPI interface { + /* + List List Accounts + + Use this method to list Accounts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return AccountsAPIListRequest + */ + List(ctx context.Context) AccountsAPIListRequest + + // ListExecute executes the request + // @return DdidnsrickettsAccountListResponse + ListExecute(r AccountsAPIListRequest) (*DdidnsrickettsAccountListResponse, *http.Response, error) +} + +// AccountsAPIService AccountsAPI service +type AccountsAPIService internal.Service + +type AccountsAPIListRequest struct { + ctx context.Context + ApiService AccountsAPI + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *string +} + +// A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. +func (r AccountsAPIListRequest) Fields(fields string) AccountsAPIListRequest { + r.fields = &fields + return r +} + +// A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | +func (r AccountsAPIListRequest) Filter(filter string) AccountsAPIListRequest { + r.filter = &filter + return r +} + +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +func (r AccountsAPIListRequest) Offset(offset int32) AccountsAPIListRequest { + r.offset = &offset + return r +} + +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +func (r AccountsAPIListRequest) Limit(limit int32) AccountsAPIListRequest { + r.limit = &limit + return r +} + +// The service-defined string used to identify a page of resources. A null value indicates the first page. +func (r AccountsAPIListRequest) PageToken(pageToken string) AccountsAPIListRequest { + r.pageToken = &pageToken + return r +} + +// A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. +func (r AccountsAPIListRequest) OrderBy(orderBy string) AccountsAPIListRequest { + r.orderBy = &orderBy + return r +} + +// This parameter is used for filtering by tags. +func (r AccountsAPIListRequest) Tfilter(tfilter string) AccountsAPIListRequest { + r.tfilter = &tfilter + return r +} + +// This parameter is used for sorting by tags. +func (r AccountsAPIListRequest) TorderBy(torderBy string) AccountsAPIListRequest { + r.torderBy = &torderBy + return r +} + +func (r AccountsAPIListRequest) Execute() (*DdidnsrickettsAccountListResponse, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List List Accounts + +Use this method to list Accounts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return AccountsAPIListRequest +*/ +func (a *AccountsAPIService) List(ctx context.Context) AccountsAPIListRequest { + return AccountsAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DdidnsrickettsAccountListResponse +func (a *AccountsAPIService) ListExecute(r AccountsAPIListRequest) (*DdidnsrickettsAccountListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdidnsrickettsAccountListResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "AccountsAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") + } + if r.filter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_filter", r.filter, "") + } + if r.offset != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_offset", r.offset, "") + } + if r.limit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_limit", r.limit, "") + } + if r.pageToken != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_page_token", r.pageToken, "") + } + if r.orderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_order_by", r.orderBy, "") + } + if r.tfilter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") + } + if r.torderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/clouddiscovery/api_providers.go b/clouddiscovery/api_providers.go new file mode 100644 index 0000000..e82f2a4 --- /dev/null +++ b/clouddiscovery/api_providers.go @@ -0,0 +1,676 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type ProvidersAPI interface { + /* + Create Create Provider + + Use this method to create Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ProvidersAPICreateRequest + */ + Create(ctx context.Context) ProvidersAPICreateRequest + + // CreateExecute executes the request + // @return DdidnsrickettsProviderCreateResponse + CreateExecute(r ProvidersAPICreateRequest) (*DdidnsrickettsProviderCreateResponse, *http.Response, error) + /* + Delete Delete Provider + + Use this method to delete Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ProvidersAPIDeleteRequest + */ + Delete(ctx context.Context, id string) ProvidersAPIDeleteRequest + + // DeleteExecute executes the request + DeleteExecute(r ProvidersAPIDeleteRequest) (*http.Response, error) + /* + List List Provider + + Use this method to list Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ProvidersAPIListRequest + */ + List(ctx context.Context) ProvidersAPIListRequest + + // ListExecute executes the request + // @return DdidnsrickettsProviderListResponse + ListExecute(r ProvidersAPIListRequest) (*DdidnsrickettsProviderListResponse, *http.Response, error) + /* + Read Read Provider + + Use this method to retrieve a single Provider by ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ProvidersAPIReadRequest + */ + Read(ctx context.Context, id string) ProvidersAPIReadRequest + + // ReadExecute executes the request + // @return DdidnsrickettsProviderReadResponse + ReadExecute(r ProvidersAPIReadRequest) (*DdidnsrickettsProviderReadResponse, *http.Response, error) + /* + Update Update Provider + + Use this method to update Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Auto-generated unique discovery config ID. Format BloxID. + @return ProvidersAPIUpdateRequest + */ + Update(ctx context.Context, id string) ProvidersAPIUpdateRequest + + // UpdateExecute executes the request + // @return DdidnsrickettsProviderUpdateResponse + UpdateExecute(r ProvidersAPIUpdateRequest) (*DdidnsrickettsProviderUpdateResponse, *http.Response, error) +} + +// ProvidersAPIService ProvidersAPI service +type ProvidersAPIService internal.Service + +type ProvidersAPICreateRequest struct { + ctx context.Context + ApiService ProvidersAPI + body *DdidnsrickettsDiscoveryConfig +} + +func (r ProvidersAPICreateRequest) Body(body DdidnsrickettsDiscoveryConfig) ProvidersAPICreateRequest { + r.body = &body + return r +} + +func (r ProvidersAPICreateRequest) Execute() (*DdidnsrickettsProviderCreateResponse, *http.Response, error) { + return r.ApiService.CreateExecute(r) +} + +/* +Create Create Provider + +Use this method to create Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ProvidersAPICreateRequest +*/ +func (a *ProvidersAPIService) Create(ctx context.Context) ProvidersAPICreateRequest { + return ProvidersAPICreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DdidnsrickettsProviderCreateResponse +func (a *ProvidersAPIService) CreateExecute(r ProvidersAPICreateRequest) (*DdidnsrickettsProviderCreateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdidnsrickettsProviderCreateResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ProvidersAPIService.Create") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ProvidersAPIDeleteRequest struct { + ctx context.Context + ApiService ProvidersAPI + id string +} + +func (r ProvidersAPIDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteExecute(r) +} + +/* +Delete Delete Provider + +Use this method to delete Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ProvidersAPIDeleteRequest +*/ +func (a *ProvidersAPIService) Delete(ctx context.Context, id string) ProvidersAPIDeleteRequest { + return ProvidersAPIDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ProvidersAPIService) DeleteExecute(r ProvidersAPIDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ProvidersAPIService.Delete") + if err != nil { + return nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/providers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(internal.ParameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ProvidersAPIListRequest struct { + ctx context.Context + ApiService ProvidersAPI + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *string +} + +// A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. +func (r ProvidersAPIListRequest) Fields(fields string) ProvidersAPIListRequest { + r.fields = &fields + return r +} + +// A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | +func (r ProvidersAPIListRequest) Filter(filter string) ProvidersAPIListRequest { + r.filter = &filter + return r +} + +// The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. +func (r ProvidersAPIListRequest) Offset(offset int32) ProvidersAPIListRequest { + r.offset = &offset + return r +} + +// The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. +func (r ProvidersAPIListRequest) Limit(limit int32) ProvidersAPIListRequest { + r.limit = &limit + return r +} + +// The service-defined string used to identify a page of resources. A null value indicates the first page. +func (r ProvidersAPIListRequest) PageToken(pageToken string) ProvidersAPIListRequest { + r.pageToken = &pageToken + return r +} + +// A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. +func (r ProvidersAPIListRequest) OrderBy(orderBy string) ProvidersAPIListRequest { + r.orderBy = &orderBy + return r +} + +// This parameter is used for filtering by tags. +func (r ProvidersAPIListRequest) Tfilter(tfilter string) ProvidersAPIListRequest { + r.tfilter = &tfilter + return r +} + +// This parameter is used for sorting by tags. +func (r ProvidersAPIListRequest) TorderBy(torderBy string) ProvidersAPIListRequest { + r.torderBy = &torderBy + return r +} + +func (r ProvidersAPIListRequest) Execute() (*DdidnsrickettsProviderListResponse, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List List Provider + +Use this method to list Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ProvidersAPIListRequest +*/ +func (a *ProvidersAPIService) List(ctx context.Context) ProvidersAPIListRequest { + return ProvidersAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DdidnsrickettsProviderListResponse +func (a *ProvidersAPIService) ListExecute(r ProvidersAPIListRequest) (*DdidnsrickettsProviderListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdidnsrickettsProviderListResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ProvidersAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") + } + if r.filter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_filter", r.filter, "") + } + if r.offset != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_offset", r.offset, "") + } + if r.limit != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_limit", r.limit, "") + } + if r.pageToken != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_page_token", r.pageToken, "") + } + if r.orderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_order_by", r.orderBy, "") + } + if r.tfilter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") + } + if r.torderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ProvidersAPIReadRequest struct { + ctx context.Context + ApiService ProvidersAPI + id string + fields *string +} + +// A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. +func (r ProvidersAPIReadRequest) Fields(fields string) ProvidersAPIReadRequest { + r.fields = &fields + return r +} + +func (r ProvidersAPIReadRequest) Execute() (*DdidnsrickettsProviderReadResponse, *http.Response, error) { + return r.ApiService.ReadExecute(r) +} + +/* +Read Read Provider + +Use this method to retrieve a single Provider by ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ProvidersAPIReadRequest +*/ +func (a *ProvidersAPIService) Read(ctx context.Context, id string) ProvidersAPIReadRequest { + return ProvidersAPIReadRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DdidnsrickettsProviderReadResponse +func (a *ProvidersAPIService) ReadExecute(r ProvidersAPIReadRequest) (*DdidnsrickettsProviderReadResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdidnsrickettsProviderReadResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ProvidersAPIService.Read") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/providers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(internal.ParameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.fields != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ProvidersAPIUpdateRequest struct { + ctx context.Context + ApiService ProvidersAPI + id string + body *DdidnsrickettsDiscoveryConfig +} + +func (r ProvidersAPIUpdateRequest) Body(body DdidnsrickettsDiscoveryConfig) ProvidersAPIUpdateRequest { + r.body = &body + return r +} + +func (r ProvidersAPIUpdateRequest) Execute() (*DdidnsrickettsProviderUpdateResponse, *http.Response, error) { + return r.ApiService.UpdateExecute(r) +} + +/* +Update Update Provider + +Use this method to update Provider + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Auto-generated unique discovery config ID. Format BloxID. + @return ProvidersAPIUpdateRequest +*/ +func (a *ProvidersAPIService) Update(ctx context.Context, id string) ProvidersAPIUpdateRequest { + return ProvidersAPIUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return DdidnsrickettsProviderUpdateResponse +func (a *ProvidersAPIService) UpdateExecute(r ProvidersAPIUpdateRequest) (*DdidnsrickettsProviderUpdateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdidnsrickettsProviderUpdateResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ProvidersAPIService.Update") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/providers/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(internal.ParameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/clouddiscovery/api_sub_accounts.go b/clouddiscovery/api_sub_accounts.go new file mode 100644 index 0000000..61c9db1 --- /dev/null +++ b/clouddiscovery/api_sub_accounts.go @@ -0,0 +1,144 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type SubAccountsAPI interface { + /* + List List Sub-accounts + + Use this method to list Sub-accounts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return SubAccountsAPIListRequest + */ + List(ctx context.Context) SubAccountsAPIListRequest + + // ListExecute executes the request + // @return DdidnsrickettsSubAccountListResponseV2 + ListExecute(r SubAccountsAPIListRequest) (*DdidnsrickettsSubAccountListResponseV2, *http.Response, error) +} + +// SubAccountsAPIService SubAccountsAPI service +type SubAccountsAPIService internal.Service + +type SubAccountsAPIListRequest struct { + ctx context.Context + ApiService SubAccountsAPI + body *DdidnsrickettsSubAccountListRequestV2 +} + +func (r SubAccountsAPIListRequest) Body(body DdidnsrickettsSubAccountListRequestV2) SubAccountsAPIListRequest { + r.body = &body + return r +} + +func (r SubAccountsAPIListRequest) Execute() (*DdidnsrickettsSubAccountListResponseV2, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List List Sub-accounts + +Use this method to list Sub-accounts + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return SubAccountsAPIListRequest +*/ +func (a *SubAccountsAPIService) List(ctx context.Context) SubAccountsAPIListRequest { + return SubAccountsAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return DdidnsrickettsSubAccountListResponseV2 +func (a *SubAccountsAPIService) ListExecute(r SubAccountsAPIListRequest) (*DdidnsrickettsSubAccountListResponseV2, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdidnsrickettsSubAccountListResponseV2 + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "SubAccountsAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/sub_accounts" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.body == nil { + return localVarReturnValue, nil, internal.ReportError("body is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := internal.SelectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := internal.SelectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.body + req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.Client.CallAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := internal.NewGenericOpenAPIErrorWithBody(localVarHTTPResponse.Status, localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.Client.Decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) + return localVarReturnValue, localVarHTTPResponse, newErr + } + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/clouddiscovery/client.go b/clouddiscovery/client.go new file mode 100644 index 0000000..74324d2 --- /dev/null +++ b/clouddiscovery/client.go @@ -0,0 +1,54 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/option" +) + +const serviceBasePath = "" + +// APIClient manages communication with the Discovery Configuration API V2 v2 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + *internal.APIClient + + // API Services + AccountsAPI AccountsAPI + ProvidersAPI ProvidersAPI + SubAccountsAPI SubAccountsAPI +} + +// NewAPIClient creates a new API client. +// The client can be configured with a variadic option. The following options are available: +// - WithClientName(string) sets the name of the client using the SDK. +// - WithCSPUrl(string) sets the URL for BloxOne Cloud Services Portal. +// - WithAPIKey(string) sets the APIKey for accessing the BloxOne API. +// - WithHTTPClient(*http.Client) sets the HTTPClient to use for the SDK. +// - WithDefaultTags(map[string]string) sets the tags the client can set by default for objects that has tags support. +// - WithDebug() sets the debug mode. +func NewAPIClient(options ...option.ClientOption) *APIClient { + cfg := internal.NewConfiguration() + for _, o := range options { + o(cfg) + } + + c := &APIClient{} + c.APIClient = internal.NewAPIClient(serviceBasePath, cfg) + + // API Services + c.AccountsAPI = (*AccountsAPIService)(&c.Common) + c.ProvidersAPI = (*ProvidersAPIService)(&c.Common) + c.SubAccountsAPI = (*SubAccountsAPIService)(&c.Common) + + return c +} diff --git a/clouddiscovery/docs/AccountsAPI.md b/clouddiscovery/docs/AccountsAPI.md new file mode 100644 index 0000000..f6e6e6c --- /dev/null +++ b/clouddiscovery/docs/AccountsAPI.md @@ -0,0 +1,81 @@ +# AccountsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**List**](AccountsAPI.md#List) | **Get** /accounts | List Accounts + + + +## List + +> DdidnsrickettsAccountListResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() + +List Accounts + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func main() { + + apiClient := clouddiscovery.NewAPIClient() + resp, r, err := apiClient.AccountsAPI.List(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AccountsAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: DdidnsrickettsAccountListResponse + fmt.Fprintf(os.Stdout, "Response from `AccountsAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `AccountsAPIListRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**fields** | **string** | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | +**filter** | **string** | A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | | +**offset** | **int32** | The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. | +**limit** | **int32** | The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. | +**pageToken** | **string** | The service-defined string used to identify a page of resources. A null value indicates the first page. | +**orderBy** | **string** | A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. | +**tfilter** | **string** | This parameter is used for filtering by tags. | +**torderBy** | **string** | This parameter is used for sorting by tags. | + +### Return type + +[**DdidnsrickettsAccountListResponse**](DdidnsrickettsAccountListResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/clouddiscovery/docs/ApiPageInfo.md b/clouddiscovery/docs/ApiPageInfo.md new file mode 100644 index 0000000..8b3356e --- /dev/null +++ b/clouddiscovery/docs/ApiPageInfo.md @@ -0,0 +1,108 @@ +# ApiPageInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Offset** | Pointer to **int32** | The service may optionally include the offset of the next page of resources. A null value indicates no more pages. | [optional] +**PageToken** | Pointer to **string** | The service response should contain a string to indicate the next page of resources. A null value indicates no more pages. | [optional] +**Size** | Pointer to **int32** | The service may optionally include the total number of resources being paged. | [optional] + +## Methods + +### NewApiPageInfo + +`func NewApiPageInfo() *ApiPageInfo` + +NewApiPageInfo instantiates a new ApiPageInfo 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 + +### NewApiPageInfoWithDefaults + +`func NewApiPageInfoWithDefaults() *ApiPageInfo` + +NewApiPageInfoWithDefaults instantiates a new ApiPageInfo 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 + +### GetOffset + +`func (o *ApiPageInfo) GetOffset() int32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *ApiPageInfo) GetOffsetOk() (*int32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *ApiPageInfo) SetOffset(v int32)` + +SetOffset sets Offset field to given value. + +### HasOffset + +`func (o *ApiPageInfo) HasOffset() bool` + +HasOffset returns a boolean if a field has been set. + +### GetPageToken + +`func (o *ApiPageInfo) GetPageToken() string` + +GetPageToken returns the PageToken field if non-nil, zero value otherwise. + +### GetPageTokenOk + +`func (o *ApiPageInfo) GetPageTokenOk() (*string, bool)` + +GetPageTokenOk returns a tuple with the PageToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageToken + +`func (o *ApiPageInfo) SetPageToken(v string)` + +SetPageToken sets PageToken field to given value. + +### HasPageToken + +`func (o *ApiPageInfo) HasPageToken() bool` + +HasPageToken returns a boolean if a field has been set. + +### GetSize + +`func (o *ApiPageInfo) GetSize() int32` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *ApiPageInfo) GetSizeOk() (*int32, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *ApiPageInfo) SetSize(v int32)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *ApiPageInfo) HasSize() bool` + +HasSize 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/clouddiscovery/docs/DdidnsrickettsAccount.md b/clouddiscovery/docs/DdidnsrickettsAccount.md new file mode 100644 index 0000000..80f4fb2 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsAccount.md @@ -0,0 +1,493 @@ +# DdidnsrickettsAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CompositeStatus** | Pointer to **string** | | [optional] +**CompositeStatusMessage** | Pointer to **string** | Status message of the sync operation. | [optional] +**CreatedAt** | Pointer to **time.Time** | Timestamp when the object has been created. | [optional] [readonly] +**DeletedAt** | Pointer to **time.Time** | Timestamp when the object has been deleted. | [optional] [readonly] +**DhcpServerId** | Pointer to **string** | | [optional] [readonly] +**DnsServerId** | Pointer to **string** | DNS Server ID. | [optional] [readonly] +**Id** | Pointer to **string** | Auto-generated unique source account ID. Format BloxID. | [optional] [readonly] +**LastSuccessfulSync** | Pointer to **time.Time** | Last successful sync timestamp. | [optional] [readonly] +**LastSync** | Pointer to **time.Time** | Last sync timestamp. | [optional] [readonly] +**Name** | **string** | Name of the source account. | +**ParentId** | Pointer to **string** | Parent ID. | [optional] +**PercentComplete** | Pointer to **int32** | Sync progress as a percentage. | [optional] [readonly] +**ProviderAccountId** | Pointer to **string** | | [optional] +**ScheduleId** | Pointer to **string** | Schedule ID. | [optional] [readonly] +**State** | Pointer to **string** | | [optional] [readonly] +**Status** | Pointer to **string** | Status of the sync operation. | [optional] [readonly] +**StatusMessage** | Pointer to **string** | Status message of the sync operation. | [optional] [readonly] +**UpdatedAt** | Pointer to **time.Time** | Timestamp when the object has been updated. | [optional] [readonly] + +## Methods + +### NewDdidnsrickettsAccount + +`func NewDdidnsrickettsAccount(name string, ) *DdidnsrickettsAccount` + +NewDdidnsrickettsAccount instantiates a new DdidnsrickettsAccount 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 + +### NewDdidnsrickettsAccountWithDefaults + +`func NewDdidnsrickettsAccountWithDefaults() *DdidnsrickettsAccount` + +NewDdidnsrickettsAccountWithDefaults instantiates a new DdidnsrickettsAccount 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 + +### GetCompositeStatus + +`func (o *DdidnsrickettsAccount) GetCompositeStatus() string` + +GetCompositeStatus returns the CompositeStatus field if non-nil, zero value otherwise. + +### GetCompositeStatusOk + +`func (o *DdidnsrickettsAccount) GetCompositeStatusOk() (*string, bool)` + +GetCompositeStatusOk returns a tuple with the CompositeStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompositeStatus + +`func (o *DdidnsrickettsAccount) SetCompositeStatus(v string)` + +SetCompositeStatus sets CompositeStatus field to given value. + +### HasCompositeStatus + +`func (o *DdidnsrickettsAccount) HasCompositeStatus() bool` + +HasCompositeStatus returns a boolean if a field has been set. + +### GetCompositeStatusMessage + +`func (o *DdidnsrickettsAccount) GetCompositeStatusMessage() string` + +GetCompositeStatusMessage returns the CompositeStatusMessage field if non-nil, zero value otherwise. + +### GetCompositeStatusMessageOk + +`func (o *DdidnsrickettsAccount) GetCompositeStatusMessageOk() (*string, bool)` + +GetCompositeStatusMessageOk returns a tuple with the CompositeStatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompositeStatusMessage + +`func (o *DdidnsrickettsAccount) SetCompositeStatusMessage(v string)` + +SetCompositeStatusMessage sets CompositeStatusMessage field to given value. + +### HasCompositeStatusMessage + +`func (o *DdidnsrickettsAccount) HasCompositeStatusMessage() bool` + +HasCompositeStatusMessage returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *DdidnsrickettsAccount) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *DdidnsrickettsAccount) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *DdidnsrickettsAccount) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *DdidnsrickettsAccount) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDeletedAt + +`func (o *DdidnsrickettsAccount) GetDeletedAt() time.Time` + +GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise. + +### GetDeletedAtOk + +`func (o *DdidnsrickettsAccount) GetDeletedAtOk() (*time.Time, bool)` + +GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedAt + +`func (o *DdidnsrickettsAccount) SetDeletedAt(v time.Time)` + +SetDeletedAt sets DeletedAt field to given value. + +### HasDeletedAt + +`func (o *DdidnsrickettsAccount) HasDeletedAt() bool` + +HasDeletedAt returns a boolean if a field has been set. + +### GetDhcpServerId + +`func (o *DdidnsrickettsAccount) GetDhcpServerId() string` + +GetDhcpServerId returns the DhcpServerId field if non-nil, zero value otherwise. + +### GetDhcpServerIdOk + +`func (o *DdidnsrickettsAccount) GetDhcpServerIdOk() (*string, bool)` + +GetDhcpServerIdOk returns a tuple with the DhcpServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDhcpServerId + +`func (o *DdidnsrickettsAccount) SetDhcpServerId(v string)` + +SetDhcpServerId sets DhcpServerId field to given value. + +### HasDhcpServerId + +`func (o *DdidnsrickettsAccount) HasDhcpServerId() bool` + +HasDhcpServerId returns a boolean if a field has been set. + +### GetDnsServerId + +`func (o *DdidnsrickettsAccount) GetDnsServerId() string` + +GetDnsServerId returns the DnsServerId field if non-nil, zero value otherwise. + +### GetDnsServerIdOk + +`func (o *DdidnsrickettsAccount) GetDnsServerIdOk() (*string, bool)` + +GetDnsServerIdOk returns a tuple with the DnsServerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsServerId + +`func (o *DdidnsrickettsAccount) SetDnsServerId(v string)` + +SetDnsServerId sets DnsServerId field to given value. + +### HasDnsServerId + +`func (o *DdidnsrickettsAccount) HasDnsServerId() bool` + +HasDnsServerId returns a boolean if a field has been set. + +### GetId + +`func (o *DdidnsrickettsAccount) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DdidnsrickettsAccount) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DdidnsrickettsAccount) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DdidnsrickettsAccount) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLastSuccessfulSync + +`func (o *DdidnsrickettsAccount) GetLastSuccessfulSync() time.Time` + +GetLastSuccessfulSync returns the LastSuccessfulSync field if non-nil, zero value otherwise. + +### GetLastSuccessfulSyncOk + +`func (o *DdidnsrickettsAccount) GetLastSuccessfulSyncOk() (*time.Time, bool)` + +GetLastSuccessfulSyncOk returns a tuple with the LastSuccessfulSync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSuccessfulSync + +`func (o *DdidnsrickettsAccount) SetLastSuccessfulSync(v time.Time)` + +SetLastSuccessfulSync sets LastSuccessfulSync field to given value. + +### HasLastSuccessfulSync + +`func (o *DdidnsrickettsAccount) HasLastSuccessfulSync() bool` + +HasLastSuccessfulSync returns a boolean if a field has been set. + +### GetLastSync + +`func (o *DdidnsrickettsAccount) GetLastSync() time.Time` + +GetLastSync returns the LastSync field if non-nil, zero value otherwise. + +### GetLastSyncOk + +`func (o *DdidnsrickettsAccount) GetLastSyncOk() (*time.Time, bool)` + +GetLastSyncOk returns a tuple with the LastSync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSync + +`func (o *DdidnsrickettsAccount) SetLastSync(v time.Time)` + +SetLastSync sets LastSync field to given value. + +### HasLastSync + +`func (o *DdidnsrickettsAccount) HasLastSync() bool` + +HasLastSync returns a boolean if a field has been set. + +### GetName + +`func (o *DdidnsrickettsAccount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DdidnsrickettsAccount) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DdidnsrickettsAccount) SetName(v string)` + +SetName sets Name field to given value. + + +### GetParentId + +`func (o *DdidnsrickettsAccount) GetParentId() string` + +GetParentId returns the ParentId field if non-nil, zero value otherwise. + +### GetParentIdOk + +`func (o *DdidnsrickettsAccount) GetParentIdOk() (*string, bool)` + +GetParentIdOk returns a tuple with the ParentId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParentId + +`func (o *DdidnsrickettsAccount) SetParentId(v string)` + +SetParentId sets ParentId field to given value. + +### HasParentId + +`func (o *DdidnsrickettsAccount) HasParentId() bool` + +HasParentId returns a boolean if a field has been set. + +### GetPercentComplete + +`func (o *DdidnsrickettsAccount) GetPercentComplete() int32` + +GetPercentComplete returns the PercentComplete field if non-nil, zero value otherwise. + +### GetPercentCompleteOk + +`func (o *DdidnsrickettsAccount) GetPercentCompleteOk() (*int32, bool)` + +GetPercentCompleteOk returns a tuple with the PercentComplete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPercentComplete + +`func (o *DdidnsrickettsAccount) SetPercentComplete(v int32)` + +SetPercentComplete sets PercentComplete field to given value. + +### HasPercentComplete + +`func (o *DdidnsrickettsAccount) HasPercentComplete() bool` + +HasPercentComplete returns a boolean if a field has been set. + +### GetProviderAccountId + +`func (o *DdidnsrickettsAccount) GetProviderAccountId() string` + +GetProviderAccountId returns the ProviderAccountId field if non-nil, zero value otherwise. + +### GetProviderAccountIdOk + +`func (o *DdidnsrickettsAccount) GetProviderAccountIdOk() (*string, bool)` + +GetProviderAccountIdOk returns a tuple with the ProviderAccountId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccountId + +`func (o *DdidnsrickettsAccount) SetProviderAccountId(v string)` + +SetProviderAccountId sets ProviderAccountId field to given value. + +### HasProviderAccountId + +`func (o *DdidnsrickettsAccount) HasProviderAccountId() bool` + +HasProviderAccountId returns a boolean if a field has been set. + +### GetScheduleId + +`func (o *DdidnsrickettsAccount) GetScheduleId() string` + +GetScheduleId returns the ScheduleId field if non-nil, zero value otherwise. + +### GetScheduleIdOk + +`func (o *DdidnsrickettsAccount) GetScheduleIdOk() (*string, bool)` + +GetScheduleIdOk returns a tuple with the ScheduleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleId + +`func (o *DdidnsrickettsAccount) SetScheduleId(v string)` + +SetScheduleId sets ScheduleId field to given value. + +### HasScheduleId + +`func (o *DdidnsrickettsAccount) HasScheduleId() bool` + +HasScheduleId returns a boolean if a field has been set. + +### GetState + +`func (o *DdidnsrickettsAccount) GetState() string` + +GetState returns the State field if non-nil, zero value otherwise. + +### GetStateOk + +`func (o *DdidnsrickettsAccount) GetStateOk() (*string, bool)` + +GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetState + +`func (o *DdidnsrickettsAccount) SetState(v string)` + +SetState sets State field to given value. + +### HasState + +`func (o *DdidnsrickettsAccount) HasState() bool` + +HasState returns a boolean if a field has been set. + +### GetStatus + +`func (o *DdidnsrickettsAccount) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DdidnsrickettsAccount) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DdidnsrickettsAccount) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DdidnsrickettsAccount) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *DdidnsrickettsAccount) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *DdidnsrickettsAccount) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *DdidnsrickettsAccount) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *DdidnsrickettsAccount) HasStatusMessage() bool` + +HasStatusMessage returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *DdidnsrickettsAccount) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *DdidnsrickettsAccount) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *DdidnsrickettsAccount) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *DdidnsrickettsAccount) HasUpdatedAt() bool` + +HasUpdatedAt 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/clouddiscovery/docs/DdidnsrickettsAccountListResponse.md b/clouddiscovery/docs/DdidnsrickettsAccountListResponse.md new file mode 100644 index 0000000..cbc644e --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsAccountListResponse.md @@ -0,0 +1,82 @@ +# DdidnsrickettsAccountListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | Pointer to [**ApiPageInfo**](ApiPageInfo.md) | | [optional] +**Results** | Pointer to [**[]DdidnsrickettsAccount**](DdidnsrickettsAccount.md) | | [optional] + +## Methods + +### NewDdidnsrickettsAccountListResponse + +`func NewDdidnsrickettsAccountListResponse() *DdidnsrickettsAccountListResponse` + +NewDdidnsrickettsAccountListResponse instantiates a new DdidnsrickettsAccountListResponse 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 + +### NewDdidnsrickettsAccountListResponseWithDefaults + +`func NewDdidnsrickettsAccountListResponseWithDefaults() *DdidnsrickettsAccountListResponse` + +NewDdidnsrickettsAccountListResponseWithDefaults instantiates a new DdidnsrickettsAccountListResponse 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 + +### GetPage + +`func (o *DdidnsrickettsAccountListResponse) GetPage() ApiPageInfo` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *DdidnsrickettsAccountListResponse) GetPageOk() (*ApiPageInfo, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *DdidnsrickettsAccountListResponse) SetPage(v ApiPageInfo)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *DdidnsrickettsAccountListResponse) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetResults + +`func (o *DdidnsrickettsAccountListResponse) GetResults() []DdidnsrickettsAccount` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *DdidnsrickettsAccountListResponse) GetResultsOk() (*[]DdidnsrickettsAccount, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *DdidnsrickettsAccountListResponse) SetResults(v []DdidnsrickettsAccount)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *DdidnsrickettsAccountListResponse) HasResults() bool` + +HasResults 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/clouddiscovery/docs/DdidnsrickettsAdditionalConfig.md b/clouddiscovery/docs/DdidnsrickettsAdditionalConfig.md new file mode 100644 index 0000000..50305a6 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsAdditionalConfig.md @@ -0,0 +1,134 @@ +# DdidnsrickettsAdditionalConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExcludedAccounts** | Pointer to **[]string** | | [optional] +**ForwardZoneEnabled** | Pointer to **bool** | | [optional] +**InternalRangesEnabled** | Pointer to **bool** | | [optional] +**ObjectType** | Pointer to [**DdidnsrickettsObjectType**](DdidnsrickettsObjectType.md) | | [optional] + +## Methods + +### NewDdidnsrickettsAdditionalConfig + +`func NewDdidnsrickettsAdditionalConfig() *DdidnsrickettsAdditionalConfig` + +NewDdidnsrickettsAdditionalConfig instantiates a new DdidnsrickettsAdditionalConfig 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 + +### NewDdidnsrickettsAdditionalConfigWithDefaults + +`func NewDdidnsrickettsAdditionalConfigWithDefaults() *DdidnsrickettsAdditionalConfig` + +NewDdidnsrickettsAdditionalConfigWithDefaults instantiates a new DdidnsrickettsAdditionalConfig 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 + +### GetExcludedAccounts + +`func (o *DdidnsrickettsAdditionalConfig) GetExcludedAccounts() []string` + +GetExcludedAccounts returns the ExcludedAccounts field if non-nil, zero value otherwise. + +### GetExcludedAccountsOk + +`func (o *DdidnsrickettsAdditionalConfig) GetExcludedAccountsOk() (*[]string, bool)` + +GetExcludedAccountsOk returns a tuple with the ExcludedAccounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludedAccounts + +`func (o *DdidnsrickettsAdditionalConfig) SetExcludedAccounts(v []string)` + +SetExcludedAccounts sets ExcludedAccounts field to given value. + +### HasExcludedAccounts + +`func (o *DdidnsrickettsAdditionalConfig) HasExcludedAccounts() bool` + +HasExcludedAccounts returns a boolean if a field has been set. + +### GetForwardZoneEnabled + +`func (o *DdidnsrickettsAdditionalConfig) GetForwardZoneEnabled() bool` + +GetForwardZoneEnabled returns the ForwardZoneEnabled field if non-nil, zero value otherwise. + +### GetForwardZoneEnabledOk + +`func (o *DdidnsrickettsAdditionalConfig) GetForwardZoneEnabledOk() (*bool, bool)` + +GetForwardZoneEnabledOk returns a tuple with the ForwardZoneEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetForwardZoneEnabled + +`func (o *DdidnsrickettsAdditionalConfig) SetForwardZoneEnabled(v bool)` + +SetForwardZoneEnabled sets ForwardZoneEnabled field to given value. + +### HasForwardZoneEnabled + +`func (o *DdidnsrickettsAdditionalConfig) HasForwardZoneEnabled() bool` + +HasForwardZoneEnabled returns a boolean if a field has been set. + +### GetInternalRangesEnabled + +`func (o *DdidnsrickettsAdditionalConfig) GetInternalRangesEnabled() bool` + +GetInternalRangesEnabled returns the InternalRangesEnabled field if non-nil, zero value otherwise. + +### GetInternalRangesEnabledOk + +`func (o *DdidnsrickettsAdditionalConfig) GetInternalRangesEnabledOk() (*bool, bool)` + +GetInternalRangesEnabledOk returns a tuple with the InternalRangesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInternalRangesEnabled + +`func (o *DdidnsrickettsAdditionalConfig) SetInternalRangesEnabled(v bool)` + +SetInternalRangesEnabled sets InternalRangesEnabled field to given value. + +### HasInternalRangesEnabled + +`func (o *DdidnsrickettsAdditionalConfig) HasInternalRangesEnabled() bool` + +HasInternalRangesEnabled returns a boolean if a field has been set. + +### GetObjectType + +`func (o *DdidnsrickettsAdditionalConfig) GetObjectType() DdidnsrickettsObjectType` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *DdidnsrickettsAdditionalConfig) GetObjectTypeOk() (*DdidnsrickettsObjectType, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *DdidnsrickettsAdditionalConfig) SetObjectType(v DdidnsrickettsObjectType)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *DdidnsrickettsAdditionalConfig) HasObjectType() bool` + +HasObjectType 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/clouddiscovery/docs/DdidnsrickettsCategory.md b/clouddiscovery/docs/DdidnsrickettsCategory.md new file mode 100644 index 0000000..69163d6 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsCategory.md @@ -0,0 +1,82 @@ +# DdidnsrickettsCategory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Excluded** | Pointer to **bool** | | [optional] +**Id** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewDdidnsrickettsCategory + +`func NewDdidnsrickettsCategory() *DdidnsrickettsCategory` + +NewDdidnsrickettsCategory instantiates a new DdidnsrickettsCategory 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 + +### NewDdidnsrickettsCategoryWithDefaults + +`func NewDdidnsrickettsCategoryWithDefaults() *DdidnsrickettsCategory` + +NewDdidnsrickettsCategoryWithDefaults instantiates a new DdidnsrickettsCategory 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 + +### GetExcluded + +`func (o *DdidnsrickettsCategory) GetExcluded() bool` + +GetExcluded returns the Excluded field if non-nil, zero value otherwise. + +### GetExcludedOk + +`func (o *DdidnsrickettsCategory) GetExcludedOk() (*bool, bool)` + +GetExcludedOk returns a tuple with the Excluded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcluded + +`func (o *DdidnsrickettsCategory) SetExcluded(v bool)` + +SetExcluded sets Excluded field to given value. + +### HasExcluded + +`func (o *DdidnsrickettsCategory) HasExcluded() bool` + +HasExcluded returns a boolean if a field has been set. + +### GetId + +`func (o *DdidnsrickettsCategory) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DdidnsrickettsCategory) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DdidnsrickettsCategory) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DdidnsrickettsCategory) HasId() bool` + +HasId 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/clouddiscovery/docs/DdidnsrickettsCredentialConfig.md b/clouddiscovery/docs/DdidnsrickettsCredentialConfig.md new file mode 100644 index 0000000..3fb1c9c --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsCredentialConfig.md @@ -0,0 +1,108 @@ +# DdidnsrickettsCredentialConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessIdentifier** | Pointer to **string** | | [optional] +**Enclave** | Pointer to **string** | | [optional] +**Region** | Pointer to **string** | | [optional] + +## Methods + +### NewDdidnsrickettsCredentialConfig + +`func NewDdidnsrickettsCredentialConfig() *DdidnsrickettsCredentialConfig` + +NewDdidnsrickettsCredentialConfig instantiates a new DdidnsrickettsCredentialConfig 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 + +### NewDdidnsrickettsCredentialConfigWithDefaults + +`func NewDdidnsrickettsCredentialConfigWithDefaults() *DdidnsrickettsCredentialConfig` + +NewDdidnsrickettsCredentialConfigWithDefaults instantiates a new DdidnsrickettsCredentialConfig 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 + +### GetAccessIdentifier + +`func (o *DdidnsrickettsCredentialConfig) GetAccessIdentifier() string` + +GetAccessIdentifier returns the AccessIdentifier field if non-nil, zero value otherwise. + +### GetAccessIdentifierOk + +`func (o *DdidnsrickettsCredentialConfig) GetAccessIdentifierOk() (*string, bool)` + +GetAccessIdentifierOk returns a tuple with the AccessIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessIdentifier + +`func (o *DdidnsrickettsCredentialConfig) SetAccessIdentifier(v string)` + +SetAccessIdentifier sets AccessIdentifier field to given value. + +### HasAccessIdentifier + +`func (o *DdidnsrickettsCredentialConfig) HasAccessIdentifier() bool` + +HasAccessIdentifier returns a boolean if a field has been set. + +### GetEnclave + +`func (o *DdidnsrickettsCredentialConfig) GetEnclave() string` + +GetEnclave returns the Enclave field if non-nil, zero value otherwise. + +### GetEnclaveOk + +`func (o *DdidnsrickettsCredentialConfig) GetEnclaveOk() (*string, bool)` + +GetEnclaveOk returns a tuple with the Enclave field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnclave + +`func (o *DdidnsrickettsCredentialConfig) SetEnclave(v string)` + +SetEnclave sets Enclave field to given value. + +### HasEnclave + +`func (o *DdidnsrickettsCredentialConfig) HasEnclave() bool` + +HasEnclave returns a boolean if a field has been set. + +### GetRegion + +`func (o *DdidnsrickettsCredentialConfig) GetRegion() string` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *DdidnsrickettsCredentialConfig) GetRegionOk() (*string, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *DdidnsrickettsCredentialConfig) SetRegion(v string)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *DdidnsrickettsCredentialConfig) HasRegion() bool` + +HasRegion 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/clouddiscovery/docs/DdidnsrickettsCredentialPreference.md b/clouddiscovery/docs/DdidnsrickettsCredentialPreference.md new file mode 100644 index 0000000..7550832 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsCredentialPreference.md @@ -0,0 +1,82 @@ +# DdidnsrickettsCredentialPreference + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessIdentifierType** | Pointer to **string** | | [optional] +**CredentialType** | Pointer to **string** | | [optional] + +## Methods + +### NewDdidnsrickettsCredentialPreference + +`func NewDdidnsrickettsCredentialPreference() *DdidnsrickettsCredentialPreference` + +NewDdidnsrickettsCredentialPreference instantiates a new DdidnsrickettsCredentialPreference 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 + +### NewDdidnsrickettsCredentialPreferenceWithDefaults + +`func NewDdidnsrickettsCredentialPreferenceWithDefaults() *DdidnsrickettsCredentialPreference` + +NewDdidnsrickettsCredentialPreferenceWithDefaults instantiates a new DdidnsrickettsCredentialPreference 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 + +### GetAccessIdentifierType + +`func (o *DdidnsrickettsCredentialPreference) GetAccessIdentifierType() string` + +GetAccessIdentifierType returns the AccessIdentifierType field if non-nil, zero value otherwise. + +### GetAccessIdentifierTypeOk + +`func (o *DdidnsrickettsCredentialPreference) GetAccessIdentifierTypeOk() (*string, bool)` + +GetAccessIdentifierTypeOk returns a tuple with the AccessIdentifierType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessIdentifierType + +`func (o *DdidnsrickettsCredentialPreference) SetAccessIdentifierType(v string)` + +SetAccessIdentifierType sets AccessIdentifierType field to given value. + +### HasAccessIdentifierType + +`func (o *DdidnsrickettsCredentialPreference) HasAccessIdentifierType() bool` + +HasAccessIdentifierType returns a boolean if a field has been set. + +### GetCredentialType + +`func (o *DdidnsrickettsCredentialPreference) GetCredentialType() string` + +GetCredentialType returns the CredentialType field if non-nil, zero value otherwise. + +### GetCredentialTypeOk + +`func (o *DdidnsrickettsCredentialPreference) GetCredentialTypeOk() (*string, bool)` + +GetCredentialTypeOk returns a tuple with the CredentialType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialType + +`func (o *DdidnsrickettsCredentialPreference) SetCredentialType(v string)` + +SetCredentialType sets CredentialType field to given value. + +### HasCredentialType + +`func (o *DdidnsrickettsCredentialPreference) HasCredentialType() bool` + +HasCredentialType 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/clouddiscovery/docs/DdidnsrickettsDNSConfig.md b/clouddiscovery/docs/DdidnsrickettsDNSConfig.md new file mode 100644 index 0000000..8f8bbee --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsDNSConfig.md @@ -0,0 +1,160 @@ +# DdidnsrickettsDNSConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConsolidatedZoneDataEnabled** | Pointer to **bool** | | [optional] +**SplitViewEnabled** | Pointer to **bool** | split_view_enabled consolidates private zones into a single view, which is separate from the public zone view. | [optional] +**SyncType** | Pointer to **string** | | [optional] +**ViewId** | Pointer to **string** | | [optional] +**ViewName** | Pointer to **string** | | [optional] + +## Methods + +### NewDdidnsrickettsDNSConfig + +`func NewDdidnsrickettsDNSConfig() *DdidnsrickettsDNSConfig` + +NewDdidnsrickettsDNSConfig instantiates a new DdidnsrickettsDNSConfig 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 + +### NewDdidnsrickettsDNSConfigWithDefaults + +`func NewDdidnsrickettsDNSConfigWithDefaults() *DdidnsrickettsDNSConfig` + +NewDdidnsrickettsDNSConfigWithDefaults instantiates a new DdidnsrickettsDNSConfig 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 + +### GetConsolidatedZoneDataEnabled + +`func (o *DdidnsrickettsDNSConfig) GetConsolidatedZoneDataEnabled() bool` + +GetConsolidatedZoneDataEnabled returns the ConsolidatedZoneDataEnabled field if non-nil, zero value otherwise. + +### GetConsolidatedZoneDataEnabledOk + +`func (o *DdidnsrickettsDNSConfig) GetConsolidatedZoneDataEnabledOk() (*bool, bool)` + +GetConsolidatedZoneDataEnabledOk returns a tuple with the ConsolidatedZoneDataEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsolidatedZoneDataEnabled + +`func (o *DdidnsrickettsDNSConfig) SetConsolidatedZoneDataEnabled(v bool)` + +SetConsolidatedZoneDataEnabled sets ConsolidatedZoneDataEnabled field to given value. + +### HasConsolidatedZoneDataEnabled + +`func (o *DdidnsrickettsDNSConfig) HasConsolidatedZoneDataEnabled() bool` + +HasConsolidatedZoneDataEnabled returns a boolean if a field has been set. + +### GetSplitViewEnabled + +`func (o *DdidnsrickettsDNSConfig) GetSplitViewEnabled() bool` + +GetSplitViewEnabled returns the SplitViewEnabled field if non-nil, zero value otherwise. + +### GetSplitViewEnabledOk + +`func (o *DdidnsrickettsDNSConfig) GetSplitViewEnabledOk() (*bool, bool)` + +GetSplitViewEnabledOk returns a tuple with the SplitViewEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSplitViewEnabled + +`func (o *DdidnsrickettsDNSConfig) SetSplitViewEnabled(v bool)` + +SetSplitViewEnabled sets SplitViewEnabled field to given value. + +### HasSplitViewEnabled + +`func (o *DdidnsrickettsDNSConfig) HasSplitViewEnabled() bool` + +HasSplitViewEnabled returns a boolean if a field has been set. + +### GetSyncType + +`func (o *DdidnsrickettsDNSConfig) GetSyncType() string` + +GetSyncType returns the SyncType field if non-nil, zero value otherwise. + +### GetSyncTypeOk + +`func (o *DdidnsrickettsDNSConfig) GetSyncTypeOk() (*string, bool)` + +GetSyncTypeOk returns a tuple with the SyncType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncType + +`func (o *DdidnsrickettsDNSConfig) SetSyncType(v string)` + +SetSyncType sets SyncType field to given value. + +### HasSyncType + +`func (o *DdidnsrickettsDNSConfig) HasSyncType() bool` + +HasSyncType returns a boolean if a field has been set. + +### GetViewId + +`func (o *DdidnsrickettsDNSConfig) GetViewId() string` + +GetViewId returns the ViewId field if non-nil, zero value otherwise. + +### GetViewIdOk + +`func (o *DdidnsrickettsDNSConfig) GetViewIdOk() (*string, bool)` + +GetViewIdOk returns a tuple with the ViewId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewId + +`func (o *DdidnsrickettsDNSConfig) SetViewId(v string)` + +SetViewId sets ViewId field to given value. + +### HasViewId + +`func (o *DdidnsrickettsDNSConfig) HasViewId() bool` + +HasViewId returns a boolean if a field has been set. + +### GetViewName + +`func (o *DdidnsrickettsDNSConfig) GetViewName() string` + +GetViewName returns the ViewName field if non-nil, zero value otherwise. + +### GetViewNameOk + +`func (o *DdidnsrickettsDNSConfig) GetViewNameOk() (*string, bool)` + +GetViewNameOk returns a tuple with the ViewName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetViewName + +`func (o *DdidnsrickettsDNSConfig) SetViewName(v string)` + +SetViewName sets ViewName field to given value. + +### HasViewName + +`func (o *DdidnsrickettsDNSConfig) HasViewName() bool` + +HasViewName 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/clouddiscovery/docs/DdidnsrickettsDestination.md b/clouddiscovery/docs/DdidnsrickettsDestination.md new file mode 100644 index 0000000..44ccb6b --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsDestination.md @@ -0,0 +1,181 @@ +# DdidnsrickettsDestination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | Pointer to [**DdidnsrickettsDestinationConfig**](DdidnsrickettsDestinationConfig.md) | Destination configuration. Ex.: '{ \"dns\": { \"view_name\": \"view 1\", \"view_id\": \"dns/view/v1\", \"consolidated_zone_data_enabled\": false, \"sync_type\": \"read_only/read_write\" \"split_view_enabled\": false }, \"ipam\": { \"ip_space\": \"\", }, \"account\": {}, }'. | [optional] +**CreatedAt** | Pointer to **time.Time** | Timestamp when the object has been created. | [optional] [readonly] +**DeletedAt** | Pointer to **time.Time** | Timestamp when the object has been deleted. | [optional] [readonly] +**DestinationType** | **string** | Destination type: DNS / IPAM / ACCOUNT. | +**Id** | Pointer to **string** | Auto-generated unique destination ID. Format BloxID. | [optional] [readonly] +**UpdatedAt** | Pointer to **time.Time** | Timestamp when the object has been updated. | [optional] [readonly] + +## Methods + +### NewDdidnsrickettsDestination + +`func NewDdidnsrickettsDestination(destinationType string, ) *DdidnsrickettsDestination` + +NewDdidnsrickettsDestination instantiates a new DdidnsrickettsDestination 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 + +### NewDdidnsrickettsDestinationWithDefaults + +`func NewDdidnsrickettsDestinationWithDefaults() *DdidnsrickettsDestination` + +NewDdidnsrickettsDestinationWithDefaults instantiates a new DdidnsrickettsDestination 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 + +### GetConfig + +`func (o *DdidnsrickettsDestination) GetConfig() DdidnsrickettsDestinationConfig` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *DdidnsrickettsDestination) GetConfigOk() (*DdidnsrickettsDestinationConfig, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *DdidnsrickettsDestination) SetConfig(v DdidnsrickettsDestinationConfig)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *DdidnsrickettsDestination) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *DdidnsrickettsDestination) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *DdidnsrickettsDestination) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *DdidnsrickettsDestination) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *DdidnsrickettsDestination) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDeletedAt + +`func (o *DdidnsrickettsDestination) GetDeletedAt() time.Time` + +GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise. + +### GetDeletedAtOk + +`func (o *DdidnsrickettsDestination) GetDeletedAtOk() (*time.Time, bool)` + +GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedAt + +`func (o *DdidnsrickettsDestination) SetDeletedAt(v time.Time)` + +SetDeletedAt sets DeletedAt field to given value. + +### HasDeletedAt + +`func (o *DdidnsrickettsDestination) HasDeletedAt() bool` + +HasDeletedAt returns a boolean if a field has been set. + +### GetDestinationType + +`func (o *DdidnsrickettsDestination) GetDestinationType() string` + +GetDestinationType returns the DestinationType field if non-nil, zero value otherwise. + +### GetDestinationTypeOk + +`func (o *DdidnsrickettsDestination) GetDestinationTypeOk() (*string, bool)` + +GetDestinationTypeOk returns a tuple with the DestinationType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinationType + +`func (o *DdidnsrickettsDestination) SetDestinationType(v string)` + +SetDestinationType sets DestinationType field to given value. + + +### GetId + +`func (o *DdidnsrickettsDestination) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DdidnsrickettsDestination) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DdidnsrickettsDestination) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DdidnsrickettsDestination) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *DdidnsrickettsDestination) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *DdidnsrickettsDestination) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *DdidnsrickettsDestination) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *DdidnsrickettsDestination) HasUpdatedAt() bool` + +HasUpdatedAt 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/clouddiscovery/docs/DdidnsrickettsDestinationConfig.md b/clouddiscovery/docs/DdidnsrickettsDestinationConfig.md new file mode 100644 index 0000000..d73c89a --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsDestinationConfig.md @@ -0,0 +1,82 @@ +# DdidnsrickettsDestinationConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Dns** | Pointer to [**DdidnsrickettsDNSConfig**](DdidnsrickettsDNSConfig.md) | | [optional] +**Ipam** | Pointer to [**DdidnsrickettsIPAMConfig**](DdidnsrickettsIPAMConfig.md) | | [optional] + +## Methods + +### NewDdidnsrickettsDestinationConfig + +`func NewDdidnsrickettsDestinationConfig() *DdidnsrickettsDestinationConfig` + +NewDdidnsrickettsDestinationConfig instantiates a new DdidnsrickettsDestinationConfig 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 + +### NewDdidnsrickettsDestinationConfigWithDefaults + +`func NewDdidnsrickettsDestinationConfigWithDefaults() *DdidnsrickettsDestinationConfig` + +NewDdidnsrickettsDestinationConfigWithDefaults instantiates a new DdidnsrickettsDestinationConfig 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 + +### GetDns + +`func (o *DdidnsrickettsDestinationConfig) GetDns() DdidnsrickettsDNSConfig` + +GetDns returns the Dns field if non-nil, zero value otherwise. + +### GetDnsOk + +`func (o *DdidnsrickettsDestinationConfig) GetDnsOk() (*DdidnsrickettsDNSConfig, bool)` + +GetDnsOk returns a tuple with the Dns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDns + +`func (o *DdidnsrickettsDestinationConfig) SetDns(v DdidnsrickettsDNSConfig)` + +SetDns sets Dns field to given value. + +### HasDns + +`func (o *DdidnsrickettsDestinationConfig) HasDns() bool` + +HasDns returns a boolean if a field has been set. + +### GetIpam + +`func (o *DdidnsrickettsDestinationConfig) GetIpam() DdidnsrickettsIPAMConfig` + +GetIpam returns the Ipam field if non-nil, zero value otherwise. + +### GetIpamOk + +`func (o *DdidnsrickettsDestinationConfig) GetIpamOk() (*DdidnsrickettsIPAMConfig, bool)` + +GetIpamOk returns a tuple with the Ipam field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpam + +`func (o *DdidnsrickettsDestinationConfig) SetIpam(v DdidnsrickettsIPAMConfig)` + +SetIpam sets Ipam field to given value. + +### HasIpam + +`func (o *DdidnsrickettsDestinationConfig) HasIpam() bool` + +HasIpam 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/clouddiscovery/docs/DdidnsrickettsDiscoveryConfig.md b/clouddiscovery/docs/DdidnsrickettsDiscoveryConfig.md new file mode 100644 index 0000000..48c6d5f --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsDiscoveryConfig.md @@ -0,0 +1,519 @@ +# DdidnsrickettsDiscoveryConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountPreference** | Pointer to **string** | Account preference. For ex.: single, multiple, auto-discover-multiple. | [optional] +**AdditionalConfig** | Pointer to [**DdidnsrickettsAdditionalConfig**](DdidnsrickettsAdditionalConfig.md) | Additional configuration. Ex.: '{ \"excluded_object_types\": [], \"exclusion_account_list\": [], \"zone_forwarding\": \"true\" or \"false\" }'. | [optional] +**CreatedAt** | Pointer to **time.Time** | Timestamp when the object has been created. | [optional] [readonly] +**CredentialPreference** | Pointer to [**DdidnsrickettsCredentialPreference**](DdidnsrickettsCredentialPreference.md) | Credential preference. Ex.: '{ \"type\": \"static\" or \"delegated\", \"access_identifier_type\": \"role_arn\" or \"tenant_id\" or \"project_id\" }'. | [optional] +**DeletedAt** | Pointer to **time.Time** | Timestamp when the object has been deleted. | [optional] [readonly] +**Description** | Pointer to **string** | Description of the discovery config. Optional. | [optional] +**DesiredState** | Pointer to **string** | Desired state. Default is \"enabled\". | [optional] +**DestinationTypesEnabled** | Pointer to **[]string** | Destinations types enabled: Ex.: DNS, IPAM and ACCOUNT. | [optional] +**Destinations** | Pointer to [**[]DdidnsrickettsDestination**](DdidnsrickettsDestination.md) | Destinations. | [optional] +**Id** | Pointer to **string** | Auto-generated unique discovery config ID. Format BloxID. | [optional] [readonly] +**LastSync** | Pointer to **time.Time** | Last sync timestamp. | [optional] +**Name** | **string** | Name of the discovery config. | +**ProviderType** | Pointer to **string** | Provider type. Ex.: Amazon Web Services, Google Cloud Platform, Microsoft Azure. | [optional] +**SourceConfigs** | Pointer to [**[]DdidnsrickettsSourceConfig**](DdidnsrickettsSourceConfig.md) | Source configs. | [optional] +**Status** | Pointer to **string** | Status of the sync operation. In single account case, Its the combined status of account & all the destinations statuses In auto discover case, Its the status of the account discovery only. | [optional] +**StatusMessage** | Pointer to **string** | Aggregate status message of the sync operation. | [optional] +**SyncInterval** | Pointer to **string** | | [optional] +**Tags** | Pointer to **map[string]map[string]interface{}** | Tagging specifics. | [optional] +**UpdatedAt** | Pointer to **time.Time** | Timestamp when the object has been updated. | [optional] [readonly] + +## Methods + +### NewDdidnsrickettsDiscoveryConfig + +`func NewDdidnsrickettsDiscoveryConfig(name string, ) *DdidnsrickettsDiscoveryConfig` + +NewDdidnsrickettsDiscoveryConfig instantiates a new DdidnsrickettsDiscoveryConfig 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 + +### NewDdidnsrickettsDiscoveryConfigWithDefaults + +`func NewDdidnsrickettsDiscoveryConfigWithDefaults() *DdidnsrickettsDiscoveryConfig` + +NewDdidnsrickettsDiscoveryConfigWithDefaults instantiates a new DdidnsrickettsDiscoveryConfig 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 + +### GetAccountPreference + +`func (o *DdidnsrickettsDiscoveryConfig) GetAccountPreference() string` + +GetAccountPreference returns the AccountPreference field if non-nil, zero value otherwise. + +### GetAccountPreferenceOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetAccountPreferenceOk() (*string, bool)` + +GetAccountPreferenceOk returns a tuple with the AccountPreference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountPreference + +`func (o *DdidnsrickettsDiscoveryConfig) SetAccountPreference(v string)` + +SetAccountPreference sets AccountPreference field to given value. + +### HasAccountPreference + +`func (o *DdidnsrickettsDiscoveryConfig) HasAccountPreference() bool` + +HasAccountPreference returns a boolean if a field has been set. + +### GetAdditionalConfig + +`func (o *DdidnsrickettsDiscoveryConfig) GetAdditionalConfig() DdidnsrickettsAdditionalConfig` + +GetAdditionalConfig returns the AdditionalConfig field if non-nil, zero value otherwise. + +### GetAdditionalConfigOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetAdditionalConfigOk() (*DdidnsrickettsAdditionalConfig, bool)` + +GetAdditionalConfigOk returns a tuple with the AdditionalConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdditionalConfig + +`func (o *DdidnsrickettsDiscoveryConfig) SetAdditionalConfig(v DdidnsrickettsAdditionalConfig)` + +SetAdditionalConfig sets AdditionalConfig field to given value. + +### HasAdditionalConfig + +`func (o *DdidnsrickettsDiscoveryConfig) HasAdditionalConfig() bool` + +HasAdditionalConfig returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *DdidnsrickettsDiscoveryConfig) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *DdidnsrickettsDiscoveryConfig) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *DdidnsrickettsDiscoveryConfig) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetCredentialPreference + +`func (o *DdidnsrickettsDiscoveryConfig) GetCredentialPreference() DdidnsrickettsCredentialPreference` + +GetCredentialPreference returns the CredentialPreference field if non-nil, zero value otherwise. + +### GetCredentialPreferenceOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetCredentialPreferenceOk() (*DdidnsrickettsCredentialPreference, bool)` + +GetCredentialPreferenceOk returns a tuple with the CredentialPreference field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialPreference + +`func (o *DdidnsrickettsDiscoveryConfig) SetCredentialPreference(v DdidnsrickettsCredentialPreference)` + +SetCredentialPreference sets CredentialPreference field to given value. + +### HasCredentialPreference + +`func (o *DdidnsrickettsDiscoveryConfig) HasCredentialPreference() bool` + +HasCredentialPreference returns a boolean if a field has been set. + +### GetDeletedAt + +`func (o *DdidnsrickettsDiscoveryConfig) GetDeletedAt() time.Time` + +GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise. + +### GetDeletedAtOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetDeletedAtOk() (*time.Time, bool)` + +GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedAt + +`func (o *DdidnsrickettsDiscoveryConfig) SetDeletedAt(v time.Time)` + +SetDeletedAt sets DeletedAt field to given value. + +### HasDeletedAt + +`func (o *DdidnsrickettsDiscoveryConfig) HasDeletedAt() bool` + +HasDeletedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *DdidnsrickettsDiscoveryConfig) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *DdidnsrickettsDiscoveryConfig) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *DdidnsrickettsDiscoveryConfig) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDesiredState + +`func (o *DdidnsrickettsDiscoveryConfig) GetDesiredState() string` + +GetDesiredState returns the DesiredState field if non-nil, zero value otherwise. + +### GetDesiredStateOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetDesiredStateOk() (*string, bool)` + +GetDesiredStateOk returns a tuple with the DesiredState field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDesiredState + +`func (o *DdidnsrickettsDiscoveryConfig) SetDesiredState(v string)` + +SetDesiredState sets DesiredState field to given value. + +### HasDesiredState + +`func (o *DdidnsrickettsDiscoveryConfig) HasDesiredState() bool` + +HasDesiredState returns a boolean if a field has been set. + +### GetDestinationTypesEnabled + +`func (o *DdidnsrickettsDiscoveryConfig) GetDestinationTypesEnabled() []string` + +GetDestinationTypesEnabled returns the DestinationTypesEnabled field if non-nil, zero value otherwise. + +### GetDestinationTypesEnabledOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetDestinationTypesEnabledOk() (*[]string, bool)` + +GetDestinationTypesEnabledOk returns a tuple with the DestinationTypesEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinationTypesEnabled + +`func (o *DdidnsrickettsDiscoveryConfig) SetDestinationTypesEnabled(v []string)` + +SetDestinationTypesEnabled sets DestinationTypesEnabled field to given value. + +### HasDestinationTypesEnabled + +`func (o *DdidnsrickettsDiscoveryConfig) HasDestinationTypesEnabled() bool` + +HasDestinationTypesEnabled returns a boolean if a field has been set. + +### GetDestinations + +`func (o *DdidnsrickettsDiscoveryConfig) GetDestinations() []DdidnsrickettsDestination` + +GetDestinations returns the Destinations field if non-nil, zero value otherwise. + +### GetDestinationsOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetDestinationsOk() (*[]DdidnsrickettsDestination, bool)` + +GetDestinationsOk returns a tuple with the Destinations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDestinations + +`func (o *DdidnsrickettsDiscoveryConfig) SetDestinations(v []DdidnsrickettsDestination)` + +SetDestinations sets Destinations field to given value. + +### HasDestinations + +`func (o *DdidnsrickettsDiscoveryConfig) HasDestinations() bool` + +HasDestinations returns a boolean if a field has been set. + +### GetId + +`func (o *DdidnsrickettsDiscoveryConfig) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DdidnsrickettsDiscoveryConfig) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DdidnsrickettsDiscoveryConfig) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLastSync + +`func (o *DdidnsrickettsDiscoveryConfig) GetLastSync() time.Time` + +GetLastSync returns the LastSync field if non-nil, zero value otherwise. + +### GetLastSyncOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetLastSyncOk() (*time.Time, bool)` + +GetLastSyncOk returns a tuple with the LastSync field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSync + +`func (o *DdidnsrickettsDiscoveryConfig) SetLastSync(v time.Time)` + +SetLastSync sets LastSync field to given value. + +### HasLastSync + +`func (o *DdidnsrickettsDiscoveryConfig) HasLastSync() bool` + +HasLastSync returns a boolean if a field has been set. + +### GetName + +`func (o *DdidnsrickettsDiscoveryConfig) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DdidnsrickettsDiscoveryConfig) SetName(v string)` + +SetName sets Name field to given value. + + +### GetProviderType + +`func (o *DdidnsrickettsDiscoveryConfig) GetProviderType() string` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetProviderTypeOk() (*string, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *DdidnsrickettsDiscoveryConfig) SetProviderType(v string)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *DdidnsrickettsDiscoveryConfig) HasProviderType() bool` + +HasProviderType returns a boolean if a field has been set. + +### GetSourceConfigs + +`func (o *DdidnsrickettsDiscoveryConfig) GetSourceConfigs() []DdidnsrickettsSourceConfig` + +GetSourceConfigs returns the SourceConfigs field if non-nil, zero value otherwise. + +### GetSourceConfigsOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetSourceConfigsOk() (*[]DdidnsrickettsSourceConfig, bool)` + +GetSourceConfigsOk returns a tuple with the SourceConfigs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceConfigs + +`func (o *DdidnsrickettsDiscoveryConfig) SetSourceConfigs(v []DdidnsrickettsSourceConfig)` + +SetSourceConfigs sets SourceConfigs field to given value. + +### HasSourceConfigs + +`func (o *DdidnsrickettsDiscoveryConfig) HasSourceConfigs() bool` + +HasSourceConfigs returns a boolean if a field has been set. + +### GetStatus + +`func (o *DdidnsrickettsDiscoveryConfig) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DdidnsrickettsDiscoveryConfig) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *DdidnsrickettsDiscoveryConfig) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusMessage + +`func (o *DdidnsrickettsDiscoveryConfig) GetStatusMessage() string` + +GetStatusMessage returns the StatusMessage field if non-nil, zero value otherwise. + +### GetStatusMessageOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetStatusMessageOk() (*string, bool)` + +GetStatusMessageOk returns a tuple with the StatusMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusMessage + +`func (o *DdidnsrickettsDiscoveryConfig) SetStatusMessage(v string)` + +SetStatusMessage sets StatusMessage field to given value. + +### HasStatusMessage + +`func (o *DdidnsrickettsDiscoveryConfig) HasStatusMessage() bool` + +HasStatusMessage returns a boolean if a field has been set. + +### GetSyncInterval + +`func (o *DdidnsrickettsDiscoveryConfig) GetSyncInterval() string` + +GetSyncInterval returns the SyncInterval field if non-nil, zero value otherwise. + +### GetSyncIntervalOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetSyncIntervalOk() (*string, bool)` + +GetSyncIntervalOk returns a tuple with the SyncInterval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncInterval + +`func (o *DdidnsrickettsDiscoveryConfig) SetSyncInterval(v string)` + +SetSyncInterval sets SyncInterval field to given value. + +### HasSyncInterval + +`func (o *DdidnsrickettsDiscoveryConfig) HasSyncInterval() bool` + +HasSyncInterval returns a boolean if a field has been set. + +### GetTags + +`func (o *DdidnsrickettsDiscoveryConfig) GetTags() map[string]map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetTagsOk() (*map[string]map[string]interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DdidnsrickettsDiscoveryConfig) SetTags(v map[string]map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DdidnsrickettsDiscoveryConfig) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *DdidnsrickettsDiscoveryConfig) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *DdidnsrickettsDiscoveryConfig) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *DdidnsrickettsDiscoveryConfig) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *DdidnsrickettsDiscoveryConfig) HasUpdatedAt() bool` + +HasUpdatedAt 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/clouddiscovery/docs/DdidnsrickettsIPAMConfig.md b/clouddiscovery/docs/DdidnsrickettsIPAMConfig.md new file mode 100644 index 0000000..c7077f8 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsIPAMConfig.md @@ -0,0 +1,82 @@ +# DdidnsrickettsIPAMConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DhcpServer** | Pointer to **string** | | [optional] +**IpSpace** | Pointer to **string** | | [optional] + +## Methods + +### NewDdidnsrickettsIPAMConfig + +`func NewDdidnsrickettsIPAMConfig() *DdidnsrickettsIPAMConfig` + +NewDdidnsrickettsIPAMConfig instantiates a new DdidnsrickettsIPAMConfig 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 + +### NewDdidnsrickettsIPAMConfigWithDefaults + +`func NewDdidnsrickettsIPAMConfigWithDefaults() *DdidnsrickettsIPAMConfig` + +NewDdidnsrickettsIPAMConfigWithDefaults instantiates a new DdidnsrickettsIPAMConfig 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 + +### GetDhcpServer + +`func (o *DdidnsrickettsIPAMConfig) GetDhcpServer() string` + +GetDhcpServer returns the DhcpServer field if non-nil, zero value otherwise. + +### GetDhcpServerOk + +`func (o *DdidnsrickettsIPAMConfig) GetDhcpServerOk() (*string, bool)` + +GetDhcpServerOk returns a tuple with the DhcpServer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDhcpServer + +`func (o *DdidnsrickettsIPAMConfig) SetDhcpServer(v string)` + +SetDhcpServer sets DhcpServer field to given value. + +### HasDhcpServer + +`func (o *DdidnsrickettsIPAMConfig) HasDhcpServer() bool` + +HasDhcpServer returns a boolean if a field has been set. + +### GetIpSpace + +`func (o *DdidnsrickettsIPAMConfig) GetIpSpace() string` + +GetIpSpace returns the IpSpace field if non-nil, zero value otherwise. + +### GetIpSpaceOk + +`func (o *DdidnsrickettsIPAMConfig) GetIpSpaceOk() (*string, bool)` + +GetIpSpaceOk returns a tuple with the IpSpace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpSpace + +`func (o *DdidnsrickettsIPAMConfig) SetIpSpace(v string)` + +SetIpSpace sets IpSpace field to given value. + +### HasIpSpace + +`func (o *DdidnsrickettsIPAMConfig) HasIpSpace() bool` + +HasIpSpace 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/clouddiscovery/docs/DdidnsrickettsObject.md b/clouddiscovery/docs/DdidnsrickettsObject.md new file mode 100644 index 0000000..27ed14e --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsObject.md @@ -0,0 +1,82 @@ +# DdidnsrickettsObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Category** | Pointer to [**DdidnsrickettsCategory**](DdidnsrickettsCategory.md) | | [optional] +**ResourceSet** | Pointer to [**[]DdidnsrickettsResource**](DdidnsrickettsResource.md) | | [optional] + +## Methods + +### NewDdidnsrickettsObject + +`func NewDdidnsrickettsObject() *DdidnsrickettsObject` + +NewDdidnsrickettsObject instantiates a new DdidnsrickettsObject 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 + +### NewDdidnsrickettsObjectWithDefaults + +`func NewDdidnsrickettsObjectWithDefaults() *DdidnsrickettsObject` + +NewDdidnsrickettsObjectWithDefaults instantiates a new DdidnsrickettsObject 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 + +### GetCategory + +`func (o *DdidnsrickettsObject) GetCategory() DdidnsrickettsCategory` + +GetCategory returns the Category field if non-nil, zero value otherwise. + +### GetCategoryOk + +`func (o *DdidnsrickettsObject) GetCategoryOk() (*DdidnsrickettsCategory, bool)` + +GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategory + +`func (o *DdidnsrickettsObject) SetCategory(v DdidnsrickettsCategory)` + +SetCategory sets Category field to given value. + +### HasCategory + +`func (o *DdidnsrickettsObject) HasCategory() bool` + +HasCategory returns a boolean if a field has been set. + +### GetResourceSet + +`func (o *DdidnsrickettsObject) GetResourceSet() []DdidnsrickettsResource` + +GetResourceSet returns the ResourceSet field if non-nil, zero value otherwise. + +### GetResourceSetOk + +`func (o *DdidnsrickettsObject) GetResourceSetOk() (*[]DdidnsrickettsResource, bool)` + +GetResourceSetOk returns a tuple with the ResourceSet field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResourceSet + +`func (o *DdidnsrickettsObject) SetResourceSet(v []DdidnsrickettsResource)` + +SetResourceSet sets ResourceSet field to given value. + +### HasResourceSet + +`func (o *DdidnsrickettsObject) HasResourceSet() bool` + +HasResourceSet 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/clouddiscovery/docs/DdidnsrickettsObjectType.md b/clouddiscovery/docs/DdidnsrickettsObjectType.md new file mode 100644 index 0000000..2178414 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsObjectType.md @@ -0,0 +1,108 @@ +# DdidnsrickettsObjectType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DiscoverNew** | Pointer to **bool** | | [optional] +**Objects** | Pointer to [**[]DdidnsrickettsObject**](DdidnsrickettsObject.md) | | [optional] +**Version** | Pointer to **float32** | | [optional] + +## Methods + +### NewDdidnsrickettsObjectType + +`func NewDdidnsrickettsObjectType() *DdidnsrickettsObjectType` + +NewDdidnsrickettsObjectType instantiates a new DdidnsrickettsObjectType 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 + +### NewDdidnsrickettsObjectTypeWithDefaults + +`func NewDdidnsrickettsObjectTypeWithDefaults() *DdidnsrickettsObjectType` + +NewDdidnsrickettsObjectTypeWithDefaults instantiates a new DdidnsrickettsObjectType 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 + +### GetDiscoverNew + +`func (o *DdidnsrickettsObjectType) GetDiscoverNew() bool` + +GetDiscoverNew returns the DiscoverNew field if non-nil, zero value otherwise. + +### GetDiscoverNewOk + +`func (o *DdidnsrickettsObjectType) GetDiscoverNewOk() (*bool, bool)` + +GetDiscoverNewOk returns a tuple with the DiscoverNew field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiscoverNew + +`func (o *DdidnsrickettsObjectType) SetDiscoverNew(v bool)` + +SetDiscoverNew sets DiscoverNew field to given value. + +### HasDiscoverNew + +`func (o *DdidnsrickettsObjectType) HasDiscoverNew() bool` + +HasDiscoverNew returns a boolean if a field has been set. + +### GetObjects + +`func (o *DdidnsrickettsObjectType) GetObjects() []DdidnsrickettsObject` + +GetObjects returns the Objects field if non-nil, zero value otherwise. + +### GetObjectsOk + +`func (o *DdidnsrickettsObjectType) GetObjectsOk() (*[]DdidnsrickettsObject, bool)` + +GetObjectsOk returns a tuple with the Objects field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjects + +`func (o *DdidnsrickettsObjectType) SetObjects(v []DdidnsrickettsObject)` + +SetObjects sets Objects field to given value. + +### HasObjects + +`func (o *DdidnsrickettsObjectType) HasObjects() bool` + +HasObjects returns a boolean if a field has been set. + +### GetVersion + +`func (o *DdidnsrickettsObjectType) GetVersion() float32` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *DdidnsrickettsObjectType) GetVersionOk() (*float32, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *DdidnsrickettsObjectType) SetVersion(v float32)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *DdidnsrickettsObjectType) HasVersion() bool` + +HasVersion 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/clouddiscovery/docs/DdidnsrickettsProviderCreateResponse.md b/clouddiscovery/docs/DdidnsrickettsProviderCreateResponse.md new file mode 100644 index 0000000..0e729fe --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsProviderCreateResponse.md @@ -0,0 +1,56 @@ +# DdidnsrickettsProviderCreateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**DdidnsrickettsDiscoveryConfig**](DdidnsrickettsDiscoveryConfig.md) | | [optional] + +## Methods + +### NewDdidnsrickettsProviderCreateResponse + +`func NewDdidnsrickettsProviderCreateResponse() *DdidnsrickettsProviderCreateResponse` + +NewDdidnsrickettsProviderCreateResponse instantiates a new DdidnsrickettsProviderCreateResponse 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 + +### NewDdidnsrickettsProviderCreateResponseWithDefaults + +`func NewDdidnsrickettsProviderCreateResponseWithDefaults() *DdidnsrickettsProviderCreateResponse` + +NewDdidnsrickettsProviderCreateResponseWithDefaults instantiates a new DdidnsrickettsProviderCreateResponse 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 + +### GetResult + +`func (o *DdidnsrickettsProviderCreateResponse) GetResult() DdidnsrickettsDiscoveryConfig` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *DdidnsrickettsProviderCreateResponse) GetResultOk() (*DdidnsrickettsDiscoveryConfig, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *DdidnsrickettsProviderCreateResponse) SetResult(v DdidnsrickettsDiscoveryConfig)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *DdidnsrickettsProviderCreateResponse) HasResult() bool` + +HasResult 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/clouddiscovery/docs/DdidnsrickettsProviderListResponse.md b/clouddiscovery/docs/DdidnsrickettsProviderListResponse.md new file mode 100644 index 0000000..ee624bb --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsProviderListResponse.md @@ -0,0 +1,82 @@ +# DdidnsrickettsProviderListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | Pointer to [**ApiPageInfo**](ApiPageInfo.md) | | [optional] +**Results** | Pointer to [**[]DdidnsrickettsDiscoveryConfig**](DdidnsrickettsDiscoveryConfig.md) | | [optional] + +## Methods + +### NewDdidnsrickettsProviderListResponse + +`func NewDdidnsrickettsProviderListResponse() *DdidnsrickettsProviderListResponse` + +NewDdidnsrickettsProviderListResponse instantiates a new DdidnsrickettsProviderListResponse 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 + +### NewDdidnsrickettsProviderListResponseWithDefaults + +`func NewDdidnsrickettsProviderListResponseWithDefaults() *DdidnsrickettsProviderListResponse` + +NewDdidnsrickettsProviderListResponseWithDefaults instantiates a new DdidnsrickettsProviderListResponse 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 + +### GetPage + +`func (o *DdidnsrickettsProviderListResponse) GetPage() ApiPageInfo` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *DdidnsrickettsProviderListResponse) GetPageOk() (*ApiPageInfo, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *DdidnsrickettsProviderListResponse) SetPage(v ApiPageInfo)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *DdidnsrickettsProviderListResponse) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetResults + +`func (o *DdidnsrickettsProviderListResponse) GetResults() []DdidnsrickettsDiscoveryConfig` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *DdidnsrickettsProviderListResponse) GetResultsOk() (*[]DdidnsrickettsDiscoveryConfig, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *DdidnsrickettsProviderListResponse) SetResults(v []DdidnsrickettsDiscoveryConfig)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *DdidnsrickettsProviderListResponse) HasResults() bool` + +HasResults 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/clouddiscovery/docs/DdidnsrickettsProviderReadResponse.md b/clouddiscovery/docs/DdidnsrickettsProviderReadResponse.md new file mode 100644 index 0000000..4da18d0 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsProviderReadResponse.md @@ -0,0 +1,56 @@ +# DdidnsrickettsProviderReadResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**DdidnsrickettsDiscoveryConfig**](DdidnsrickettsDiscoveryConfig.md) | | [optional] + +## Methods + +### NewDdidnsrickettsProviderReadResponse + +`func NewDdidnsrickettsProviderReadResponse() *DdidnsrickettsProviderReadResponse` + +NewDdidnsrickettsProviderReadResponse instantiates a new DdidnsrickettsProviderReadResponse 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 + +### NewDdidnsrickettsProviderReadResponseWithDefaults + +`func NewDdidnsrickettsProviderReadResponseWithDefaults() *DdidnsrickettsProviderReadResponse` + +NewDdidnsrickettsProviderReadResponseWithDefaults instantiates a new DdidnsrickettsProviderReadResponse 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 + +### GetResult + +`func (o *DdidnsrickettsProviderReadResponse) GetResult() DdidnsrickettsDiscoveryConfig` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *DdidnsrickettsProviderReadResponse) GetResultOk() (*DdidnsrickettsDiscoveryConfig, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *DdidnsrickettsProviderReadResponse) SetResult(v DdidnsrickettsDiscoveryConfig)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *DdidnsrickettsProviderReadResponse) HasResult() bool` + +HasResult 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/clouddiscovery/docs/DdidnsrickettsProviderUpdateResponse.md b/clouddiscovery/docs/DdidnsrickettsProviderUpdateResponse.md new file mode 100644 index 0000000..b8dacca --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsProviderUpdateResponse.md @@ -0,0 +1,56 @@ +# DdidnsrickettsProviderUpdateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**DdidnsrickettsDiscoveryConfig**](DdidnsrickettsDiscoveryConfig.md) | | [optional] + +## Methods + +### NewDdidnsrickettsProviderUpdateResponse + +`func NewDdidnsrickettsProviderUpdateResponse() *DdidnsrickettsProviderUpdateResponse` + +NewDdidnsrickettsProviderUpdateResponse instantiates a new DdidnsrickettsProviderUpdateResponse 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 + +### NewDdidnsrickettsProviderUpdateResponseWithDefaults + +`func NewDdidnsrickettsProviderUpdateResponseWithDefaults() *DdidnsrickettsProviderUpdateResponse` + +NewDdidnsrickettsProviderUpdateResponseWithDefaults instantiates a new DdidnsrickettsProviderUpdateResponse 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 + +### GetResult + +`func (o *DdidnsrickettsProviderUpdateResponse) GetResult() DdidnsrickettsDiscoveryConfig` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *DdidnsrickettsProviderUpdateResponse) GetResultOk() (*DdidnsrickettsDiscoveryConfig, bool)` + +GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResult + +`func (o *DdidnsrickettsProviderUpdateResponse) SetResult(v DdidnsrickettsDiscoveryConfig)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *DdidnsrickettsProviderUpdateResponse) HasResult() bool` + +HasResult 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/clouddiscovery/docs/DdidnsrickettsResource.md b/clouddiscovery/docs/DdidnsrickettsResource.md new file mode 100644 index 0000000..e7091fc --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsResource.md @@ -0,0 +1,82 @@ +# DdidnsrickettsResource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Excluded** | Pointer to **bool** | | [optional] +**Id** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewDdidnsrickettsResource + +`func NewDdidnsrickettsResource() *DdidnsrickettsResource` + +NewDdidnsrickettsResource instantiates a new DdidnsrickettsResource 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 + +### NewDdidnsrickettsResourceWithDefaults + +`func NewDdidnsrickettsResourceWithDefaults() *DdidnsrickettsResource` + +NewDdidnsrickettsResourceWithDefaults instantiates a new DdidnsrickettsResource 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 + +### GetExcluded + +`func (o *DdidnsrickettsResource) GetExcluded() bool` + +GetExcluded returns the Excluded field if non-nil, zero value otherwise. + +### GetExcludedOk + +`func (o *DdidnsrickettsResource) GetExcludedOk() (*bool, bool)` + +GetExcludedOk returns a tuple with the Excluded field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcluded + +`func (o *DdidnsrickettsResource) SetExcluded(v bool)` + +SetExcluded sets Excluded field to given value. + +### HasExcluded + +`func (o *DdidnsrickettsResource) HasExcluded() bool` + +HasExcluded returns a boolean if a field has been set. + +### GetId + +`func (o *DdidnsrickettsResource) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DdidnsrickettsResource) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DdidnsrickettsResource) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DdidnsrickettsResource) HasId() bool` + +HasId 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/clouddiscovery/docs/DdidnsrickettsSourceConfig.md b/clouddiscovery/docs/DdidnsrickettsSourceConfig.md new file mode 100644 index 0000000..d0b4c69 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsSourceConfig.md @@ -0,0 +1,259 @@ +# DdidnsrickettsSourceConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountScheduleId** | Pointer to **string** | Account Schedule ID. | [optional] [readonly] +**Accounts** | Pointer to [**[]DdidnsrickettsAccount**](DdidnsrickettsAccount.md) | | [optional] +**CloudCredentialId** | **string** | Cloud Credential ID. | +**CreatedAt** | Pointer to **time.Time** | Timestamp when the object has been created. | [optional] [readonly] +**CredentialConfig** | Pointer to [**DdidnsrickettsCredentialConfig**](DdidnsrickettsCredentialConfig.md) | Credential configuration. Ex.: '{ \"access_identifier\": \"arn:aws:iam::1234:role/access_for_discovery\", \"region\": \"us-east-1\", \"enclave\": \"commercial/gov\" }'. | [optional] +**DeletedAt** | Pointer to **time.Time** | Timestamp when the object has been deleted. | [optional] [readonly] +**Id** | Pointer to **string** | Auto-generated unique source config ID. Format BloxID. | [optional] [readonly] +**RestrictedToAccounts** | Pointer to **[]string** | Provider account IDs such as accountID/ SubscriptionID to be restricted for a given source_config. | [optional] +**UpdatedAt** | Pointer to **time.Time** | Timestamp when the object has been updated. | [optional] [readonly] + +## Methods + +### NewDdidnsrickettsSourceConfig + +`func NewDdidnsrickettsSourceConfig(cloudCredentialId string, ) *DdidnsrickettsSourceConfig` + +NewDdidnsrickettsSourceConfig instantiates a new DdidnsrickettsSourceConfig 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 + +### NewDdidnsrickettsSourceConfigWithDefaults + +`func NewDdidnsrickettsSourceConfigWithDefaults() *DdidnsrickettsSourceConfig` + +NewDdidnsrickettsSourceConfigWithDefaults instantiates a new DdidnsrickettsSourceConfig 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 + +### GetAccountScheduleId + +`func (o *DdidnsrickettsSourceConfig) GetAccountScheduleId() string` + +GetAccountScheduleId returns the AccountScheduleId field if non-nil, zero value otherwise. + +### GetAccountScheduleIdOk + +`func (o *DdidnsrickettsSourceConfig) GetAccountScheduleIdOk() (*string, bool)` + +GetAccountScheduleIdOk returns a tuple with the AccountScheduleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountScheduleId + +`func (o *DdidnsrickettsSourceConfig) SetAccountScheduleId(v string)` + +SetAccountScheduleId sets AccountScheduleId field to given value. + +### HasAccountScheduleId + +`func (o *DdidnsrickettsSourceConfig) HasAccountScheduleId() bool` + +HasAccountScheduleId returns a boolean if a field has been set. + +### GetAccounts + +`func (o *DdidnsrickettsSourceConfig) GetAccounts() []DdidnsrickettsAccount` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *DdidnsrickettsSourceConfig) GetAccountsOk() (*[]DdidnsrickettsAccount, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *DdidnsrickettsSourceConfig) SetAccounts(v []DdidnsrickettsAccount)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *DdidnsrickettsSourceConfig) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + +### GetCloudCredentialId + +`func (o *DdidnsrickettsSourceConfig) GetCloudCredentialId() string` + +GetCloudCredentialId returns the CloudCredentialId field if non-nil, zero value otherwise. + +### GetCloudCredentialIdOk + +`func (o *DdidnsrickettsSourceConfig) GetCloudCredentialIdOk() (*string, bool)` + +GetCloudCredentialIdOk returns a tuple with the CloudCredentialId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudCredentialId + +`func (o *DdidnsrickettsSourceConfig) SetCloudCredentialId(v string)` + +SetCloudCredentialId sets CloudCredentialId field to given value. + + +### GetCreatedAt + +`func (o *DdidnsrickettsSourceConfig) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *DdidnsrickettsSourceConfig) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *DdidnsrickettsSourceConfig) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *DdidnsrickettsSourceConfig) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetCredentialConfig + +`func (o *DdidnsrickettsSourceConfig) GetCredentialConfig() DdidnsrickettsCredentialConfig` + +GetCredentialConfig returns the CredentialConfig field if non-nil, zero value otherwise. + +### GetCredentialConfigOk + +`func (o *DdidnsrickettsSourceConfig) GetCredentialConfigOk() (*DdidnsrickettsCredentialConfig, bool)` + +GetCredentialConfigOk returns a tuple with the CredentialConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialConfig + +`func (o *DdidnsrickettsSourceConfig) SetCredentialConfig(v DdidnsrickettsCredentialConfig)` + +SetCredentialConfig sets CredentialConfig field to given value. + +### HasCredentialConfig + +`func (o *DdidnsrickettsSourceConfig) HasCredentialConfig() bool` + +HasCredentialConfig returns a boolean if a field has been set. + +### GetDeletedAt + +`func (o *DdidnsrickettsSourceConfig) GetDeletedAt() time.Time` + +GetDeletedAt returns the DeletedAt field if non-nil, zero value otherwise. + +### GetDeletedAtOk + +`func (o *DdidnsrickettsSourceConfig) GetDeletedAtOk() (*time.Time, bool)` + +GetDeletedAtOk returns a tuple with the DeletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeletedAt + +`func (o *DdidnsrickettsSourceConfig) SetDeletedAt(v time.Time)` + +SetDeletedAt sets DeletedAt field to given value. + +### HasDeletedAt + +`func (o *DdidnsrickettsSourceConfig) HasDeletedAt() bool` + +HasDeletedAt returns a boolean if a field has been set. + +### GetId + +`func (o *DdidnsrickettsSourceConfig) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DdidnsrickettsSourceConfig) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DdidnsrickettsSourceConfig) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DdidnsrickettsSourceConfig) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetRestrictedToAccounts + +`func (o *DdidnsrickettsSourceConfig) GetRestrictedToAccounts() []string` + +GetRestrictedToAccounts returns the RestrictedToAccounts field if non-nil, zero value otherwise. + +### GetRestrictedToAccountsOk + +`func (o *DdidnsrickettsSourceConfig) GetRestrictedToAccountsOk() (*[]string, bool)` + +GetRestrictedToAccountsOk returns a tuple with the RestrictedToAccounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRestrictedToAccounts + +`func (o *DdidnsrickettsSourceConfig) SetRestrictedToAccounts(v []string)` + +SetRestrictedToAccounts sets RestrictedToAccounts field to given value. + +### HasRestrictedToAccounts + +`func (o *DdidnsrickettsSourceConfig) HasRestrictedToAccounts() bool` + +HasRestrictedToAccounts returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *DdidnsrickettsSourceConfig) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *DdidnsrickettsSourceConfig) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *DdidnsrickettsSourceConfig) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *DdidnsrickettsSourceConfig) HasUpdatedAt() bool` + +HasUpdatedAt 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/clouddiscovery/docs/DdidnsrickettsSubAccountListRequestV2.md b/clouddiscovery/docs/DdidnsrickettsSubAccountListRequestV2.md new file mode 100644 index 0000000..6b535e7 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsSubAccountListRequestV2.md @@ -0,0 +1,160 @@ +# DdidnsrickettsSubAccountListRequestV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccessType** | Pointer to **string** | | [optional] +**CredentialId** | Pointer to **string** | | [optional] +**Fields** | Pointer to **string** | atlas.api.field_selection | [optional] +**ProviderCredentialsConfig** | Pointer to [**DdidnsrickettsSubAccountProvCredConfig**](DdidnsrickettsSubAccountProvCredConfig.md) | | [optional] +**ProviderType** | Pointer to **string** | | [optional] + +## Methods + +### NewDdidnsrickettsSubAccountListRequestV2 + +`func NewDdidnsrickettsSubAccountListRequestV2() *DdidnsrickettsSubAccountListRequestV2` + +NewDdidnsrickettsSubAccountListRequestV2 instantiates a new DdidnsrickettsSubAccountListRequestV2 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 + +### NewDdidnsrickettsSubAccountListRequestV2WithDefaults + +`func NewDdidnsrickettsSubAccountListRequestV2WithDefaults() *DdidnsrickettsSubAccountListRequestV2` + +NewDdidnsrickettsSubAccountListRequestV2WithDefaults instantiates a new DdidnsrickettsSubAccountListRequestV2 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 + +### GetAccessType + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetAccessType() string` + +GetAccessType returns the AccessType field if non-nil, zero value otherwise. + +### GetAccessTypeOk + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetAccessTypeOk() (*string, bool)` + +GetAccessTypeOk returns a tuple with the AccessType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccessType + +`func (o *DdidnsrickettsSubAccountListRequestV2) SetAccessType(v string)` + +SetAccessType sets AccessType field to given value. + +### HasAccessType + +`func (o *DdidnsrickettsSubAccountListRequestV2) HasAccessType() bool` + +HasAccessType returns a boolean if a field has been set. + +### GetCredentialId + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetCredentialId() string` + +GetCredentialId returns the CredentialId field if non-nil, zero value otherwise. + +### GetCredentialIdOk + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetCredentialIdOk() (*string, bool)` + +GetCredentialIdOk returns a tuple with the CredentialId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCredentialId + +`func (o *DdidnsrickettsSubAccountListRequestV2) SetCredentialId(v string)` + +SetCredentialId sets CredentialId field to given value. + +### HasCredentialId + +`func (o *DdidnsrickettsSubAccountListRequestV2) HasCredentialId() bool` + +HasCredentialId returns a boolean if a field has been set. + +### GetFields + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetFields() string` + +GetFields returns the Fields field if non-nil, zero value otherwise. + +### GetFieldsOk + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetFieldsOk() (*string, bool)` + +GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFields + +`func (o *DdidnsrickettsSubAccountListRequestV2) SetFields(v string)` + +SetFields sets Fields field to given value. + +### HasFields + +`func (o *DdidnsrickettsSubAccountListRequestV2) HasFields() bool` + +HasFields returns a boolean if a field has been set. + +### GetProviderCredentialsConfig + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderCredentialsConfig() DdidnsrickettsSubAccountProvCredConfig` + +GetProviderCredentialsConfig returns the ProviderCredentialsConfig field if non-nil, zero value otherwise. + +### GetProviderCredentialsConfigOk + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderCredentialsConfigOk() (*DdidnsrickettsSubAccountProvCredConfig, bool)` + +GetProviderCredentialsConfigOk returns a tuple with the ProviderCredentialsConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderCredentialsConfig + +`func (o *DdidnsrickettsSubAccountListRequestV2) SetProviderCredentialsConfig(v DdidnsrickettsSubAccountProvCredConfig)` + +SetProviderCredentialsConfig sets ProviderCredentialsConfig field to given value. + +### HasProviderCredentialsConfig + +`func (o *DdidnsrickettsSubAccountListRequestV2) HasProviderCredentialsConfig() bool` + +HasProviderCredentialsConfig returns a boolean if a field has been set. + +### GetProviderType + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderType() string` + +GetProviderType returns the ProviderType field if non-nil, zero value otherwise. + +### GetProviderTypeOk + +`func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderTypeOk() (*string, bool)` + +GetProviderTypeOk returns a tuple with the ProviderType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderType + +`func (o *DdidnsrickettsSubAccountListRequestV2) SetProviderType(v string)` + +SetProviderType sets ProviderType field to given value. + +### HasProviderType + +`func (o *DdidnsrickettsSubAccountListRequestV2) HasProviderType() bool` + +HasProviderType 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/clouddiscovery/docs/DdidnsrickettsSubAccountListResponseV2.md b/clouddiscovery/docs/DdidnsrickettsSubAccountListResponseV2.md new file mode 100644 index 0000000..87a6215 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsSubAccountListResponseV2.md @@ -0,0 +1,82 @@ +# DdidnsrickettsSubAccountListResponseV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Page** | Pointer to [**ApiPageInfo**](ApiPageInfo.md) | | [optional] +**Results** | Pointer to [**[]DdidnsrickettsSubAccountV2**](DdidnsrickettsSubAccountV2.md) | | [optional] + +## Methods + +### NewDdidnsrickettsSubAccountListResponseV2 + +`func NewDdidnsrickettsSubAccountListResponseV2() *DdidnsrickettsSubAccountListResponseV2` + +NewDdidnsrickettsSubAccountListResponseV2 instantiates a new DdidnsrickettsSubAccountListResponseV2 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 + +### NewDdidnsrickettsSubAccountListResponseV2WithDefaults + +`func NewDdidnsrickettsSubAccountListResponseV2WithDefaults() *DdidnsrickettsSubAccountListResponseV2` + +NewDdidnsrickettsSubAccountListResponseV2WithDefaults instantiates a new DdidnsrickettsSubAccountListResponseV2 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 + +### GetPage + +`func (o *DdidnsrickettsSubAccountListResponseV2) GetPage() ApiPageInfo` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *DdidnsrickettsSubAccountListResponseV2) GetPageOk() (*ApiPageInfo, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *DdidnsrickettsSubAccountListResponseV2) SetPage(v ApiPageInfo)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *DdidnsrickettsSubAccountListResponseV2) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### GetResults + +`func (o *DdidnsrickettsSubAccountListResponseV2) GetResults() []DdidnsrickettsSubAccountV2` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *DdidnsrickettsSubAccountListResponseV2) GetResultsOk() (*[]DdidnsrickettsSubAccountV2, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *DdidnsrickettsSubAccountListResponseV2) SetResults(v []DdidnsrickettsSubAccountV2)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *DdidnsrickettsSubAccountListResponseV2) HasResults() bool` + +HasResults 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/clouddiscovery/docs/DdidnsrickettsSubAccountProvCredConfig.md b/clouddiscovery/docs/DdidnsrickettsSubAccountProvCredConfig.md new file mode 100644 index 0000000..f783442 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsSubAccountProvCredConfig.md @@ -0,0 +1,108 @@ +# DdidnsrickettsSubAccountProvCredConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ProjectId** | Pointer to **string** | | [optional] +**RoleArn** | Pointer to **string** | | [optional] +**TenantId** | Pointer to **string** | | [optional] + +## Methods + +### NewDdidnsrickettsSubAccountProvCredConfig + +`func NewDdidnsrickettsSubAccountProvCredConfig() *DdidnsrickettsSubAccountProvCredConfig` + +NewDdidnsrickettsSubAccountProvCredConfig instantiates a new DdidnsrickettsSubAccountProvCredConfig 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 + +### NewDdidnsrickettsSubAccountProvCredConfigWithDefaults + +`func NewDdidnsrickettsSubAccountProvCredConfigWithDefaults() *DdidnsrickettsSubAccountProvCredConfig` + +NewDdidnsrickettsSubAccountProvCredConfigWithDefaults instantiates a new DdidnsrickettsSubAccountProvCredConfig 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 + +### GetProjectId + +`func (o *DdidnsrickettsSubAccountProvCredConfig) GetProjectId() string` + +GetProjectId returns the ProjectId field if non-nil, zero value otherwise. + +### GetProjectIdOk + +`func (o *DdidnsrickettsSubAccountProvCredConfig) GetProjectIdOk() (*string, bool)` + +GetProjectIdOk returns a tuple with the ProjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectId + +`func (o *DdidnsrickettsSubAccountProvCredConfig) SetProjectId(v string)` + +SetProjectId sets ProjectId field to given value. + +### HasProjectId + +`func (o *DdidnsrickettsSubAccountProvCredConfig) HasProjectId() bool` + +HasProjectId returns a boolean if a field has been set. + +### GetRoleArn + +`func (o *DdidnsrickettsSubAccountProvCredConfig) GetRoleArn() string` + +GetRoleArn returns the RoleArn field if non-nil, zero value otherwise. + +### GetRoleArnOk + +`func (o *DdidnsrickettsSubAccountProvCredConfig) GetRoleArnOk() (*string, bool)` + +GetRoleArnOk returns a tuple with the RoleArn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRoleArn + +`func (o *DdidnsrickettsSubAccountProvCredConfig) SetRoleArn(v string)` + +SetRoleArn sets RoleArn field to given value. + +### HasRoleArn + +`func (o *DdidnsrickettsSubAccountProvCredConfig) HasRoleArn() bool` + +HasRoleArn returns a boolean if a field has been set. + +### GetTenantId + +`func (o *DdidnsrickettsSubAccountProvCredConfig) GetTenantId() string` + +GetTenantId returns the TenantId field if non-nil, zero value otherwise. + +### GetTenantIdOk + +`func (o *DdidnsrickettsSubAccountProvCredConfig) GetTenantIdOk() (*string, bool)` + +GetTenantIdOk returns a tuple with the TenantId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantId + +`func (o *DdidnsrickettsSubAccountProvCredConfig) SetTenantId(v string)` + +SetTenantId sets TenantId field to given value. + +### HasTenantId + +`func (o *DdidnsrickettsSubAccountProvCredConfig) HasTenantId() bool` + +HasTenantId 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/clouddiscovery/docs/DdidnsrickettsSubAccountV2.md b/clouddiscovery/docs/DdidnsrickettsSubAccountV2.md new file mode 100644 index 0000000..57450a1 --- /dev/null +++ b/clouddiscovery/docs/DdidnsrickettsSubAccountV2.md @@ -0,0 +1,82 @@ +# DdidnsrickettsSubAccountV2 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] [readonly] +**Name** | Pointer to **string** | | [optional] + +## Methods + +### NewDdidnsrickettsSubAccountV2 + +`func NewDdidnsrickettsSubAccountV2() *DdidnsrickettsSubAccountV2` + +NewDdidnsrickettsSubAccountV2 instantiates a new DdidnsrickettsSubAccountV2 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 + +### NewDdidnsrickettsSubAccountV2WithDefaults + +`func NewDdidnsrickettsSubAccountV2WithDefaults() *DdidnsrickettsSubAccountV2` + +NewDdidnsrickettsSubAccountV2WithDefaults instantiates a new DdidnsrickettsSubAccountV2 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 + +### GetId + +`func (o *DdidnsrickettsSubAccountV2) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *DdidnsrickettsSubAccountV2) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *DdidnsrickettsSubAccountV2) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *DdidnsrickettsSubAccountV2) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *DdidnsrickettsSubAccountV2) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *DdidnsrickettsSubAccountV2) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *DdidnsrickettsSubAccountV2) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *DdidnsrickettsSubAccountV2) HasName() bool` + +HasName 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/clouddiscovery/docs/ProvidersAPI.md b/clouddiscovery/docs/ProvidersAPI.md new file mode 100644 index 0000000..64606c0 --- /dev/null +++ b/clouddiscovery/docs/ProvidersAPI.md @@ -0,0 +1,359 @@ +# ProvidersAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Create**](ProvidersAPI.md#Create) | **Post** /providers | Create Provider +[**Delete**](ProvidersAPI.md#Delete) | **Delete** /providers/{id} | Delete Provider +[**List**](ProvidersAPI.md#List) | **Get** /providers | List Provider +[**Read**](ProvidersAPI.md#Read) | **Get** /providers/{id} | Read Provider +[**Update**](ProvidersAPI.md#Update) | **Put** /providers/{id} | Update Provider + + + +## Create + +> DdidnsrickettsProviderCreateResponse Create(ctx).Body(body).Execute() + +Create Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func main() { + body := *clouddiscovery.NewDdidnsrickettsDiscoveryConfig("Name_example") // DdidnsrickettsDiscoveryConfig | + + apiClient := clouddiscovery.NewAPIClient() + resp, r, err := apiClient.ProvidersAPI.Create(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvidersAPI.Create``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Create`: DdidnsrickettsProviderCreateResponse + fmt.Fprintf(os.Stdout, "Response from `ProvidersAPI.Create`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `ProvidersAPICreateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**DdidnsrickettsDiscoveryConfig**](DdidnsrickettsDiscoveryConfig.md) | | + +### Return type + +[**DdidnsrickettsProviderCreateResponse**](DdidnsrickettsProviderCreateResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Delete + +> Delete(ctx, id).Execute() + +Delete Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | + + apiClient := clouddiscovery.NewAPIClient() + r, err := apiClient.ProvidersAPI.Delete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvidersAPI.Delete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a `ProvidersAPIDeleteRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + +### Return type + + (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## List + +> DdidnsrickettsProviderListResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).Tfilter(tfilter).TorderBy(torderBy).Execute() + +List Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func main() { + + apiClient := clouddiscovery.NewAPIClient() + resp, r, err := apiClient.ProvidersAPI.List(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvidersAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: DdidnsrickettsProviderListResponse + fmt.Fprintf(os.Stdout, "Response from `ProvidersAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `ProvidersAPIListRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**fields** | **string** | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | +**filter** | **string** | A collection of response resources can be filtered by a logical expression string that includes JSON tag references to values in each resource, literal values, and logical operators. If a resource does not have the specified tag, its value is assumed to be null. Literal values include numbers (integer and floating-point), and quoted (both single- or double-quoted) literal strings, and 'null'. The following operators are commonly used in filter expressions: | Op | Description | | -- | ----------- | | == | Equal | | != | Not Equal | | > | Greater Than | | >= | Greater Than or Equal To | | < | Less Than | | <= | Less Than or Equal To | | and | Logical AND | | ~ | Matches Regex | | !~ | Does Not Match Regex | | or | Logical OR | | not | Logical NOT | | () | Groupping Operators | | +**offset** | **int32** | The integer index (zero-origin) of the offset into a collection of resources. If omitted or null the value is assumed to be '0'. | +**limit** | **int32** | The integer number of resources to be returned in the response. The service may impose maximum value. If omitted the service may impose a default value. | +**pageToken** | **string** | The service-defined string used to identify a page of resources. A null value indicates the first page. | +**orderBy** | **string** | A collection of response resources can be sorted by their JSON tags. For a 'flat' resource, the tag name is straightforward. If sorting is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, its value is assumed to be null.) Specify this parameter as a comma-separated list of JSON tag names. The sort direction can be specified by a suffix separated by whitespace before the tag name. The suffix 'asc' sorts the data in ascending order. The suffix 'desc' sorts the data in descending order. If no suffix is specified the data is sorted in ascending order. | +**tfilter** | **string** | This parameter is used for filtering by tags. | +**torderBy** | **string** | This parameter is used for sorting by tags. | + +### Return type + +[**DdidnsrickettsProviderListResponse**](DdidnsrickettsProviderListResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Read + +> DdidnsrickettsProviderReadResponse Read(ctx, id).Fields(fields).Execute() + +Read Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | + + apiClient := clouddiscovery.NewAPIClient() + resp, r, err := apiClient.ProvidersAPI.Read(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvidersAPI.Read``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Read`: DdidnsrickettsProviderReadResponse + fmt.Fprintf(os.Stdout, "Response from `ProvidersAPI.Read`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a `ProvidersAPIReadRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**fields** | **string** | A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. | + +### Return type + +[**DdidnsrickettsProviderReadResponse**](DdidnsrickettsProviderReadResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## Update + +> DdidnsrickettsProviderUpdateResponse Update(ctx, id).Body(body).Execute() + +Update Provider + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | Auto-generated unique discovery config ID. Format BloxID. + body := *clouddiscovery.NewDdidnsrickettsDiscoveryConfig("Name_example") // DdidnsrickettsDiscoveryConfig | + + apiClient := clouddiscovery.NewAPIClient() + resp, r, err := apiClient.ProvidersAPI.Update(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvidersAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: DdidnsrickettsProviderUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `ProvidersAPI.Update`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Auto-generated unique discovery config ID. Format BloxID. | + +### Other Parameters + +Other parameters are passed through a pointer to a `ProvidersAPIUpdateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**DdidnsrickettsDiscoveryConfig**](DdidnsrickettsDiscoveryConfig.md) | | + +### Return type + +[**DdidnsrickettsProviderUpdateResponse**](DdidnsrickettsProviderUpdateResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/clouddiscovery/docs/SubAccountsAPI.md b/clouddiscovery/docs/SubAccountsAPI.md new file mode 100644 index 0000000..e826948 --- /dev/null +++ b/clouddiscovery/docs/SubAccountsAPI.md @@ -0,0 +1,75 @@ +# SubAccountsAPI + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**List**](SubAccountsAPI.md#List) | **Post** /sub_accounts | List Sub-accounts + + + +## List + +> DdidnsrickettsSubAccountListResponseV2 List(ctx).Body(body).Execute() + +List Sub-accounts + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func main() { + body := *clouddiscovery.NewDdidnsrickettsSubAccountListRequestV2() // DdidnsrickettsSubAccountListRequestV2 | + + apiClient := clouddiscovery.NewAPIClient() + resp, r, err := apiClient.SubAccountsAPI.List(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SubAccountsAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: DdidnsrickettsSubAccountListResponseV2 + fmt.Fprintf(os.Stdout, "Response from `SubAccountsAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `SubAccountsAPIListRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**DdidnsrickettsSubAccountListRequestV2**](DdidnsrickettsSubAccountListRequestV2.md) | | + +### Return type + +[**DdidnsrickettsSubAccountListResponseV2**](DdidnsrickettsSubAccountListResponseV2.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/clouddiscovery/model_api_page_info.go b/clouddiscovery/model_api_page_info.go new file mode 100644 index 0000000..53681a7 --- /dev/null +++ b/clouddiscovery/model_api_page_info.go @@ -0,0 +1,230 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the ApiPageInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ApiPageInfo{} + +// ApiPageInfo PageInfo represents both server-driven and client-driven pagination response. Server-driven pagination is a model in which the server returns some amount of data along with an token indicating there is more data and where subsequent queries can get the next page of data. Client-driven pagination is a model in which rows are addressable by offset and page size (limit). +type ApiPageInfo struct { + // The service may optionally include the offset of the next page of resources. A null value indicates no more pages. + Offset *int32 `json:"offset,omitempty"` + // The service response should contain a string to indicate the next page of resources. A null value indicates no more pages. + PageToken *string `json:"page_token,omitempty"` + // The service may optionally include the total number of resources being paged. + Size *int32 `json:"size,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ApiPageInfo ApiPageInfo + +// NewApiPageInfo instantiates a new ApiPageInfo 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 NewApiPageInfo() *ApiPageInfo { + this := ApiPageInfo{} + return &this +} + +// NewApiPageInfoWithDefaults instantiates a new ApiPageInfo 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 NewApiPageInfoWithDefaults() *ApiPageInfo { + this := ApiPageInfo{} + return &this +} + +// GetOffset returns the Offset field value if set, zero value otherwise. +func (o *ApiPageInfo) GetOffset() int32 { + if o == nil || IsNil(o.Offset) { + var ret int32 + return ret + } + return *o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiPageInfo) GetOffsetOk() (*int32, bool) { + if o == nil || IsNil(o.Offset) { + return nil, false + } + return o.Offset, true +} + +// HasOffset returns a boolean if a field has been set. +func (o *ApiPageInfo) HasOffset() bool { + if o != nil && !IsNil(o.Offset) { + return true + } + + return false +} + +// SetOffset gets a reference to the given int32 and assigns it to the Offset field. +func (o *ApiPageInfo) SetOffset(v int32) { + o.Offset = &v +} + +// GetPageToken returns the PageToken field value if set, zero value otherwise. +func (o *ApiPageInfo) GetPageToken() string { + if o == nil || IsNil(o.PageToken) { + var ret string + return ret + } + return *o.PageToken +} + +// GetPageTokenOk returns a tuple with the PageToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiPageInfo) GetPageTokenOk() (*string, bool) { + if o == nil || IsNil(o.PageToken) { + return nil, false + } + return o.PageToken, true +} + +// HasPageToken returns a boolean if a field has been set. +func (o *ApiPageInfo) HasPageToken() bool { + if o != nil && !IsNil(o.PageToken) { + return true + } + + return false +} + +// SetPageToken gets a reference to the given string and assigns it to the PageToken field. +func (o *ApiPageInfo) SetPageToken(v string) { + o.PageToken = &v +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *ApiPageInfo) GetSize() int32 { + if o == nil || IsNil(o.Size) { + var ret int32 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ApiPageInfo) GetSizeOk() (*int32, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *ApiPageInfo) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int32 and assigns it to the Size field. +func (o *ApiPageInfo) SetSize(v int32) { + o.Size = &v +} + +func (o ApiPageInfo) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ApiPageInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Offset) { + toSerialize["offset"] = o.Offset + } + if !IsNil(o.PageToken) { + toSerialize["page_token"] = o.PageToken + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ApiPageInfo) UnmarshalJSON(data []byte) (err error) { + varApiPageInfo := _ApiPageInfo{} + + err = json.Unmarshal(data, &varApiPageInfo) + + if err != nil { + return err + } + + *o = ApiPageInfo(varApiPageInfo) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "offset") + delete(additionalProperties, "page_token") + delete(additionalProperties, "size") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableApiPageInfo struct { + value *ApiPageInfo + isSet bool +} + +func (v NullableApiPageInfo) Get() *ApiPageInfo { + return v.value +} + +func (v *NullableApiPageInfo) Set(val *ApiPageInfo) { + v.value = val + v.isSet = true +} + +func (v NullableApiPageInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableApiPageInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableApiPageInfo(val *ApiPageInfo) *NullableApiPageInfo { + return &NullableApiPageInfo{value: val, isSet: true} +} + +func (v NullableApiPageInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableApiPageInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_account.go b/clouddiscovery/model_ddidnsricketts_account.go new file mode 100644 index 0000000..339d706 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_account.go @@ -0,0 +1,810 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DdidnsrickettsAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsAccount{} + +// DdidnsrickettsAccount Source account information +type DdidnsrickettsAccount struct { + CompositeStatus *string `json:"composite_status,omitempty"` + // Status message of the sync operation. + CompositeStatusMessage *string `json:"composite_status_message,omitempty"` + // Timestamp when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // Timestamp when the object has been deleted. + DeletedAt *time.Time `json:"deleted_at,omitempty"` + DhcpServerId *string `json:"dhcp_server_id,omitempty"` + // DNS Server ID. + DnsServerId *string `json:"dns_server_id,omitempty"` + // Auto-generated unique source account ID. Format BloxID. + Id *string `json:"id,omitempty"` + // Last successful sync timestamp. + LastSuccessfulSync *time.Time `json:"last_successful_sync,omitempty"` + // Last sync timestamp. + LastSync *time.Time `json:"last_sync,omitempty"` + // Name of the source account. + Name string `json:"name"` + // Parent ID. + ParentId *string `json:"parent_id,omitempty"` + // Sync progress as a percentage. + PercentComplete *int32 `json:"percent_complete,omitempty"` + ProviderAccountId *string `json:"provider_account_id,omitempty"` + // Schedule ID. + ScheduleId *string `json:"schedule_id,omitempty"` + State *string `json:"state,omitempty"` + // Status of the sync operation. + Status *string `json:"status,omitempty"` + // Status message of the sync operation. + StatusMessage *string `json:"status_message,omitempty"` + // Timestamp when the object has been updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsAccount DdidnsrickettsAccount + +// NewDdidnsrickettsAccount instantiates a new DdidnsrickettsAccount 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 NewDdidnsrickettsAccount(name string) *DdidnsrickettsAccount { + this := DdidnsrickettsAccount{} + this.Name = name + return &this +} + +// NewDdidnsrickettsAccountWithDefaults instantiates a new DdidnsrickettsAccount 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 NewDdidnsrickettsAccountWithDefaults() *DdidnsrickettsAccount { + this := DdidnsrickettsAccount{} + return &this +} + +// GetCompositeStatus returns the CompositeStatus field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetCompositeStatus() string { + if o == nil || IsNil(o.CompositeStatus) { + var ret string + return ret + } + return *o.CompositeStatus +} + +// GetCompositeStatusOk returns a tuple with the CompositeStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetCompositeStatusOk() (*string, bool) { + if o == nil || IsNil(o.CompositeStatus) { + return nil, false + } + return o.CompositeStatus, true +} + +// HasCompositeStatus returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasCompositeStatus() bool { + if o != nil && !IsNil(o.CompositeStatus) { + return true + } + + return false +} + +// SetCompositeStatus gets a reference to the given string and assigns it to the CompositeStatus field. +func (o *DdidnsrickettsAccount) SetCompositeStatus(v string) { + o.CompositeStatus = &v +} + +// GetCompositeStatusMessage returns the CompositeStatusMessage field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetCompositeStatusMessage() string { + if o == nil || IsNil(o.CompositeStatusMessage) { + var ret string + return ret + } + return *o.CompositeStatusMessage +} + +// GetCompositeStatusMessageOk returns a tuple with the CompositeStatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetCompositeStatusMessageOk() (*string, bool) { + if o == nil || IsNil(o.CompositeStatusMessage) { + return nil, false + } + return o.CompositeStatusMessage, true +} + +// HasCompositeStatusMessage returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasCompositeStatusMessage() bool { + if o != nil && !IsNil(o.CompositeStatusMessage) { + return true + } + + return false +} + +// SetCompositeStatusMessage gets a reference to the given string and assigns it to the CompositeStatusMessage field. +func (o *DdidnsrickettsAccount) SetCompositeStatusMessage(v string) { + o.CompositeStatusMessage = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *DdidnsrickettsAccount) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDeletedAt returns the DeletedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetDeletedAt() time.Time { + if o == nil || IsNil(o.DeletedAt) { + var ret time.Time + return ret + } + return *o.DeletedAt +} + +// GetDeletedAtOk returns a tuple with the DeletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetDeletedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.DeletedAt) { + return nil, false + } + return o.DeletedAt, true +} + +// HasDeletedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasDeletedAt() bool { + if o != nil && !IsNil(o.DeletedAt) { + return true + } + + return false +} + +// SetDeletedAt gets a reference to the given time.Time and assigns it to the DeletedAt field. +func (o *DdidnsrickettsAccount) SetDeletedAt(v time.Time) { + o.DeletedAt = &v +} + +// GetDhcpServerId returns the DhcpServerId field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetDhcpServerId() string { + if o == nil || IsNil(o.DhcpServerId) { + var ret string + return ret + } + return *o.DhcpServerId +} + +// GetDhcpServerIdOk returns a tuple with the DhcpServerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetDhcpServerIdOk() (*string, bool) { + if o == nil || IsNil(o.DhcpServerId) { + return nil, false + } + return o.DhcpServerId, true +} + +// HasDhcpServerId returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasDhcpServerId() bool { + if o != nil && !IsNil(o.DhcpServerId) { + return true + } + + return false +} + +// SetDhcpServerId gets a reference to the given string and assigns it to the DhcpServerId field. +func (o *DdidnsrickettsAccount) SetDhcpServerId(v string) { + o.DhcpServerId = &v +} + +// GetDnsServerId returns the DnsServerId field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetDnsServerId() string { + if o == nil || IsNil(o.DnsServerId) { + var ret string + return ret + } + return *o.DnsServerId +} + +// GetDnsServerIdOk returns a tuple with the DnsServerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetDnsServerIdOk() (*string, bool) { + if o == nil || IsNil(o.DnsServerId) { + return nil, false + } + return o.DnsServerId, true +} + +// HasDnsServerId returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasDnsServerId() bool { + if o != nil && !IsNil(o.DnsServerId) { + return true + } + + return false +} + +// SetDnsServerId gets a reference to the given string and assigns it to the DnsServerId field. +func (o *DdidnsrickettsAccount) SetDnsServerId(v string) { + o.DnsServerId = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DdidnsrickettsAccount) SetId(v string) { + o.Id = &v +} + +// GetLastSuccessfulSync returns the LastSuccessfulSync field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetLastSuccessfulSync() time.Time { + if o == nil || IsNil(o.LastSuccessfulSync) { + var ret time.Time + return ret + } + return *o.LastSuccessfulSync +} + +// GetLastSuccessfulSyncOk returns a tuple with the LastSuccessfulSync field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetLastSuccessfulSyncOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastSuccessfulSync) { + return nil, false + } + return o.LastSuccessfulSync, true +} + +// HasLastSuccessfulSync returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasLastSuccessfulSync() bool { + if o != nil && !IsNil(o.LastSuccessfulSync) { + return true + } + + return false +} + +// SetLastSuccessfulSync gets a reference to the given time.Time and assigns it to the LastSuccessfulSync field. +func (o *DdidnsrickettsAccount) SetLastSuccessfulSync(v time.Time) { + o.LastSuccessfulSync = &v +} + +// GetLastSync returns the LastSync field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetLastSync() time.Time { + if o == nil || IsNil(o.LastSync) { + var ret time.Time + return ret + } + return *o.LastSync +} + +// GetLastSyncOk returns a tuple with the LastSync field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetLastSyncOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastSync) { + return nil, false + } + return o.LastSync, true +} + +// HasLastSync returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasLastSync() bool { + if o != nil && !IsNil(o.LastSync) { + return true + } + + return false +} + +// SetLastSync gets a reference to the given time.Time and assigns it to the LastSync field. +func (o *DdidnsrickettsAccount) SetLastSync(v time.Time) { + o.LastSync = &v +} + +// GetName returns the Name field value +func (o *DdidnsrickettsAccount) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DdidnsrickettsAccount) SetName(v string) { + o.Name = v +} + +// GetParentId returns the ParentId field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetParentId() string { + if o == nil || IsNil(o.ParentId) { + var ret string + return ret + } + return *o.ParentId +} + +// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetParentIdOk() (*string, bool) { + if o == nil || IsNil(o.ParentId) { + return nil, false + } + return o.ParentId, true +} + +// HasParentId returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasParentId() bool { + if o != nil && !IsNil(o.ParentId) { + return true + } + + return false +} + +// SetParentId gets a reference to the given string and assigns it to the ParentId field. +func (o *DdidnsrickettsAccount) SetParentId(v string) { + o.ParentId = &v +} + +// GetPercentComplete returns the PercentComplete field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetPercentComplete() int32 { + if o == nil || IsNil(o.PercentComplete) { + var ret int32 + return ret + } + return *o.PercentComplete +} + +// GetPercentCompleteOk returns a tuple with the PercentComplete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetPercentCompleteOk() (*int32, bool) { + if o == nil || IsNil(o.PercentComplete) { + return nil, false + } + return o.PercentComplete, true +} + +// HasPercentComplete returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasPercentComplete() bool { + if o != nil && !IsNil(o.PercentComplete) { + return true + } + + return false +} + +// SetPercentComplete gets a reference to the given int32 and assigns it to the PercentComplete field. +func (o *DdidnsrickettsAccount) SetPercentComplete(v int32) { + o.PercentComplete = &v +} + +// GetProviderAccountId returns the ProviderAccountId field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetProviderAccountId() string { + if o == nil || IsNil(o.ProviderAccountId) { + var ret string + return ret + } + return *o.ProviderAccountId +} + +// GetProviderAccountIdOk returns a tuple with the ProviderAccountId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetProviderAccountIdOk() (*string, bool) { + if o == nil || IsNil(o.ProviderAccountId) { + return nil, false + } + return o.ProviderAccountId, true +} + +// HasProviderAccountId returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasProviderAccountId() bool { + if o != nil && !IsNil(o.ProviderAccountId) { + return true + } + + return false +} + +// SetProviderAccountId gets a reference to the given string and assigns it to the ProviderAccountId field. +func (o *DdidnsrickettsAccount) SetProviderAccountId(v string) { + o.ProviderAccountId = &v +} + +// GetScheduleId returns the ScheduleId field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetScheduleId() string { + if o == nil || IsNil(o.ScheduleId) { + var ret string + return ret + } + return *o.ScheduleId +} + +// GetScheduleIdOk returns a tuple with the ScheduleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetScheduleIdOk() (*string, bool) { + if o == nil || IsNil(o.ScheduleId) { + return nil, false + } + return o.ScheduleId, true +} + +// HasScheduleId returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasScheduleId() bool { + if o != nil && !IsNil(o.ScheduleId) { + return true + } + + return false +} + +// SetScheduleId gets a reference to the given string and assigns it to the ScheduleId field. +func (o *DdidnsrickettsAccount) SetScheduleId(v string) { + o.ScheduleId = &v +} + +// GetState returns the State field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetState() string { + if o == nil || IsNil(o.State) { + var ret string + return ret + } + return *o.State +} + +// GetStateOk returns a tuple with the State field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetStateOk() (*string, bool) { + if o == nil || IsNil(o.State) { + return nil, false + } + return o.State, true +} + +// HasState returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasState() bool { + if o != nil && !IsNil(o.State) { + return true + } + + return false +} + +// SetState gets a reference to the given string and assigns it to the State field. +func (o *DdidnsrickettsAccount) SetState(v string) { + o.State = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DdidnsrickettsAccount) SetStatus(v string) { + o.Status = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetStatusMessage() string { + if o == nil || IsNil(o.StatusMessage) { + var ret string + return ret + } + return *o.StatusMessage +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetStatusMessageOk() (*string, bool) { + if o == nil || IsNil(o.StatusMessage) { + return nil, false + } + return o.StatusMessage, true +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasStatusMessage() bool { + if o != nil && !IsNil(o.StatusMessage) { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field. +func (o *DdidnsrickettsAccount) SetStatusMessage(v string) { + o.StatusMessage = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsAccount) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccount) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsAccount) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *DdidnsrickettsAccount) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o DdidnsrickettsAccount) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CompositeStatus) { + toSerialize["composite_status"] = o.CompositeStatus + } + if !IsNil(o.CompositeStatusMessage) { + toSerialize["composite_status_message"] = o.CompositeStatusMessage + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DeletedAt) { + toSerialize["deleted_at"] = o.DeletedAt + } + if !IsNil(o.DhcpServerId) { + toSerialize["dhcp_server_id"] = o.DhcpServerId + } + if !IsNil(o.DnsServerId) { + toSerialize["dns_server_id"] = o.DnsServerId + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.LastSuccessfulSync) { + toSerialize["last_successful_sync"] = o.LastSuccessfulSync + } + if !IsNil(o.LastSync) { + toSerialize["last_sync"] = o.LastSync + } + toSerialize["name"] = o.Name + if !IsNil(o.ParentId) { + toSerialize["parent_id"] = o.ParentId + } + if !IsNil(o.PercentComplete) { + toSerialize["percent_complete"] = o.PercentComplete + } + if !IsNil(o.ProviderAccountId) { + toSerialize["provider_account_id"] = o.ProviderAccountId + } + if !IsNil(o.ScheduleId) { + toSerialize["schedule_id"] = o.ScheduleId + } + if !IsNil(o.State) { + toSerialize["state"] = o.State + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StatusMessage) { + toSerialize["status_message"] = o.StatusMessage + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsAccount) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDdidnsrickettsAccount := _DdidnsrickettsAccount{} + + err = json.Unmarshal(data, &varDdidnsrickettsAccount) + + if err != nil { + return err + } + + *o = DdidnsrickettsAccount(varDdidnsrickettsAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "composite_status") + delete(additionalProperties, "composite_status_message") + delete(additionalProperties, "created_at") + delete(additionalProperties, "deleted_at") + delete(additionalProperties, "dhcp_server_id") + delete(additionalProperties, "dns_server_id") + delete(additionalProperties, "id") + delete(additionalProperties, "last_successful_sync") + delete(additionalProperties, "last_sync") + delete(additionalProperties, "name") + delete(additionalProperties, "parent_id") + delete(additionalProperties, "percent_complete") + delete(additionalProperties, "provider_account_id") + delete(additionalProperties, "schedule_id") + delete(additionalProperties, "state") + delete(additionalProperties, "status") + delete(additionalProperties, "status_message") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsAccount struct { + value *DdidnsrickettsAccount + isSet bool +} + +func (v NullableDdidnsrickettsAccount) Get() *DdidnsrickettsAccount { + return v.value +} + +func (v *NullableDdidnsrickettsAccount) Set(val *DdidnsrickettsAccount) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsAccount(val *DdidnsrickettsAccount) *NullableDdidnsrickettsAccount { + return &NullableDdidnsrickettsAccount{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_account_list_response.go b/clouddiscovery/model_ddidnsricketts_account_list_response.go new file mode 100644 index 0000000..c9ddca3 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_account_list_response.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsAccountListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsAccountListResponse{} + +// DdidnsrickettsAccountListResponse The Account object List response format. +type DdidnsrickettsAccountListResponse struct { + Page *ApiPageInfo `json:"page,omitempty"` + Results []DdidnsrickettsAccount `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsAccountListResponse DdidnsrickettsAccountListResponse + +// NewDdidnsrickettsAccountListResponse instantiates a new DdidnsrickettsAccountListResponse 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 NewDdidnsrickettsAccountListResponse() *DdidnsrickettsAccountListResponse { + this := DdidnsrickettsAccountListResponse{} + return &this +} + +// NewDdidnsrickettsAccountListResponseWithDefaults instantiates a new DdidnsrickettsAccountListResponse 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 NewDdidnsrickettsAccountListResponseWithDefaults() *DdidnsrickettsAccountListResponse { + this := DdidnsrickettsAccountListResponse{} + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *DdidnsrickettsAccountListResponse) GetPage() ApiPageInfo { + if o == nil || IsNil(o.Page) { + var ret ApiPageInfo + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccountListResponse) GetPageOk() (*ApiPageInfo, bool) { + if o == nil || IsNil(o.Page) { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *DdidnsrickettsAccountListResponse) HasPage() bool { + if o != nil && !IsNil(o.Page) { + return true + } + + return false +} + +// SetPage gets a reference to the given ApiPageInfo and assigns it to the Page field. +func (o *DdidnsrickettsAccountListResponse) SetPage(v ApiPageInfo) { + o.Page = &v +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *DdidnsrickettsAccountListResponse) GetResults() []DdidnsrickettsAccount { + if o == nil || IsNil(o.Results) { + var ret []DdidnsrickettsAccount + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAccountListResponse) GetResultsOk() ([]DdidnsrickettsAccount, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *DdidnsrickettsAccountListResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []DdidnsrickettsAccount and assigns it to the Results field. +func (o *DdidnsrickettsAccountListResponse) SetResults(v []DdidnsrickettsAccount) { + o.Results = v +} + +func (o DdidnsrickettsAccountListResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsAccountListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Page) { + toSerialize["page"] = o.Page + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsAccountListResponse) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsAccountListResponse := _DdidnsrickettsAccountListResponse{} + + err = json.Unmarshal(data, &varDdidnsrickettsAccountListResponse) + + if err != nil { + return err + } + + *o = DdidnsrickettsAccountListResponse(varDdidnsrickettsAccountListResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsAccountListResponse struct { + value *DdidnsrickettsAccountListResponse + isSet bool +} + +func (v NullableDdidnsrickettsAccountListResponse) Get() *DdidnsrickettsAccountListResponse { + return v.value +} + +func (v *NullableDdidnsrickettsAccountListResponse) Set(val *DdidnsrickettsAccountListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsAccountListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsAccountListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsAccountListResponse(val *DdidnsrickettsAccountListResponse) *NullableDdidnsrickettsAccountListResponse { + return &NullableDdidnsrickettsAccountListResponse{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsAccountListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsAccountListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_additional_config.go b/clouddiscovery/model_ddidnsricketts_additional_config.go new file mode 100644 index 0000000..bb3f5c0 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_additional_config.go @@ -0,0 +1,264 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsAdditionalConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsAdditionalConfig{} + +// DdidnsrickettsAdditionalConfig struct for DdidnsrickettsAdditionalConfig +type DdidnsrickettsAdditionalConfig struct { + ExcludedAccounts []string `json:"excluded_accounts,omitempty"` + ForwardZoneEnabled *bool `json:"forward_zone_enabled,omitempty"` + InternalRangesEnabled *bool `json:"internal_ranges_enabled,omitempty"` + ObjectType *DdidnsrickettsObjectType `json:"object_type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsAdditionalConfig DdidnsrickettsAdditionalConfig + +// NewDdidnsrickettsAdditionalConfig instantiates a new DdidnsrickettsAdditionalConfig 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 NewDdidnsrickettsAdditionalConfig() *DdidnsrickettsAdditionalConfig { + this := DdidnsrickettsAdditionalConfig{} + return &this +} + +// NewDdidnsrickettsAdditionalConfigWithDefaults instantiates a new DdidnsrickettsAdditionalConfig 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 NewDdidnsrickettsAdditionalConfigWithDefaults() *DdidnsrickettsAdditionalConfig { + this := DdidnsrickettsAdditionalConfig{} + return &this +} + +// GetExcludedAccounts returns the ExcludedAccounts field value if set, zero value otherwise. +func (o *DdidnsrickettsAdditionalConfig) GetExcludedAccounts() []string { + if o == nil || IsNil(o.ExcludedAccounts) { + var ret []string + return ret + } + return o.ExcludedAccounts +} + +// GetExcludedAccountsOk returns a tuple with the ExcludedAccounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAdditionalConfig) GetExcludedAccountsOk() ([]string, bool) { + if o == nil || IsNil(o.ExcludedAccounts) { + return nil, false + } + return o.ExcludedAccounts, true +} + +// HasExcludedAccounts returns a boolean if a field has been set. +func (o *DdidnsrickettsAdditionalConfig) HasExcludedAccounts() bool { + if o != nil && !IsNil(o.ExcludedAccounts) { + return true + } + + return false +} + +// SetExcludedAccounts gets a reference to the given []string and assigns it to the ExcludedAccounts field. +func (o *DdidnsrickettsAdditionalConfig) SetExcludedAccounts(v []string) { + o.ExcludedAccounts = v +} + +// GetForwardZoneEnabled returns the ForwardZoneEnabled field value if set, zero value otherwise. +func (o *DdidnsrickettsAdditionalConfig) GetForwardZoneEnabled() bool { + if o == nil || IsNil(o.ForwardZoneEnabled) { + var ret bool + return ret + } + return *o.ForwardZoneEnabled +} + +// GetForwardZoneEnabledOk returns a tuple with the ForwardZoneEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAdditionalConfig) GetForwardZoneEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ForwardZoneEnabled) { + return nil, false + } + return o.ForwardZoneEnabled, true +} + +// HasForwardZoneEnabled returns a boolean if a field has been set. +func (o *DdidnsrickettsAdditionalConfig) HasForwardZoneEnabled() bool { + if o != nil && !IsNil(o.ForwardZoneEnabled) { + return true + } + + return false +} + +// SetForwardZoneEnabled gets a reference to the given bool and assigns it to the ForwardZoneEnabled field. +func (o *DdidnsrickettsAdditionalConfig) SetForwardZoneEnabled(v bool) { + o.ForwardZoneEnabled = &v +} + +// GetInternalRangesEnabled returns the InternalRangesEnabled field value if set, zero value otherwise. +func (o *DdidnsrickettsAdditionalConfig) GetInternalRangesEnabled() bool { + if o == nil || IsNil(o.InternalRangesEnabled) { + var ret bool + return ret + } + return *o.InternalRangesEnabled +} + +// GetInternalRangesEnabledOk returns a tuple with the InternalRangesEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAdditionalConfig) GetInternalRangesEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.InternalRangesEnabled) { + return nil, false + } + return o.InternalRangesEnabled, true +} + +// HasInternalRangesEnabled returns a boolean if a field has been set. +func (o *DdidnsrickettsAdditionalConfig) HasInternalRangesEnabled() bool { + if o != nil && !IsNil(o.InternalRangesEnabled) { + return true + } + + return false +} + +// SetInternalRangesEnabled gets a reference to the given bool and assigns it to the InternalRangesEnabled field. +func (o *DdidnsrickettsAdditionalConfig) SetInternalRangesEnabled(v bool) { + o.InternalRangesEnabled = &v +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *DdidnsrickettsAdditionalConfig) GetObjectType() DdidnsrickettsObjectType { + if o == nil || IsNil(o.ObjectType) { + var ret DdidnsrickettsObjectType + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsAdditionalConfig) GetObjectTypeOk() (*DdidnsrickettsObjectType, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *DdidnsrickettsAdditionalConfig) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given DdidnsrickettsObjectType and assigns it to the ObjectType field. +func (o *DdidnsrickettsAdditionalConfig) SetObjectType(v DdidnsrickettsObjectType) { + o.ObjectType = &v +} + +func (o DdidnsrickettsAdditionalConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsAdditionalConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExcludedAccounts) { + toSerialize["excluded_accounts"] = o.ExcludedAccounts + } + if !IsNil(o.ForwardZoneEnabled) { + toSerialize["forward_zone_enabled"] = o.ForwardZoneEnabled + } + if !IsNil(o.InternalRangesEnabled) { + toSerialize["internal_ranges_enabled"] = o.InternalRangesEnabled + } + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsAdditionalConfig) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsAdditionalConfig := _DdidnsrickettsAdditionalConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsAdditionalConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsAdditionalConfig(varDdidnsrickettsAdditionalConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "excluded_accounts") + delete(additionalProperties, "forward_zone_enabled") + delete(additionalProperties, "internal_ranges_enabled") + delete(additionalProperties, "object_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsAdditionalConfig struct { + value *DdidnsrickettsAdditionalConfig + isSet bool +} + +func (v NullableDdidnsrickettsAdditionalConfig) Get() *DdidnsrickettsAdditionalConfig { + return v.value +} + +func (v *NullableDdidnsrickettsAdditionalConfig) Set(val *DdidnsrickettsAdditionalConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsAdditionalConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsAdditionalConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsAdditionalConfig(val *DdidnsrickettsAdditionalConfig) *NullableDdidnsrickettsAdditionalConfig { + return &NullableDdidnsrickettsAdditionalConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsAdditionalConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsAdditionalConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_category.go b/clouddiscovery/model_ddidnsricketts_category.go new file mode 100644 index 0000000..446601b --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_category.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsCategory type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsCategory{} + +// DdidnsrickettsCategory Category ... +type DdidnsrickettsCategory struct { + Excluded *bool `json:"excluded,omitempty"` + Id *string `json:"id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsCategory DdidnsrickettsCategory + +// NewDdidnsrickettsCategory instantiates a new DdidnsrickettsCategory 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 NewDdidnsrickettsCategory() *DdidnsrickettsCategory { + this := DdidnsrickettsCategory{} + return &this +} + +// NewDdidnsrickettsCategoryWithDefaults instantiates a new DdidnsrickettsCategory 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 NewDdidnsrickettsCategoryWithDefaults() *DdidnsrickettsCategory { + this := DdidnsrickettsCategory{} + return &this +} + +// GetExcluded returns the Excluded field value if set, zero value otherwise. +func (o *DdidnsrickettsCategory) GetExcluded() bool { + if o == nil || IsNil(o.Excluded) { + var ret bool + return ret + } + return *o.Excluded +} + +// GetExcludedOk returns a tuple with the Excluded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsCategory) GetExcludedOk() (*bool, bool) { + if o == nil || IsNil(o.Excluded) { + return nil, false + } + return o.Excluded, true +} + +// HasExcluded returns a boolean if a field has been set. +func (o *DdidnsrickettsCategory) HasExcluded() bool { + if o != nil && !IsNil(o.Excluded) { + return true + } + + return false +} + +// SetExcluded gets a reference to the given bool and assigns it to the Excluded field. +func (o *DdidnsrickettsCategory) SetExcluded(v bool) { + o.Excluded = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DdidnsrickettsCategory) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsCategory) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DdidnsrickettsCategory) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DdidnsrickettsCategory) SetId(v string) { + o.Id = &v +} + +func (o DdidnsrickettsCategory) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsCategory) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Excluded) { + toSerialize["excluded"] = o.Excluded + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsCategory) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsCategory := _DdidnsrickettsCategory{} + + err = json.Unmarshal(data, &varDdidnsrickettsCategory) + + if err != nil { + return err + } + + *o = DdidnsrickettsCategory(varDdidnsrickettsCategory) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "excluded") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsCategory struct { + value *DdidnsrickettsCategory + isSet bool +} + +func (v NullableDdidnsrickettsCategory) Get() *DdidnsrickettsCategory { + return v.value +} + +func (v *NullableDdidnsrickettsCategory) Set(val *DdidnsrickettsCategory) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsCategory) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsCategory) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsCategory(val *DdidnsrickettsCategory) *NullableDdidnsrickettsCategory { + return &NullableDdidnsrickettsCategory{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsCategory) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsCategory) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_credential_config.go b/clouddiscovery/model_ddidnsricketts_credential_config.go new file mode 100644 index 0000000..cdc9353 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_credential_config.go @@ -0,0 +1,227 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsCredentialConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsCredentialConfig{} + +// DdidnsrickettsCredentialConfig struct for DdidnsrickettsCredentialConfig +type DdidnsrickettsCredentialConfig struct { + AccessIdentifier *string `json:"access_identifier,omitempty"` + Enclave *string `json:"enclave,omitempty"` + Region *string `json:"region,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsCredentialConfig DdidnsrickettsCredentialConfig + +// NewDdidnsrickettsCredentialConfig instantiates a new DdidnsrickettsCredentialConfig 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 NewDdidnsrickettsCredentialConfig() *DdidnsrickettsCredentialConfig { + this := DdidnsrickettsCredentialConfig{} + return &this +} + +// NewDdidnsrickettsCredentialConfigWithDefaults instantiates a new DdidnsrickettsCredentialConfig 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 NewDdidnsrickettsCredentialConfigWithDefaults() *DdidnsrickettsCredentialConfig { + this := DdidnsrickettsCredentialConfig{} + return &this +} + +// GetAccessIdentifier returns the AccessIdentifier field value if set, zero value otherwise. +func (o *DdidnsrickettsCredentialConfig) GetAccessIdentifier() string { + if o == nil || IsNil(o.AccessIdentifier) { + var ret string + return ret + } + return *o.AccessIdentifier +} + +// GetAccessIdentifierOk returns a tuple with the AccessIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsCredentialConfig) GetAccessIdentifierOk() (*string, bool) { + if o == nil || IsNil(o.AccessIdentifier) { + return nil, false + } + return o.AccessIdentifier, true +} + +// HasAccessIdentifier returns a boolean if a field has been set. +func (o *DdidnsrickettsCredentialConfig) HasAccessIdentifier() bool { + if o != nil && !IsNil(o.AccessIdentifier) { + return true + } + + return false +} + +// SetAccessIdentifier gets a reference to the given string and assigns it to the AccessIdentifier field. +func (o *DdidnsrickettsCredentialConfig) SetAccessIdentifier(v string) { + o.AccessIdentifier = &v +} + +// GetEnclave returns the Enclave field value if set, zero value otherwise. +func (o *DdidnsrickettsCredentialConfig) GetEnclave() string { + if o == nil || IsNil(o.Enclave) { + var ret string + return ret + } + return *o.Enclave +} + +// GetEnclaveOk returns a tuple with the Enclave field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsCredentialConfig) GetEnclaveOk() (*string, bool) { + if o == nil || IsNil(o.Enclave) { + return nil, false + } + return o.Enclave, true +} + +// HasEnclave returns a boolean if a field has been set. +func (o *DdidnsrickettsCredentialConfig) HasEnclave() bool { + if o != nil && !IsNil(o.Enclave) { + return true + } + + return false +} + +// SetEnclave gets a reference to the given string and assigns it to the Enclave field. +func (o *DdidnsrickettsCredentialConfig) SetEnclave(v string) { + o.Enclave = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise. +func (o *DdidnsrickettsCredentialConfig) GetRegion() string { + if o == nil || IsNil(o.Region) { + var ret string + return ret + } + return *o.Region +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsCredentialConfig) GetRegionOk() (*string, bool) { + if o == nil || IsNil(o.Region) { + return nil, false + } + return o.Region, true +} + +// HasRegion returns a boolean if a field has been set. +func (o *DdidnsrickettsCredentialConfig) HasRegion() bool { + if o != nil && !IsNil(o.Region) { + return true + } + + return false +} + +// SetRegion gets a reference to the given string and assigns it to the Region field. +func (o *DdidnsrickettsCredentialConfig) SetRegion(v string) { + o.Region = &v +} + +func (o DdidnsrickettsCredentialConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsCredentialConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessIdentifier) { + toSerialize["access_identifier"] = o.AccessIdentifier + } + if !IsNil(o.Enclave) { + toSerialize["enclave"] = o.Enclave + } + if !IsNil(o.Region) { + toSerialize["region"] = o.Region + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsCredentialConfig) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsCredentialConfig := _DdidnsrickettsCredentialConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsCredentialConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsCredentialConfig(varDdidnsrickettsCredentialConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_identifier") + delete(additionalProperties, "enclave") + delete(additionalProperties, "region") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsCredentialConfig struct { + value *DdidnsrickettsCredentialConfig + isSet bool +} + +func (v NullableDdidnsrickettsCredentialConfig) Get() *DdidnsrickettsCredentialConfig { + return v.value +} + +func (v *NullableDdidnsrickettsCredentialConfig) Set(val *DdidnsrickettsCredentialConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsCredentialConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsCredentialConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsCredentialConfig(val *DdidnsrickettsCredentialConfig) *NullableDdidnsrickettsCredentialConfig { + return &NullableDdidnsrickettsCredentialConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsCredentialConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsCredentialConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_credential_preference.go b/clouddiscovery/model_ddidnsricketts_credential_preference.go new file mode 100644 index 0000000..66cf0a1 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_credential_preference.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsCredentialPreference type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsCredentialPreference{} + +// DdidnsrickettsCredentialPreference struct for DdidnsrickettsCredentialPreference +type DdidnsrickettsCredentialPreference struct { + AccessIdentifierType *string `json:"access_identifier_type,omitempty"` + CredentialType *string `json:"credential_type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsCredentialPreference DdidnsrickettsCredentialPreference + +// NewDdidnsrickettsCredentialPreference instantiates a new DdidnsrickettsCredentialPreference 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 NewDdidnsrickettsCredentialPreference() *DdidnsrickettsCredentialPreference { + this := DdidnsrickettsCredentialPreference{} + return &this +} + +// NewDdidnsrickettsCredentialPreferenceWithDefaults instantiates a new DdidnsrickettsCredentialPreference 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 NewDdidnsrickettsCredentialPreferenceWithDefaults() *DdidnsrickettsCredentialPreference { + this := DdidnsrickettsCredentialPreference{} + return &this +} + +// GetAccessIdentifierType returns the AccessIdentifierType field value if set, zero value otherwise. +func (o *DdidnsrickettsCredentialPreference) GetAccessIdentifierType() string { + if o == nil || IsNil(o.AccessIdentifierType) { + var ret string + return ret + } + return *o.AccessIdentifierType +} + +// GetAccessIdentifierTypeOk returns a tuple with the AccessIdentifierType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsCredentialPreference) GetAccessIdentifierTypeOk() (*string, bool) { + if o == nil || IsNil(o.AccessIdentifierType) { + return nil, false + } + return o.AccessIdentifierType, true +} + +// HasAccessIdentifierType returns a boolean if a field has been set. +func (o *DdidnsrickettsCredentialPreference) HasAccessIdentifierType() bool { + if o != nil && !IsNil(o.AccessIdentifierType) { + return true + } + + return false +} + +// SetAccessIdentifierType gets a reference to the given string and assigns it to the AccessIdentifierType field. +func (o *DdidnsrickettsCredentialPreference) SetAccessIdentifierType(v string) { + o.AccessIdentifierType = &v +} + +// GetCredentialType returns the CredentialType field value if set, zero value otherwise. +func (o *DdidnsrickettsCredentialPreference) GetCredentialType() string { + if o == nil || IsNil(o.CredentialType) { + var ret string + return ret + } + return *o.CredentialType +} + +// GetCredentialTypeOk returns a tuple with the CredentialType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsCredentialPreference) GetCredentialTypeOk() (*string, bool) { + if o == nil || IsNil(o.CredentialType) { + return nil, false + } + return o.CredentialType, true +} + +// HasCredentialType returns a boolean if a field has been set. +func (o *DdidnsrickettsCredentialPreference) HasCredentialType() bool { + if o != nil && !IsNil(o.CredentialType) { + return true + } + + return false +} + +// SetCredentialType gets a reference to the given string and assigns it to the CredentialType field. +func (o *DdidnsrickettsCredentialPreference) SetCredentialType(v string) { + o.CredentialType = &v +} + +func (o DdidnsrickettsCredentialPreference) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsCredentialPreference) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessIdentifierType) { + toSerialize["access_identifier_type"] = o.AccessIdentifierType + } + if !IsNil(o.CredentialType) { + toSerialize["credential_type"] = o.CredentialType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsCredentialPreference) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsCredentialPreference := _DdidnsrickettsCredentialPreference{} + + err = json.Unmarshal(data, &varDdidnsrickettsCredentialPreference) + + if err != nil { + return err + } + + *o = DdidnsrickettsCredentialPreference(varDdidnsrickettsCredentialPreference) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_identifier_type") + delete(additionalProperties, "credential_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsCredentialPreference struct { + value *DdidnsrickettsCredentialPreference + isSet bool +} + +func (v NullableDdidnsrickettsCredentialPreference) Get() *DdidnsrickettsCredentialPreference { + return v.value +} + +func (v *NullableDdidnsrickettsCredentialPreference) Set(val *DdidnsrickettsCredentialPreference) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsCredentialPreference) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsCredentialPreference) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsCredentialPreference(val *DdidnsrickettsCredentialPreference) *NullableDdidnsrickettsCredentialPreference { + return &NullableDdidnsrickettsCredentialPreference{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsCredentialPreference) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsCredentialPreference) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_destination.go b/clouddiscovery/model_ddidnsricketts_destination.go new file mode 100644 index 0000000..5852838 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_destination.go @@ -0,0 +1,358 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DdidnsrickettsDestination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsDestination{} + +// DdidnsrickettsDestination Destination information +type DdidnsrickettsDestination struct { + // Destination configuration. Ex.: '{ \"dns\": { \"view_name\": \"view 1\", \"view_id\": \"dns/view/v1\", \"consolidated_zone_data_enabled\": false, \"sync_type\": \"read_only/read_write\" \"split_view_enabled\": false }, \"ipam\": { \"ip_space\": \"\", }, \"account\": {}, }'. + Config *DdidnsrickettsDestinationConfig `json:"config,omitempty"` + // Timestamp when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // Timestamp when the object has been deleted. + DeletedAt *time.Time `json:"deleted_at,omitempty"` + // Destination type: DNS / IPAM / ACCOUNT. + DestinationType string `json:"destination_type"` + // Auto-generated unique destination ID. Format BloxID. + Id *string `json:"id,omitempty"` + // Timestamp when the object has been updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsDestination DdidnsrickettsDestination + +// NewDdidnsrickettsDestination instantiates a new DdidnsrickettsDestination 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 NewDdidnsrickettsDestination(destinationType string) *DdidnsrickettsDestination { + this := DdidnsrickettsDestination{} + this.DestinationType = destinationType + return &this +} + +// NewDdidnsrickettsDestinationWithDefaults instantiates a new DdidnsrickettsDestination 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 NewDdidnsrickettsDestinationWithDefaults() *DdidnsrickettsDestination { + this := DdidnsrickettsDestination{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *DdidnsrickettsDestination) GetConfig() DdidnsrickettsDestinationConfig { + if o == nil || IsNil(o.Config) { + var ret DdidnsrickettsDestinationConfig + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestination) GetConfigOk() (*DdidnsrickettsDestinationConfig, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *DdidnsrickettsDestination) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given DdidnsrickettsDestinationConfig and assigns it to the Config field. +func (o *DdidnsrickettsDestination) SetConfig(v DdidnsrickettsDestinationConfig) { + o.Config = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsDestination) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestination) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsDestination) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *DdidnsrickettsDestination) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDeletedAt returns the DeletedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsDestination) GetDeletedAt() time.Time { + if o == nil || IsNil(o.DeletedAt) { + var ret time.Time + return ret + } + return *o.DeletedAt +} + +// GetDeletedAtOk returns a tuple with the DeletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestination) GetDeletedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.DeletedAt) { + return nil, false + } + return o.DeletedAt, true +} + +// HasDeletedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsDestination) HasDeletedAt() bool { + if o != nil && !IsNil(o.DeletedAt) { + return true + } + + return false +} + +// SetDeletedAt gets a reference to the given time.Time and assigns it to the DeletedAt field. +func (o *DdidnsrickettsDestination) SetDeletedAt(v time.Time) { + o.DeletedAt = &v +} + +// GetDestinationType returns the DestinationType field value +func (o *DdidnsrickettsDestination) GetDestinationType() string { + if o == nil { + var ret string + return ret + } + + return o.DestinationType +} + +// GetDestinationTypeOk returns a tuple with the DestinationType field value +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestination) GetDestinationTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DestinationType, true +} + +// SetDestinationType sets field value +func (o *DdidnsrickettsDestination) SetDestinationType(v string) { + o.DestinationType = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DdidnsrickettsDestination) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestination) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DdidnsrickettsDestination) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DdidnsrickettsDestination) SetId(v string) { + o.Id = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsDestination) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestination) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsDestination) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *DdidnsrickettsDestination) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o DdidnsrickettsDestination) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsDestination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DeletedAt) { + toSerialize["deleted_at"] = o.DeletedAt + } + toSerialize["destination_type"] = o.DestinationType + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsDestination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "destination_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDdidnsrickettsDestination := _DdidnsrickettsDestination{} + + err = json.Unmarshal(data, &varDdidnsrickettsDestination) + + if err != nil { + return err + } + + *o = DdidnsrickettsDestination(varDdidnsrickettsDestination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + delete(additionalProperties, "created_at") + delete(additionalProperties, "deleted_at") + delete(additionalProperties, "destination_type") + delete(additionalProperties, "id") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsDestination struct { + value *DdidnsrickettsDestination + isSet bool +} + +func (v NullableDdidnsrickettsDestination) Get() *DdidnsrickettsDestination { + return v.value +} + +func (v *NullableDdidnsrickettsDestination) Set(val *DdidnsrickettsDestination) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsDestination) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsDestination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsDestination(val *DdidnsrickettsDestination) *NullableDdidnsrickettsDestination { + return &NullableDdidnsrickettsDestination{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsDestination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsDestination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_destination_config.go b/clouddiscovery/model_ddidnsricketts_destination_config.go new file mode 100644 index 0000000..5614de0 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_destination_config.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsDestinationConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsDestinationConfig{} + +// DdidnsrickettsDestinationConfig struct for DdidnsrickettsDestinationConfig +type DdidnsrickettsDestinationConfig struct { + Dns *DdidnsrickettsDNSConfig `json:"dns,omitempty"` + Ipam *DdidnsrickettsIPAMConfig `json:"ipam,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsDestinationConfig DdidnsrickettsDestinationConfig + +// NewDdidnsrickettsDestinationConfig instantiates a new DdidnsrickettsDestinationConfig 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 NewDdidnsrickettsDestinationConfig() *DdidnsrickettsDestinationConfig { + this := DdidnsrickettsDestinationConfig{} + return &this +} + +// NewDdidnsrickettsDestinationConfigWithDefaults instantiates a new DdidnsrickettsDestinationConfig 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 NewDdidnsrickettsDestinationConfigWithDefaults() *DdidnsrickettsDestinationConfig { + this := DdidnsrickettsDestinationConfig{} + return &this +} + +// GetDns returns the Dns field value if set, zero value otherwise. +func (o *DdidnsrickettsDestinationConfig) GetDns() DdidnsrickettsDNSConfig { + if o == nil || IsNil(o.Dns) { + var ret DdidnsrickettsDNSConfig + return ret + } + return *o.Dns +} + +// GetDnsOk returns a tuple with the Dns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestinationConfig) GetDnsOk() (*DdidnsrickettsDNSConfig, bool) { + if o == nil || IsNil(o.Dns) { + return nil, false + } + return o.Dns, true +} + +// HasDns returns a boolean if a field has been set. +func (o *DdidnsrickettsDestinationConfig) HasDns() bool { + if o != nil && !IsNil(o.Dns) { + return true + } + + return false +} + +// SetDns gets a reference to the given DdidnsrickettsDNSConfig and assigns it to the Dns field. +func (o *DdidnsrickettsDestinationConfig) SetDns(v DdidnsrickettsDNSConfig) { + o.Dns = &v +} + +// GetIpam returns the Ipam field value if set, zero value otherwise. +func (o *DdidnsrickettsDestinationConfig) GetIpam() DdidnsrickettsIPAMConfig { + if o == nil || IsNil(o.Ipam) { + var ret DdidnsrickettsIPAMConfig + return ret + } + return *o.Ipam +} + +// GetIpamOk returns a tuple with the Ipam field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDestinationConfig) GetIpamOk() (*DdidnsrickettsIPAMConfig, bool) { + if o == nil || IsNil(o.Ipam) { + return nil, false + } + return o.Ipam, true +} + +// HasIpam returns a boolean if a field has been set. +func (o *DdidnsrickettsDestinationConfig) HasIpam() bool { + if o != nil && !IsNil(o.Ipam) { + return true + } + + return false +} + +// SetIpam gets a reference to the given DdidnsrickettsIPAMConfig and assigns it to the Ipam field. +func (o *DdidnsrickettsDestinationConfig) SetIpam(v DdidnsrickettsIPAMConfig) { + o.Ipam = &v +} + +func (o DdidnsrickettsDestinationConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsDestinationConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Dns) { + toSerialize["dns"] = o.Dns + } + if !IsNil(o.Ipam) { + toSerialize["ipam"] = o.Ipam + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsDestinationConfig) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsDestinationConfig := _DdidnsrickettsDestinationConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsDestinationConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsDestinationConfig(varDdidnsrickettsDestinationConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dns") + delete(additionalProperties, "ipam") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsDestinationConfig struct { + value *DdidnsrickettsDestinationConfig + isSet bool +} + +func (v NullableDdidnsrickettsDestinationConfig) Get() *DdidnsrickettsDestinationConfig { + return v.value +} + +func (v *NullableDdidnsrickettsDestinationConfig) Set(val *DdidnsrickettsDestinationConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsDestinationConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsDestinationConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsDestinationConfig(val *DdidnsrickettsDestinationConfig) *NullableDdidnsrickettsDestinationConfig { + return &NullableDdidnsrickettsDestinationConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsDestinationConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsDestinationConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_discovery_config.go b/clouddiscovery/model_ddidnsricketts_discovery_config.go new file mode 100644 index 0000000..e6371a6 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_discovery_config.go @@ -0,0 +1,851 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DdidnsrickettsDiscoveryConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsDiscoveryConfig{} + +// DdidnsrickettsDiscoveryConfig Discovery configuration +type DdidnsrickettsDiscoveryConfig struct { + // Account preference. For ex.: single, multiple, auto-discover-multiple. + AccountPreference *string `json:"account_preference,omitempty"` + // Additional configuration. Ex.: '{ \"excluded_object_types\": [], \"exclusion_account_list\": [], \"zone_forwarding\": \"true\" or \"false\" }'. + AdditionalConfig *DdidnsrickettsAdditionalConfig `json:"additional_config,omitempty"` + // Timestamp when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // Credential preference. Ex.: '{ \"type\": \"static\" or \"delegated\", \"access_identifier_type\": \"role_arn\" or \"tenant_id\" or \"project_id\" }'. + CredentialPreference *DdidnsrickettsCredentialPreference `json:"credential_preference,omitempty"` + // Timestamp when the object has been deleted. + DeletedAt *time.Time `json:"deleted_at,omitempty"` + // Description of the discovery config. Optional. + Description *string `json:"description,omitempty"` + // Desired state. Default is \"enabled\". + DesiredState *string `json:"desired_state,omitempty"` + // Destinations types enabled: Ex.: DNS, IPAM and ACCOUNT. + DestinationTypesEnabled []string `json:"destination_types_enabled,omitempty"` + // Destinations. + Destinations []DdidnsrickettsDestination `json:"destinations,omitempty"` + // Auto-generated unique discovery config ID. Format BloxID. + Id *string `json:"id,omitempty"` + // Last sync timestamp. + LastSync *time.Time `json:"last_sync,omitempty"` + // Name of the discovery config. + Name string `json:"name"` + // Provider type. Ex.: Amazon Web Services, Google Cloud Platform, Microsoft Azure. + ProviderType *string `json:"provider_type,omitempty"` + // Source configs. + SourceConfigs []DdidnsrickettsSourceConfig `json:"source_configs,omitempty"` + // Status of the sync operation. In single account case, Its the combined status of account & all the destinations statuses In auto discover case, Its the status of the account discovery only. + Status *string `json:"status,omitempty"` + // Aggregate status message of the sync operation. + StatusMessage *string `json:"status_message,omitempty"` + SyncInterval *string `json:"sync_interval,omitempty"` + // Tagging specifics. + Tags map[string]map[string]interface{} `json:"tags,omitempty"` + // Timestamp when the object has been updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsDiscoveryConfig DdidnsrickettsDiscoveryConfig + +// NewDdidnsrickettsDiscoveryConfig instantiates a new DdidnsrickettsDiscoveryConfig 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 NewDdidnsrickettsDiscoveryConfig(name string) *DdidnsrickettsDiscoveryConfig { + this := DdidnsrickettsDiscoveryConfig{} + this.Name = name + return &this +} + +// NewDdidnsrickettsDiscoveryConfigWithDefaults instantiates a new DdidnsrickettsDiscoveryConfig 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 NewDdidnsrickettsDiscoveryConfigWithDefaults() *DdidnsrickettsDiscoveryConfig { + this := DdidnsrickettsDiscoveryConfig{} + return &this +} + +// GetAccountPreference returns the AccountPreference field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetAccountPreference() string { + if o == nil || IsNil(o.AccountPreference) { + var ret string + return ret + } + return *o.AccountPreference +} + +// GetAccountPreferenceOk returns a tuple with the AccountPreference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetAccountPreferenceOk() (*string, bool) { + if o == nil || IsNil(o.AccountPreference) { + return nil, false + } + return o.AccountPreference, true +} + +// HasAccountPreference returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasAccountPreference() bool { + if o != nil && !IsNil(o.AccountPreference) { + return true + } + + return false +} + +// SetAccountPreference gets a reference to the given string and assigns it to the AccountPreference field. +func (o *DdidnsrickettsDiscoveryConfig) SetAccountPreference(v string) { + o.AccountPreference = &v +} + +// GetAdditionalConfig returns the AdditionalConfig field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetAdditionalConfig() DdidnsrickettsAdditionalConfig { + if o == nil || IsNil(o.AdditionalConfig) { + var ret DdidnsrickettsAdditionalConfig + return ret + } + return *o.AdditionalConfig +} + +// GetAdditionalConfigOk returns a tuple with the AdditionalConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetAdditionalConfigOk() (*DdidnsrickettsAdditionalConfig, bool) { + if o == nil || IsNil(o.AdditionalConfig) { + return nil, false + } + return o.AdditionalConfig, true +} + +// HasAdditionalConfig returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasAdditionalConfig() bool { + if o != nil && !IsNil(o.AdditionalConfig) { + return true + } + + return false +} + +// SetAdditionalConfig gets a reference to the given DdidnsrickettsAdditionalConfig and assigns it to the AdditionalConfig field. +func (o *DdidnsrickettsDiscoveryConfig) SetAdditionalConfig(v DdidnsrickettsAdditionalConfig) { + o.AdditionalConfig = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *DdidnsrickettsDiscoveryConfig) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetCredentialPreference returns the CredentialPreference field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetCredentialPreference() DdidnsrickettsCredentialPreference { + if o == nil || IsNil(o.CredentialPreference) { + var ret DdidnsrickettsCredentialPreference + return ret + } + return *o.CredentialPreference +} + +// GetCredentialPreferenceOk returns a tuple with the CredentialPreference field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetCredentialPreferenceOk() (*DdidnsrickettsCredentialPreference, bool) { + if o == nil || IsNil(o.CredentialPreference) { + return nil, false + } + return o.CredentialPreference, true +} + +// HasCredentialPreference returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasCredentialPreference() bool { + if o != nil && !IsNil(o.CredentialPreference) { + return true + } + + return false +} + +// SetCredentialPreference gets a reference to the given DdidnsrickettsCredentialPreference and assigns it to the CredentialPreference field. +func (o *DdidnsrickettsDiscoveryConfig) SetCredentialPreference(v DdidnsrickettsCredentialPreference) { + o.CredentialPreference = &v +} + +// GetDeletedAt returns the DeletedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetDeletedAt() time.Time { + if o == nil || IsNil(o.DeletedAt) { + var ret time.Time + return ret + } + return *o.DeletedAt +} + +// GetDeletedAtOk returns a tuple with the DeletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetDeletedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.DeletedAt) { + return nil, false + } + return o.DeletedAt, true +} + +// HasDeletedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasDeletedAt() bool { + if o != nil && !IsNil(o.DeletedAt) { + return true + } + + return false +} + +// SetDeletedAt gets a reference to the given time.Time and assigns it to the DeletedAt field. +func (o *DdidnsrickettsDiscoveryConfig) SetDeletedAt(v time.Time) { + o.DeletedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *DdidnsrickettsDiscoveryConfig) SetDescription(v string) { + o.Description = &v +} + +// GetDesiredState returns the DesiredState field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetDesiredState() string { + if o == nil || IsNil(o.DesiredState) { + var ret string + return ret + } + return *o.DesiredState +} + +// GetDesiredStateOk returns a tuple with the DesiredState field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetDesiredStateOk() (*string, bool) { + if o == nil || IsNil(o.DesiredState) { + return nil, false + } + return o.DesiredState, true +} + +// HasDesiredState returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasDesiredState() bool { + if o != nil && !IsNil(o.DesiredState) { + return true + } + + return false +} + +// SetDesiredState gets a reference to the given string and assigns it to the DesiredState field. +func (o *DdidnsrickettsDiscoveryConfig) SetDesiredState(v string) { + o.DesiredState = &v +} + +// GetDestinationTypesEnabled returns the DestinationTypesEnabled field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetDestinationTypesEnabled() []string { + if o == nil || IsNil(o.DestinationTypesEnabled) { + var ret []string + return ret + } + return o.DestinationTypesEnabled +} + +// GetDestinationTypesEnabledOk returns a tuple with the DestinationTypesEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetDestinationTypesEnabledOk() ([]string, bool) { + if o == nil || IsNil(o.DestinationTypesEnabled) { + return nil, false + } + return o.DestinationTypesEnabled, true +} + +// HasDestinationTypesEnabled returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasDestinationTypesEnabled() bool { + if o != nil && !IsNil(o.DestinationTypesEnabled) { + return true + } + + return false +} + +// SetDestinationTypesEnabled gets a reference to the given []string and assigns it to the DestinationTypesEnabled field. +func (o *DdidnsrickettsDiscoveryConfig) SetDestinationTypesEnabled(v []string) { + o.DestinationTypesEnabled = v +} + +// GetDestinations returns the Destinations field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetDestinations() []DdidnsrickettsDestination { + if o == nil || IsNil(o.Destinations) { + var ret []DdidnsrickettsDestination + return ret + } + return o.Destinations +} + +// GetDestinationsOk returns a tuple with the Destinations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetDestinationsOk() ([]DdidnsrickettsDestination, bool) { + if o == nil || IsNil(o.Destinations) { + return nil, false + } + return o.Destinations, true +} + +// HasDestinations returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasDestinations() bool { + if o != nil && !IsNil(o.Destinations) { + return true + } + + return false +} + +// SetDestinations gets a reference to the given []DdidnsrickettsDestination and assigns it to the Destinations field. +func (o *DdidnsrickettsDiscoveryConfig) SetDestinations(v []DdidnsrickettsDestination) { + o.Destinations = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DdidnsrickettsDiscoveryConfig) SetId(v string) { + o.Id = &v +} + +// GetLastSync returns the LastSync field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetLastSync() time.Time { + if o == nil || IsNil(o.LastSync) { + var ret time.Time + return ret + } + return *o.LastSync +} + +// GetLastSyncOk returns a tuple with the LastSync field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetLastSyncOk() (*time.Time, bool) { + if o == nil || IsNil(o.LastSync) { + return nil, false + } + return o.LastSync, true +} + +// HasLastSync returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasLastSync() bool { + if o != nil && !IsNil(o.LastSync) { + return true + } + + return false +} + +// SetLastSync gets a reference to the given time.Time and assigns it to the LastSync field. +func (o *DdidnsrickettsDiscoveryConfig) SetLastSync(v time.Time) { + o.LastSync = &v +} + +// GetName returns the Name field value +func (o *DdidnsrickettsDiscoveryConfig) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *DdidnsrickettsDiscoveryConfig) SetName(v string) { + o.Name = v +} + +// GetProviderType returns the ProviderType field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetProviderType() string { + if o == nil || IsNil(o.ProviderType) { + var ret string + return ret + } + return *o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetProviderTypeOk() (*string, bool) { + if o == nil || IsNil(o.ProviderType) { + return nil, false + } + return o.ProviderType, true +} + +// HasProviderType returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasProviderType() bool { + if o != nil && !IsNil(o.ProviderType) { + return true + } + + return false +} + +// SetProviderType gets a reference to the given string and assigns it to the ProviderType field. +func (o *DdidnsrickettsDiscoveryConfig) SetProviderType(v string) { + o.ProviderType = &v +} + +// GetSourceConfigs returns the SourceConfigs field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetSourceConfigs() []DdidnsrickettsSourceConfig { + if o == nil || IsNil(o.SourceConfigs) { + var ret []DdidnsrickettsSourceConfig + return ret + } + return o.SourceConfigs +} + +// GetSourceConfigsOk returns a tuple with the SourceConfigs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetSourceConfigsOk() ([]DdidnsrickettsSourceConfig, bool) { + if o == nil || IsNil(o.SourceConfigs) { + return nil, false + } + return o.SourceConfigs, true +} + +// HasSourceConfigs returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasSourceConfigs() bool { + if o != nil && !IsNil(o.SourceConfigs) { + return true + } + + return false +} + +// SetSourceConfigs gets a reference to the given []DdidnsrickettsSourceConfig and assigns it to the SourceConfigs field. +func (o *DdidnsrickettsDiscoveryConfig) SetSourceConfigs(v []DdidnsrickettsSourceConfig) { + o.SourceConfigs = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *DdidnsrickettsDiscoveryConfig) SetStatus(v string) { + o.Status = &v +} + +// GetStatusMessage returns the StatusMessage field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetStatusMessage() string { + if o == nil || IsNil(o.StatusMessage) { + var ret string + return ret + } + return *o.StatusMessage +} + +// GetStatusMessageOk returns a tuple with the StatusMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetStatusMessageOk() (*string, bool) { + if o == nil || IsNil(o.StatusMessage) { + return nil, false + } + return o.StatusMessage, true +} + +// HasStatusMessage returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasStatusMessage() bool { + if o != nil && !IsNil(o.StatusMessage) { + return true + } + + return false +} + +// SetStatusMessage gets a reference to the given string and assigns it to the StatusMessage field. +func (o *DdidnsrickettsDiscoveryConfig) SetStatusMessage(v string) { + o.StatusMessage = &v +} + +// GetSyncInterval returns the SyncInterval field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetSyncInterval() string { + if o == nil || IsNil(o.SyncInterval) { + var ret string + return ret + } + return *o.SyncInterval +} + +// GetSyncIntervalOk returns a tuple with the SyncInterval field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetSyncIntervalOk() (*string, bool) { + if o == nil || IsNil(o.SyncInterval) { + return nil, false + } + return o.SyncInterval, true +} + +// HasSyncInterval returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasSyncInterval() bool { + if o != nil && !IsNil(o.SyncInterval) { + return true + } + + return false +} + +// SetSyncInterval gets a reference to the given string and assigns it to the SyncInterval field. +func (o *DdidnsrickettsDiscoveryConfig) SetSyncInterval(v string) { + o.SyncInterval = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetTags() map[string]map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret map[string]map[string]interface{} + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetTagsOk() (map[string]map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]map[string]interface{} and assigns it to the Tags field. +func (o *DdidnsrickettsDiscoveryConfig) SetTags(v map[string]map[string]interface{}) { + o.Tags = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsDiscoveryConfig) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDiscoveryConfig) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsDiscoveryConfig) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *DdidnsrickettsDiscoveryConfig) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o DdidnsrickettsDiscoveryConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsDiscoveryConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountPreference) { + toSerialize["account_preference"] = o.AccountPreference + } + if !IsNil(o.AdditionalConfig) { + toSerialize["additional_config"] = o.AdditionalConfig + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.CredentialPreference) { + toSerialize["credential_preference"] = o.CredentialPreference + } + if !IsNil(o.DeletedAt) { + toSerialize["deleted_at"] = o.DeletedAt + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DesiredState) { + toSerialize["desired_state"] = o.DesiredState + } + if !IsNil(o.DestinationTypesEnabled) { + toSerialize["destination_types_enabled"] = o.DestinationTypesEnabled + } + if !IsNil(o.Destinations) { + toSerialize["destinations"] = o.Destinations + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.LastSync) { + toSerialize["last_sync"] = o.LastSync + } + toSerialize["name"] = o.Name + if !IsNil(o.ProviderType) { + toSerialize["provider_type"] = o.ProviderType + } + if !IsNil(o.SourceConfigs) { + toSerialize["source_configs"] = o.SourceConfigs + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StatusMessage) { + toSerialize["status_message"] = o.StatusMessage + } + if !IsNil(o.SyncInterval) { + toSerialize["sync_interval"] = o.SyncInterval + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsDiscoveryConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDdidnsrickettsDiscoveryConfig := _DdidnsrickettsDiscoveryConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsDiscoveryConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsDiscoveryConfig(varDdidnsrickettsDiscoveryConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "account_preference") + delete(additionalProperties, "additional_config") + delete(additionalProperties, "created_at") + delete(additionalProperties, "credential_preference") + delete(additionalProperties, "deleted_at") + delete(additionalProperties, "description") + delete(additionalProperties, "desired_state") + delete(additionalProperties, "destination_types_enabled") + delete(additionalProperties, "destinations") + delete(additionalProperties, "id") + delete(additionalProperties, "last_sync") + delete(additionalProperties, "name") + delete(additionalProperties, "provider_type") + delete(additionalProperties, "source_configs") + delete(additionalProperties, "status") + delete(additionalProperties, "status_message") + delete(additionalProperties, "sync_interval") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsDiscoveryConfig struct { + value *DdidnsrickettsDiscoveryConfig + isSet bool +} + +func (v NullableDdidnsrickettsDiscoveryConfig) Get() *DdidnsrickettsDiscoveryConfig { + return v.value +} + +func (v *NullableDdidnsrickettsDiscoveryConfig) Set(val *DdidnsrickettsDiscoveryConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsDiscoveryConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsDiscoveryConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsDiscoveryConfig(val *DdidnsrickettsDiscoveryConfig) *NullableDdidnsrickettsDiscoveryConfig { + return &NullableDdidnsrickettsDiscoveryConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsDiscoveryConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsDiscoveryConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_dns_config.go b/clouddiscovery/model_ddidnsricketts_dns_config.go new file mode 100644 index 0000000..03ca9d0 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_dns_config.go @@ -0,0 +1,302 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsDNSConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsDNSConfig{} + +// DdidnsrickettsDNSConfig struct for DdidnsrickettsDNSConfig +type DdidnsrickettsDNSConfig struct { + ConsolidatedZoneDataEnabled *bool `json:"consolidated_zone_data_enabled,omitempty"` + // split_view_enabled consolidates private zones into a single view, which is separate from the public zone view. + SplitViewEnabled *bool `json:"split_view_enabled,omitempty"` + SyncType *string `json:"sync_type,omitempty"` + ViewId *string `json:"view_id,omitempty"` + ViewName *string `json:"view_name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsDNSConfig DdidnsrickettsDNSConfig + +// NewDdidnsrickettsDNSConfig instantiates a new DdidnsrickettsDNSConfig 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 NewDdidnsrickettsDNSConfig() *DdidnsrickettsDNSConfig { + this := DdidnsrickettsDNSConfig{} + return &this +} + +// NewDdidnsrickettsDNSConfigWithDefaults instantiates a new DdidnsrickettsDNSConfig 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 NewDdidnsrickettsDNSConfigWithDefaults() *DdidnsrickettsDNSConfig { + this := DdidnsrickettsDNSConfig{} + return &this +} + +// GetConsolidatedZoneDataEnabled returns the ConsolidatedZoneDataEnabled field value if set, zero value otherwise. +func (o *DdidnsrickettsDNSConfig) GetConsolidatedZoneDataEnabled() bool { + if o == nil || IsNil(o.ConsolidatedZoneDataEnabled) { + var ret bool + return ret + } + return *o.ConsolidatedZoneDataEnabled +} + +// GetConsolidatedZoneDataEnabledOk returns a tuple with the ConsolidatedZoneDataEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDNSConfig) GetConsolidatedZoneDataEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ConsolidatedZoneDataEnabled) { + return nil, false + } + return o.ConsolidatedZoneDataEnabled, true +} + +// HasConsolidatedZoneDataEnabled returns a boolean if a field has been set. +func (o *DdidnsrickettsDNSConfig) HasConsolidatedZoneDataEnabled() bool { + if o != nil && !IsNil(o.ConsolidatedZoneDataEnabled) { + return true + } + + return false +} + +// SetConsolidatedZoneDataEnabled gets a reference to the given bool and assigns it to the ConsolidatedZoneDataEnabled field. +func (o *DdidnsrickettsDNSConfig) SetConsolidatedZoneDataEnabled(v bool) { + o.ConsolidatedZoneDataEnabled = &v +} + +// GetSplitViewEnabled returns the SplitViewEnabled field value if set, zero value otherwise. +func (o *DdidnsrickettsDNSConfig) GetSplitViewEnabled() bool { + if o == nil || IsNil(o.SplitViewEnabled) { + var ret bool + return ret + } + return *o.SplitViewEnabled +} + +// GetSplitViewEnabledOk returns a tuple with the SplitViewEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDNSConfig) GetSplitViewEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.SplitViewEnabled) { + return nil, false + } + return o.SplitViewEnabled, true +} + +// HasSplitViewEnabled returns a boolean if a field has been set. +func (o *DdidnsrickettsDNSConfig) HasSplitViewEnabled() bool { + if o != nil && !IsNil(o.SplitViewEnabled) { + return true + } + + return false +} + +// SetSplitViewEnabled gets a reference to the given bool and assigns it to the SplitViewEnabled field. +func (o *DdidnsrickettsDNSConfig) SetSplitViewEnabled(v bool) { + o.SplitViewEnabled = &v +} + +// GetSyncType returns the SyncType field value if set, zero value otherwise. +func (o *DdidnsrickettsDNSConfig) GetSyncType() string { + if o == nil || IsNil(o.SyncType) { + var ret string + return ret + } + return *o.SyncType +} + +// GetSyncTypeOk returns a tuple with the SyncType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDNSConfig) GetSyncTypeOk() (*string, bool) { + if o == nil || IsNil(o.SyncType) { + return nil, false + } + return o.SyncType, true +} + +// HasSyncType returns a boolean if a field has been set. +func (o *DdidnsrickettsDNSConfig) HasSyncType() bool { + if o != nil && !IsNil(o.SyncType) { + return true + } + + return false +} + +// SetSyncType gets a reference to the given string and assigns it to the SyncType field. +func (o *DdidnsrickettsDNSConfig) SetSyncType(v string) { + o.SyncType = &v +} + +// GetViewId returns the ViewId field value if set, zero value otherwise. +func (o *DdidnsrickettsDNSConfig) GetViewId() string { + if o == nil || IsNil(o.ViewId) { + var ret string + return ret + } + return *o.ViewId +} + +// GetViewIdOk returns a tuple with the ViewId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDNSConfig) GetViewIdOk() (*string, bool) { + if o == nil || IsNil(o.ViewId) { + return nil, false + } + return o.ViewId, true +} + +// HasViewId returns a boolean if a field has been set. +func (o *DdidnsrickettsDNSConfig) HasViewId() bool { + if o != nil && !IsNil(o.ViewId) { + return true + } + + return false +} + +// SetViewId gets a reference to the given string and assigns it to the ViewId field. +func (o *DdidnsrickettsDNSConfig) SetViewId(v string) { + o.ViewId = &v +} + +// GetViewName returns the ViewName field value if set, zero value otherwise. +func (o *DdidnsrickettsDNSConfig) GetViewName() string { + if o == nil || IsNil(o.ViewName) { + var ret string + return ret + } + return *o.ViewName +} + +// GetViewNameOk returns a tuple with the ViewName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsDNSConfig) GetViewNameOk() (*string, bool) { + if o == nil || IsNil(o.ViewName) { + return nil, false + } + return o.ViewName, true +} + +// HasViewName returns a boolean if a field has been set. +func (o *DdidnsrickettsDNSConfig) HasViewName() bool { + if o != nil && !IsNil(o.ViewName) { + return true + } + + return false +} + +// SetViewName gets a reference to the given string and assigns it to the ViewName field. +func (o *DdidnsrickettsDNSConfig) SetViewName(v string) { + o.ViewName = &v +} + +func (o DdidnsrickettsDNSConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsDNSConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConsolidatedZoneDataEnabled) { + toSerialize["consolidated_zone_data_enabled"] = o.ConsolidatedZoneDataEnabled + } + if !IsNil(o.SplitViewEnabled) { + toSerialize["split_view_enabled"] = o.SplitViewEnabled + } + if !IsNil(o.SyncType) { + toSerialize["sync_type"] = o.SyncType + } + if !IsNil(o.ViewId) { + toSerialize["view_id"] = o.ViewId + } + if !IsNil(o.ViewName) { + toSerialize["view_name"] = o.ViewName + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsDNSConfig) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsDNSConfig := _DdidnsrickettsDNSConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsDNSConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsDNSConfig(varDdidnsrickettsDNSConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "consolidated_zone_data_enabled") + delete(additionalProperties, "split_view_enabled") + delete(additionalProperties, "sync_type") + delete(additionalProperties, "view_id") + delete(additionalProperties, "view_name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsDNSConfig struct { + value *DdidnsrickettsDNSConfig + isSet bool +} + +func (v NullableDdidnsrickettsDNSConfig) Get() *DdidnsrickettsDNSConfig { + return v.value +} + +func (v *NullableDdidnsrickettsDNSConfig) Set(val *DdidnsrickettsDNSConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsDNSConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsDNSConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsDNSConfig(val *DdidnsrickettsDNSConfig) *NullableDdidnsrickettsDNSConfig { + return &NullableDdidnsrickettsDNSConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsDNSConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsDNSConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_ipam_config.go b/clouddiscovery/model_ddidnsricketts_ipam_config.go new file mode 100644 index 0000000..510572c --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_ipam_config.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsIPAMConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsIPAMConfig{} + +// DdidnsrickettsIPAMConfig struct for DdidnsrickettsIPAMConfig +type DdidnsrickettsIPAMConfig struct { + DhcpServer *string `json:"dhcp_server,omitempty"` + IpSpace *string `json:"ip_space,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsIPAMConfig DdidnsrickettsIPAMConfig + +// NewDdidnsrickettsIPAMConfig instantiates a new DdidnsrickettsIPAMConfig 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 NewDdidnsrickettsIPAMConfig() *DdidnsrickettsIPAMConfig { + this := DdidnsrickettsIPAMConfig{} + return &this +} + +// NewDdidnsrickettsIPAMConfigWithDefaults instantiates a new DdidnsrickettsIPAMConfig 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 NewDdidnsrickettsIPAMConfigWithDefaults() *DdidnsrickettsIPAMConfig { + this := DdidnsrickettsIPAMConfig{} + return &this +} + +// GetDhcpServer returns the DhcpServer field value if set, zero value otherwise. +func (o *DdidnsrickettsIPAMConfig) GetDhcpServer() string { + if o == nil || IsNil(o.DhcpServer) { + var ret string + return ret + } + return *o.DhcpServer +} + +// GetDhcpServerOk returns a tuple with the DhcpServer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsIPAMConfig) GetDhcpServerOk() (*string, bool) { + if o == nil || IsNil(o.DhcpServer) { + return nil, false + } + return o.DhcpServer, true +} + +// HasDhcpServer returns a boolean if a field has been set. +func (o *DdidnsrickettsIPAMConfig) HasDhcpServer() bool { + if o != nil && !IsNil(o.DhcpServer) { + return true + } + + return false +} + +// SetDhcpServer gets a reference to the given string and assigns it to the DhcpServer field. +func (o *DdidnsrickettsIPAMConfig) SetDhcpServer(v string) { + o.DhcpServer = &v +} + +// GetIpSpace returns the IpSpace field value if set, zero value otherwise. +func (o *DdidnsrickettsIPAMConfig) GetIpSpace() string { + if o == nil || IsNil(o.IpSpace) { + var ret string + return ret + } + return *o.IpSpace +} + +// GetIpSpaceOk returns a tuple with the IpSpace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsIPAMConfig) GetIpSpaceOk() (*string, bool) { + if o == nil || IsNil(o.IpSpace) { + return nil, false + } + return o.IpSpace, true +} + +// HasIpSpace returns a boolean if a field has been set. +func (o *DdidnsrickettsIPAMConfig) HasIpSpace() bool { + if o != nil && !IsNil(o.IpSpace) { + return true + } + + return false +} + +// SetIpSpace gets a reference to the given string and assigns it to the IpSpace field. +func (o *DdidnsrickettsIPAMConfig) SetIpSpace(v string) { + o.IpSpace = &v +} + +func (o DdidnsrickettsIPAMConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsIPAMConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DhcpServer) { + toSerialize["dhcp_server"] = o.DhcpServer + } + if !IsNil(o.IpSpace) { + toSerialize["ip_space"] = o.IpSpace + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsIPAMConfig) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsIPAMConfig := _DdidnsrickettsIPAMConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsIPAMConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsIPAMConfig(varDdidnsrickettsIPAMConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "dhcp_server") + delete(additionalProperties, "ip_space") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsIPAMConfig struct { + value *DdidnsrickettsIPAMConfig + isSet bool +} + +func (v NullableDdidnsrickettsIPAMConfig) Get() *DdidnsrickettsIPAMConfig { + return v.value +} + +func (v *NullableDdidnsrickettsIPAMConfig) Set(val *DdidnsrickettsIPAMConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsIPAMConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsIPAMConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsIPAMConfig(val *DdidnsrickettsIPAMConfig) *NullableDdidnsrickettsIPAMConfig { + return &NullableDdidnsrickettsIPAMConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsIPAMConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsIPAMConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_object.go b/clouddiscovery/model_ddidnsricketts_object.go new file mode 100644 index 0000000..90c4dad --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_object.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsObject{} + +// DdidnsrickettsObject struct for DdidnsrickettsObject +type DdidnsrickettsObject struct { + Category *DdidnsrickettsCategory `json:"category,omitempty"` + ResourceSet []DdidnsrickettsResource `json:"resource_set,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsObject DdidnsrickettsObject + +// NewDdidnsrickettsObject instantiates a new DdidnsrickettsObject 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 NewDdidnsrickettsObject() *DdidnsrickettsObject { + this := DdidnsrickettsObject{} + return &this +} + +// NewDdidnsrickettsObjectWithDefaults instantiates a new DdidnsrickettsObject 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 NewDdidnsrickettsObjectWithDefaults() *DdidnsrickettsObject { + this := DdidnsrickettsObject{} + return &this +} + +// GetCategory returns the Category field value if set, zero value otherwise. +func (o *DdidnsrickettsObject) GetCategory() DdidnsrickettsCategory { + if o == nil || IsNil(o.Category) { + var ret DdidnsrickettsCategory + return ret + } + return *o.Category +} + +// GetCategoryOk returns a tuple with the Category field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsObject) GetCategoryOk() (*DdidnsrickettsCategory, bool) { + if o == nil || IsNil(o.Category) { + return nil, false + } + return o.Category, true +} + +// HasCategory returns a boolean if a field has been set. +func (o *DdidnsrickettsObject) HasCategory() bool { + if o != nil && !IsNil(o.Category) { + return true + } + + return false +} + +// SetCategory gets a reference to the given DdidnsrickettsCategory and assigns it to the Category field. +func (o *DdidnsrickettsObject) SetCategory(v DdidnsrickettsCategory) { + o.Category = &v +} + +// GetResourceSet returns the ResourceSet field value if set, zero value otherwise. +func (o *DdidnsrickettsObject) GetResourceSet() []DdidnsrickettsResource { + if o == nil || IsNil(o.ResourceSet) { + var ret []DdidnsrickettsResource + return ret + } + return o.ResourceSet +} + +// GetResourceSetOk returns a tuple with the ResourceSet field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsObject) GetResourceSetOk() ([]DdidnsrickettsResource, bool) { + if o == nil || IsNil(o.ResourceSet) { + return nil, false + } + return o.ResourceSet, true +} + +// HasResourceSet returns a boolean if a field has been set. +func (o *DdidnsrickettsObject) HasResourceSet() bool { + if o != nil && !IsNil(o.ResourceSet) { + return true + } + + return false +} + +// SetResourceSet gets a reference to the given []DdidnsrickettsResource and assigns it to the ResourceSet field. +func (o *DdidnsrickettsObject) SetResourceSet(v []DdidnsrickettsResource) { + o.ResourceSet = v +} + +func (o DdidnsrickettsObject) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Category) { + toSerialize["category"] = o.Category + } + if !IsNil(o.ResourceSet) { + toSerialize["resource_set"] = o.ResourceSet + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsObject) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsObject := _DdidnsrickettsObject{} + + err = json.Unmarshal(data, &varDdidnsrickettsObject) + + if err != nil { + return err + } + + *o = DdidnsrickettsObject(varDdidnsrickettsObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "category") + delete(additionalProperties, "resource_set") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsObject struct { + value *DdidnsrickettsObject + isSet bool +} + +func (v NullableDdidnsrickettsObject) Get() *DdidnsrickettsObject { + return v.value +} + +func (v *NullableDdidnsrickettsObject) Set(val *DdidnsrickettsObject) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsObject) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsObject(val *DdidnsrickettsObject) *NullableDdidnsrickettsObject { + return &NullableDdidnsrickettsObject{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_object_type.go b/clouddiscovery/model_ddidnsricketts_object_type.go new file mode 100644 index 0000000..afdd5dd --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_object_type.go @@ -0,0 +1,227 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsObjectType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsObjectType{} + +// DdidnsrickettsObjectType struct for DdidnsrickettsObjectType +type DdidnsrickettsObjectType struct { + DiscoverNew *bool `json:"discover_new,omitempty"` + Objects []DdidnsrickettsObject `json:"objects,omitempty"` + Version *float32 `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsObjectType DdidnsrickettsObjectType + +// NewDdidnsrickettsObjectType instantiates a new DdidnsrickettsObjectType 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 NewDdidnsrickettsObjectType() *DdidnsrickettsObjectType { + this := DdidnsrickettsObjectType{} + return &this +} + +// NewDdidnsrickettsObjectTypeWithDefaults instantiates a new DdidnsrickettsObjectType 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 NewDdidnsrickettsObjectTypeWithDefaults() *DdidnsrickettsObjectType { + this := DdidnsrickettsObjectType{} + return &this +} + +// GetDiscoverNew returns the DiscoverNew field value if set, zero value otherwise. +func (o *DdidnsrickettsObjectType) GetDiscoverNew() bool { + if o == nil || IsNil(o.DiscoverNew) { + var ret bool + return ret + } + return *o.DiscoverNew +} + +// GetDiscoverNewOk returns a tuple with the DiscoverNew field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsObjectType) GetDiscoverNewOk() (*bool, bool) { + if o == nil || IsNil(o.DiscoverNew) { + return nil, false + } + return o.DiscoverNew, true +} + +// HasDiscoverNew returns a boolean if a field has been set. +func (o *DdidnsrickettsObjectType) HasDiscoverNew() bool { + if o != nil && !IsNil(o.DiscoverNew) { + return true + } + + return false +} + +// SetDiscoverNew gets a reference to the given bool and assigns it to the DiscoverNew field. +func (o *DdidnsrickettsObjectType) SetDiscoverNew(v bool) { + o.DiscoverNew = &v +} + +// GetObjects returns the Objects field value if set, zero value otherwise. +func (o *DdidnsrickettsObjectType) GetObjects() []DdidnsrickettsObject { + if o == nil || IsNil(o.Objects) { + var ret []DdidnsrickettsObject + return ret + } + return o.Objects +} + +// GetObjectsOk returns a tuple with the Objects field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsObjectType) GetObjectsOk() ([]DdidnsrickettsObject, bool) { + if o == nil || IsNil(o.Objects) { + return nil, false + } + return o.Objects, true +} + +// HasObjects returns a boolean if a field has been set. +func (o *DdidnsrickettsObjectType) HasObjects() bool { + if o != nil && !IsNil(o.Objects) { + return true + } + + return false +} + +// SetObjects gets a reference to the given []DdidnsrickettsObject and assigns it to the Objects field. +func (o *DdidnsrickettsObjectType) SetObjects(v []DdidnsrickettsObject) { + o.Objects = v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *DdidnsrickettsObjectType) GetVersion() float32 { + if o == nil || IsNil(o.Version) { + var ret float32 + return ret + } + return *o.Version +} + +// GetVersionOk returns a tuple with the Version field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsObjectType) GetVersionOk() (*float32, bool) { + if o == nil || IsNil(o.Version) { + return nil, false + } + return o.Version, true +} + +// HasVersion returns a boolean if a field has been set. +func (o *DdidnsrickettsObjectType) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given float32 and assigns it to the Version field. +func (o *DdidnsrickettsObjectType) SetVersion(v float32) { + o.Version = &v +} + +func (o DdidnsrickettsObjectType) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsObjectType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DiscoverNew) { + toSerialize["discover_new"] = o.DiscoverNew + } + if !IsNil(o.Objects) { + toSerialize["objects"] = o.Objects + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsObjectType) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsObjectType := _DdidnsrickettsObjectType{} + + err = json.Unmarshal(data, &varDdidnsrickettsObjectType) + + if err != nil { + return err + } + + *o = DdidnsrickettsObjectType(varDdidnsrickettsObjectType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "discover_new") + delete(additionalProperties, "objects") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsObjectType struct { + value *DdidnsrickettsObjectType + isSet bool +} + +func (v NullableDdidnsrickettsObjectType) Get() *DdidnsrickettsObjectType { + return v.value +} + +func (v *NullableDdidnsrickettsObjectType) Set(val *DdidnsrickettsObjectType) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsObjectType) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsObjectType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsObjectType(val *DdidnsrickettsObjectType) *NullableDdidnsrickettsObjectType { + return &NullableDdidnsrickettsObjectType{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsObjectType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsObjectType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_provider_create_response.go b/clouddiscovery/model_ddidnsricketts_provider_create_response.go new file mode 100644 index 0000000..b70c204 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_provider_create_response.go @@ -0,0 +1,153 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsProviderCreateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsProviderCreateResponse{} + +// DdidnsrickettsProviderCreateResponse The Provider object create response format. +type DdidnsrickettsProviderCreateResponse struct { + Result *DdidnsrickettsDiscoveryConfig `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsProviderCreateResponse DdidnsrickettsProviderCreateResponse + +// NewDdidnsrickettsProviderCreateResponse instantiates a new DdidnsrickettsProviderCreateResponse 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 NewDdidnsrickettsProviderCreateResponse() *DdidnsrickettsProviderCreateResponse { + this := DdidnsrickettsProviderCreateResponse{} + return &this +} + +// NewDdidnsrickettsProviderCreateResponseWithDefaults instantiates a new DdidnsrickettsProviderCreateResponse 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 NewDdidnsrickettsProviderCreateResponseWithDefaults() *DdidnsrickettsProviderCreateResponse { + this := DdidnsrickettsProviderCreateResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *DdidnsrickettsProviderCreateResponse) GetResult() DdidnsrickettsDiscoveryConfig { + if o == nil || IsNil(o.Result) { + var ret DdidnsrickettsDiscoveryConfig + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsProviderCreateResponse) GetResultOk() (*DdidnsrickettsDiscoveryConfig, bool) { + if o == nil || IsNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *DdidnsrickettsProviderCreateResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given DdidnsrickettsDiscoveryConfig and assigns it to the Result field. +func (o *DdidnsrickettsProviderCreateResponse) SetResult(v DdidnsrickettsDiscoveryConfig) { + o.Result = &v +} + +func (o DdidnsrickettsProviderCreateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsProviderCreateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Result) { + toSerialize["result"] = o.Result + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsProviderCreateResponse) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsProviderCreateResponse := _DdidnsrickettsProviderCreateResponse{} + + err = json.Unmarshal(data, &varDdidnsrickettsProviderCreateResponse) + + if err != nil { + return err + } + + *o = DdidnsrickettsProviderCreateResponse(varDdidnsrickettsProviderCreateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsProviderCreateResponse struct { + value *DdidnsrickettsProviderCreateResponse + isSet bool +} + +func (v NullableDdidnsrickettsProviderCreateResponse) Get() *DdidnsrickettsProviderCreateResponse { + return v.value +} + +func (v *NullableDdidnsrickettsProviderCreateResponse) Set(val *DdidnsrickettsProviderCreateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsProviderCreateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsProviderCreateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsProviderCreateResponse(val *DdidnsrickettsProviderCreateResponse) *NullableDdidnsrickettsProviderCreateResponse { + return &NullableDdidnsrickettsProviderCreateResponse{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsProviderCreateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsProviderCreateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_provider_list_response.go b/clouddiscovery/model_ddidnsricketts_provider_list_response.go new file mode 100644 index 0000000..ded8f91 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_provider_list_response.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsProviderListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsProviderListResponse{} + +// DdidnsrickettsProviderListResponse The Provider object List response format. +type DdidnsrickettsProviderListResponse struct { + Page *ApiPageInfo `json:"page,omitempty"` + Results []DdidnsrickettsDiscoveryConfig `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsProviderListResponse DdidnsrickettsProviderListResponse + +// NewDdidnsrickettsProviderListResponse instantiates a new DdidnsrickettsProviderListResponse 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 NewDdidnsrickettsProviderListResponse() *DdidnsrickettsProviderListResponse { + this := DdidnsrickettsProviderListResponse{} + return &this +} + +// NewDdidnsrickettsProviderListResponseWithDefaults instantiates a new DdidnsrickettsProviderListResponse 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 NewDdidnsrickettsProviderListResponseWithDefaults() *DdidnsrickettsProviderListResponse { + this := DdidnsrickettsProviderListResponse{} + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *DdidnsrickettsProviderListResponse) GetPage() ApiPageInfo { + if o == nil || IsNil(o.Page) { + var ret ApiPageInfo + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsProviderListResponse) GetPageOk() (*ApiPageInfo, bool) { + if o == nil || IsNil(o.Page) { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *DdidnsrickettsProviderListResponse) HasPage() bool { + if o != nil && !IsNil(o.Page) { + return true + } + + return false +} + +// SetPage gets a reference to the given ApiPageInfo and assigns it to the Page field. +func (o *DdidnsrickettsProviderListResponse) SetPage(v ApiPageInfo) { + o.Page = &v +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *DdidnsrickettsProviderListResponse) GetResults() []DdidnsrickettsDiscoveryConfig { + if o == nil || IsNil(o.Results) { + var ret []DdidnsrickettsDiscoveryConfig + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsProviderListResponse) GetResultsOk() ([]DdidnsrickettsDiscoveryConfig, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *DdidnsrickettsProviderListResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []DdidnsrickettsDiscoveryConfig and assigns it to the Results field. +func (o *DdidnsrickettsProviderListResponse) SetResults(v []DdidnsrickettsDiscoveryConfig) { + o.Results = v +} + +func (o DdidnsrickettsProviderListResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsProviderListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Page) { + toSerialize["page"] = o.Page + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsProviderListResponse) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsProviderListResponse := _DdidnsrickettsProviderListResponse{} + + err = json.Unmarshal(data, &varDdidnsrickettsProviderListResponse) + + if err != nil { + return err + } + + *o = DdidnsrickettsProviderListResponse(varDdidnsrickettsProviderListResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsProviderListResponse struct { + value *DdidnsrickettsProviderListResponse + isSet bool +} + +func (v NullableDdidnsrickettsProviderListResponse) Get() *DdidnsrickettsProviderListResponse { + return v.value +} + +func (v *NullableDdidnsrickettsProviderListResponse) Set(val *DdidnsrickettsProviderListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsProviderListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsProviderListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsProviderListResponse(val *DdidnsrickettsProviderListResponse) *NullableDdidnsrickettsProviderListResponse { + return &NullableDdidnsrickettsProviderListResponse{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsProviderListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsProviderListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_provider_read_response.go b/clouddiscovery/model_ddidnsricketts_provider_read_response.go new file mode 100644 index 0000000..47d5100 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_provider_read_response.go @@ -0,0 +1,153 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsProviderReadResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsProviderReadResponse{} + +// DdidnsrickettsProviderReadResponse The Provider object read response format. +type DdidnsrickettsProviderReadResponse struct { + Result *DdidnsrickettsDiscoveryConfig `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsProviderReadResponse DdidnsrickettsProviderReadResponse + +// NewDdidnsrickettsProviderReadResponse instantiates a new DdidnsrickettsProviderReadResponse 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 NewDdidnsrickettsProviderReadResponse() *DdidnsrickettsProviderReadResponse { + this := DdidnsrickettsProviderReadResponse{} + return &this +} + +// NewDdidnsrickettsProviderReadResponseWithDefaults instantiates a new DdidnsrickettsProviderReadResponse 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 NewDdidnsrickettsProviderReadResponseWithDefaults() *DdidnsrickettsProviderReadResponse { + this := DdidnsrickettsProviderReadResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *DdidnsrickettsProviderReadResponse) GetResult() DdidnsrickettsDiscoveryConfig { + if o == nil || IsNil(o.Result) { + var ret DdidnsrickettsDiscoveryConfig + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsProviderReadResponse) GetResultOk() (*DdidnsrickettsDiscoveryConfig, bool) { + if o == nil || IsNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *DdidnsrickettsProviderReadResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given DdidnsrickettsDiscoveryConfig and assigns it to the Result field. +func (o *DdidnsrickettsProviderReadResponse) SetResult(v DdidnsrickettsDiscoveryConfig) { + o.Result = &v +} + +func (o DdidnsrickettsProviderReadResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsProviderReadResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Result) { + toSerialize["result"] = o.Result + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsProviderReadResponse) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsProviderReadResponse := _DdidnsrickettsProviderReadResponse{} + + err = json.Unmarshal(data, &varDdidnsrickettsProviderReadResponse) + + if err != nil { + return err + } + + *o = DdidnsrickettsProviderReadResponse(varDdidnsrickettsProviderReadResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsProviderReadResponse struct { + value *DdidnsrickettsProviderReadResponse + isSet bool +} + +func (v NullableDdidnsrickettsProviderReadResponse) Get() *DdidnsrickettsProviderReadResponse { + return v.value +} + +func (v *NullableDdidnsrickettsProviderReadResponse) Set(val *DdidnsrickettsProviderReadResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsProviderReadResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsProviderReadResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsProviderReadResponse(val *DdidnsrickettsProviderReadResponse) *NullableDdidnsrickettsProviderReadResponse { + return &NullableDdidnsrickettsProviderReadResponse{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsProviderReadResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsProviderReadResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_provider_update_response.go b/clouddiscovery/model_ddidnsricketts_provider_update_response.go new file mode 100644 index 0000000..914131a --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_provider_update_response.go @@ -0,0 +1,153 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsProviderUpdateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsProviderUpdateResponse{} + +// DdidnsrickettsProviderUpdateResponse The Provider object to update response format. +type DdidnsrickettsProviderUpdateResponse struct { + Result *DdidnsrickettsDiscoveryConfig `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsProviderUpdateResponse DdidnsrickettsProviderUpdateResponse + +// NewDdidnsrickettsProviderUpdateResponse instantiates a new DdidnsrickettsProviderUpdateResponse 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 NewDdidnsrickettsProviderUpdateResponse() *DdidnsrickettsProviderUpdateResponse { + this := DdidnsrickettsProviderUpdateResponse{} + return &this +} + +// NewDdidnsrickettsProviderUpdateResponseWithDefaults instantiates a new DdidnsrickettsProviderUpdateResponse 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 NewDdidnsrickettsProviderUpdateResponseWithDefaults() *DdidnsrickettsProviderUpdateResponse { + this := DdidnsrickettsProviderUpdateResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *DdidnsrickettsProviderUpdateResponse) GetResult() DdidnsrickettsDiscoveryConfig { + if o == nil || IsNil(o.Result) { + var ret DdidnsrickettsDiscoveryConfig + return ret + } + return *o.Result +} + +// GetResultOk returns a tuple with the Result field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsProviderUpdateResponse) GetResultOk() (*DdidnsrickettsDiscoveryConfig, bool) { + if o == nil || IsNil(o.Result) { + return nil, false + } + return o.Result, true +} + +// HasResult returns a boolean if a field has been set. +func (o *DdidnsrickettsProviderUpdateResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given DdidnsrickettsDiscoveryConfig and assigns it to the Result field. +func (o *DdidnsrickettsProviderUpdateResponse) SetResult(v DdidnsrickettsDiscoveryConfig) { + o.Result = &v +} + +func (o DdidnsrickettsProviderUpdateResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsProviderUpdateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Result) { + toSerialize["result"] = o.Result + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsProviderUpdateResponse) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsProviderUpdateResponse := _DdidnsrickettsProviderUpdateResponse{} + + err = json.Unmarshal(data, &varDdidnsrickettsProviderUpdateResponse) + + if err != nil { + return err + } + + *o = DdidnsrickettsProviderUpdateResponse(varDdidnsrickettsProviderUpdateResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsProviderUpdateResponse struct { + value *DdidnsrickettsProviderUpdateResponse + isSet bool +} + +func (v NullableDdidnsrickettsProviderUpdateResponse) Get() *DdidnsrickettsProviderUpdateResponse { + return v.value +} + +func (v *NullableDdidnsrickettsProviderUpdateResponse) Set(val *DdidnsrickettsProviderUpdateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsProviderUpdateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsProviderUpdateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsProviderUpdateResponse(val *DdidnsrickettsProviderUpdateResponse) *NullableDdidnsrickettsProviderUpdateResponse { + return &NullableDdidnsrickettsProviderUpdateResponse{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsProviderUpdateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsProviderUpdateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_resource.go b/clouddiscovery/model_ddidnsricketts_resource.go new file mode 100644 index 0000000..e950689 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_resource.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsResource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsResource{} + +// DdidnsrickettsResource struct for DdidnsrickettsResource +type DdidnsrickettsResource struct { + Excluded *bool `json:"excluded,omitempty"` + Id *string `json:"id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsResource DdidnsrickettsResource + +// NewDdidnsrickettsResource instantiates a new DdidnsrickettsResource 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 NewDdidnsrickettsResource() *DdidnsrickettsResource { + this := DdidnsrickettsResource{} + return &this +} + +// NewDdidnsrickettsResourceWithDefaults instantiates a new DdidnsrickettsResource 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 NewDdidnsrickettsResourceWithDefaults() *DdidnsrickettsResource { + this := DdidnsrickettsResource{} + return &this +} + +// GetExcluded returns the Excluded field value if set, zero value otherwise. +func (o *DdidnsrickettsResource) GetExcluded() bool { + if o == nil || IsNil(o.Excluded) { + var ret bool + return ret + } + return *o.Excluded +} + +// GetExcludedOk returns a tuple with the Excluded field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsResource) GetExcludedOk() (*bool, bool) { + if o == nil || IsNil(o.Excluded) { + return nil, false + } + return o.Excluded, true +} + +// HasExcluded returns a boolean if a field has been set. +func (o *DdidnsrickettsResource) HasExcluded() bool { + if o != nil && !IsNil(o.Excluded) { + return true + } + + return false +} + +// SetExcluded gets a reference to the given bool and assigns it to the Excluded field. +func (o *DdidnsrickettsResource) SetExcluded(v bool) { + o.Excluded = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DdidnsrickettsResource) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsResource) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DdidnsrickettsResource) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DdidnsrickettsResource) SetId(v string) { + o.Id = &v +} + +func (o DdidnsrickettsResource) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsResource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Excluded) { + toSerialize["excluded"] = o.Excluded + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsResource) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsResource := _DdidnsrickettsResource{} + + err = json.Unmarshal(data, &varDdidnsrickettsResource) + + if err != nil { + return err + } + + *o = DdidnsrickettsResource(varDdidnsrickettsResource) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "excluded") + delete(additionalProperties, "id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsResource struct { + value *DdidnsrickettsResource + isSet bool +} + +func (v NullableDdidnsrickettsResource) Get() *DdidnsrickettsResource { + return v.value +} + +func (v *NullableDdidnsrickettsResource) Set(val *DdidnsrickettsResource) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsResource) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsResource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsResource(val *DdidnsrickettsResource) *NullableDdidnsrickettsResource { + return &NullableDdidnsrickettsResource{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsResource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsResource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_source_config.go b/clouddiscovery/model_ddidnsricketts_source_config.go new file mode 100644 index 0000000..1376f47 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_source_config.go @@ -0,0 +1,471 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the DdidnsrickettsSourceConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsSourceConfig{} + +// DdidnsrickettsSourceConfig Source configuration +type DdidnsrickettsSourceConfig struct { + // Account Schedule ID. + AccountScheduleId *string `json:"account_schedule_id,omitempty"` + Accounts []DdidnsrickettsAccount `json:"accounts,omitempty"` + // Cloud Credential ID. + CloudCredentialId string `json:"cloud_credential_id"` + // Timestamp when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // Credential configuration. Ex.: '{ \"access_identifier\": \"arn:aws:iam::1234:role/access_for_discovery\", \"region\": \"us-east-1\", \"enclave\": \"commercial/gov\" }'. + CredentialConfig *DdidnsrickettsCredentialConfig `json:"credential_config,omitempty"` + // Timestamp when the object has been deleted. + DeletedAt *time.Time `json:"deleted_at,omitempty"` + // Auto-generated unique source config ID. Format BloxID. + Id *string `json:"id,omitempty"` + // Provider account IDs such as accountID/ SubscriptionID to be restricted for a given source_config. + RestrictedToAccounts []string `json:"restricted_to_accounts,omitempty"` + // Timestamp when the object has been updated. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsSourceConfig DdidnsrickettsSourceConfig + +// NewDdidnsrickettsSourceConfig instantiates a new DdidnsrickettsSourceConfig 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 NewDdidnsrickettsSourceConfig(cloudCredentialId string) *DdidnsrickettsSourceConfig { + this := DdidnsrickettsSourceConfig{} + this.CloudCredentialId = cloudCredentialId + return &this +} + +// NewDdidnsrickettsSourceConfigWithDefaults instantiates a new DdidnsrickettsSourceConfig 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 NewDdidnsrickettsSourceConfigWithDefaults() *DdidnsrickettsSourceConfig { + this := DdidnsrickettsSourceConfig{} + return &this +} + +// GetAccountScheduleId returns the AccountScheduleId field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetAccountScheduleId() string { + if o == nil || IsNil(o.AccountScheduleId) { + var ret string + return ret + } + return *o.AccountScheduleId +} + +// GetAccountScheduleIdOk returns a tuple with the AccountScheduleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetAccountScheduleIdOk() (*string, bool) { + if o == nil || IsNil(o.AccountScheduleId) { + return nil, false + } + return o.AccountScheduleId, true +} + +// HasAccountScheduleId returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasAccountScheduleId() bool { + if o != nil && !IsNil(o.AccountScheduleId) { + return true + } + + return false +} + +// SetAccountScheduleId gets a reference to the given string and assigns it to the AccountScheduleId field. +func (o *DdidnsrickettsSourceConfig) SetAccountScheduleId(v string) { + o.AccountScheduleId = &v +} + +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetAccounts() []DdidnsrickettsAccount { + if o == nil || IsNil(o.Accounts) { + var ret []DdidnsrickettsAccount + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetAccountsOk() ([]DdidnsrickettsAccount, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []DdidnsrickettsAccount and assigns it to the Accounts field. +func (o *DdidnsrickettsSourceConfig) SetAccounts(v []DdidnsrickettsAccount) { + o.Accounts = v +} + +// GetCloudCredentialId returns the CloudCredentialId field value +func (o *DdidnsrickettsSourceConfig) GetCloudCredentialId() string { + if o == nil { + var ret string + return ret + } + + return o.CloudCredentialId +} + +// GetCloudCredentialIdOk returns a tuple with the CloudCredentialId field value +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetCloudCredentialIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CloudCredentialId, true +} + +// SetCloudCredentialId sets field value +func (o *DdidnsrickettsSourceConfig) SetCloudCredentialId(v string) { + o.CloudCredentialId = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *DdidnsrickettsSourceConfig) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetCredentialConfig returns the CredentialConfig field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetCredentialConfig() DdidnsrickettsCredentialConfig { + if o == nil || IsNil(o.CredentialConfig) { + var ret DdidnsrickettsCredentialConfig + return ret + } + return *o.CredentialConfig +} + +// GetCredentialConfigOk returns a tuple with the CredentialConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetCredentialConfigOk() (*DdidnsrickettsCredentialConfig, bool) { + if o == nil || IsNil(o.CredentialConfig) { + return nil, false + } + return o.CredentialConfig, true +} + +// HasCredentialConfig returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasCredentialConfig() bool { + if o != nil && !IsNil(o.CredentialConfig) { + return true + } + + return false +} + +// SetCredentialConfig gets a reference to the given DdidnsrickettsCredentialConfig and assigns it to the CredentialConfig field. +func (o *DdidnsrickettsSourceConfig) SetCredentialConfig(v DdidnsrickettsCredentialConfig) { + o.CredentialConfig = &v +} + +// GetDeletedAt returns the DeletedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetDeletedAt() time.Time { + if o == nil || IsNil(o.DeletedAt) { + var ret time.Time + return ret + } + return *o.DeletedAt +} + +// GetDeletedAtOk returns a tuple with the DeletedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetDeletedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.DeletedAt) { + return nil, false + } + return o.DeletedAt, true +} + +// HasDeletedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasDeletedAt() bool { + if o != nil && !IsNil(o.DeletedAt) { + return true + } + + return false +} + +// SetDeletedAt gets a reference to the given time.Time and assigns it to the DeletedAt field. +func (o *DdidnsrickettsSourceConfig) SetDeletedAt(v time.Time) { + o.DeletedAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DdidnsrickettsSourceConfig) SetId(v string) { + o.Id = &v +} + +// GetRestrictedToAccounts returns the RestrictedToAccounts field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetRestrictedToAccounts() []string { + if o == nil || IsNil(o.RestrictedToAccounts) { + var ret []string + return ret + } + return o.RestrictedToAccounts +} + +// GetRestrictedToAccountsOk returns a tuple with the RestrictedToAccounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetRestrictedToAccountsOk() ([]string, bool) { + if o == nil || IsNil(o.RestrictedToAccounts) { + return nil, false + } + return o.RestrictedToAccounts, true +} + +// HasRestrictedToAccounts returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasRestrictedToAccounts() bool { + if o != nil && !IsNil(o.RestrictedToAccounts) { + return true + } + + return false +} + +// SetRestrictedToAccounts gets a reference to the given []string and assigns it to the RestrictedToAccounts field. +func (o *DdidnsrickettsSourceConfig) SetRestrictedToAccounts(v []string) { + o.RestrictedToAccounts = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *DdidnsrickettsSourceConfig) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSourceConfig) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *DdidnsrickettsSourceConfig) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *DdidnsrickettsSourceConfig) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o DdidnsrickettsSourceConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsSourceConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountScheduleId) { + toSerialize["account_schedule_id"] = o.AccountScheduleId + } + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } + toSerialize["cloud_credential_id"] = o.CloudCredentialId + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.CredentialConfig) { + toSerialize["credential_config"] = o.CredentialConfig + } + if !IsNil(o.DeletedAt) { + toSerialize["deleted_at"] = o.DeletedAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.RestrictedToAccounts) { + toSerialize["restricted_to_accounts"] = o.RestrictedToAccounts + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsSourceConfig) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cloud_credential_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varDdidnsrickettsSourceConfig := _DdidnsrickettsSourceConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsSourceConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsSourceConfig(varDdidnsrickettsSourceConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "account_schedule_id") + delete(additionalProperties, "accounts") + delete(additionalProperties, "cloud_credential_id") + delete(additionalProperties, "created_at") + delete(additionalProperties, "credential_config") + delete(additionalProperties, "deleted_at") + delete(additionalProperties, "id") + delete(additionalProperties, "restricted_to_accounts") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsSourceConfig struct { + value *DdidnsrickettsSourceConfig + isSet bool +} + +func (v NullableDdidnsrickettsSourceConfig) Get() *DdidnsrickettsSourceConfig { + return v.value +} + +func (v *NullableDdidnsrickettsSourceConfig) Set(val *DdidnsrickettsSourceConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsSourceConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsSourceConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsSourceConfig(val *DdidnsrickettsSourceConfig) *NullableDdidnsrickettsSourceConfig { + return &NullableDdidnsrickettsSourceConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsSourceConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsSourceConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_sub_account_list_request_v2.go b/clouddiscovery/model_ddidnsricketts_sub_account_list_request_v2.go new file mode 100644 index 0000000..43c6dc9 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_sub_account_list_request_v2.go @@ -0,0 +1,302 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsSubAccountListRequestV2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsSubAccountListRequestV2{} + +// DdidnsrickettsSubAccountListRequestV2 struct for DdidnsrickettsSubAccountListRequestV2 +type DdidnsrickettsSubAccountListRequestV2 struct { + AccessType *string `json:"access_type,omitempty"` + CredentialId *string `json:"credential_id,omitempty"` + // atlas.api.field_selection + Fields *string `json:"fields,omitempty"` + ProviderCredentialsConfig *DdidnsrickettsSubAccountProvCredConfig `json:"provider_credentials_config,omitempty"` + ProviderType *string `json:"provider_type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsSubAccountListRequestV2 DdidnsrickettsSubAccountListRequestV2 + +// NewDdidnsrickettsSubAccountListRequestV2 instantiates a new DdidnsrickettsSubAccountListRequestV2 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 NewDdidnsrickettsSubAccountListRequestV2() *DdidnsrickettsSubAccountListRequestV2 { + this := DdidnsrickettsSubAccountListRequestV2{} + return &this +} + +// NewDdidnsrickettsSubAccountListRequestV2WithDefaults instantiates a new DdidnsrickettsSubAccountListRequestV2 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 NewDdidnsrickettsSubAccountListRequestV2WithDefaults() *DdidnsrickettsSubAccountListRequestV2 { + this := DdidnsrickettsSubAccountListRequestV2{} + return &this +} + +// GetAccessType returns the AccessType field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountListRequestV2) GetAccessType() string { + if o == nil || IsNil(o.AccessType) { + var ret string + return ret + } + return *o.AccessType +} + +// GetAccessTypeOk returns a tuple with the AccessType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) GetAccessTypeOk() (*string, bool) { + if o == nil || IsNil(o.AccessType) { + return nil, false + } + return o.AccessType, true +} + +// HasAccessType returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) HasAccessType() bool { + if o != nil && !IsNil(o.AccessType) { + return true + } + + return false +} + +// SetAccessType gets a reference to the given string and assigns it to the AccessType field. +func (o *DdidnsrickettsSubAccountListRequestV2) SetAccessType(v string) { + o.AccessType = &v +} + +// GetCredentialId returns the CredentialId field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountListRequestV2) GetCredentialId() string { + if o == nil || IsNil(o.CredentialId) { + var ret string + return ret + } + return *o.CredentialId +} + +// GetCredentialIdOk returns a tuple with the CredentialId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) GetCredentialIdOk() (*string, bool) { + if o == nil || IsNil(o.CredentialId) { + return nil, false + } + return o.CredentialId, true +} + +// HasCredentialId returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) HasCredentialId() bool { + if o != nil && !IsNil(o.CredentialId) { + return true + } + + return false +} + +// SetCredentialId gets a reference to the given string and assigns it to the CredentialId field. +func (o *DdidnsrickettsSubAccountListRequestV2) SetCredentialId(v string) { + o.CredentialId = &v +} + +// GetFields returns the Fields field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountListRequestV2) GetFields() string { + if o == nil || IsNil(o.Fields) { + var ret string + return ret + } + return *o.Fields +} + +// GetFieldsOk returns a tuple with the Fields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) GetFieldsOk() (*string, bool) { + if o == nil || IsNil(o.Fields) { + return nil, false + } + return o.Fields, true +} + +// HasFields returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) HasFields() bool { + if o != nil && !IsNil(o.Fields) { + return true + } + + return false +} + +// SetFields gets a reference to the given string and assigns it to the Fields field. +func (o *DdidnsrickettsSubAccountListRequestV2) SetFields(v string) { + o.Fields = &v +} + +// GetProviderCredentialsConfig returns the ProviderCredentialsConfig field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderCredentialsConfig() DdidnsrickettsSubAccountProvCredConfig { + if o == nil || IsNil(o.ProviderCredentialsConfig) { + var ret DdidnsrickettsSubAccountProvCredConfig + return ret + } + return *o.ProviderCredentialsConfig +} + +// GetProviderCredentialsConfigOk returns a tuple with the ProviderCredentialsConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderCredentialsConfigOk() (*DdidnsrickettsSubAccountProvCredConfig, bool) { + if o == nil || IsNil(o.ProviderCredentialsConfig) { + return nil, false + } + return o.ProviderCredentialsConfig, true +} + +// HasProviderCredentialsConfig returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) HasProviderCredentialsConfig() bool { + if o != nil && !IsNil(o.ProviderCredentialsConfig) { + return true + } + + return false +} + +// SetProviderCredentialsConfig gets a reference to the given DdidnsrickettsSubAccountProvCredConfig and assigns it to the ProviderCredentialsConfig field. +func (o *DdidnsrickettsSubAccountListRequestV2) SetProviderCredentialsConfig(v DdidnsrickettsSubAccountProvCredConfig) { + o.ProviderCredentialsConfig = &v +} + +// GetProviderType returns the ProviderType field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderType() string { + if o == nil || IsNil(o.ProviderType) { + var ret string + return ret + } + return *o.ProviderType +} + +// GetProviderTypeOk returns a tuple with the ProviderType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) GetProviderTypeOk() (*string, bool) { + if o == nil || IsNil(o.ProviderType) { + return nil, false + } + return o.ProviderType, true +} + +// HasProviderType returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountListRequestV2) HasProviderType() bool { + if o != nil && !IsNil(o.ProviderType) { + return true + } + + return false +} + +// SetProviderType gets a reference to the given string and assigns it to the ProviderType field. +func (o *DdidnsrickettsSubAccountListRequestV2) SetProviderType(v string) { + o.ProviderType = &v +} + +func (o DdidnsrickettsSubAccountListRequestV2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsSubAccountListRequestV2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccessType) { + toSerialize["access_type"] = o.AccessType + } + if !IsNil(o.CredentialId) { + toSerialize["credential_id"] = o.CredentialId + } + if !IsNil(o.Fields) { + toSerialize["fields"] = o.Fields + } + if !IsNil(o.ProviderCredentialsConfig) { + toSerialize["provider_credentials_config"] = o.ProviderCredentialsConfig + } + if !IsNil(o.ProviderType) { + toSerialize["provider_type"] = o.ProviderType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsSubAccountListRequestV2) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsSubAccountListRequestV2 := _DdidnsrickettsSubAccountListRequestV2{} + + err = json.Unmarshal(data, &varDdidnsrickettsSubAccountListRequestV2) + + if err != nil { + return err + } + + *o = DdidnsrickettsSubAccountListRequestV2(varDdidnsrickettsSubAccountListRequestV2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "access_type") + delete(additionalProperties, "credential_id") + delete(additionalProperties, "fields") + delete(additionalProperties, "provider_credentials_config") + delete(additionalProperties, "provider_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsSubAccountListRequestV2 struct { + value *DdidnsrickettsSubAccountListRequestV2 + isSet bool +} + +func (v NullableDdidnsrickettsSubAccountListRequestV2) Get() *DdidnsrickettsSubAccountListRequestV2 { + return v.value +} + +func (v *NullableDdidnsrickettsSubAccountListRequestV2) Set(val *DdidnsrickettsSubAccountListRequestV2) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsSubAccountListRequestV2) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsSubAccountListRequestV2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsSubAccountListRequestV2(val *DdidnsrickettsSubAccountListRequestV2) *NullableDdidnsrickettsSubAccountListRequestV2 { + return &NullableDdidnsrickettsSubAccountListRequestV2{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsSubAccountListRequestV2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsSubAccountListRequestV2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_sub_account_list_response_v2.go b/clouddiscovery/model_ddidnsricketts_sub_account_list_response_v2.go new file mode 100644 index 0000000..258d94c --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_sub_account_list_response_v2.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsSubAccountListResponseV2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsSubAccountListResponseV2{} + +// DdidnsrickettsSubAccountListResponseV2 struct for DdidnsrickettsSubAccountListResponseV2 +type DdidnsrickettsSubAccountListResponseV2 struct { + Page *ApiPageInfo `json:"page,omitempty"` + Results []DdidnsrickettsSubAccountV2 `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsSubAccountListResponseV2 DdidnsrickettsSubAccountListResponseV2 + +// NewDdidnsrickettsSubAccountListResponseV2 instantiates a new DdidnsrickettsSubAccountListResponseV2 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 NewDdidnsrickettsSubAccountListResponseV2() *DdidnsrickettsSubAccountListResponseV2 { + this := DdidnsrickettsSubAccountListResponseV2{} + return &this +} + +// NewDdidnsrickettsSubAccountListResponseV2WithDefaults instantiates a new DdidnsrickettsSubAccountListResponseV2 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 NewDdidnsrickettsSubAccountListResponseV2WithDefaults() *DdidnsrickettsSubAccountListResponseV2 { + this := DdidnsrickettsSubAccountListResponseV2{} + return &this +} + +// GetPage returns the Page field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountListResponseV2) GetPage() ApiPageInfo { + if o == nil || IsNil(o.Page) { + var ret ApiPageInfo + return ret + } + return *o.Page +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountListResponseV2) GetPageOk() (*ApiPageInfo, bool) { + if o == nil || IsNil(o.Page) { + return nil, false + } + return o.Page, true +} + +// HasPage returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountListResponseV2) HasPage() bool { + if o != nil && !IsNil(o.Page) { + return true + } + + return false +} + +// SetPage gets a reference to the given ApiPageInfo and assigns it to the Page field. +func (o *DdidnsrickettsSubAccountListResponseV2) SetPage(v ApiPageInfo) { + o.Page = &v +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountListResponseV2) GetResults() []DdidnsrickettsSubAccountV2 { + if o == nil || IsNil(o.Results) { + var ret []DdidnsrickettsSubAccountV2 + return ret + } + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountListResponseV2) GetResultsOk() ([]DdidnsrickettsSubAccountV2, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountListResponseV2) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []DdidnsrickettsSubAccountV2 and assigns it to the Results field. +func (o *DdidnsrickettsSubAccountListResponseV2) SetResults(v []DdidnsrickettsSubAccountV2) { + o.Results = v +} + +func (o DdidnsrickettsSubAccountListResponseV2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsSubAccountListResponseV2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Page) { + toSerialize["page"] = o.Page + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsSubAccountListResponseV2) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsSubAccountListResponseV2 := _DdidnsrickettsSubAccountListResponseV2{} + + err = json.Unmarshal(data, &varDdidnsrickettsSubAccountListResponseV2) + + if err != nil { + return err + } + + *o = DdidnsrickettsSubAccountListResponseV2(varDdidnsrickettsSubAccountListResponseV2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "page") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsSubAccountListResponseV2 struct { + value *DdidnsrickettsSubAccountListResponseV2 + isSet bool +} + +func (v NullableDdidnsrickettsSubAccountListResponseV2) Get() *DdidnsrickettsSubAccountListResponseV2 { + return v.value +} + +func (v *NullableDdidnsrickettsSubAccountListResponseV2) Set(val *DdidnsrickettsSubAccountListResponseV2) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsSubAccountListResponseV2) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsSubAccountListResponseV2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsSubAccountListResponseV2(val *DdidnsrickettsSubAccountListResponseV2) *NullableDdidnsrickettsSubAccountListResponseV2 { + return &NullableDdidnsrickettsSubAccountListResponseV2{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsSubAccountListResponseV2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsSubAccountListResponseV2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_sub_account_prov_cred_config.go b/clouddiscovery/model_ddidnsricketts_sub_account_prov_cred_config.go new file mode 100644 index 0000000..877c818 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_sub_account_prov_cred_config.go @@ -0,0 +1,227 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsSubAccountProvCredConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsSubAccountProvCredConfig{} + +// DdidnsrickettsSubAccountProvCredConfig struct for DdidnsrickettsSubAccountProvCredConfig +type DdidnsrickettsSubAccountProvCredConfig struct { + ProjectId *string `json:"project_id,omitempty"` + RoleArn *string `json:"role_arn,omitempty"` + TenantId *string `json:"tenant_id,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsSubAccountProvCredConfig DdidnsrickettsSubAccountProvCredConfig + +// NewDdidnsrickettsSubAccountProvCredConfig instantiates a new DdidnsrickettsSubAccountProvCredConfig 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 NewDdidnsrickettsSubAccountProvCredConfig() *DdidnsrickettsSubAccountProvCredConfig { + this := DdidnsrickettsSubAccountProvCredConfig{} + return &this +} + +// NewDdidnsrickettsSubAccountProvCredConfigWithDefaults instantiates a new DdidnsrickettsSubAccountProvCredConfig 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 NewDdidnsrickettsSubAccountProvCredConfigWithDefaults() *DdidnsrickettsSubAccountProvCredConfig { + this := DdidnsrickettsSubAccountProvCredConfig{} + return &this +} + +// GetProjectId returns the ProjectId field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountProvCredConfig) GetProjectId() string { + if o == nil || IsNil(o.ProjectId) { + var ret string + return ret + } + return *o.ProjectId +} + +// GetProjectIdOk returns a tuple with the ProjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountProvCredConfig) GetProjectIdOk() (*string, bool) { + if o == nil || IsNil(o.ProjectId) { + return nil, false + } + return o.ProjectId, true +} + +// HasProjectId returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountProvCredConfig) HasProjectId() bool { + if o != nil && !IsNil(o.ProjectId) { + return true + } + + return false +} + +// SetProjectId gets a reference to the given string and assigns it to the ProjectId field. +func (o *DdidnsrickettsSubAccountProvCredConfig) SetProjectId(v string) { + o.ProjectId = &v +} + +// GetRoleArn returns the RoleArn field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountProvCredConfig) GetRoleArn() string { + if o == nil || IsNil(o.RoleArn) { + var ret string + return ret + } + return *o.RoleArn +} + +// GetRoleArnOk returns a tuple with the RoleArn field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountProvCredConfig) GetRoleArnOk() (*string, bool) { + if o == nil || IsNil(o.RoleArn) { + return nil, false + } + return o.RoleArn, true +} + +// HasRoleArn returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountProvCredConfig) HasRoleArn() bool { + if o != nil && !IsNil(o.RoleArn) { + return true + } + + return false +} + +// SetRoleArn gets a reference to the given string and assigns it to the RoleArn field. +func (o *DdidnsrickettsSubAccountProvCredConfig) SetRoleArn(v string) { + o.RoleArn = &v +} + +// GetTenantId returns the TenantId field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountProvCredConfig) GetTenantId() string { + if o == nil || IsNil(o.TenantId) { + var ret string + return ret + } + return *o.TenantId +} + +// GetTenantIdOk returns a tuple with the TenantId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountProvCredConfig) GetTenantIdOk() (*string, bool) { + if o == nil || IsNil(o.TenantId) { + return nil, false + } + return o.TenantId, true +} + +// HasTenantId returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountProvCredConfig) HasTenantId() bool { + if o != nil && !IsNil(o.TenantId) { + return true + } + + return false +} + +// SetTenantId gets a reference to the given string and assigns it to the TenantId field. +func (o *DdidnsrickettsSubAccountProvCredConfig) SetTenantId(v string) { + o.TenantId = &v +} + +func (o DdidnsrickettsSubAccountProvCredConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsSubAccountProvCredConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ProjectId) { + toSerialize["project_id"] = o.ProjectId + } + if !IsNil(o.RoleArn) { + toSerialize["role_arn"] = o.RoleArn + } + if !IsNil(o.TenantId) { + toSerialize["tenant_id"] = o.TenantId + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsSubAccountProvCredConfig) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsSubAccountProvCredConfig := _DdidnsrickettsSubAccountProvCredConfig{} + + err = json.Unmarshal(data, &varDdidnsrickettsSubAccountProvCredConfig) + + if err != nil { + return err + } + + *o = DdidnsrickettsSubAccountProvCredConfig(varDdidnsrickettsSubAccountProvCredConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "project_id") + delete(additionalProperties, "role_arn") + delete(additionalProperties, "tenant_id") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsSubAccountProvCredConfig struct { + value *DdidnsrickettsSubAccountProvCredConfig + isSet bool +} + +func (v NullableDdidnsrickettsSubAccountProvCredConfig) Get() *DdidnsrickettsSubAccountProvCredConfig { + return v.value +} + +func (v *NullableDdidnsrickettsSubAccountProvCredConfig) Set(val *DdidnsrickettsSubAccountProvCredConfig) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsSubAccountProvCredConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsSubAccountProvCredConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsSubAccountProvCredConfig(val *DdidnsrickettsSubAccountProvCredConfig) *NullableDdidnsrickettsSubAccountProvCredConfig { + return &NullableDdidnsrickettsSubAccountProvCredConfig{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsSubAccountProvCredConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsSubAccountProvCredConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/model_ddidnsricketts_sub_account_v2.go b/clouddiscovery/model_ddidnsricketts_sub_account_v2.go new file mode 100644 index 0000000..5ff7c38 --- /dev/null +++ b/clouddiscovery/model_ddidnsricketts_sub_account_v2.go @@ -0,0 +1,190 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" +) + +// checks if the DdidnsrickettsSubAccountV2 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DdidnsrickettsSubAccountV2{} + +// DdidnsrickettsSubAccountV2 struct for DdidnsrickettsSubAccountV2 +type DdidnsrickettsSubAccountV2 struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DdidnsrickettsSubAccountV2 DdidnsrickettsSubAccountV2 + +// NewDdidnsrickettsSubAccountV2 instantiates a new DdidnsrickettsSubAccountV2 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 NewDdidnsrickettsSubAccountV2() *DdidnsrickettsSubAccountV2 { + this := DdidnsrickettsSubAccountV2{} + return &this +} + +// NewDdidnsrickettsSubAccountV2WithDefaults instantiates a new DdidnsrickettsSubAccountV2 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 NewDdidnsrickettsSubAccountV2WithDefaults() *DdidnsrickettsSubAccountV2 { + this := DdidnsrickettsSubAccountV2{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountV2) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountV2) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountV2) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *DdidnsrickettsSubAccountV2) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *DdidnsrickettsSubAccountV2) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DdidnsrickettsSubAccountV2) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *DdidnsrickettsSubAccountV2) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *DdidnsrickettsSubAccountV2) SetName(v string) { + o.Name = &v +} + +func (o DdidnsrickettsSubAccountV2) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DdidnsrickettsSubAccountV2) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DdidnsrickettsSubAccountV2) UnmarshalJSON(data []byte) (err error) { + varDdidnsrickettsSubAccountV2 := _DdidnsrickettsSubAccountV2{} + + err = json.Unmarshal(data, &varDdidnsrickettsSubAccountV2) + + if err != nil { + return err + } + + *o = DdidnsrickettsSubAccountV2(varDdidnsrickettsSubAccountV2) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDdidnsrickettsSubAccountV2 struct { + value *DdidnsrickettsSubAccountV2 + isSet bool +} + +func (v NullableDdidnsrickettsSubAccountV2) Get() *DdidnsrickettsSubAccountV2 { + return v.value +} + +func (v *NullableDdidnsrickettsSubAccountV2) Set(val *DdidnsrickettsSubAccountV2) { + v.value = val + v.isSet = true +} + +func (v NullableDdidnsrickettsSubAccountV2) IsSet() bool { + return v.isSet +} + +func (v *NullableDdidnsrickettsSubAccountV2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDdidnsrickettsSubAccountV2(val *DdidnsrickettsSubAccountV2) *NullableDdidnsrickettsSubAccountV2 { + return &NullableDdidnsrickettsSubAccountV2{value: val, isSet: true} +} + +func (v NullableDdidnsrickettsSubAccountV2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDdidnsrickettsSubAccountV2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/clouddiscovery/test/api_accounts_test.go b/clouddiscovery/test/api_accounts_test.go new file mode 100644 index 0000000..1a0a323 --- /dev/null +++ b/clouddiscovery/test/api_accounts_test.go @@ -0,0 +1,38 @@ +/* +Discovery Configuration API V2 + +Testing AccountsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package clouddiscovery + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func TestAccountsAPIService(t *testing.T) { + + apiClient := clouddiscovery.NewAPIClient() + + t.Run("Test AccountsAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AccountsAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clouddiscovery/test/api_providers_test.go b/clouddiscovery/test/api_providers_test.go new file mode 100644 index 0000000..0f22761 --- /dev/null +++ b/clouddiscovery/test/api_providers_test.go @@ -0,0 +1,91 @@ +/* +Discovery Configuration API V2 + +Testing ProvidersAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package clouddiscovery + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func TestProvidersAPIService(t *testing.T) { + + apiClient := clouddiscovery.NewAPIClient() + + t.Run("Test ProvidersAPIService Create", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ProvidersAPI.Create(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvidersAPIService Delete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.ProvidersAPI.Delete(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvidersAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ProvidersAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvidersAPIService Read", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.ProvidersAPI.Read(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvidersAPIService Update", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.ProvidersAPI.Update(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clouddiscovery/test/api_sub_accounts_test.go b/clouddiscovery/test/api_sub_accounts_test.go new file mode 100644 index 0000000..0effe9a --- /dev/null +++ b/clouddiscovery/test/api_sub_accounts_test.go @@ -0,0 +1,38 @@ +/* +Discovery Configuration API V2 + +Testing SubAccountsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package clouddiscovery + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/clouddiscovery" +) + +func TestSubAccountsAPIService(t *testing.T) { + + apiClient := clouddiscovery.NewAPIClient() + + t.Run("Test SubAccountsAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SubAccountsAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clouddiscovery/utils.go b/clouddiscovery/utils.go new file mode 100644 index 0000000..9939f29 --- /dev/null +++ b/clouddiscovery/utils.go @@ -0,0 +1,347 @@ +/* +Discovery Configuration API V2 + +The Discovery configuration service is a BloxOne Service that provides configuration for accessing and syncing the Cloud assets Base Paths: 1. provider: **_/api/cloud_discovery/v2/_** + +API version: v2 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package clouddiscovery + +import ( + "encoding/json" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +}