diff --git a/client/client.go b/client/client.go index a68782d..c16c908 100644 --- a/client/client.go +++ b/client/client.go @@ -9,6 +9,7 @@ import ( "github.com/infobloxopen/bloxone-go-client/inframgmt" "github.com/infobloxopen/bloxone-go-client/infraprovision" "github.com/infobloxopen/bloxone-go-client/ipam" + "github.com/infobloxopen/bloxone-go-client/ipamfederation" "github.com/infobloxopen/bloxone-go-client/keys" "github.com/infobloxopen/bloxone-go-client/option" "github.com/infobloxopen/bloxone-go-client/redirect" @@ -18,6 +19,7 @@ import ( // APIClient is an aggregation of different BloxOne API clients. type APIClient struct { IPAddressManagementAPI *ipam.APIClient + IPAMFederationAPI *ipamfederation.APIClient DNSConfigurationAPI *dnsconfig.APIClient DNSDataAPI *dnsdata.APIClient HostActivationAPI *infraprovision.APIClient @@ -34,6 +36,7 @@ type APIClient struct { // This is an aggregation of different BloxOne API clients. // The following clients are available: // - IPAddressManagementAPI +// - IpamFederatonAPI // - DNSConfigurationAPI // - DNSDataAPI // - HostActivationAPI @@ -54,6 +57,7 @@ type APIClient struct { func NewAPIClient(options ...option.ClientOption) *APIClient { return &APIClient{ IPAddressManagementAPI: ipam.NewAPIClient(options...), + IPAMFederationAPI: ipamfederation.NewAPIClient(options...), DNSConfigurationAPI: dnsconfig.NewAPIClient(options...), DNSDataAPI: dnsdata.NewAPIClient(options...), HostActivationAPI: infraprovision.NewAPIClient(options...), diff --git a/ipamfederation/.openapi-generator-ignore b/ipamfederation/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/ipamfederation/.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/ipamfederation/.openapi-generator/FILES b/ipamfederation/.openapi-generator/FILES new file mode 100644 index 0000000..f3173fc --- /dev/null +++ b/ipamfederation/.openapi-generator/FILES @@ -0,0 +1,130 @@ +.openapi-generator-ignore +README.md +api/openapi.yaml +api_bulk.go +api_config_gen.go +api_delegation.go +api_federated_block.go +api_federated_realm.go +api_next_available_delegation.go +api_next_available_federated_block.go +api_next_available_overlapping_block.go +api_next_available_reserved_block.go +api_overlapping_block.go +api_reserved_block.go +client.go +docs/BulkAPI.md +docs/ConfigGenAPI.md +docs/DelegationAPI.md +docs/FederatedBlockAPI.md +docs/FederatedRealmAPI.md +docs/FederationAllocation.md +docs/FederationConfigObject.md +docs/FederationCreateDelegationResponse.md +docs/FederationCreateFederatedBlockResponse.md +docs/FederationCreateFederatedRealmResponse.md +docs/FederationCreateNextAvailableFederatedBlockResponse.md +docs/FederationCreateNextAvailableOverlappingBlockResponse.md +docs/FederationCreateNextAvailableReservedBlockResponse.md +docs/FederationCreateOverlappingBlockResponse.md +docs/FederationCreateReservedBlockResponse.md +docs/FederationDelegation.md +docs/FederationDelegationBulkItem.md +docs/FederationDelegationBulkRequest.md +docs/FederationDelegationBulkResponse.md +docs/FederationFederatedBlock.md +docs/FederationFederatedRealm.md +docs/FederationGenerateConfigBundleResponse.md +docs/FederationGetNextAvailableDelegationRequest.md +docs/FederationGetNextAvailableDelegationResponse.md +docs/FederationHealthCheckConfigResponse.md +docs/FederationHealthConfig.md +docs/FederationListDelegationResponse.md +docs/FederationListFederatedBlockResponse.md +docs/FederationListFederatedRealmResponse.md +docs/FederationListNextAvailableFederatedBlockResponse.md +docs/FederationListNextAvailableOverlappingBlockResponse.md +docs/FederationListNextAvailableReservedBlockResponse.md +docs/FederationListOverlappingBlockResponse.md +docs/FederationListReservedBlockResponse.md +docs/FederationNextAvailableBlockRequest.md +docs/FederationNextAvailableDelegationArguments.md +docs/FederationNextAvailableDelegationProperties.md +docs/FederationOverlappingBlock.md +docs/FederationReadDelegationResponse.md +docs/FederationReadFederatedBlockResponse.md +docs/FederationReadFederatedRealmResponse.md +docs/FederationReadOverlappingBlockResponse.md +docs/FederationReadReservedBlockResponse.md +docs/FederationReservedBlock.md +docs/FederationUpdateDelegationResponse.md +docs/FederationUpdateFederatedBlockResponse.md +docs/FederationUpdateFederatedRealmResponse.md +docs/FederationUpdateOverlappingBlockResponse.md +docs/FederationUpdateReservedBlockResponse.md +docs/HealthConfigStatusCode.md +docs/NextAvailableDelegationAPI.md +docs/NextAvailableFederatedBlockAPI.md +docs/NextAvailableOverlappingBlockAPI.md +docs/NextAvailableReservedBlockAPI.md +docs/OverlappingBlockAPI.md +docs/ProtobufFieldMask.md +docs/ReservedBlockAPI.md +model_federation_allocation.go +model_federation_config_object.go +model_federation_create_delegation_response.go +model_federation_create_federated_block_response.go +model_federation_create_federated_realm_response.go +model_federation_create_next_available_federated_block_response.go +model_federation_create_next_available_overlapping_block_response.go +model_federation_create_next_available_reserved_block_response.go +model_federation_create_overlapping_block_response.go +model_federation_create_reserved_block_response.go +model_federation_delegation.go +model_federation_delegation_bulk_item.go +model_federation_delegation_bulk_request.go +model_federation_delegation_bulk_response.go +model_federation_federated_block.go +model_federation_federated_realm.go +model_federation_generate_config_bundle_response.go +model_federation_get_next_available_delegation_request.go +model_federation_get_next_available_delegation_response.go +model_federation_health_check_config_response.go +model_federation_health_config.go +model_federation_list_delegation_response.go +model_federation_list_federated_block_response.go +model_federation_list_federated_realm_response.go +model_federation_list_next_available_federated_block_response.go +model_federation_list_next_available_overlapping_block_response.go +model_federation_list_next_available_reserved_block_response.go +model_federation_list_overlapping_block_response.go +model_federation_list_reserved_block_response.go +model_federation_next_available_block_request.go +model_federation_next_available_delegation_arguments.go +model_federation_next_available_delegation_properties.go +model_federation_overlapping_block.go +model_federation_read_delegation_response.go +model_federation_read_federated_block_response.go +model_federation_read_federated_realm_response.go +model_federation_read_overlapping_block_response.go +model_federation_read_reserved_block_response.go +model_federation_reserved_block.go +model_federation_update_delegation_response.go +model_federation_update_federated_block_response.go +model_federation_update_federated_realm_response.go +model_federation_update_overlapping_block_response.go +model_federation_update_reserved_block_response.go +model_health_config_status_code.go +model_protobuf_field_mask.go +test/api_bulk_test.go +test/api_config_gen_test.go +test/api_delegation_test.go +test/api_federated_block_test.go +test/api_federated_realm_test.go +test/api_next_available_delegation_test.go +test/api_next_available_federated_block_test.go +test/api_next_available_overlapping_block_test.go +test/api_next_available_reserved_block_test.go +test/api_overlapping_block_test.go +test/api_reserved_block_test.go +utils.go diff --git a/ipamfederation/.openapi-generator/VERSION b/ipamfederation/.openapi-generator/VERSION new file mode 100644 index 0000000..18bb418 --- /dev/null +++ b/ipamfederation/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.5.0 diff --git a/ipamfederation/README.md b/ipamfederation/README.md new file mode 100644 index 0000000..2da6112 --- /dev/null +++ b/ipamfederation/README.md @@ -0,0 +1,193 @@ +# Go API client for IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + + + +## 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: v1 +- 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/ipamfederation +``` + +Import the package into your code: +```go +import "github.com/infobloxopen/bloxone-go-client/ipamfederation" +``` + +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 := ipamfederation.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 := ipamfederation.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 := ipamfederation.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 IPAM Federation API. 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 IPAM Federation API, you can use the `option.WithAPIKey` option. For example: + +```go +client := ipamfederation.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 := ipamfederation.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 */api/ddi/v1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*BulkAPI* | [**DelegationbulkDelegationBulk**](docs/BulkAPI.md#delegationbulkdelegationbulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. +*ConfigGenAPI* | [**Fetch**](docs/ConfigGenAPI.md#fetch) | **Get** /federation/policy/config/{ophid}/latest | +*ConfigGenAPI* | [**UpdateConfigStatus**](docs/ConfigGenAPI.md#updateconfigstatus) | **Post** /federation/policy/config_status | +*DelegationAPI* | [**Create**](docs/DelegationAPI.md#create) | **Post** /federation/delegation | Create the delegation. +*DelegationAPI* | [**Delete**](docs/DelegationAPI.md#delete) | **Delete** /federation/delegation/{id} | Delete the delegation. +*DelegationAPI* | [**DeleteWithoutId**](docs/DelegationAPI.md#deletewithoutid) | **Delete** /federation/delegation | No-op DELETE Delegation operation. +*DelegationAPI* | [**List**](docs/DelegationAPI.md#list) | **Get** /federation/delegation | Retrieve the delegation. +*DelegationAPI* | [**Read**](docs/DelegationAPI.md#read) | **Get** /federation/delegation/{id} | Retrieve the delegation. +*DelegationAPI* | [**Update**](docs/DelegationAPI.md#update) | **Patch** /federation/delegation/{id} | Update the delegation. +*DelegationAPI* | [**bulkDelegationBulk**](docs/DelegationAPI.md#bulkdelegationbulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. +*FederatedBlockAPI* | [**Create**](docs/FederatedBlockAPI.md#create) | **Post** /federation/federated_block | Create the federated block. +*FederatedBlockAPI* | [**Delete**](docs/FederatedBlockAPI.md#delete) | **Delete** /federation/federated_block/{id} | Delete the federated block. +*FederatedBlockAPI* | [**List**](docs/FederatedBlockAPI.md#list) | **Get** /federation/federated_block | Retrieve the federated blocks. +*FederatedBlockAPI* | [**Read**](docs/FederatedBlockAPI.md#read) | **Get** /federation/federated_block/{id} | Retrieve the federated block. +*FederatedBlockAPI* | [**Update**](docs/FederatedBlockAPI.md#update) | **Patch** /federation/federated_block/{id} | Update the federated block. +*FederatedRealmAPI* | [**Create**](docs/FederatedRealmAPI.md#create) | **Post** /federation/federated_realm | Create the federated realm. +*FederatedRealmAPI* | [**Delete**](docs/FederatedRealmAPI.md#delete) | **Delete** /federation/federated_realm/{id} | Delete federated realm. +*FederatedRealmAPI* | [**List**](docs/FederatedRealmAPI.md#list) | **Get** /federation/federated_realm | Retrieve federated realms. +*FederatedRealmAPI* | [**Read**](docs/FederatedRealmAPI.md#read) | **Get** /federation/federated_realm/{id} | Retrieve the federated realm. +*FederatedRealmAPI* | [**Update**](docs/FederatedRealmAPI.md#update) | **Patch** /federation/federated_realm/{id} | Update the federated realm. +*NextAvailableDelegationAPI* | [**GetNextAvailableDelegation**](docs/NextAvailableDelegationAPI.md#getnextavailabledelegation) | **Post** /federation/next_available_delegation | Retrieve the next available delegation. +*NextAvailableFederatedBlockAPI* | [**CreateNextAvailableFederatedBlocks**](docs/NextAvailableFederatedBlockAPI.md#createnextavailablefederatedblocks) | **Post** /federation/federated_block/{id}/next_available_federated_block | Retrieve the next available federated block. +*NextAvailableFederatedBlockAPI* | [**CreateNextAvailableOverlappingBlocks**](docs/NextAvailableFederatedBlockAPI.md#createnextavailableoverlappingblocks) | **Post** /federation/federated_block/{id}/next_available_overlapping_block | Retrieve the next available overlapping block. +*NextAvailableFederatedBlockAPI* | [**CreateNextAvailableReservedBlocks**](docs/NextAvailableFederatedBlockAPI.md#createnextavailablereservedblocks) | **Post** /federation/federated_block/{id}/next_available_reserved_block | Retrieve the next available reserved block. +*NextAvailableFederatedBlockAPI* | [**ListNextAvailableFederatedBlocks**](docs/NextAvailableFederatedBlockAPI.md#listnextavailablefederatedblocks) | **Get** /federation/federated_block/{id}/next_available_federated_block | List the next available federated block. +*NextAvailableOverlappingBlockAPI* | [**ListNextAvailableOverlappingBlocks**](docs/NextAvailableOverlappingBlockAPI.md#listnextavailableoverlappingblocks) | **Get** /federation/federated_block/{id}/next_available_overlapping_block | List the next available overlapping block. +*NextAvailableReservedBlockAPI* | [**ListNextAvailableReservedBlocks**](docs/NextAvailableReservedBlockAPI.md#listnextavailablereservedblocks) | **Get** /federation/federated_block/{id}/next_available_reserved_block | List the next available reserved block. +*OverlappingBlockAPI* | [**Create**](docs/OverlappingBlockAPI.md#create) | **Post** /federation/overlapping_block | Create the overlapping block. +*OverlappingBlockAPI* | [**Delete**](docs/OverlappingBlockAPI.md#delete) | **Delete** /federation/overlapping_block/{id} | Delete the overlapping block. +*OverlappingBlockAPI* | [**List**](docs/OverlappingBlockAPI.md#list) | **Get** /federation/overlapping_block | Retrieve the overlapping block. +*OverlappingBlockAPI* | [**Read**](docs/OverlappingBlockAPI.md#read) | **Get** /federation/overlapping_block/{id} | Retrieve the overlapping block. +*OverlappingBlockAPI* | [**Update**](docs/OverlappingBlockAPI.md#update) | **Patch** /federation/overlapping_block/{id} | Update the overlapping block. +*ReservedBlockAPI* | [**Create**](docs/ReservedBlockAPI.md#create) | **Post** /federation/reserved_block | Create the reserved block. +*ReservedBlockAPI* | [**Delete**](docs/ReservedBlockAPI.md#delete) | **Delete** /federation/reserved_block/{id} | Delete the reserved block. +*ReservedBlockAPI* | [**List**](docs/ReservedBlockAPI.md#list) | **Get** /federation/reserved_block | Retrieve the reserved block. +*ReservedBlockAPI* | [**Read**](docs/ReservedBlockAPI.md#read) | **Get** /federation/reserved_block/{id} | Retrieve the reserved block. +*ReservedBlockAPI* | [**Update**](docs/ReservedBlockAPI.md#update) | **Patch** /federation/reserved_block/{id} | Update the reserved block. + + +## Documentation For Models + + - [FederationAllocation](docs/FederationAllocation.md) + - [FederationConfigObject](docs/FederationConfigObject.md) + - [FederationCreateDelegationResponse](docs/FederationCreateDelegationResponse.md) + - [FederationCreateFederatedBlockResponse](docs/FederationCreateFederatedBlockResponse.md) + - [FederationCreateFederatedRealmResponse](docs/FederationCreateFederatedRealmResponse.md) + - [FederationCreateNextAvailableFederatedBlockResponse](docs/FederationCreateNextAvailableFederatedBlockResponse.md) + - [FederationCreateNextAvailableOverlappingBlockResponse](docs/FederationCreateNextAvailableOverlappingBlockResponse.md) + - [FederationCreateNextAvailableReservedBlockResponse](docs/FederationCreateNextAvailableReservedBlockResponse.md) + - [FederationCreateOverlappingBlockResponse](docs/FederationCreateOverlappingBlockResponse.md) + - [FederationCreateReservedBlockResponse](docs/FederationCreateReservedBlockResponse.md) + - [FederationDelegation](docs/FederationDelegation.md) + - [FederationDelegationBulkItem](docs/FederationDelegationBulkItem.md) + - [FederationDelegationBulkRequest](docs/FederationDelegationBulkRequest.md) + - [FederationDelegationBulkResponse](docs/FederationDelegationBulkResponse.md) + - [FederationFederatedBlock](docs/FederationFederatedBlock.md) + - [FederationFederatedRealm](docs/FederationFederatedRealm.md) + - [FederationGenerateConfigBundleResponse](docs/FederationGenerateConfigBundleResponse.md) + - [FederationGetNextAvailableDelegationRequest](docs/FederationGetNextAvailableDelegationRequest.md) + - [FederationGetNextAvailableDelegationResponse](docs/FederationGetNextAvailableDelegationResponse.md) + - [FederationHealthCheckConfigResponse](docs/FederationHealthCheckConfigResponse.md) + - [FederationHealthConfig](docs/FederationHealthConfig.md) + - [FederationListDelegationResponse](docs/FederationListDelegationResponse.md) + - [FederationListFederatedBlockResponse](docs/FederationListFederatedBlockResponse.md) + - [FederationListFederatedRealmResponse](docs/FederationListFederatedRealmResponse.md) + - [FederationListNextAvailableFederatedBlockResponse](docs/FederationListNextAvailableFederatedBlockResponse.md) + - [FederationListNextAvailableOverlappingBlockResponse](docs/FederationListNextAvailableOverlappingBlockResponse.md) + - [FederationListNextAvailableReservedBlockResponse](docs/FederationListNextAvailableReservedBlockResponse.md) + - [FederationListOverlappingBlockResponse](docs/FederationListOverlappingBlockResponse.md) + - [FederationListReservedBlockResponse](docs/FederationListReservedBlockResponse.md) + - [FederationNextAvailableBlockRequest](docs/FederationNextAvailableBlockRequest.md) + - [FederationNextAvailableDelegationArguments](docs/FederationNextAvailableDelegationArguments.md) + - [FederationNextAvailableDelegationProperties](docs/FederationNextAvailableDelegationProperties.md) + - [FederationOverlappingBlock](docs/FederationOverlappingBlock.md) + - [FederationReadDelegationResponse](docs/FederationReadDelegationResponse.md) + - [FederationReadFederatedBlockResponse](docs/FederationReadFederatedBlockResponse.md) + - [FederationReadFederatedRealmResponse](docs/FederationReadFederatedRealmResponse.md) + - [FederationReadOverlappingBlockResponse](docs/FederationReadOverlappingBlockResponse.md) + - [FederationReadReservedBlockResponse](docs/FederationReadReservedBlockResponse.md) + - [FederationReservedBlock](docs/FederationReservedBlock.md) + - [FederationUpdateDelegationResponse](docs/FederationUpdateDelegationResponse.md) + - [FederationUpdateFederatedBlockResponse](docs/FederationUpdateFederatedBlockResponse.md) + - [FederationUpdateFederatedRealmResponse](docs/FederationUpdateFederatedRealmResponse.md) + - [FederationUpdateOverlappingBlockResponse](docs/FederationUpdateOverlappingBlockResponse.md) + - [FederationUpdateReservedBlockResponse](docs/FederationUpdateReservedBlockResponse.md) + - [HealthConfigStatusCode](docs/HealthConfigStatusCode.md) + - [ProtobufFieldMask](docs/ProtobufFieldMask.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/ipamfederation/api/openapi.yaml b/ipamfederation/api/openapi.yaml new file mode 100644 index 0000000..0f0d2a5 --- /dev/null +++ b/ipamfederation/api/openapi.yaml @@ -0,0 +1,2950 @@ +openapi: 3.0.1 +info: + description: "The DDI IPAM Federation application enables a SaaS administrator to\ + \ manage multiple IPAM systems from one central control point CSP. \n\n" + title: IPAM Federation API + version: v1 +servers: +- url: /api/ddi/v1 +security: +- ApiKeyAuth: [] +paths: + /federation/delegation: + delete: + description: "This method has no-operation, but is provided for client IPAM\ + \ services performing a DELETE of zero Delegations that did not detect the\ + \ empty request." + operationId: delegationDeleteWithoutId + responses: + "200": + content: {} + description: OK + summary: No-op DELETE Delegation operation. + tags: + - delegation + get: + description: |- + Use this method to retrieve __Delegation__ objects. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + operationId: delegationList + 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 sorting by tags. + in: query + name: _torder_by + schema: + type: string + - description: This parameter is used for filtering by tags. + in: query + name: _tfilter + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListDelegationResponse' + description: GET operation response + summary: Retrieve the delegation. + tags: + - delegation + post: + description: |- + Use this method to create a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + operationId: delegationCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationDelegation' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateDelegationResponse' + description: POST operation response + summary: Create the delegation. + tags: + - delegation + x-tf-resource: federation_delegation + x-tf-datasource: federation_delegations + x-codegen-request-body-name: body + /federation/delegation/{id}: + delete: + description: |- + Use this method to delete a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + operationId: delegationDelete + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + responses: + "200": + content: {} + description: OK + summary: Delete the delegation. + tags: + - delegation + get: + description: |- + Use this method to retrieve a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + operationId: delegationRead + parameters: + - description: An application specific resource identity of a resource + 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/federationReadDelegationResponse' + description: GET operation response + summary: Retrieve the delegation. + tags: + - delegation + patch: + description: |- + Use this method to update a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + operationId: delegationUpdate + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationDelegation' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationUpdateDelegationResponse' + description: PATCH operation response + summary: Update the delegation. + tags: + - delegation + x-codegen-request-body-name: body + /federation/delegation_bulk: + post: + description: "Use this method to create, update, or delete multiple __Delegation__\ + \ objects." + operationId: delegationbulkDelegationBulk + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationDelegationBulkRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationDelegationBulkResponse' + description: POST operation response + summary: Execute multiple operations on delegation objects. + tags: + - delegation + - bulk + x-codegen-request-body-name: body + /federation/federated_block: + get: + description: |- + Use this method to retrieve __FederatedBlock__ objects. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + operationId: federated_blockList + 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 sorting by tags. + in: query + name: _torder_by + schema: + type: string + - description: This parameter is used for filtering by tags. + in: query + name: _tfilter + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListFederatedBlockResponse' + description: GET operation response + summary: Retrieve the federated blocks. + tags: + - federated_block + post: + description: |- + Use this method to create a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + operationId: federated_blockCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationFederatedBlock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateFederatedBlockResponse' + description: POST operation response + summary: Create the federated block. + tags: + - federated_block + x-codegen-request-body-name: body + /federation/federated_block/{id}: + delete: + description: |- + Use this method to delete a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + operationId: federated_blockDelete + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + responses: + "200": + content: {} + description: OK + summary: Delete the federated block. + tags: + - federated_block + get: + description: |- + Use this method to retrieve a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + operationId: federated_blockRead + parameters: + - description: An application specific resource identity of a resource + 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/federationReadFederatedBlockResponse' + description: GET operation response + summary: Retrieve the federated block. + tags: + - federated_block + patch: + description: |- + Use this method to update a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + operationId: federated_blockUpdate + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationFederatedBlock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationUpdateFederatedBlockResponse' + description: PATCH operation response + summary: Update the federated block. + tags: + - federated_block + x-codegen-request-body-name: body + /federation/federated_block/{id}/next_available_federated_block: + get: + description: |- + Use this method to generate the next "n" available __FederatedBlock__ object with user specified predicates. + The response will be "n" __FederatedBlock__ objects. + operationId: next_available_federated_blockListNextAvailableFederatedBlocks + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + - description: "The CIDR of the federated block. This is required, if _address_\ + \ does not specify it in its input." + in: query + name: cidr + schema: + format: int64 + type: integer + - description: "The count of __Block__ required. If not provided, it will default\ + \ to 1." + in: query + name: count + schema: + format: int64 + type: integer + - description: The name to be provided. + in: query + name: name + schema: + type: string + - description: The description for the _federation/federated_block_. May contain + 0 to 1024 characters. Can include UTF-8. + in: query + name: comment + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListNextAvailableFederatedBlockResponse' + description: GET operation response + summary: List the next available federated block. + tags: + - next_available_federated_block + post: + description: |- + Use this method to generate the next "n" available __FederatedBlock__ object with user specified predicates. + The response will be "n" __FederatedBlock__ objects. + operationId: next_available_federated_blockCreateNextAvailableFederatedBlocks + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationNextAvailableBlockRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateNextAvailableFederatedBlockResponse' + description: POST operation response + summary: Retrieve the next available federated block. + tags: + - next_available_federated_block + x-codegen-request-body-name: body + /federation/federated_block/{id}/next_available_overlapping_block: + get: + description: |- + Use this method to list the next "n" available __OverlappingBlock__ object with user specified predicates. + The response will be "n" __OverlappingBlock__ objects. + operationId: next_available_overlapping_blockListNextAvailableOverlappingBlocks + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + - description: "The CIDR of the federated block. This is required, if _address_\ + \ does not specify it in its input." + in: query + name: cidr + schema: + format: int64 + type: integer + - description: "The count of __Block__ required. If not provided, it will default\ + \ to 1." + in: query + name: count + schema: + format: int64 + type: integer + - description: The name to be provided. + in: query + name: name + schema: + type: string + - description: The description for the _federation/federated_block_. May contain + 0 to 1024 characters. Can include UTF-8. + in: query + name: comment + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListNextAvailableOverlappingBlockResponse' + description: GET operation response + summary: List the next available overlapping block. + tags: + - next_available_overlapping_block + post: + description: |- + Use this method to generate the next "n" available __OverlappingBlock__ object with user specified predicates. + The response will be "n" __OverlappingBlock__ objects. + operationId: next_available_federated_blockCreateNextAvailableOverlappingBlocks + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationNextAvailableBlockRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateNextAvailableOverlappingBlockResponse' + description: POST operation response + summary: Retrieve the next available overlapping block. + tags: + - next_available_federated_block + x-codegen-request-body-name: body + /federation/federated_block/{id}/next_available_reserved_block: + get: + description: |- + Use this method to list the next "n" available __ReservedBlock__ object with user specified predicates. + The response will be "n" __ReservedBlock__ objects. + operationId: next_available_reserved_blockListNextAvailableReservedBlocks + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + - description: "The CIDR of the federated block. This is required, if _address_\ + \ does not specify it in its input." + in: query + name: cidr + schema: + format: int64 + type: integer + - description: "The count of __Block__ required. If not provided, it will default\ + \ to 1." + in: query + name: count + schema: + format: int64 + type: integer + - description: The name to be provided. + in: query + name: name + schema: + type: string + - description: The description for the _federation/federated_block_. May contain + 0 to 1024 characters. Can include UTF-8. + in: query + name: comment + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListNextAvailableReservedBlockResponse' + description: GET operation response + summary: List the next available reserved block. + tags: + - next_available_reserved_block + post: + description: |- + Use this method to generate the next "n" available __ReservedBlock__ object with user specified predicates. + The response will be "n" __ReservedBlock__ objects. + operationId: next_available_federated_blockCreateNextAvailableReservedBlocks + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationNextAvailableBlockRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateNextAvailableReservedBlockResponse' + description: POST operation response + summary: Retrieve the next available reserved block. + tags: + - next_available_federated_block + x-codegen-request-body-name: body + /federation/federated_realm: + get: + description: |- + Use this method to retrieve __FederatedRealm__ objects. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + operationId: federated_realmList + parameters: + - 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\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: "\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\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: This parameter is used for sorting by tags. + in: query + name: _torder_by + schema: + type: string + - description: This parameter is used for filtering by tags. + in: query + name: _tfilter + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListFederatedRealmResponse' + description: GET operation response + summary: Retrieve federated realms. + tags: + - federated_realm + post: + description: |- + Use this method to create a __FederatedRealm__ object. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + operationId: federated_realmCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationFederatedRealm' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateFederatedRealmResponse' + description: POST operation response + summary: Create the federated realm. + tags: + - federated_realm + x-codegen-request-body-name: body + /federation/federated_realm/{id}: + delete: + description: Use this method to delete a __FederatedRealm__ object. + operationId: federated_realmDelete + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + responses: + "200": + content: {} + description: OK + summary: Delete federated realm. + tags: + - federated_realm + get: + description: |- + Use this method to retrieve a __FederatedRealm__ object. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + operationId: federated_realmRead + parameters: + - description: An application specific resource identity of a resource + 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/federationReadFederatedRealmResponse' + description: GET operation response + summary: Retrieve the federated realm. + tags: + - federated_realm + patch: + description: |- + Use this method to update a __FederatedRealm__ object. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + operationId: federated_realmUpdate + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationFederatedRealm' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationUpdateFederatedRealmResponse' + description: PATCH operation response + summary: Update the federated realm. + tags: + - federated_realm + x-codegen-request-body-name: body + /federation/next_available_delegation: + post: + description: |- + Use this method to generate the next "n" available __Delegation__ object with user specified predicates. + The response will be "n" __Delegation__ objects. + operationId: next_available_delegationGetNextAvailableDelegation + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationGetNextAvailableDelegationRequest' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationGetNextAvailableDelegationResponse' + description: POST operation response + summary: Retrieve the next available delegation. + tags: + - next_available_delegation + x-codegen-request-body-name: body + /federation/overlapping_block: + get: + description: |- + Use this method to retrieve __OverlappingBlock__ objects. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + operationId: overlapping_blockList + 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 sorting by tags. + in: query + name: _torder_by + schema: + type: string + - description: This parameter is used for filtering by tags. + in: query + name: _tfilter + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListOverlappingBlockResponse' + description: GET operation response + summary: Retrieve the overlapping block. + tags: + - overlapping_block + post: + description: |- + Use this method to create an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + operationId: overlapping_blockCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationOverlappingBlock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateOverlappingBlockResponse' + description: POST operation response + summary: Create the overlapping block. + tags: + - overlapping_block + x-codegen-request-body-name: body + /federation/overlapping_block/{id}: + delete: + description: |- + Use this method to delete an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + operationId: overlapping_blockDelete + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + responses: + "200": + content: {} + description: OK + summary: Delete the overlapping block. + tags: + - overlapping_block + get: + description: |- + Use this method to retrieve an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + operationId: overlapping_blockRead + parameters: + - description: An application specific resource identity of a resource + 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/federationReadOverlappingBlockResponse' + description: GET operation response + summary: Retrieve the overlapping block. + tags: + - overlapping_block + patch: + description: |- + Use this method to update an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + operationId: overlapping_blockUpdate + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationOverlappingBlock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationUpdateOverlappingBlockResponse' + description: PATCH operation response + summary: Update the overlapping block. + tags: + - overlapping_block + x-codegen-request-body-name: body + /federation/policy/config/{ophid}/latest: + get: + operationId: config_genFetch + parameters: + - in: path + name: ophid + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationGenerateConfigBundleResponse' + description: GET operation response + tags: + - config_gen + /federation/policy/config_status: + post: + operationId: config_genUpdateConfigStatus + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationHealthConfig' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationHealthCheckConfigResponse' + description: POST operation response + tags: + - config_gen + x-codegen-request-body-name: body + /federation/reserved_block: + get: + description: |- + Use this method to retrieve __ReservedBlock__ objects. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + operationId: reserved_blockList + 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 sorting by tags. + in: query + name: _torder_by + schema: + type: string + - description: This parameter is used for filtering by tags. + in: query + name: _tfilter + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationListReservedBlockResponse' + description: GET operation response + summary: Retrieve the reserved block. + tags: + - reserved_block + post: + description: |- + Use this method to create a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + operationId: reserved_blockCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationReservedBlock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationCreateReservedBlockResponse' + description: POST operation response + summary: Create the reserved block. + tags: + - reserved_block + x-codegen-request-body-name: body + /federation/reserved_block/{id}: + delete: + description: |- + Use this method to delete a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + operationId: reserved_blockDelete + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + responses: + "200": + content: {} + description: OK + summary: Delete the reserved block. + tags: + - reserved_block + get: + description: |- + Use this method to retrieve a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + operationId: reserved_blockRead + parameters: + - description: An application specific resource identity of a resource + 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/federationReadReservedBlockResponse' + description: GET operation response + summary: Retrieve the reserved block. + tags: + - reserved_block + patch: + description: |- + Use this method to update a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + operationId: reserved_blockUpdate + parameters: + - description: An application specific resource identity of a resource + in: path + name: id + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/federationReservedBlock' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/federationUpdateReservedBlockResponse' + description: PATCH operation response + summary: Update the reserved block. + tags: + - reserved_block + x-codegen-request-body-name: body +components: + schemas: + HealthConfigStatusCode: + default: StatusCode_SUCCESS + enum: + - StatusCode_SUCCESS + - StatusCode_GENERAL_FAILURE + - StatusCode_HASH_FAILURE + - StatusCode_VALIDATION_FAILURE + - StatusCode_COPY_FAILURE + - StatusCode_RELOAD_FAILIURE + type: string + federationAllocation: + description: The __Allocation__ tracks the distribution of Federated Blocks + within each of the supported objects. + example: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + properties: + allocated: + description: Percent of total space allocated. + format: int64 + readOnly: true + type: integer + delegated: + description: Percent of total space delegated. + format: int64 + readOnly: true + type: integer + overlapping: + description: Percent of total space in overlapping blocks. + format: int64 + readOnly: true + type: integer + reserved: + description: Percent of total space reserved. + format: int64 + readOnly: true + type: integer + title: Allocation + type: object + federationConfigObject: + example: + ophid: ophid + configBody: configBody + version: version + properties: + configBody: + format: byte + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + title: on-prem keepalived service configurations in base64 encoded format + and vip configuration + type: string + ophid: + title: onprem host ID + type: string + version: + title: version of the configurations + type: string + type: object + federationCreateDelegationResponse: + description: The response format to create the __Delegation__ object. + example: + result: + protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationDelegation' + title: CreateDelegationResponse + type: object + federationCreateFederatedBlockResponse: + description: The response format to create the __FederatedBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationFederatedBlock' + title: CreateFederatedBlockResponse + type: object + federationCreateFederatedRealmResponse: + description: The response format to create the __FederatedRealm__ object. + example: + result: + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationFederatedRealm' + title: CreateFederatedRealmResponse + type: object + federationCreateNextAvailableFederatedBlockResponse: + description: The response format to allocate next available __FederatedBlock__ + objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + results: + items: + $ref: '#/components/schemas/federationFederatedBlock' + type: array + title: CreateNextAvailableFederatedBlockResponse + type: object + federationCreateNextAvailableOverlappingBlockResponse: + description: The response format to allocate next available __OverlappingBlock__ + objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + results: + items: + $ref: '#/components/schemas/federationOverlappingBlock' + type: array + title: CreateNextAvailableOverlappingBlockResponse + type: object + federationCreateNextAvailableReservedBlockResponse: + description: The response format to allocate next available __ReservedBlock__ + objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + results: + items: + $ref: '#/components/schemas/federationReservedBlock' + type: array + title: CreateNextAvailableReservedBlockResponse + type: object + federationCreateOverlappingBlockResponse: + description: The response format to create the __OverlappingBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationOverlappingBlock' + title: CreateOverlappingBlockResponse + type: object + federationCreateReservedBlockResponse: + description: The response format to create the __ReservedBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationReservedBlock' + title: CreateReservedBlockResponse + type: object + federationDelegation: + description: "A __Delegation__ object (_federation/delegation_) is a set of\ + \ contiguous IP addresses with no gap, expressed as a CIDR block. A Delegation\ + \ is explicitly associated with Federated Realms, and implicitly with Federated\ + \ Block Parents. A Delegation in a given realm is said to be the child of\ + \ the closest enclosing parent." + example: + protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + properties: + address: + description: "The address field in form “a.b.c.d/n” where the “/n” may be\ + \ omitted. In this case, the CIDR value must be defined in the _cidr_\ + \ field. When reading, the _address_ field is always in the form “a.b.c.d”\ + ." + type: string + cidr: + description: "The CIDR of the delegation. This is required, if _address_\ + \ does not specify it in its input." + format: int64 + maximum: 128 + minimum: 1 + type: integer + comment: + description: The description for the delegation. May contain 0 to 1024 characters. + Can include UTF-8. + type: string + created_at: + description: Time when the object has been created. + format: date-time + readOnly: true + type: string + delegated_to: + description: The specific IPAM service the delegation was delegated to. + type: string + federated_realms: + description: The resource identifier. + items: + type: string + type: array + id: + description: The resource identifier. + readOnly: true + type: string + name: + description: The name of the delegation. May contain 1 to 256 characters. + Can include UTF-8. + type: string + parents: + description: The resource identifier. + items: + type: string + type: array + protocol: + description: The type of protocol of delegation (_ip4_ or _ip6_). + readOnly: true + type: string + tags: + additionalProperties: false + description: The tags for the delegation in JSON format. + type: object + updated_at: + description: Time when the object has been updated. Equals to _created_at_ + if not updated after creation. + format: date-time + readOnly: true + type: string + required: + - address + - federated_realms + title: Delegation + type: object + federationDelegationBulkItem: + description: DelegationBulkItem object. + properties: + action: + description: |- + Type of action to execute on Delegation object. + + Valid values are: + * _POST_ + * _PATCH_ + * _DELETE_ + type: string + delegation: + $ref: '#/components/schemas/federationDelegation' + title: DelegationBulkItem + type: object + federationDelegationBulkRequest: + description: DelegationBulk request object. + properties: + delegations: + description: list of action/delegation requests to execute. + items: + $ref: '#/components/schemas/federationDelegationBulkItem' + type: array + fields: + $ref: '#/components/schemas/protobufFieldMask' + title: DelegationBulkRequest + type: object + federationDelegationBulkResponse: + description: The DelegationBulk response object. + example: + results: + - protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + - protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + properties: + results: + description: A list of Delegation objects. + items: + $ref: '#/components/schemas/federationDelegation' + type: array + title: DelegationBulkResponse + type: object + federationFederatedBlock: + description: "A __FederatedBlock__ object (_federation/federated_block_) is\ + \ a set of contiguous IP addresses with no gap, expressed as a CIDR block.\ + \ Federated blocks are hierarchical and may be parented to other federated\ + \ blocks as long as the parent block fully contains the child and no sibling\ + \ overlaps. Top level federated blocks are parented to a federated realm." + example: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + address: + description: "The address field in form “a.b.c.d/n” where the “/n” may be\ + \ omitted. In this case, the CIDR value must be defined in the _cidr_\ + \ field. When reading, the _address_ field is always in the form “a.b.c.d”\ + ." + type: string + allocation_v4: + $ref: '#/components/schemas/federationAllocation' + cidr: + description: "The CIDR of the federated block. This is required, if _address_\ + \ does not specify it in its input." + format: int64 + maximum: 128 + minimum: 1 + type: integer + comment: + description: The description for the federated block. May contain 0 to 1024 + characters. Can include UTF-8. + type: string + created_at: + description: Time when the object has been created. + format: date-time + readOnly: true + type: string + federated_realm: + description: The resource identifier. + type: string + id: + description: The resource identifier. + readOnly: true + type: string + name: + description: The name of the federated block. May contain 1 to 256 characters. + Can include UTF-8. + type: string + parent: + description: The resource identifier. + type: string + protocol: + description: The type of protocol of federated block (_ip4_ or _ip6_). + readOnly: true + type: string + tags: + additionalProperties: false + description: The tags for the federated block in JSON format. + type: object + updated_at: + description: Time when the object has been updated. Equals to _created_at_ + if not updated after creation. + format: date-time + readOnly: true + type: string + required: + - address + - federated_realm + title: FederatedBlock + type: object + federationFederatedRealm: + description: A __FederatedRealm__ object is a unique set of federated blocks + per realm. + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + allocation_v4: + $ref: '#/components/schemas/federationAllocation' + comment: + description: The description of the federated realm. May contain 0 to 1024 + characters. Can include UTF-8. + type: string + created_at: + description: Time when the object has been created. + format: date-time + readOnly: true + type: string + id: + description: The resource identifier. + readOnly: true + type: string + name: + description: The name of the federated realm. May contain 1 to 256 characters; + can include UTF-8. + type: string + tags: + additionalProperties: false + description: The tags for the federated realm in JSON format. + type: object + updated_at: + description: Time when the object has been updated. Equals to _created_at_ + if not updated after creation. + format: date-time + readOnly: true + type: string + required: + - name + title: FederatedRealm + type: object + federationGenerateConfigBundleResponse: + description: The response format to retrieve __ConfigBundle__ objects. + example: + config: + ophid: ophid + configBody: configBody + version: version + properties: + config: + $ref: '#/components/schemas/federationConfigObject' + title: GenerateConfigBundleResponse + type: object + federationGetNextAvailableDelegationRequest: + properties: + arguments: + $ref: '#/components/schemas/federationNextAvailableDelegationArguments' + properties: + $ref: '#/components/schemas/federationNextAvailableDelegationProperties' + type: object + federationGetNextAvailableDelegationResponse: + description: The response format to get next available __Delegation__ objects. + example: + results: + - protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + - protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + properties: + results: + items: + $ref: '#/components/schemas/federationDelegation' + type: array + title: NextAvailableDelegationResponse + type: object + federationHealthCheckConfigResponse: + example: + message: message + properties: + message: + type: string + type: object + federationHealthConfig: + properties: + appName: + title: appName + type: string + message: + title: status update message for on-prem keepalived service configurations + type: string + ophid: + title: onprem host ID + type: string + statusCode: + $ref: '#/components/schemas/HealthConfigStatusCode' + version: + format: uint64 + title: version of the configuration + type: string + type: object + federationListDelegationResponse: + description: The response format to retrieve __Delegation__ objects. + example: + results: + - protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + - protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + properties: + results: + description: A list of Delegation objects. + items: + $ref: '#/components/schemas/federationDelegation' + type: array + title: ListDelegationResponse + type: object + federationListFederatedBlockResponse: + description: The response format to retrieve __FederatedBlock__ objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + results: + description: A list of FederatedBlock objects. + items: + $ref: '#/components/schemas/federationFederatedBlock' + type: array + title: ListFederatedBlockResponse + type: object + federationListFederatedRealmResponse: + description: The response format to retrieve __FederatedRealm__ objects. + example: + results: + - updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + - updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + results: + description: The list of FederatedRealm objects. + items: + $ref: '#/components/schemas/federationFederatedRealm' + type: array + title: ListFederatedRealmResponse + type: object + federationListNextAvailableFederatedBlockResponse: + description: The response format to list next available __FederatedBlock__ objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + results: + items: + $ref: '#/components/schemas/federationFederatedBlock' + type: array + title: ListNextAvailableFederatedBlockResponse + type: object + federationListNextAvailableOverlappingBlockResponse: + description: The response format to list next available __OverlappingBlock__ + objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + results: + items: + $ref: '#/components/schemas/federationOverlappingBlock' + type: array + title: ListNextAvailableOverlappingBlockResponse + type: object + federationListNextAvailableReservedBlockResponse: + description: The response format to list next available __ReservedBlock__ objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + results: + items: + $ref: '#/components/schemas/federationReservedBlock' + type: array + title: ListNextAvailableReservedBlockResponse + type: object + federationListOverlappingBlockResponse: + description: The response format to retrieve __OverlappingBlock__ objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + results: + description: A list of OverlappingBlock objects. + items: + $ref: '#/components/schemas/federationOverlappingBlock' + type: array + title: ListOverlappingBlockResponse + type: object + federationListReservedBlockResponse: + description: The response format to retrieve __ReservedBlock__ objects. + example: + results: + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + - parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + results: + description: A list of ReservedBlock objects. + items: + $ref: '#/components/schemas/federationReservedBlock' + type: array + title: ListReservedBlockResponse + type: object + federationNextAvailableBlockRequest: + properties: + cidr: + description: "The CIDR of the federated block. This is required, if _address_\ + \ does not specify it in its input." + format: int64 + maximum: 128 + minimum: 1 + type: integer + comment: + description: The description for the _federation/federated_block_. May contain + 0 to 1024 characters. Can include UTF-8. + type: string + count: + description: "The count of __Block__ required. If not provided, it will\ + \ default to 1." + format: int64 + type: integer + id: + description: The resource identifier. + readOnly: true + type: string + name: + description: The name to be provided. + type: string + tags: + additionalProperties: false + description: The tags for the federated block in JSON format. + type: object + type: object + federationNextAvailableDelegationArguments: + properties: + cidr: + description: "The CIDR of the delegation to be created. This is required,\ + \ if _address_ does not specify it in its input." + format: int64 + maximum: 128 + minimum: 1 + type: integer + count: + description: "The count of __Delegation__ required. If not provided, it\ + \ will default to 1." + format: int64 + type: integer + federated_realms: + description: The resource identifier. + items: + type: string + type: array + predicates: + additionalProperties: false + description: It contains the map of attributes and the associated value. + type: object + read_only: + description: The field which denotes if the __Delegation__ will be provisioned + or just calculated and returned. + format: boolean + type: boolean + type: object + federationNextAvailableDelegationProperties: + properties: + comment: + description: The description for the __Delegation__. May contain 0 to 1024 + characters. Can include UTF-8. + type: string + delegated_to: + description: The specific IPAM service the __Delegation__ was delegated + to. + type: string + name: + description: The name to be provided. + type: string + type: object + federationOverlappingBlock: + description: "An __OverlappingBlock__ object (_federation/overlapping_block_)\ + \ is a set of contiguous IP addresses with no gap, expressed as a CIDR block.\ + \ It is explicitly associated with a Federated Realm, and implicitly with\ + \ a Federated Block Parent. An __OverlappingBlock__ in a given realm is said\ + \ to be the child of the closest enclosing parent. An __OverlappingBlock__\ + \ indicates an address range that may be managed independently by all participating\ + \ IPAM services." + example: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + address: + description: "The address field in form “a.b.c.d/n” where the “/n” may be\ + \ omitted. In this case, the CIDR value must be defined in the _cidr_\ + \ field. When reading, the _address_ field is always in the form “a.b.c.d”\ + ." + type: string + cidr: + description: "The CIDR of the overlapping block. This is required, if _address_\ + \ does not specify it in its input." + format: int64 + maximum: 128 + minimum: 1 + type: integer + comment: + description: The description for the overlapping block. May contain 0 to + 1024 characters. Can include UTF-8. + type: string + created_at: + description: Time when the object has been created. + format: date-time + readOnly: true + type: string + federated_realm: + description: The resource identifier. + type: string + id: + description: The resource identifier. + readOnly: true + type: string + name: + description: The name of the overlapping block. May contain 1 to 256 characters. + Can include UTF-8. + type: string + parent: + description: The resource identifier. + type: string + protocol: + description: The type of protocol of overlapping block (_ip4_ or _ip6_). + readOnly: true + type: string + tags: + additionalProperties: false + description: The tags for the overlapping block in JSON format. + type: object + updated_at: + description: Time when the object has been updated. Equals to _created_at_ + if not updated after creation. + format: date-time + readOnly: true + type: string + required: + - address + - federated_realm + title: OverlappingBlock + type: object + federationReadDelegationResponse: + description: The response format to retrieve the __Delegation__ object. + example: + result: + protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationDelegation' + title: ReadDelegationResponse + type: object + federationReadFederatedBlockResponse: + description: The response format to retrieve the __FederatedBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationFederatedBlock' + title: ReadFederatedBlockResponse + type: object + federationReadFederatedRealmResponse: + description: The response format to retrieve the __FederatedRealm__ object. + example: + result: + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationFederatedRealm' + title: ReadFederatedRealmResponse + type: object + federationReadOverlappingBlockResponse: + description: The response format to retrieve the __OverlappingBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationOverlappingBlock' + title: ReadOverlappingBlockResponse + type: object + federationReadReservedBlockResponse: + description: The response format to retrieve the __ReservedBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationReservedBlock' + title: ReadReservedBlockResponse + type: object + federationReservedBlock: + description: "A __ReservedBlock__ object (_federation/reserved_block_) is a\ + \ set of contiguous IP addresses with no gap, expressed as a CIDR block. It\ + \ is explicitly associated with a Federated Realm. A __ReservedBlock__ indicates\ + \ an address range for which authority is expressly forbidden. Cooperating\ + \ IPAM services must not make allocations in this range." + example: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + address: + description: "The address field in form “a.b.c.d/n” where the “/n” may be\ + \ omitted. In this case, the CIDR value must be defined in the _cidr_\ + \ field. When reading, the _address_ field is always in the form “a.b.c.d”\ + ." + type: string + cidr: + description: "The CIDR of the reserved block. This is required field, if\ + \ _address_ does not specify it in its input." + format: int64 + maximum: 128 + minimum: 1 + type: integer + comment: + description: The description for the reserved block. May contain 0 to 1024 + characters. Can include UTF-8. + type: string + created_at: + description: Time when the object has been created. + format: date-time + readOnly: true + type: string + federated_realm: + description: The resource identifier. + type: string + id: + description: The resource identifier. + readOnly: true + type: string + name: + description: The name of the reserved block. May contain 1 to 256 characters. + Can include UTF-8. + type: string + parent: + description: The resource identifier. + type: string + protocol: + description: The type of protocol of reserved block (_ip4_ or _ip6_). + readOnly: true + type: string + tags: + additionalProperties: false + description: The tags for the reserved block in JSON format. + type: object + updated_at: + description: Time when the object has been updated. Equals to _created_at_ + if not updated after creation. + format: date-time + readOnly: true + type: string + required: + - address + - federated_realm + title: ReservedBlock + type: object + federationUpdateDelegationResponse: + description: The response format to update the __Delegation__ object. + example: + result: + protocol: protocol + address: address + updated_at: 2000-01-23T04:56:07.000+00:00 + federated_realms: + - federated_realms + - federated_realms + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + delegated_to: delegated_to + id: id + parents: + - parents + - parents + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationDelegation' + title: UpdateDelegationResponse + type: object + federationUpdateFederatedBlockResponse: + description: The response format to update the __FederatedBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 72 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationFederatedBlock' + title: UpdateFederatedBlockResponse + type: object + federationUpdateFederatedRealmResponse: + description: The response format to update the __FederatedRealm__ object. + example: + result: + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + comment: comment + id: id + allocation_v4: + reserved: 5 + overlapping: 1 + delegated: 6 + allocated: 0 + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationFederatedRealm' + title: UpdateFederatedRealmResponse + type: object + federationUpdateOverlappingBlockResponse: + description: The response format to update the __OverlappingBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationOverlappingBlock' + title: UpdateOverlappingBlockResponse + type: object + federationUpdateReservedBlockResponse: + description: The response format to update the __ReservedBlock__ object. + example: + result: + parent: parent + protocol: protocol + address: address + federated_realm: federated_realm + updated_at: 2000-01-23T04:56:07.000+00:00 + name: name + created_at: 2000-01-23T04:56:07.000+00:00 + cidr: 11 + comment: comment + id: id + tags: "{}" + properties: + result: + $ref: '#/components/schemas/federationReservedBlock' + title: UpdateReservedBlockResponse + type: object + protobufFieldMask: + description: |- + paths: "f.a" + paths: "f.b.d" + + Here `f` represents a field in some root message, `a` and `b` + fields in the message found in `f`, and `d` a field found in the + message in `f.b`. + + Field masks are used to specify a subset of fields that should be + returned by a get operation or modified by an update operation. + Field masks also have a custom JSON encoding (see below). + + # Field Masks in Projections + + When used in the context of a projection, a response message or + sub-message is filtered by the API to only contain those fields as + specified in the mask. For example, if the mask in the previous + example is applied to a response message as follows: + + f { + a : 22 + b { + d : 1 + x : 2 + } + y : 13 + } + z: 8 + + The result will not contain specific values for fields x,y and z + (their value will be set to the default, and omitted in proto text + output): + + + f { + a : 22 + b { + d : 1 + } + } + + A repeated field is not allowed except at the last position of a + paths string. + + If a FieldMask object is not present in a get operation, the + operation applies to all fields (as if a FieldMask of all fields + had been specified). + + Note that a field mask does not necessarily apply to the + top-level response message. In case of a REST get operation, the + field mask applies directly to the response, but in case of a REST + list operation, the mask instead applies to each individual message + in the returned resource list. In case of a REST custom method, + other definitions may be used. Where the mask applies will be + clearly documented together with its declaration in the API. In + any case, the effect on the returned resource/resources is required + behavior for APIs. + + # Field Masks in Update Operations + + A field mask in update operations specifies which fields of the + targeted resource are going to be updated. The API is required + to only change the values of the fields as specified in the mask + and leave the others untouched. If a resource is passed in to + describe the updated values, the API ignores the values of all + fields not covered by the mask. + + If a repeated field is specified for an update operation, the existing + repeated values in the target resource will be overwritten by the new values. + Note that a repeated field is only allowed in the last position of a `paths` + string. + + If a sub-message is specified in the last position of the field mask for an + update operation, then the existing sub-message in the target resource is + overwritten. Given the target message: + + f { + b { + d : 1 + x : 2 + } + c : 1 + } + + And an update message: + + f { + b { + d : 10 + } + } + + then if the field mask is: + + paths: "f.b" + + then the result will be: + + f { + b { + d : 10 + } + c : 1 + } + + However, if the update mask was: + + paths: "f.b.d" + + then the result would be: + + f { + b { + d : 10 + x : 2 + } + c : 1 + } + + In order to reset a field's value to the default, the field must + be in the mask and set to the default value in the provided resource. + Hence, in order to reset all fields of a resource, provide a default + instance of the resource and set all fields in the mask, or do + not provide a mask as described below. + + If a field mask is not present on update, the operation applies to + all fields (as if a field mask of all fields has been specified). + Note that in the presence of schema evolution, this may mean that + fields the client does not know and has therefore not filled into + the request will be reset to their default. If this is unwanted + behavior, a specific service may require a client to always specify + a field mask, producing an error if not. + + As with get operations, the location of the resource which + describes the updated values in the request message depends on the + operation kind. In any case, the effect of the field mask is + required to be honored by the API. + + ## Considerations for HTTP REST + + The HTTP kind of an update operation which uses a field mask must + be set to PATCH instead of PUT in order to satisfy HTTP semantics + (PUT must only be used for full updates). + + # JSON Encoding of Field Masks + + In JSON, a field mask is encoded as a single string where paths are + separated by a comma. Fields name in each path are converted + to/from lower-camel naming conventions. + + As an example, consider the following message declarations: + + message Profile { + User user = 1; + Photo photo = 2; + } + message User { + string display_name = 1; + string address = 2; + } + + In proto a field mask for `Profile` may look as such: + + mask { + paths: "user.display_name" + paths: "photo" + } + + In JSON, the same mask is represented as below: + + { + mask: "user.displayName,photo" + } + + # Field Masks and Oneof Fields + + Field masks treat fields in oneofs just as regular fields. Consider the + following message: + + message SampleMessage { + oneof test_oneof { + string name = 4; + SubMessage sub_message = 9; + } + } + + The field mask can be: + + mask { + paths: "name" + } + + Or: + + mask { + paths: "sub_message" + } + + Note that oneof type names ("test_oneof" in this case) cannot be used in + paths. + + ## Field Mask Verification + + The implementation of the all the API methods, which have any FieldMask type + field in the request, should verify the included field paths, and return + `INVALID_ARGUMENT` error if any path is duplicated or unmappable. + properties: + paths: + description: The set of field mask paths. + items: + type: string + type: array + title: "`FieldMask` represents a set of symbolic field paths, for example:" + type: object + securitySchemes: + ApiKeyAuth: + in: header + name: Authorization + type: apiKey +x-original-swagger-version: "2.0" diff --git a/ipamfederation/api_bulk.go b/ipamfederation/api_bulk.go new file mode 100644 index 0000000..2acedd8 --- /dev/null +++ b/ipamfederation/api_bulk.go @@ -0,0 +1,144 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type BulkAPI interface { + /* + DelegationbulkDelegationBulk Execute multiple operations on delegation objects. + + Use this method to create, update, or delete multiple __Delegation__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return BulkAPIDelegationbulkDelegationBulkRequest + */ + DelegationbulkDelegationBulk(ctx context.Context) BulkAPIDelegationbulkDelegationBulkRequest + + // DelegationbulkDelegationBulkExecute executes the request + // @return FederationDelegationBulkResponse + DelegationbulkDelegationBulkExecute(r BulkAPIDelegationbulkDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) +} + +// BulkAPIService BulkAPI service +type BulkAPIService internal.Service + +type BulkAPIDelegationbulkDelegationBulkRequest struct { + ctx context.Context + ApiService BulkAPI + body *FederationDelegationBulkRequest +} + +func (r BulkAPIDelegationbulkDelegationBulkRequest) Body(body FederationDelegationBulkRequest) BulkAPIDelegationbulkDelegationBulkRequest { + r.body = &body + return r +} + +func (r BulkAPIDelegationbulkDelegationBulkRequest) Execute() (*FederationDelegationBulkResponse, *http.Response, error) { + return r.ApiService.DelegationbulkDelegationBulkExecute(r) +} + +/* +DelegationbulkDelegationBulk Execute multiple operations on delegation objects. + +Use this method to create, update, or delete multiple __Delegation__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return BulkAPIDelegationbulkDelegationBulkRequest +*/ +func (a *BulkAPIService) DelegationbulkDelegationBulk(ctx context.Context) BulkAPIDelegationbulkDelegationBulkRequest { + return BulkAPIDelegationbulkDelegationBulkRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationDelegationBulkResponse +func (a *BulkAPIService) DelegationbulkDelegationBulkExecute(r BulkAPIDelegationbulkDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationDelegationBulkResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "BulkAPIService.DelegationbulkDelegationBulk") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation_bulk" + + 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/ipamfederation/api_config_gen.go b/ipamfederation/api_config_gen.go new file mode 100644 index 0000000..f2ce78f --- /dev/null +++ b/ipamfederation/api_config_gen.go @@ -0,0 +1,248 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type ConfigGenAPI interface { + /* + Fetch Method for Fetch + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ophid + @return ConfigGenAPIFetchRequest + */ + Fetch(ctx context.Context, ophid string) ConfigGenAPIFetchRequest + + // FetchExecute executes the request + // @return FederationGenerateConfigBundleResponse + FetchExecute(r ConfigGenAPIFetchRequest) (*FederationGenerateConfigBundleResponse, *http.Response, error) + /* + UpdateConfigStatus Method for UpdateConfigStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ConfigGenAPIUpdateConfigStatusRequest + */ + UpdateConfigStatus(ctx context.Context) ConfigGenAPIUpdateConfigStatusRequest + + // UpdateConfigStatusExecute executes the request + // @return FederationHealthCheckConfigResponse + UpdateConfigStatusExecute(r ConfigGenAPIUpdateConfigStatusRequest) (*FederationHealthCheckConfigResponse, *http.Response, error) +} + +// ConfigGenAPIService ConfigGenAPI service +type ConfigGenAPIService internal.Service + +type ConfigGenAPIFetchRequest struct { + ctx context.Context + ApiService ConfigGenAPI + ophid string +} + +func (r ConfigGenAPIFetchRequest) Execute() (*FederationGenerateConfigBundleResponse, *http.Response, error) { + return r.ApiService.FetchExecute(r) +} + +/* +Fetch Method for Fetch + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ophid + @return ConfigGenAPIFetchRequest +*/ +func (a *ConfigGenAPIService) Fetch(ctx context.Context, ophid string) ConfigGenAPIFetchRequest { + return ConfigGenAPIFetchRequest{ + ApiService: a, + ctx: ctx, + ophid: ophid, + } +} + +// Execute executes the request +// +// @return FederationGenerateConfigBundleResponse +func (a *ConfigGenAPIService) FetchExecute(r ConfigGenAPIFetchRequest) (*FederationGenerateConfigBundleResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationGenerateConfigBundleResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ConfigGenAPIService.Fetch") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/policy/config/{ophid}/latest" + localVarPath = strings.Replace(localVarPath, "{"+"ophid"+"}", url.PathEscape(internal.ParameterValueToString(r.ophid, "ophid")), -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{"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 ConfigGenAPIUpdateConfigStatusRequest struct { + ctx context.Context + ApiService ConfigGenAPI + body *FederationHealthConfig +} + +func (r ConfigGenAPIUpdateConfigStatusRequest) Body(body FederationHealthConfig) ConfigGenAPIUpdateConfigStatusRequest { + r.body = &body + return r +} + +func (r ConfigGenAPIUpdateConfigStatusRequest) Execute() (*FederationHealthCheckConfigResponse, *http.Response, error) { + return r.ApiService.UpdateConfigStatusExecute(r) +} + +/* +UpdateConfigStatus Method for UpdateConfigStatus + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ConfigGenAPIUpdateConfigStatusRequest +*/ +func (a *ConfigGenAPIService) UpdateConfigStatus(ctx context.Context) ConfigGenAPIUpdateConfigStatusRequest { + return ConfigGenAPIUpdateConfigStatusRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationHealthCheckConfigResponse +func (a *ConfigGenAPIService) UpdateConfigStatusExecute(r ConfigGenAPIUpdateConfigStatusRequest) (*FederationHealthCheckConfigResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationHealthCheckConfigResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ConfigGenAPIService.UpdateConfigStatus") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/policy/config_status" + + 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/ipamfederation/api_delegation.go b/ipamfederation/api_delegation.go new file mode 100644 index 0000000..9f4cb81 --- /dev/null +++ b/ipamfederation/api_delegation.go @@ -0,0 +1,900 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type DelegationAPI interface { + /* + Create Create the delegation. + + Use this method to create a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPICreateRequest + */ + Create(ctx context.Context) DelegationAPICreateRequest + + // CreateExecute executes the request + // @return FederationCreateDelegationResponse + CreateExecute(r DelegationAPICreateRequest) (*FederationCreateDelegationResponse, *http.Response, error) + /* + Delete Delete the delegation. + + Use this method to delete a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return DelegationAPIDeleteRequest + */ + Delete(ctx context.Context, id string) DelegationAPIDeleteRequest + + // DeleteExecute executes the request + DeleteExecute(r DelegationAPIDeleteRequest) (*http.Response, error) + /* + DeleteWithoutId No-op DELETE Delegation operation. + + This method has no-operation, but is provided for client IPAM services performing a DELETE of zero Delegations that did not detect the empty request. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPIDeleteWithoutIdRequest + */ + DeleteWithoutId(ctx context.Context) DelegationAPIDeleteWithoutIdRequest + + // DeleteWithoutIdExecute executes the request + DeleteWithoutIdExecute(r DelegationAPIDeleteWithoutIdRequest) (*http.Response, error) + /* + List Retrieve the delegation. + + Use this method to retrieve __Delegation__ objects. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPIListRequest + */ + List(ctx context.Context) DelegationAPIListRequest + + // ListExecute executes the request + // @return FederationListDelegationResponse + ListExecute(r DelegationAPIListRequest) (*FederationListDelegationResponse, *http.Response, error) + /* + Read Retrieve the delegation. + + Use this method to retrieve a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return DelegationAPIReadRequest + */ + Read(ctx context.Context, id string) DelegationAPIReadRequest + + // ReadExecute executes the request + // @return FederationReadDelegationResponse + ReadExecute(r DelegationAPIReadRequest) (*FederationReadDelegationResponse, *http.Response, error) + /* + Update Update the delegation. + + Use this method to update a __Delegation__ object. + The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return DelegationAPIUpdateRequest + */ + Update(ctx context.Context, id string) DelegationAPIUpdateRequest + + // UpdateExecute executes the request + // @return FederationUpdateDelegationResponse + UpdateExecute(r DelegationAPIUpdateRequest) (*FederationUpdateDelegationResponse, *http.Response, error) + /* + bulkDelegationBulk Execute multiple operations on delegation objects. + + Use this method to create, update, or delete multiple __Delegation__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPIbulkDelegationBulkRequest + */ + bulkDelegationBulk(ctx context.Context) DelegationAPIbulkDelegationBulkRequest + + // bulkDelegationBulkExecute executes the request + // @return FederationDelegationBulkResponse + bulkDelegationBulkExecute(r DelegationAPIbulkDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) +} + +// DelegationAPIService DelegationAPI service +type DelegationAPIService internal.Service + +type DelegationAPICreateRequest struct { + ctx context.Context + ApiService DelegationAPI + body *FederationDelegation +} + +func (r DelegationAPICreateRequest) Body(body FederationDelegation) DelegationAPICreateRequest { + r.body = &body + return r +} + +func (r DelegationAPICreateRequest) Execute() (*FederationCreateDelegationResponse, *http.Response, error) { + return r.ApiService.CreateExecute(r) +} + +/* +Create Create the delegation. + +Use this method to create a __Delegation__ object. +The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPICreateRequest +*/ +func (a *DelegationAPIService) Create(ctx context.Context) DelegationAPICreateRequest { + return DelegationAPICreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationCreateDelegationResponse +func (a *DelegationAPIService) CreateExecute(r DelegationAPICreateRequest) (*FederationCreateDelegationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateDelegationResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Create") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation" + + 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 DelegationAPIDeleteRequest struct { + ctx context.Context + ApiService DelegationAPI + id string +} + +func (r DelegationAPIDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteExecute(r) +} + +/* +Delete Delete the delegation. + +Use this method to delete a __Delegation__ object. +The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return DelegationAPIDeleteRequest +*/ +func (a *DelegationAPIService) Delete(ctx context.Context, id string) DelegationAPIDeleteRequest { + return DelegationAPIDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DelegationAPIService) DeleteExecute(r DelegationAPIDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Delete") + if err != nil { + return nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation/{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 DelegationAPIDeleteWithoutIdRequest struct { + ctx context.Context + ApiService DelegationAPI +} + +func (r DelegationAPIDeleteWithoutIdRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteWithoutIdExecute(r) +} + +/* +DeleteWithoutId No-op DELETE Delegation operation. + +This method has no-operation, but is provided for client IPAM services performing a DELETE of zero Delegations that did not detect the empty request. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPIDeleteWithoutIdRequest +*/ +func (a *DelegationAPIService) DeleteWithoutId(ctx context.Context) DelegationAPIDeleteWithoutIdRequest { + return DelegationAPIDeleteWithoutIdRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DelegationAPIService) DeleteWithoutIdExecute(r DelegationAPIDeleteWithoutIdRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.DeleteWithoutId") + if err != nil { + return nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation" + + 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 DelegationAPIListRequest struct { + ctx context.Context + ApiService DelegationAPI + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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 DelegationAPIListRequest) Fields(fields string) DelegationAPIListRequest { + 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 DelegationAPIListRequest) Filter(filter string) DelegationAPIListRequest { + 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 DelegationAPIListRequest) Offset(offset int32) DelegationAPIListRequest { + 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 DelegationAPIListRequest) Limit(limit int32) DelegationAPIListRequest { + 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 DelegationAPIListRequest) PageToken(pageToken string) DelegationAPIListRequest { + 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 DelegationAPIListRequest) OrderBy(orderBy string) DelegationAPIListRequest { + r.orderBy = &orderBy + return r +} + +// This parameter is used for sorting by tags. +func (r DelegationAPIListRequest) TorderBy(torderBy string) DelegationAPIListRequest { + r.torderBy = &torderBy + return r +} + +// This parameter is used for filtering by tags. +func (r DelegationAPIListRequest) Tfilter(tfilter string) DelegationAPIListRequest { + r.tfilter = &tfilter + return r +} + +func (r DelegationAPIListRequest) Execute() (*FederationListDelegationResponse, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List Retrieve the delegation. + +Use this method to retrieve __Delegation__ objects. +The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPIListRequest +*/ +func (a *DelegationAPIService) List(ctx context.Context) DelegationAPIListRequest { + return DelegationAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationListDelegationResponse +func (a *DelegationAPIService) ListExecute(r DelegationAPIListRequest) (*FederationListDelegationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListDelegationResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation" + + 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.torderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") + } + if r.tfilter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") + } + // 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 DelegationAPIReadRequest struct { + ctx context.Context + ApiService DelegationAPI + 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 DelegationAPIReadRequest) Fields(fields string) DelegationAPIReadRequest { + r.fields = &fields + return r +} + +func (r DelegationAPIReadRequest) Execute() (*FederationReadDelegationResponse, *http.Response, error) { + return r.ApiService.ReadExecute(r) +} + +/* +Read Retrieve the delegation. + +Use this method to retrieve a __Delegation__ object. +The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return DelegationAPIReadRequest +*/ +func (a *DelegationAPIService) Read(ctx context.Context, id string) DelegationAPIReadRequest { + return DelegationAPIReadRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationReadDelegationResponse +func (a *DelegationAPIService) ReadExecute(r DelegationAPIReadRequest) (*FederationReadDelegationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationReadDelegationResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Read") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation/{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 DelegationAPIUpdateRequest struct { + ctx context.Context + ApiService DelegationAPI + id string + body *FederationDelegation +} + +func (r DelegationAPIUpdateRequest) Body(body FederationDelegation) DelegationAPIUpdateRequest { + r.body = &body + return r +} + +func (r DelegationAPIUpdateRequest) Execute() (*FederationUpdateDelegationResponse, *http.Response, error) { + return r.ApiService.UpdateExecute(r) +} + +/* +Update Update the delegation. + +Use this method to update a __Delegation__ object. +The __Delegation__ explicitly marks authority for an address range assigned to another IPAM service. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return DelegationAPIUpdateRequest +*/ +func (a *DelegationAPIService) Update(ctx context.Context, id string) DelegationAPIUpdateRequest { + return DelegationAPIUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationUpdateDelegationResponse +func (a *DelegationAPIService) UpdateExecute(r DelegationAPIUpdateRequest) (*FederationUpdateDelegationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationUpdateDelegationResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Update") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation/{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 +} + +type DelegationAPIbulkDelegationBulkRequest struct { + ctx context.Context + ApiService DelegationAPI + body *FederationDelegationBulkRequest +} + +func (r DelegationAPIbulkDelegationBulkRequest) Body(body FederationDelegationBulkRequest) DelegationAPIbulkDelegationBulkRequest { + r.body = &body + return r +} + +func (r DelegationAPIbulkDelegationBulkRequest) Execute() (*FederationDelegationBulkResponse, *http.Response, error) { + return r.ApiService.bulkDelegationBulkExecute(r) +} + +/* +bulkDelegationBulk Execute multiple operations on delegation objects. + +Use this method to create, update, or delete multiple __Delegation__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DelegationAPIbulkDelegationBulkRequest +*/ +func (a *DelegationAPIService) bulkDelegationBulk(ctx context.Context) DelegationAPIbulkDelegationBulkRequest { + return DelegationAPIbulkDelegationBulkRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationDelegationBulkResponse +func (a *DelegationAPIService) bulkDelegationBulkExecute(r DelegationAPIbulkDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationDelegationBulkResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.bulkDelegationBulk") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/delegation_bulk" + + 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/ipamfederation/api_federated_block.go b/ipamfederation/api_federated_block.go new file mode 100644 index 0000000..c95fcb5 --- /dev/null +++ b/ipamfederation/api_federated_block.go @@ -0,0 +1,686 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type FederatedBlockAPI interface { + /* + Create Create the federated block. + + Use this method to create a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedBlockAPICreateRequest + */ + Create(ctx context.Context) FederatedBlockAPICreateRequest + + // CreateExecute executes the request + // @return FederationCreateFederatedBlockResponse + CreateExecute(r FederatedBlockAPICreateRequest) (*FederationCreateFederatedBlockResponse, *http.Response, error) + /* + Delete Delete the federated block. + + Use this method to delete a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedBlockAPIDeleteRequest + */ + Delete(ctx context.Context, id string) FederatedBlockAPIDeleteRequest + + // DeleteExecute executes the request + DeleteExecute(r FederatedBlockAPIDeleteRequest) (*http.Response, error) + /* + List Retrieve the federated blocks. + + Use this method to retrieve __FederatedBlock__ objects. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedBlockAPIListRequest + */ + List(ctx context.Context) FederatedBlockAPIListRequest + + // ListExecute executes the request + // @return FederationListFederatedBlockResponse + ListExecute(r FederatedBlockAPIListRequest) (*FederationListFederatedBlockResponse, *http.Response, error) + /* + Read Retrieve the federated block. + + Use this method to retrieve a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedBlockAPIReadRequest + */ + Read(ctx context.Context, id string) FederatedBlockAPIReadRequest + + // ReadExecute executes the request + // @return FederationReadFederatedBlockResponse + ReadExecute(r FederatedBlockAPIReadRequest) (*FederationReadFederatedBlockResponse, *http.Response, error) + /* + Update Update the federated block. + + Use this method to update a __FederatedBlock__ object. + The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedBlockAPIUpdateRequest + */ + Update(ctx context.Context, id string) FederatedBlockAPIUpdateRequest + + // UpdateExecute executes the request + // @return FederationUpdateFederatedBlockResponse + UpdateExecute(r FederatedBlockAPIUpdateRequest) (*FederationUpdateFederatedBlockResponse, *http.Response, error) +} + +// FederatedBlockAPIService FederatedBlockAPI service +type FederatedBlockAPIService internal.Service + +type FederatedBlockAPICreateRequest struct { + ctx context.Context + ApiService FederatedBlockAPI + body *FederationFederatedBlock +} + +func (r FederatedBlockAPICreateRequest) Body(body FederationFederatedBlock) FederatedBlockAPICreateRequest { + r.body = &body + return r +} + +func (r FederatedBlockAPICreateRequest) Execute() (*FederationCreateFederatedBlockResponse, *http.Response, error) { + return r.ApiService.CreateExecute(r) +} + +/* +Create Create the federated block. + +Use this method to create a __FederatedBlock__ object. +The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedBlockAPICreateRequest +*/ +func (a *FederatedBlockAPIService) Create(ctx context.Context) FederatedBlockAPICreateRequest { + return FederatedBlockAPICreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationCreateFederatedBlockResponse +func (a *FederatedBlockAPIService) CreateExecute(r FederatedBlockAPICreateRequest) (*FederationCreateFederatedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateFederatedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.Create") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block" + + 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 FederatedBlockAPIDeleteRequest struct { + ctx context.Context + ApiService FederatedBlockAPI + id string +} + +func (r FederatedBlockAPIDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteExecute(r) +} + +/* +Delete Delete the federated block. + +Use this method to delete a __FederatedBlock__ object. +The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedBlockAPIDeleteRequest +*/ +func (a *FederatedBlockAPIService) Delete(ctx context.Context, id string) FederatedBlockAPIDeleteRequest { + return FederatedBlockAPIDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *FederatedBlockAPIService) DeleteExecute(r FederatedBlockAPIDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.Delete") + if err != nil { + return nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{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 FederatedBlockAPIListRequest struct { + ctx context.Context + ApiService FederatedBlockAPI + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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 FederatedBlockAPIListRequest) Fields(fields string) FederatedBlockAPIListRequest { + 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 FederatedBlockAPIListRequest) Filter(filter string) FederatedBlockAPIListRequest { + 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 FederatedBlockAPIListRequest) Offset(offset int32) FederatedBlockAPIListRequest { + 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 FederatedBlockAPIListRequest) Limit(limit int32) FederatedBlockAPIListRequest { + 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 FederatedBlockAPIListRequest) PageToken(pageToken string) FederatedBlockAPIListRequest { + 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 FederatedBlockAPIListRequest) OrderBy(orderBy string) FederatedBlockAPIListRequest { + r.orderBy = &orderBy + return r +} + +// This parameter is used for sorting by tags. +func (r FederatedBlockAPIListRequest) TorderBy(torderBy string) FederatedBlockAPIListRequest { + r.torderBy = &torderBy + return r +} + +// This parameter is used for filtering by tags. +func (r FederatedBlockAPIListRequest) Tfilter(tfilter string) FederatedBlockAPIListRequest { + r.tfilter = &tfilter + return r +} + +func (r FederatedBlockAPIListRequest) Execute() (*FederationListFederatedBlockResponse, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List Retrieve the federated blocks. + +Use this method to retrieve __FederatedBlock__ objects. +The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedBlockAPIListRequest +*/ +func (a *FederatedBlockAPIService) List(ctx context.Context) FederatedBlockAPIListRequest { + return FederatedBlockAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationListFederatedBlockResponse +func (a *FederatedBlockAPIService) ListExecute(r FederatedBlockAPIListRequest) (*FederationListFederatedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListFederatedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block" + + 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.torderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") + } + if r.tfilter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") + } + // 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 FederatedBlockAPIReadRequest struct { + ctx context.Context + ApiService FederatedBlockAPI + 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 FederatedBlockAPIReadRequest) Fields(fields string) FederatedBlockAPIReadRequest { + r.fields = &fields + return r +} + +func (r FederatedBlockAPIReadRequest) Execute() (*FederationReadFederatedBlockResponse, *http.Response, error) { + return r.ApiService.ReadExecute(r) +} + +/* +Read Retrieve the federated block. + +Use this method to retrieve a __FederatedBlock__ object. +The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedBlockAPIReadRequest +*/ +func (a *FederatedBlockAPIService) Read(ctx context.Context, id string) FederatedBlockAPIReadRequest { + return FederatedBlockAPIReadRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationReadFederatedBlockResponse +func (a *FederatedBlockAPIService) ReadExecute(r FederatedBlockAPIReadRequest) (*FederationReadFederatedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationReadFederatedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.Read") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{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 FederatedBlockAPIUpdateRequest struct { + ctx context.Context + ApiService FederatedBlockAPI + id string + body *FederationFederatedBlock +} + +func (r FederatedBlockAPIUpdateRequest) Body(body FederationFederatedBlock) FederatedBlockAPIUpdateRequest { + r.body = &body + return r +} + +func (r FederatedBlockAPIUpdateRequest) Execute() (*FederationUpdateFederatedBlockResponse, *http.Response, error) { + return r.ApiService.UpdateExecute(r) +} + +/* +Update Update the federated block. + +Use this method to update a __FederatedBlock__ object. +The __FederatedBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedBlockAPIUpdateRequest +*/ +func (a *FederatedBlockAPIService) Update(ctx context.Context, id string) FederatedBlockAPIUpdateRequest { + return FederatedBlockAPIUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationUpdateFederatedBlockResponse +func (a *FederatedBlockAPIService) UpdateExecute(r FederatedBlockAPIUpdateRequest) (*FederationUpdateFederatedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationUpdateFederatedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.Update") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{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/ipamfederation/api_federated_realm.go b/ipamfederation/api_federated_realm.go new file mode 100644 index 0000000..3de8fa8 --- /dev/null +++ b/ipamfederation/api_federated_realm.go @@ -0,0 +1,684 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type FederatedRealmAPI interface { + /* + Create Create the federated realm. + + Use this method to create a __FederatedRealm__ object. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedRealmAPICreateRequest + */ + Create(ctx context.Context) FederatedRealmAPICreateRequest + + // CreateExecute executes the request + // @return FederationCreateFederatedRealmResponse + CreateExecute(r FederatedRealmAPICreateRequest) (*FederationCreateFederatedRealmResponse, *http.Response, error) + /* + Delete Delete federated realm. + + Use this method to delete a __FederatedRealm__ object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedRealmAPIDeleteRequest + */ + Delete(ctx context.Context, id string) FederatedRealmAPIDeleteRequest + + // DeleteExecute executes the request + DeleteExecute(r FederatedRealmAPIDeleteRequest) (*http.Response, error) + /* + List Retrieve federated realms. + + Use this method to retrieve __FederatedRealm__ objects. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedRealmAPIListRequest + */ + List(ctx context.Context) FederatedRealmAPIListRequest + + // ListExecute executes the request + // @return FederationListFederatedRealmResponse + ListExecute(r FederatedRealmAPIListRequest) (*FederationListFederatedRealmResponse, *http.Response, error) + /* + Read Retrieve the federated realm. + + Use this method to retrieve a __FederatedRealm__ object. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedRealmAPIReadRequest + */ + Read(ctx context.Context, id string) FederatedRealmAPIReadRequest + + // ReadExecute executes the request + // @return FederationReadFederatedRealmResponse + ReadExecute(r FederatedRealmAPIReadRequest) (*FederationReadFederatedRealmResponse, *http.Response, error) + /* + Update Update the federated realm. + + Use this method to update a __FederatedRealm__ object. + The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedRealmAPIUpdateRequest + */ + Update(ctx context.Context, id string) FederatedRealmAPIUpdateRequest + + // UpdateExecute executes the request + // @return FederationUpdateFederatedRealmResponse + UpdateExecute(r FederatedRealmAPIUpdateRequest) (*FederationUpdateFederatedRealmResponse, *http.Response, error) +} + +// FederatedRealmAPIService FederatedRealmAPI service +type FederatedRealmAPIService internal.Service + +type FederatedRealmAPICreateRequest struct { + ctx context.Context + ApiService FederatedRealmAPI + body *FederationFederatedRealm +} + +func (r FederatedRealmAPICreateRequest) Body(body FederationFederatedRealm) FederatedRealmAPICreateRequest { + r.body = &body + return r +} + +func (r FederatedRealmAPICreateRequest) Execute() (*FederationCreateFederatedRealmResponse, *http.Response, error) { + return r.ApiService.CreateExecute(r) +} + +/* +Create Create the federated realm. + +Use this method to create a __FederatedRealm__ object. +The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedRealmAPICreateRequest +*/ +func (a *FederatedRealmAPIService) Create(ctx context.Context) FederatedRealmAPICreateRequest { + return FederatedRealmAPICreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationCreateFederatedRealmResponse +func (a *FederatedRealmAPIService) CreateExecute(r FederatedRealmAPICreateRequest) (*FederationCreateFederatedRealmResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateFederatedRealmResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.Create") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_realm" + + 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 FederatedRealmAPIDeleteRequest struct { + ctx context.Context + ApiService FederatedRealmAPI + id string +} + +func (r FederatedRealmAPIDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteExecute(r) +} + +/* +Delete Delete federated realm. + +Use this method to delete a __FederatedRealm__ object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedRealmAPIDeleteRequest +*/ +func (a *FederatedRealmAPIService) Delete(ctx context.Context, id string) FederatedRealmAPIDeleteRequest { + return FederatedRealmAPIDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *FederatedRealmAPIService) DeleteExecute(r FederatedRealmAPIDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.Delete") + if err != nil { + return nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_realm/{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 FederatedRealmAPIListRequest struct { + ctx context.Context + ApiService FederatedRealmAPI + filter *string + orderBy *string + fields *string + offset *int32 + limit *int32 + pageToken *string + torderBy *string + tfilter *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 | +func (r FederatedRealmAPIListRequest) Filter(filter string) FederatedRealmAPIListRequest { + r.filter = &filter + 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 FederatedRealmAPIListRequest) OrderBy(orderBy string) FederatedRealmAPIListRequest { + r.orderBy = &orderBy + return r +} + +// 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 FederatedRealmAPIListRequest) Fields(fields string) FederatedRealmAPIListRequest { + r.fields = &fields + 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 FederatedRealmAPIListRequest) Offset(offset int32) FederatedRealmAPIListRequest { + 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 FederatedRealmAPIListRequest) Limit(limit int32) FederatedRealmAPIListRequest { + 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 FederatedRealmAPIListRequest) PageToken(pageToken string) FederatedRealmAPIListRequest { + r.pageToken = &pageToken + return r +} + +// This parameter is used for sorting by tags. +func (r FederatedRealmAPIListRequest) TorderBy(torderBy string) FederatedRealmAPIListRequest { + r.torderBy = &torderBy + return r +} + +// This parameter is used for filtering by tags. +func (r FederatedRealmAPIListRequest) Tfilter(tfilter string) FederatedRealmAPIListRequest { + r.tfilter = &tfilter + return r +} + +func (r FederatedRealmAPIListRequest) Execute() (*FederationListFederatedRealmResponse, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List Retrieve federated realms. + +Use this method to retrieve __FederatedRealm__ objects. +The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return FederatedRealmAPIListRequest +*/ +func (a *FederatedRealmAPIService) List(ctx context.Context) FederatedRealmAPIListRequest { + return FederatedRealmAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationListFederatedRealmResponse +func (a *FederatedRealmAPIService) ListExecute(r FederatedRealmAPIListRequest) (*FederationListFederatedRealmResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListFederatedRealmResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_realm" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.filter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_filter", r.filter, "") + } + if r.orderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_order_by", r.orderBy, "") + } + if r.fields != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_fields", r.fields, "") + } + 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.torderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") + } + if r.tfilter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") + } + // 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 FederatedRealmAPIReadRequest struct { + ctx context.Context + ApiService FederatedRealmAPI + 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 FederatedRealmAPIReadRequest) Fields(fields string) FederatedRealmAPIReadRequest { + r.fields = &fields + return r +} + +func (r FederatedRealmAPIReadRequest) Execute() (*FederationReadFederatedRealmResponse, *http.Response, error) { + return r.ApiService.ReadExecute(r) +} + +/* +Read Retrieve the federated realm. + +Use this method to retrieve a __FederatedRealm__ object. +The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedRealmAPIReadRequest +*/ +func (a *FederatedRealmAPIService) Read(ctx context.Context, id string) FederatedRealmAPIReadRequest { + return FederatedRealmAPIReadRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationReadFederatedRealmResponse +func (a *FederatedRealmAPIService) ReadExecute(r FederatedRealmAPIReadRequest) (*FederationReadFederatedRealmResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationReadFederatedRealmResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.Read") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_realm/{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 FederatedRealmAPIUpdateRequest struct { + ctx context.Context + ApiService FederatedRealmAPI + id string + body *FederationFederatedRealm +} + +func (r FederatedRealmAPIUpdateRequest) Body(body FederationFederatedRealm) FederatedRealmAPIUpdateRequest { + r.body = &body + return r +} + +func (r FederatedRealmAPIUpdateRequest) Execute() (*FederationUpdateFederatedRealmResponse, *http.Response, error) { + return r.ApiService.UpdateExecute(r) +} + +/* +Update Update the federated realm. + +Use this method to update a __FederatedRealm__ object. +The __FederatedRealm__ object object is a unique set of federated blocks per realm. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return FederatedRealmAPIUpdateRequest +*/ +func (a *FederatedRealmAPIService) Update(ctx context.Context, id string) FederatedRealmAPIUpdateRequest { + return FederatedRealmAPIUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationUpdateFederatedRealmResponse +func (a *FederatedRealmAPIService) UpdateExecute(r FederatedRealmAPIUpdateRequest) (*FederationUpdateFederatedRealmResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationUpdateFederatedRealmResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.Update") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_realm/{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/ipamfederation/api_next_available_delegation.go b/ipamfederation/api_next_available_delegation.go new file mode 100644 index 0000000..d187520 --- /dev/null +++ b/ipamfederation/api_next_available_delegation.go @@ -0,0 +1,146 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type NextAvailableDelegationAPI interface { + /* + GetNextAvailableDelegation Retrieve the next available delegation. + + Use this method to generate the next "n" available __Delegation__ object with user specified predicates. + The response will be "n" __Delegation__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return NextAvailableDelegationAPIGetNextAvailableDelegationRequest + */ + GetNextAvailableDelegation(ctx context.Context) NextAvailableDelegationAPIGetNextAvailableDelegationRequest + + // GetNextAvailableDelegationExecute executes the request + // @return FederationGetNextAvailableDelegationResponse + GetNextAvailableDelegationExecute(r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) (*FederationGetNextAvailableDelegationResponse, *http.Response, error) +} + +// NextAvailableDelegationAPIService NextAvailableDelegationAPI service +type NextAvailableDelegationAPIService internal.Service + +type NextAvailableDelegationAPIGetNextAvailableDelegationRequest struct { + ctx context.Context + ApiService NextAvailableDelegationAPI + body *FederationGetNextAvailableDelegationRequest +} + +func (r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) Body(body FederationGetNextAvailableDelegationRequest) NextAvailableDelegationAPIGetNextAvailableDelegationRequest { + r.body = &body + return r +} + +func (r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) Execute() (*FederationGetNextAvailableDelegationResponse, *http.Response, error) { + return r.ApiService.GetNextAvailableDelegationExecute(r) +} + +/* +GetNextAvailableDelegation Retrieve the next available delegation. + +Use this method to generate the next "n" available __Delegation__ object with user specified predicates. +The response will be "n" __Delegation__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return NextAvailableDelegationAPIGetNextAvailableDelegationRequest +*/ +func (a *NextAvailableDelegationAPIService) GetNextAvailableDelegation(ctx context.Context) NextAvailableDelegationAPIGetNextAvailableDelegationRequest { + return NextAvailableDelegationAPIGetNextAvailableDelegationRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationGetNextAvailableDelegationResponse +func (a *NextAvailableDelegationAPIService) GetNextAvailableDelegationExecute(r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) (*FederationGetNextAvailableDelegationResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationGetNextAvailableDelegationResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableDelegationAPIService.GetNextAvailableDelegation") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/next_available_delegation" + + 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/ipamfederation/api_next_available_federated_block.go b/ipamfederation/api_next_available_federated_block.go new file mode 100644 index 0000000..e6fc0d7 --- /dev/null +++ b/ipamfederation/api_next_available_federated_block.go @@ -0,0 +1,553 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type NextAvailableFederatedBlockAPI interface { + /* + CreateNextAvailableFederatedBlocks Retrieve the next available federated block. + + Use this method to generate the next "n" available __FederatedBlock__ object with user specified predicates. + The response will be "n" __FederatedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest + */ + CreateNextAvailableFederatedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest + + // CreateNextAvailableFederatedBlocksExecute executes the request + // @return FederationCreateNextAvailableFederatedBlockResponse + CreateNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) (*FederationCreateNextAvailableFederatedBlockResponse, *http.Response, error) + /* + CreateNextAvailableOverlappingBlocks Retrieve the next available overlapping block. + + Use this method to generate the next "n" available __OverlappingBlock__ object with user specified predicates. + The response will be "n" __OverlappingBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest + */ + CreateNextAvailableOverlappingBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest + + // CreateNextAvailableOverlappingBlocksExecute executes the request + // @return FederationCreateNextAvailableOverlappingBlockResponse + CreateNextAvailableOverlappingBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) (*FederationCreateNextAvailableOverlappingBlockResponse, *http.Response, error) + /* + CreateNextAvailableReservedBlocks Retrieve the next available reserved block. + + Use this method to generate the next "n" available __ReservedBlock__ object with user specified predicates. + The response will be "n" __ReservedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest + */ + CreateNextAvailableReservedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest + + // CreateNextAvailableReservedBlocksExecute executes the request + // @return FederationCreateNextAvailableReservedBlockResponse + CreateNextAvailableReservedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) (*FederationCreateNextAvailableReservedBlockResponse, *http.Response, error) + /* + ListNextAvailableFederatedBlocks List the next available federated block. + + Use this method to generate the next "n" available __FederatedBlock__ object with user specified predicates. + The response will be "n" __FederatedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest + */ + ListNextAvailableFederatedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest + + // ListNextAvailableFederatedBlocksExecute executes the request + // @return FederationListNextAvailableFederatedBlockResponse + ListNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) (*FederationListNextAvailableFederatedBlockResponse, *http.Response, error) +} + +// NextAvailableFederatedBlockAPIService NextAvailableFederatedBlockAPI service +type NextAvailableFederatedBlockAPIService internal.Service + +type NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest struct { + ctx context.Context + ApiService NextAvailableFederatedBlockAPI + id string + body *FederationNextAvailableBlockRequest +} + +func (r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) Body(body FederationNextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest { + r.body = &body + return r +} + +func (r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) Execute() (*FederationCreateNextAvailableFederatedBlockResponse, *http.Response, error) { + return r.ApiService.CreateNextAvailableFederatedBlocksExecute(r) +} + +/* +CreateNextAvailableFederatedBlocks Retrieve the next available federated block. + +Use this method to generate the next "n" available __FederatedBlock__ object with user specified predicates. +The response will be "n" __FederatedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest +*/ +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableFederatedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest { + return NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationCreateNextAvailableFederatedBlockResponse +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) (*FederationCreateNextAvailableFederatedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateNextAvailableFederatedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.CreateNextAvailableFederatedBlocks") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{id}/next_available_federated_block" + 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 +} + +type NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest struct { + ctx context.Context + ApiService NextAvailableFederatedBlockAPI + id string + body *FederationNextAvailableBlockRequest +} + +func (r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) Body(body FederationNextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest { + r.body = &body + return r +} + +func (r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) Execute() (*FederationCreateNextAvailableOverlappingBlockResponse, *http.Response, error) { + return r.ApiService.CreateNextAvailableOverlappingBlocksExecute(r) +} + +/* +CreateNextAvailableOverlappingBlocks Retrieve the next available overlapping block. + +Use this method to generate the next "n" available __OverlappingBlock__ object with user specified predicates. +The response will be "n" __OverlappingBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest +*/ +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableOverlappingBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest { + return NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationCreateNextAvailableOverlappingBlockResponse +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableOverlappingBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) (*FederationCreateNextAvailableOverlappingBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateNextAvailableOverlappingBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.CreateNextAvailableOverlappingBlocks") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{id}/next_available_overlapping_block" + 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 +} + +type NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest struct { + ctx context.Context + ApiService NextAvailableFederatedBlockAPI + id string + body *FederationNextAvailableBlockRequest +} + +func (r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) Body(body FederationNextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest { + r.body = &body + return r +} + +func (r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) Execute() (*FederationCreateNextAvailableReservedBlockResponse, *http.Response, error) { + return r.ApiService.CreateNextAvailableReservedBlocksExecute(r) +} + +/* +CreateNextAvailableReservedBlocks Retrieve the next available reserved block. + +Use this method to generate the next "n" available __ReservedBlock__ object with user specified predicates. +The response will be "n" __ReservedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest +*/ +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableReservedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest { + return NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationCreateNextAvailableReservedBlockResponse +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableReservedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) (*FederationCreateNextAvailableReservedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateNextAvailableReservedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.CreateNextAvailableReservedBlocks") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{id}/next_available_reserved_block" + 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 +} + +type NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest struct { + ctx context.Context + ApiService NextAvailableFederatedBlockAPI + id string + cidr *int64 + count *int64 + name *string + comment *string +} + +// The CIDR of the federated block. This is required, if _address_ does not specify it in its input. +func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) Cidr(cidr int64) NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest { + r.cidr = &cidr + return r +} + +// The count of __Block__ required. If not provided, it will default to 1. +func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) Count(count int64) NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest { + r.count = &count + return r +} + +// The name to be provided. +func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) Name(name string) NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest { + r.name = &name + return r +} + +// The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. +func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) Comment(comment string) NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest { + r.comment = &comment + return r +} + +func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) Execute() (*FederationListNextAvailableFederatedBlockResponse, *http.Response, error) { + return r.ApiService.ListNextAvailableFederatedBlocksExecute(r) +} + +/* +ListNextAvailableFederatedBlocks List the next available federated block. + +Use this method to generate the next "n" available __FederatedBlock__ object with user specified predicates. +The response will be "n" __FederatedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest +*/ +func (a *NextAvailableFederatedBlockAPIService) ListNextAvailableFederatedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest { + return NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationListNextAvailableFederatedBlockResponse +func (a *NextAvailableFederatedBlockAPIService) ListNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) (*FederationListNextAvailableFederatedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListNextAvailableFederatedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.ListNextAvailableFederatedBlocks") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{id}/next_available_federated_block" + 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.cidr != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "cidr", r.cidr, "") + } + if r.count != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "") + } + if r.name != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.comment != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "comment", r.comment, "") + } + // 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/ipamfederation/api_next_available_overlapping_block.go b/ipamfederation/api_next_available_overlapping_block.go new file mode 100644 index 0000000..f96b7f4 --- /dev/null +++ b/ipamfederation/api_next_available_overlapping_block.go @@ -0,0 +1,181 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type NextAvailableOverlappingBlockAPI interface { + /* + ListNextAvailableOverlappingBlocks List the next available overlapping block. + + Use this method to list the next "n" available __OverlappingBlock__ object with user specified predicates. + The response will be "n" __OverlappingBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest + */ + ListNextAvailableOverlappingBlocks(ctx context.Context, id string) NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest + + // ListNextAvailableOverlappingBlocksExecute executes the request + // @return FederationListNextAvailableOverlappingBlockResponse + ListNextAvailableOverlappingBlocksExecute(r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) (*FederationListNextAvailableOverlappingBlockResponse, *http.Response, error) +} + +// NextAvailableOverlappingBlockAPIService NextAvailableOverlappingBlockAPI service +type NextAvailableOverlappingBlockAPIService internal.Service + +type NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest struct { + ctx context.Context + ApiService NextAvailableOverlappingBlockAPI + id string + cidr *int64 + count *int64 + name *string + comment *string +} + +// The CIDR of the federated block. This is required, if _address_ does not specify it in its input. +func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) Cidr(cidr int64) NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest { + r.cidr = &cidr + return r +} + +// The count of __Block__ required. If not provided, it will default to 1. +func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) Count(count int64) NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest { + r.count = &count + return r +} + +// The name to be provided. +func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) Name(name string) NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest { + r.name = &name + return r +} + +// The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. +func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) Comment(comment string) NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest { + r.comment = &comment + return r +} + +func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) Execute() (*FederationListNextAvailableOverlappingBlockResponse, *http.Response, error) { + return r.ApiService.ListNextAvailableOverlappingBlocksExecute(r) +} + +/* +ListNextAvailableOverlappingBlocks List the next available overlapping block. + +Use this method to list the next "n" available __OverlappingBlock__ object with user specified predicates. +The response will be "n" __OverlappingBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest +*/ +func (a *NextAvailableOverlappingBlockAPIService) ListNextAvailableOverlappingBlocks(ctx context.Context, id string) NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest { + return NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationListNextAvailableOverlappingBlockResponse +func (a *NextAvailableOverlappingBlockAPIService) ListNextAvailableOverlappingBlocksExecute(r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) (*FederationListNextAvailableOverlappingBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListNextAvailableOverlappingBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableOverlappingBlockAPIService.ListNextAvailableOverlappingBlocks") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{id}/next_available_overlapping_block" + 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.cidr != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "cidr", r.cidr, "") + } + if r.count != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "") + } + if r.name != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.comment != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "comment", r.comment, "") + } + // 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/ipamfederation/api_next_available_reserved_block.go b/ipamfederation/api_next_available_reserved_block.go new file mode 100644 index 0000000..a351ede --- /dev/null +++ b/ipamfederation/api_next_available_reserved_block.go @@ -0,0 +1,181 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type NextAvailableReservedBlockAPI interface { + /* + ListNextAvailableReservedBlocks List the next available reserved block. + + Use this method to list the next "n" available __ReservedBlock__ object with user specified predicates. + The response will be "n" __ReservedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest + */ + ListNextAvailableReservedBlocks(ctx context.Context, id string) NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest + + // ListNextAvailableReservedBlocksExecute executes the request + // @return FederationListNextAvailableReservedBlockResponse + ListNextAvailableReservedBlocksExecute(r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) (*FederationListNextAvailableReservedBlockResponse, *http.Response, error) +} + +// NextAvailableReservedBlockAPIService NextAvailableReservedBlockAPI service +type NextAvailableReservedBlockAPIService internal.Service + +type NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest struct { + ctx context.Context + ApiService NextAvailableReservedBlockAPI + id string + cidr *int64 + count *int64 + name *string + comment *string +} + +// The CIDR of the federated block. This is required, if _address_ does not specify it in its input. +func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Cidr(cidr int64) NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest { + r.cidr = &cidr + return r +} + +// The count of __Block__ required. If not provided, it will default to 1. +func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Count(count int64) NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest { + r.count = &count + return r +} + +// The name to be provided. +func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Name(name string) NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest { + r.name = &name + return r +} + +// The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. +func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Comment(comment string) NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest { + r.comment = &comment + return r +} + +func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Execute() (*FederationListNextAvailableReservedBlockResponse, *http.Response, error) { + return r.ApiService.ListNextAvailableReservedBlocksExecute(r) +} + +/* +ListNextAvailableReservedBlocks List the next available reserved block. + +Use this method to list the next "n" available __ReservedBlock__ object with user specified predicates. +The response will be "n" __ReservedBlock__ objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest +*/ +func (a *NextAvailableReservedBlockAPIService) ListNextAvailableReservedBlocks(ctx context.Context, id string) NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest { + return NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationListNextAvailableReservedBlockResponse +func (a *NextAvailableReservedBlockAPIService) ListNextAvailableReservedBlocksExecute(r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) (*FederationListNextAvailableReservedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListNextAvailableReservedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableReservedBlockAPIService.ListNextAvailableReservedBlocks") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/federated_block/{id}/next_available_reserved_block" + 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.cidr != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "cidr", r.cidr, "") + } + if r.count != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "count", r.count, "") + } + if r.name != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "name", r.name, "") + } + if r.comment != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "comment", r.comment, "") + } + // 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/ipamfederation/api_overlapping_block.go b/ipamfederation/api_overlapping_block.go new file mode 100644 index 0000000..7f9a6bf --- /dev/null +++ b/ipamfederation/api_overlapping_block.go @@ -0,0 +1,686 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type OverlappingBlockAPI interface { + /* + Create Create the overlapping block. + + Use this method to create an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return OverlappingBlockAPICreateRequest + */ + Create(ctx context.Context) OverlappingBlockAPICreateRequest + + // CreateExecute executes the request + // @return FederationCreateOverlappingBlockResponse + CreateExecute(r OverlappingBlockAPICreateRequest) (*FederationCreateOverlappingBlockResponse, *http.Response, error) + /* + Delete Delete the overlapping block. + + Use this method to delete an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return OverlappingBlockAPIDeleteRequest + */ + Delete(ctx context.Context, id string) OverlappingBlockAPIDeleteRequest + + // DeleteExecute executes the request + DeleteExecute(r OverlappingBlockAPIDeleteRequest) (*http.Response, error) + /* + List Retrieve the overlapping block. + + Use this method to retrieve __OverlappingBlock__ objects. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return OverlappingBlockAPIListRequest + */ + List(ctx context.Context) OverlappingBlockAPIListRequest + + // ListExecute executes the request + // @return FederationListOverlappingBlockResponse + ListExecute(r OverlappingBlockAPIListRequest) (*FederationListOverlappingBlockResponse, *http.Response, error) + /* + Read Retrieve the overlapping block. + + Use this method to retrieve an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return OverlappingBlockAPIReadRequest + */ + Read(ctx context.Context, id string) OverlappingBlockAPIReadRequest + + // ReadExecute executes the request + // @return FederationReadOverlappingBlockResponse + ReadExecute(r OverlappingBlockAPIReadRequest) (*FederationReadOverlappingBlockResponse, *http.Response, error) + /* + Update Update the overlapping block. + + Use this method to update an __OverlappingBlock__ object. + The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return OverlappingBlockAPIUpdateRequest + */ + Update(ctx context.Context, id string) OverlappingBlockAPIUpdateRequest + + // UpdateExecute executes the request + // @return FederationUpdateOverlappingBlockResponse + UpdateExecute(r OverlappingBlockAPIUpdateRequest) (*FederationUpdateOverlappingBlockResponse, *http.Response, error) +} + +// OverlappingBlockAPIService OverlappingBlockAPI service +type OverlappingBlockAPIService internal.Service + +type OverlappingBlockAPICreateRequest struct { + ctx context.Context + ApiService OverlappingBlockAPI + body *FederationOverlappingBlock +} + +func (r OverlappingBlockAPICreateRequest) Body(body FederationOverlappingBlock) OverlappingBlockAPICreateRequest { + r.body = &body + return r +} + +func (r OverlappingBlockAPICreateRequest) Execute() (*FederationCreateOverlappingBlockResponse, *http.Response, error) { + return r.ApiService.CreateExecute(r) +} + +/* +Create Create the overlapping block. + +Use this method to create an __OverlappingBlock__ object. +The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return OverlappingBlockAPICreateRequest +*/ +func (a *OverlappingBlockAPIService) Create(ctx context.Context) OverlappingBlockAPICreateRequest { + return OverlappingBlockAPICreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationCreateOverlappingBlockResponse +func (a *OverlappingBlockAPIService) CreateExecute(r OverlappingBlockAPICreateRequest) (*FederationCreateOverlappingBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateOverlappingBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.Create") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/overlapping_block" + + 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 OverlappingBlockAPIDeleteRequest struct { + ctx context.Context + ApiService OverlappingBlockAPI + id string +} + +func (r OverlappingBlockAPIDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteExecute(r) +} + +/* +Delete Delete the overlapping block. + +Use this method to delete an __OverlappingBlock__ object. +The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return OverlappingBlockAPIDeleteRequest +*/ +func (a *OverlappingBlockAPIService) Delete(ctx context.Context, id string) OverlappingBlockAPIDeleteRequest { + return OverlappingBlockAPIDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *OverlappingBlockAPIService) DeleteExecute(r OverlappingBlockAPIDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.Delete") + if err != nil { + return nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/overlapping_block/{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 OverlappingBlockAPIListRequest struct { + ctx context.Context + ApiService OverlappingBlockAPI + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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 OverlappingBlockAPIListRequest) Fields(fields string) OverlappingBlockAPIListRequest { + 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 OverlappingBlockAPIListRequest) Filter(filter string) OverlappingBlockAPIListRequest { + 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 OverlappingBlockAPIListRequest) Offset(offset int32) OverlappingBlockAPIListRequest { + 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 OverlappingBlockAPIListRequest) Limit(limit int32) OverlappingBlockAPIListRequest { + 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 OverlappingBlockAPIListRequest) PageToken(pageToken string) OverlappingBlockAPIListRequest { + 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 OverlappingBlockAPIListRequest) OrderBy(orderBy string) OverlappingBlockAPIListRequest { + r.orderBy = &orderBy + return r +} + +// This parameter is used for sorting by tags. +func (r OverlappingBlockAPIListRequest) TorderBy(torderBy string) OverlappingBlockAPIListRequest { + r.torderBy = &torderBy + return r +} + +// This parameter is used for filtering by tags. +func (r OverlappingBlockAPIListRequest) Tfilter(tfilter string) OverlappingBlockAPIListRequest { + r.tfilter = &tfilter + return r +} + +func (r OverlappingBlockAPIListRequest) Execute() (*FederationListOverlappingBlockResponse, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List Retrieve the overlapping block. + +Use this method to retrieve __OverlappingBlock__ objects. +The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return OverlappingBlockAPIListRequest +*/ +func (a *OverlappingBlockAPIService) List(ctx context.Context) OverlappingBlockAPIListRequest { + return OverlappingBlockAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationListOverlappingBlockResponse +func (a *OverlappingBlockAPIService) ListExecute(r OverlappingBlockAPIListRequest) (*FederationListOverlappingBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListOverlappingBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/overlapping_block" + + 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.torderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") + } + if r.tfilter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") + } + // 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 OverlappingBlockAPIReadRequest struct { + ctx context.Context + ApiService OverlappingBlockAPI + 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 OverlappingBlockAPIReadRequest) Fields(fields string) OverlappingBlockAPIReadRequest { + r.fields = &fields + return r +} + +func (r OverlappingBlockAPIReadRequest) Execute() (*FederationReadOverlappingBlockResponse, *http.Response, error) { + return r.ApiService.ReadExecute(r) +} + +/* +Read Retrieve the overlapping block. + +Use this method to retrieve an __OverlappingBlock__ object. +The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return OverlappingBlockAPIReadRequest +*/ +func (a *OverlappingBlockAPIService) Read(ctx context.Context, id string) OverlappingBlockAPIReadRequest { + return OverlappingBlockAPIReadRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationReadOverlappingBlockResponse +func (a *OverlappingBlockAPIService) ReadExecute(r OverlappingBlockAPIReadRequest) (*FederationReadOverlappingBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationReadOverlappingBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.Read") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/overlapping_block/{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 OverlappingBlockAPIUpdateRequest struct { + ctx context.Context + ApiService OverlappingBlockAPI + id string + body *FederationOverlappingBlock +} + +func (r OverlappingBlockAPIUpdateRequest) Body(body FederationOverlappingBlock) OverlappingBlockAPIUpdateRequest { + r.body = &body + return r +} + +func (r OverlappingBlockAPIUpdateRequest) Execute() (*FederationUpdateOverlappingBlockResponse, *http.Response, error) { + return r.ApiService.UpdateExecute(r) +} + +/* +Update Update the overlapping block. + +Use this method to update an __OverlappingBlock__ object. +The __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return OverlappingBlockAPIUpdateRequest +*/ +func (a *OverlappingBlockAPIService) Update(ctx context.Context, id string) OverlappingBlockAPIUpdateRequest { + return OverlappingBlockAPIUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationUpdateOverlappingBlockResponse +func (a *OverlappingBlockAPIService) UpdateExecute(r OverlappingBlockAPIUpdateRequest) (*FederationUpdateOverlappingBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationUpdateOverlappingBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.Update") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/overlapping_block/{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/ipamfederation/api_reserved_block.go b/ipamfederation/api_reserved_block.go new file mode 100644 index 0000000..795ebe4 --- /dev/null +++ b/ipamfederation/api_reserved_block.go @@ -0,0 +1,686 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +type ReservedBlockAPI interface { + /* + Create Create the reserved block. + + Use this method to create a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ReservedBlockAPICreateRequest + */ + Create(ctx context.Context) ReservedBlockAPICreateRequest + + // CreateExecute executes the request + // @return FederationCreateReservedBlockResponse + CreateExecute(r ReservedBlockAPICreateRequest) (*FederationCreateReservedBlockResponse, *http.Response, error) + /* + Delete Delete the reserved block. + + Use this method to delete a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ReservedBlockAPIDeleteRequest + */ + Delete(ctx context.Context, id string) ReservedBlockAPIDeleteRequest + + // DeleteExecute executes the request + DeleteExecute(r ReservedBlockAPIDeleteRequest) (*http.Response, error) + /* + List Retrieve the reserved block. + + Use this method to retrieve __ReservedBlock__ objects. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ReservedBlockAPIListRequest + */ + List(ctx context.Context) ReservedBlockAPIListRequest + + // ListExecute executes the request + // @return FederationListReservedBlockResponse + ListExecute(r ReservedBlockAPIListRequest) (*FederationListReservedBlockResponse, *http.Response, error) + /* + Read Retrieve the reserved block. + + Use this method to retrieve a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ReservedBlockAPIReadRequest + */ + Read(ctx context.Context, id string) ReservedBlockAPIReadRequest + + // ReadExecute executes the request + // @return FederationReadReservedBlockResponse + ReadExecute(r ReservedBlockAPIReadRequest) (*FederationReadReservedBlockResponse, *http.Response, error) + /* + Update Update the reserved block. + + Use this method to update a __ReservedBlock__ object. + The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ReservedBlockAPIUpdateRequest + */ + Update(ctx context.Context, id string) ReservedBlockAPIUpdateRequest + + // UpdateExecute executes the request + // @return FederationUpdateReservedBlockResponse + UpdateExecute(r ReservedBlockAPIUpdateRequest) (*FederationUpdateReservedBlockResponse, *http.Response, error) +} + +// ReservedBlockAPIService ReservedBlockAPI service +type ReservedBlockAPIService internal.Service + +type ReservedBlockAPICreateRequest struct { + ctx context.Context + ApiService ReservedBlockAPI + body *FederationReservedBlock +} + +func (r ReservedBlockAPICreateRequest) Body(body FederationReservedBlock) ReservedBlockAPICreateRequest { + r.body = &body + return r +} + +func (r ReservedBlockAPICreateRequest) Execute() (*FederationCreateReservedBlockResponse, *http.Response, error) { + return r.ApiService.CreateExecute(r) +} + +/* +Create Create the reserved block. + +Use this method to create a __ReservedBlock__ object. +The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ReservedBlockAPICreateRequest +*/ +func (a *ReservedBlockAPIService) Create(ctx context.Context) ReservedBlockAPICreateRequest { + return ReservedBlockAPICreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationCreateReservedBlockResponse +func (a *ReservedBlockAPIService) CreateExecute(r ReservedBlockAPICreateRequest) (*FederationCreateReservedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationCreateReservedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.Create") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/reserved_block" + + 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 ReservedBlockAPIDeleteRequest struct { + ctx context.Context + ApiService ReservedBlockAPI + id string +} + +func (r ReservedBlockAPIDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteExecute(r) +} + +/* +Delete Delete the reserved block. + +Use this method to delete a __ReservedBlock__ object. +The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ReservedBlockAPIDeleteRequest +*/ +func (a *ReservedBlockAPIService) Delete(ctx context.Context, id string) ReservedBlockAPIDeleteRequest { + return ReservedBlockAPIDeleteRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ReservedBlockAPIService) DeleteExecute(r ReservedBlockAPIDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.Delete") + if err != nil { + return nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/reserved_block/{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 ReservedBlockAPIListRequest struct { + ctx context.Context + ApiService ReservedBlockAPI + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + torderBy *string + tfilter *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 ReservedBlockAPIListRequest) Fields(fields string) ReservedBlockAPIListRequest { + 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 ReservedBlockAPIListRequest) Filter(filter string) ReservedBlockAPIListRequest { + 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 ReservedBlockAPIListRequest) Offset(offset int32) ReservedBlockAPIListRequest { + 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 ReservedBlockAPIListRequest) Limit(limit int32) ReservedBlockAPIListRequest { + 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 ReservedBlockAPIListRequest) PageToken(pageToken string) ReservedBlockAPIListRequest { + 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 ReservedBlockAPIListRequest) OrderBy(orderBy string) ReservedBlockAPIListRequest { + r.orderBy = &orderBy + return r +} + +// This parameter is used for sorting by tags. +func (r ReservedBlockAPIListRequest) TorderBy(torderBy string) ReservedBlockAPIListRequest { + r.torderBy = &torderBy + return r +} + +// This parameter is used for filtering by tags. +func (r ReservedBlockAPIListRequest) Tfilter(tfilter string) ReservedBlockAPIListRequest { + r.tfilter = &tfilter + return r +} + +func (r ReservedBlockAPIListRequest) Execute() (*FederationListReservedBlockResponse, *http.Response, error) { + return r.ApiService.ListExecute(r) +} + +/* +List Retrieve the reserved block. + +Use this method to retrieve __ReservedBlock__ objects. +The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ReservedBlockAPIListRequest +*/ +func (a *ReservedBlockAPIService) List(ctx context.Context) ReservedBlockAPIListRequest { + return ReservedBlockAPIListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationListReservedBlockResponse +func (a *ReservedBlockAPIService) ListExecute(r ReservedBlockAPIListRequest) (*FederationListReservedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationListReservedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.List") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/reserved_block" + + 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.torderBy != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_torder_by", r.torderBy, "") + } + if r.tfilter != nil { + internal.ParameterAddToHeaderOrQuery(localVarQueryParams, "_tfilter", r.tfilter, "") + } + // 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 ReservedBlockAPIReadRequest struct { + ctx context.Context + ApiService ReservedBlockAPI + 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 ReservedBlockAPIReadRequest) Fields(fields string) ReservedBlockAPIReadRequest { + r.fields = &fields + return r +} + +func (r ReservedBlockAPIReadRequest) Execute() (*FederationReadReservedBlockResponse, *http.Response, error) { + return r.ApiService.ReadExecute(r) +} + +/* +Read Retrieve the reserved block. + +Use this method to retrieve a __ReservedBlock__ object. +The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ReservedBlockAPIReadRequest +*/ +func (a *ReservedBlockAPIService) Read(ctx context.Context, id string) ReservedBlockAPIReadRequest { + return ReservedBlockAPIReadRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationReadReservedBlockResponse +func (a *ReservedBlockAPIService) ReadExecute(r ReservedBlockAPIReadRequest) (*FederationReadReservedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationReadReservedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.Read") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/reserved_block/{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 ReservedBlockAPIUpdateRequest struct { + ctx context.Context + ApiService ReservedBlockAPI + id string + body *FederationReservedBlock +} + +func (r ReservedBlockAPIUpdateRequest) Body(body FederationReservedBlock) ReservedBlockAPIUpdateRequest { + r.body = &body + return r +} + +func (r ReservedBlockAPIUpdateRequest) Execute() (*FederationUpdateReservedBlockResponse, *http.Response, error) { + return r.ApiService.UpdateExecute(r) +} + +/* +Update Update the reserved block. + +Use this method to update a __ReservedBlock__ object. +The __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id An application specific resource identity of a resource + @return ReservedBlockAPIUpdateRequest +*/ +func (a *ReservedBlockAPIService) Update(ctx context.Context, id string) ReservedBlockAPIUpdateRequest { + return ReservedBlockAPIUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return FederationUpdateReservedBlockResponse +func (a *ReservedBlockAPIService) UpdateExecute(r ReservedBlockAPIUpdateRequest) (*FederationUpdateReservedBlockResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationUpdateReservedBlockResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.Update") + if err != nil { + return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) + } + + localVarPath := localBasePath + "/federation/reserved_block/{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/ipamfederation/client.go b/ipamfederation/client.go new file mode 100644 index 0000000..6dfda41 --- /dev/null +++ b/ipamfederation/client.go @@ -0,0 +1,70 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/option" +) + +const serviceBasePath = "/api/ddi/v1" + +// APIClient manages communication with the IPAM Federation API v1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + *internal.APIClient + + // API Services + BulkAPI BulkAPI + ConfigGenAPI ConfigGenAPI + DelegationAPI DelegationAPI + FederatedBlockAPI FederatedBlockAPI + FederatedRealmAPI FederatedRealmAPI + NextAvailableDelegationAPI NextAvailableDelegationAPI + NextAvailableFederatedBlockAPI NextAvailableFederatedBlockAPI + NextAvailableOverlappingBlockAPI NextAvailableOverlappingBlockAPI + NextAvailableReservedBlockAPI NextAvailableReservedBlockAPI + OverlappingBlockAPI OverlappingBlockAPI + ReservedBlockAPI ReservedBlockAPI +} + +// 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.BulkAPI = (*BulkAPIService)(&c.Common) + c.ConfigGenAPI = (*ConfigGenAPIService)(&c.Common) + c.DelegationAPI = (*DelegationAPIService)(&c.Common) + c.FederatedBlockAPI = (*FederatedBlockAPIService)(&c.Common) + c.FederatedRealmAPI = (*FederatedRealmAPIService)(&c.Common) + c.NextAvailableDelegationAPI = (*NextAvailableDelegationAPIService)(&c.Common) + c.NextAvailableFederatedBlockAPI = (*NextAvailableFederatedBlockAPIService)(&c.Common) + c.NextAvailableOverlappingBlockAPI = (*NextAvailableOverlappingBlockAPIService)(&c.Common) + c.NextAvailableReservedBlockAPI = (*NextAvailableReservedBlockAPIService)(&c.Common) + c.OverlappingBlockAPI = (*OverlappingBlockAPIService)(&c.Common) + c.ReservedBlockAPI = (*ReservedBlockAPIService)(&c.Common) + + return c +} diff --git a/ipamfederation/docs/BulkAPI.md b/ipamfederation/docs/BulkAPI.md new file mode 100644 index 0000000..d85b84b --- /dev/null +++ b/ipamfederation/docs/BulkAPI.md @@ -0,0 +1,75 @@ +# BulkAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**DelegationbulkDelegationBulk**](BulkAPI.md#DelegationbulkDelegationBulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. + + + +## DelegationbulkDelegationBulk + +> FederationDelegationBulkResponse DelegationbulkDelegationBulk(ctx).Body(body).Execute() + +Execute multiple operations on delegation objects. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationDelegationBulkRequest() // FederationDelegationBulkRequest | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.BulkAPI.DelegationbulkDelegationBulk(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BulkAPI.DelegationbulkDelegationBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DelegationbulkDelegationBulk`: FederationDelegationBulkResponse + fmt.Fprintf(os.Stdout, "Response from `BulkAPI.DelegationbulkDelegationBulk`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `BulkAPIDelegationbulkDelegationBulkRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationDelegationBulkRequest**](FederationDelegationBulkRequest.md) | | + +### Return type + +[**FederationDelegationBulkResponse**](FederationDelegationBulkResponse.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/ipamfederation/docs/ConfigGenAPI.md b/ipamfederation/docs/ConfigGenAPI.md new file mode 100644 index 0000000..b12e320 --- /dev/null +++ b/ipamfederation/docs/ConfigGenAPI.md @@ -0,0 +1,141 @@ +# ConfigGenAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Fetch**](ConfigGenAPI.md#Fetch) | **Get** /federation/policy/config/{ophid}/latest | +[**UpdateConfigStatus**](ConfigGenAPI.md#UpdateConfigStatus) | **Post** /federation/policy/config_status | + + + +## Fetch + +> FederationGenerateConfigBundleResponse Fetch(ctx, ophid).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + ophid := "ophid_example" // string | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.ConfigGenAPI.Fetch(context.Background(), ophid).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigGenAPI.Fetch``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Fetch`: FederationGenerateConfigBundleResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigGenAPI.Fetch`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**ophid** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a `ConfigGenAPIFetchRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + +### Return type + +[**FederationGenerateConfigBundleResponse**](FederationGenerateConfigBundleResponse.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) + + +## UpdateConfigStatus + +> FederationHealthCheckConfigResponse UpdateConfigStatus(ctx).Body(body).Execute() + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationHealthConfig() // FederationHealthConfig | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.ConfigGenAPI.UpdateConfigStatus(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ConfigGenAPI.UpdateConfigStatus``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UpdateConfigStatus`: FederationHealthCheckConfigResponse + fmt.Fprintf(os.Stdout, "Response from `ConfigGenAPI.UpdateConfigStatus`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `ConfigGenAPIUpdateConfigStatusRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationHealthConfig**](FederationHealthConfig.md) | | + +### Return type + +[**FederationHealthCheckConfigResponse**](FederationHealthCheckConfigResponse.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/ipamfederation/docs/DelegationAPI.md b/ipamfederation/docs/DelegationAPI.md new file mode 100644 index 0000000..971eca5 --- /dev/null +++ b/ipamfederation/docs/DelegationAPI.md @@ -0,0 +1,486 @@ +# DelegationAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Create**](DelegationAPI.md#Create) | **Post** /federation/delegation | Create the delegation. +[**Delete**](DelegationAPI.md#Delete) | **Delete** /federation/delegation/{id} | Delete the delegation. +[**DeleteWithoutId**](DelegationAPI.md#DeleteWithoutId) | **Delete** /federation/delegation | No-op DELETE Delegation operation. +[**List**](DelegationAPI.md#List) | **Get** /federation/delegation | Retrieve the delegation. +[**Read**](DelegationAPI.md#Read) | **Get** /federation/delegation/{id} | Retrieve the delegation. +[**Update**](DelegationAPI.md#Update) | **Patch** /federation/delegation/{id} | Update the delegation. +[**bulkDelegationBulk**](DelegationAPI.md#bulkDelegationBulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. + + + +## Create + +> FederationCreateDelegationResponse Create(ctx).Body(body).Execute() + +Create the delegation. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationDelegation("Address_example", []string{"FederatedRealms_example"}) // FederationDelegation | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.DelegationAPI.Create(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.Create``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Create`: FederationCreateDelegationResponse + fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Create`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPICreateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationDelegation**](FederationDelegation.md) | | + +### Return type + +[**FederationCreateDelegationResponse**](FederationCreateDelegationResponse.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 the delegation. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + r, err := apiClient.DelegationAPI.Delete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.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** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPIDeleteRequest` 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) + + +## DeleteWithoutId + +> DeleteWithoutId(ctx).Execute() + +No-op DELETE Delegation operation. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + + apiClient := ipamfederation.NewAPIClient() + r, err := apiClient.DelegationAPI.DeleteWithoutId(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.DeleteWithoutId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPIDeleteWithoutIdRequest` struct via the builder pattern + + +### 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 + +> FederationListDelegationResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() + +Retrieve the delegation. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.DelegationAPI.List(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: FederationListDelegationResponse + fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPIListRequest` 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. | +**torderBy** | **string** | This parameter is used for sorting by tags. | +**tfilter** | **string** | This parameter is used for filtering by tags. | + +### Return type + +[**FederationListDelegationResponse**](FederationListDelegationResponse.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 + +> FederationReadDelegationResponse Read(ctx, id).Fields(fields).Execute() + +Retrieve the delegation. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.DelegationAPI.Read(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.Read``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Read`: FederationReadDelegationResponse + fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Read`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPIReadRequest` 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 + +[**FederationReadDelegationResponse**](FederationReadDelegationResponse.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 + +> FederationUpdateDelegationResponse Update(ctx, id).Body(body).Execute() + +Update the delegation. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationDelegation("Address_example", []string{"FederatedRealms_example"}) // FederationDelegation | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.DelegationAPI.Update(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: FederationUpdateDelegationResponse + fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Update`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPIUpdateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationDelegation**](FederationDelegation.md) | | + +### Return type + +[**FederationUpdateDelegationResponse**](FederationUpdateDelegationResponse.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) + + +## bulkDelegationBulk + +> FederationDelegationBulkResponse bulkDelegationBulk(ctx).Body(body).Execute() + +Execute multiple operations on delegation objects. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationDelegationBulkRequest() // FederationDelegationBulkRequest | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.DelegationAPI.bulkDelegationBulk(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.bulkDelegationBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `bulkDelegationBulk`: FederationDelegationBulkResponse + fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.bulkDelegationBulk`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPIbulkDelegationBulkRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationDelegationBulkRequest**](FederationDelegationBulkRequest.md) | | + +### Return type + +[**FederationDelegationBulkResponse**](FederationDelegationBulkResponse.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/ipamfederation/docs/FederatedBlockAPI.md b/ipamfederation/docs/FederatedBlockAPI.md new file mode 100644 index 0000000..a5ed65a --- /dev/null +++ b/ipamfederation/docs/FederatedBlockAPI.md @@ -0,0 +1,359 @@ +# FederatedBlockAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Create**](FederatedBlockAPI.md#Create) | **Post** /federation/federated_block | Create the federated block. +[**Delete**](FederatedBlockAPI.md#Delete) | **Delete** /federation/federated_block/{id} | Delete the federated block. +[**List**](FederatedBlockAPI.md#List) | **Get** /federation/federated_block | Retrieve the federated blocks. +[**Read**](FederatedBlockAPI.md#Read) | **Get** /federation/federated_block/{id} | Retrieve the federated block. +[**Update**](FederatedBlockAPI.md#Update) | **Patch** /federation/federated_block/{id} | Update the federated block. + + + +## Create + +> FederationCreateFederatedBlockResponse Create(ctx).Body(body).Execute() + +Create the federated block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationFederatedBlock("Address_example", "FederatedRealm_example") // FederationFederatedBlock | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedBlockAPI.Create(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedBlockAPI.Create``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Create`: FederationCreateFederatedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.Create`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedBlockAPICreateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationFederatedBlock**](FederationFederatedBlock.md) | | + +### Return type + +[**FederationCreateFederatedBlockResponse**](FederationCreateFederatedBlockResponse.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 the federated block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + r, err := apiClient.FederatedBlockAPI.Delete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedBlockAPI.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** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedBlockAPIDeleteRequest` 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 + +> FederationListFederatedBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() + +Retrieve the federated blocks. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedBlockAPI.List(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedBlockAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: FederationListFederatedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedBlockAPIListRequest` 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. | +**torderBy** | **string** | This parameter is used for sorting by tags. | +**tfilter** | **string** | This parameter is used for filtering by tags. | + +### Return type + +[**FederationListFederatedBlockResponse**](FederationListFederatedBlockResponse.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 + +> FederationReadFederatedBlockResponse Read(ctx, id).Fields(fields).Execute() + +Retrieve the federated block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedBlockAPI.Read(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedBlockAPI.Read``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Read`: FederationReadFederatedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.Read`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedBlockAPIReadRequest` 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 + +[**FederationReadFederatedBlockResponse**](FederationReadFederatedBlockResponse.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 + +> FederationUpdateFederatedBlockResponse Update(ctx, id).Body(body).Execute() + +Update the federated block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationFederatedBlock("Address_example", "FederatedRealm_example") // FederationFederatedBlock | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedBlockAPI.Update(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedBlockAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: FederationUpdateFederatedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.Update`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedBlockAPIUpdateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationFederatedBlock**](FederationFederatedBlock.md) | | + +### Return type + +[**FederationUpdateFederatedBlockResponse**](FederationUpdateFederatedBlockResponse.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/ipamfederation/docs/FederatedRealmAPI.md b/ipamfederation/docs/FederatedRealmAPI.md new file mode 100644 index 0000000..2dbb126 --- /dev/null +++ b/ipamfederation/docs/FederatedRealmAPI.md @@ -0,0 +1,359 @@ +# FederatedRealmAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Create**](FederatedRealmAPI.md#Create) | **Post** /federation/federated_realm | Create the federated realm. +[**Delete**](FederatedRealmAPI.md#Delete) | **Delete** /federation/federated_realm/{id} | Delete federated realm. +[**List**](FederatedRealmAPI.md#List) | **Get** /federation/federated_realm | Retrieve federated realms. +[**Read**](FederatedRealmAPI.md#Read) | **Get** /federation/federated_realm/{id} | Retrieve the federated realm. +[**Update**](FederatedRealmAPI.md#Update) | **Patch** /federation/federated_realm/{id} | Update the federated realm. + + + +## Create + +> FederationCreateFederatedRealmResponse Create(ctx).Body(body).Execute() + +Create the federated realm. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationFederatedRealm("Name_example") // FederationFederatedRealm | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedRealmAPI.Create(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedRealmAPI.Create``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Create`: FederationCreateFederatedRealmResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.Create`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedRealmAPICreateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationFederatedRealm**](FederationFederatedRealm.md) | | + +### Return type + +[**FederationCreateFederatedRealmResponse**](FederationCreateFederatedRealmResponse.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 federated realm. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + r, err := apiClient.FederatedRealmAPI.Delete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedRealmAPI.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** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedRealmAPIDeleteRequest` 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 + +> FederationListFederatedRealmResponse List(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() + +Retrieve federated realms. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedRealmAPI.List(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedRealmAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: FederationListFederatedRealmResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedRealmAPIListRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**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 | | +**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. | +**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. | +**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. | +**torderBy** | **string** | This parameter is used for sorting by tags. | +**tfilter** | **string** | This parameter is used for filtering by tags. | + +### Return type + +[**FederationListFederatedRealmResponse**](FederationListFederatedRealmResponse.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 + +> FederationReadFederatedRealmResponse Read(ctx, id).Fields(fields).Execute() + +Retrieve the federated realm. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedRealmAPI.Read(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedRealmAPI.Read``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Read`: FederationReadFederatedRealmResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.Read`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedRealmAPIReadRequest` 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 + +[**FederationReadFederatedRealmResponse**](FederationReadFederatedRealmResponse.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 + +> FederationUpdateFederatedRealmResponse Update(ctx, id).Body(body).Execute() + +Update the federated realm. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationFederatedRealm("Name_example") // FederationFederatedRealm | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.FederatedRealmAPI.Update(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `FederatedRealmAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: FederationUpdateFederatedRealmResponse + fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.Update`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `FederatedRealmAPIUpdateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationFederatedRealm**](FederationFederatedRealm.md) | | + +### Return type + +[**FederationUpdateFederatedRealmResponse**](FederationUpdateFederatedRealmResponse.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/ipamfederation/docs/FederationAllocation.md b/ipamfederation/docs/FederationAllocation.md new file mode 100644 index 0000000..18140ee --- /dev/null +++ b/ipamfederation/docs/FederationAllocation.md @@ -0,0 +1,134 @@ +# FederationAllocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Allocated** | Pointer to **int64** | Percent of total space allocated. | [optional] [readonly] +**Delegated** | Pointer to **int64** | Percent of total space delegated. | [optional] [readonly] +**Overlapping** | Pointer to **int64** | Percent of total space in overlapping blocks. | [optional] [readonly] +**Reserved** | Pointer to **int64** | Percent of total space reserved. | [optional] [readonly] + +## Methods + +### NewFederationAllocation + +`func NewFederationAllocation() *FederationAllocation` + +NewFederationAllocation instantiates a new FederationAllocation 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 + +### NewFederationAllocationWithDefaults + +`func NewFederationAllocationWithDefaults() *FederationAllocation` + +NewFederationAllocationWithDefaults instantiates a new FederationAllocation 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 + +### GetAllocated + +`func (o *FederationAllocation) GetAllocated() int64` + +GetAllocated returns the Allocated field if non-nil, zero value otherwise. + +### GetAllocatedOk + +`func (o *FederationAllocation) GetAllocatedOk() (*int64, bool)` + +GetAllocatedOk returns a tuple with the Allocated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocated + +`func (o *FederationAllocation) SetAllocated(v int64)` + +SetAllocated sets Allocated field to given value. + +### HasAllocated + +`func (o *FederationAllocation) HasAllocated() bool` + +HasAllocated returns a boolean if a field has been set. + +### GetDelegated + +`func (o *FederationAllocation) GetDelegated() int64` + +GetDelegated returns the Delegated field if non-nil, zero value otherwise. + +### GetDelegatedOk + +`func (o *FederationAllocation) GetDelegatedOk() (*int64, bool)` + +GetDelegatedOk returns a tuple with the Delegated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegated + +`func (o *FederationAllocation) SetDelegated(v int64)` + +SetDelegated sets Delegated field to given value. + +### HasDelegated + +`func (o *FederationAllocation) HasDelegated() bool` + +HasDelegated returns a boolean if a field has been set. + +### GetOverlapping + +`func (o *FederationAllocation) GetOverlapping() int64` + +GetOverlapping returns the Overlapping field if non-nil, zero value otherwise. + +### GetOverlappingOk + +`func (o *FederationAllocation) GetOverlappingOk() (*int64, bool)` + +GetOverlappingOk returns a tuple with the Overlapping field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOverlapping + +`func (o *FederationAllocation) SetOverlapping(v int64)` + +SetOverlapping sets Overlapping field to given value. + +### HasOverlapping + +`func (o *FederationAllocation) HasOverlapping() bool` + +HasOverlapping returns a boolean if a field has been set. + +### GetReserved + +`func (o *FederationAllocation) GetReserved() int64` + +GetReserved returns the Reserved field if non-nil, zero value otherwise. + +### GetReservedOk + +`func (o *FederationAllocation) GetReservedOk() (*int64, bool)` + +GetReservedOk returns a tuple with the Reserved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReserved + +`func (o *FederationAllocation) SetReserved(v int64)` + +SetReserved sets Reserved field to given value. + +### HasReserved + +`func (o *FederationAllocation) HasReserved() bool` + +HasReserved 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/ipamfederation/docs/FederationConfigObject.md b/ipamfederation/docs/FederationConfigObject.md new file mode 100644 index 0000000..3d55816 --- /dev/null +++ b/ipamfederation/docs/FederationConfigObject.md @@ -0,0 +1,108 @@ +# FederationConfigObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ConfigBody** | Pointer to **string** | | [optional] +**Ophid** | Pointer to **string** | | [optional] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewFederationConfigObject + +`func NewFederationConfigObject() *FederationConfigObject` + +NewFederationConfigObject instantiates a new FederationConfigObject 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 + +### NewFederationConfigObjectWithDefaults + +`func NewFederationConfigObjectWithDefaults() *FederationConfigObject` + +NewFederationConfigObjectWithDefaults instantiates a new FederationConfigObject 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 + +### GetConfigBody + +`func (o *FederationConfigObject) GetConfigBody() string` + +GetConfigBody returns the ConfigBody field if non-nil, zero value otherwise. + +### GetConfigBodyOk + +`func (o *FederationConfigObject) GetConfigBodyOk() (*string, bool)` + +GetConfigBodyOk returns a tuple with the ConfigBody field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigBody + +`func (o *FederationConfigObject) SetConfigBody(v string)` + +SetConfigBody sets ConfigBody field to given value. + +### HasConfigBody + +`func (o *FederationConfigObject) HasConfigBody() bool` + +HasConfigBody returns a boolean if a field has been set. + +### GetOphid + +`func (o *FederationConfigObject) GetOphid() string` + +GetOphid returns the Ophid field if non-nil, zero value otherwise. + +### GetOphidOk + +`func (o *FederationConfigObject) GetOphidOk() (*string, bool)` + +GetOphidOk returns a tuple with the Ophid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOphid + +`func (o *FederationConfigObject) SetOphid(v string)` + +SetOphid sets Ophid field to given value. + +### HasOphid + +`func (o *FederationConfigObject) HasOphid() bool` + +HasOphid returns a boolean if a field has been set. + +### GetVersion + +`func (o *FederationConfigObject) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *FederationConfigObject) GetVersionOk() (*string, 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 *FederationConfigObject) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *FederationConfigObject) 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/ipamfederation/docs/FederationCreateDelegationResponse.md b/ipamfederation/docs/FederationCreateDelegationResponse.md new file mode 100644 index 0000000..74be2b3 --- /dev/null +++ b/ipamfederation/docs/FederationCreateDelegationResponse.md @@ -0,0 +1,56 @@ +# FederationCreateDelegationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationDelegation**](FederationDelegation.md) | The created Delegation object. | [optional] + +## Methods + +### NewFederationCreateDelegationResponse + +`func NewFederationCreateDelegationResponse() *FederationCreateDelegationResponse` + +NewFederationCreateDelegationResponse instantiates a new FederationCreateDelegationResponse 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 + +### NewFederationCreateDelegationResponseWithDefaults + +`func NewFederationCreateDelegationResponseWithDefaults() *FederationCreateDelegationResponse` + +NewFederationCreateDelegationResponseWithDefaults instantiates a new FederationCreateDelegationResponse 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 *FederationCreateDelegationResponse) GetResult() FederationDelegation` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationCreateDelegationResponse) GetResultOk() (*FederationDelegation, 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 *FederationCreateDelegationResponse) SetResult(v FederationDelegation)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationCreateDelegationResponse) 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/ipamfederation/docs/FederationCreateFederatedBlockResponse.md b/ipamfederation/docs/FederationCreateFederatedBlockResponse.md new file mode 100644 index 0000000..9532c41 --- /dev/null +++ b/ipamfederation/docs/FederationCreateFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationCreateFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationFederatedBlock**](FederationFederatedBlock.md) | The created FederatedBlock object. | [optional] + +## Methods + +### NewFederationCreateFederatedBlockResponse + +`func NewFederationCreateFederatedBlockResponse() *FederationCreateFederatedBlockResponse` + +NewFederationCreateFederatedBlockResponse instantiates a new FederationCreateFederatedBlockResponse 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 + +### NewFederationCreateFederatedBlockResponseWithDefaults + +`func NewFederationCreateFederatedBlockResponseWithDefaults() *FederationCreateFederatedBlockResponse` + +NewFederationCreateFederatedBlockResponseWithDefaults instantiates a new FederationCreateFederatedBlockResponse 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 *FederationCreateFederatedBlockResponse) GetResult() FederationFederatedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationCreateFederatedBlockResponse) GetResultOk() (*FederationFederatedBlock, 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 *FederationCreateFederatedBlockResponse) SetResult(v FederationFederatedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationCreateFederatedBlockResponse) 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/ipamfederation/docs/FederationCreateFederatedRealmResponse.md b/ipamfederation/docs/FederationCreateFederatedRealmResponse.md new file mode 100644 index 0000000..5896393 --- /dev/null +++ b/ipamfederation/docs/FederationCreateFederatedRealmResponse.md @@ -0,0 +1,56 @@ +# FederationCreateFederatedRealmResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationFederatedRealm**](FederationFederatedRealm.md) | The created Federated Realm object. | [optional] + +## Methods + +### NewFederationCreateFederatedRealmResponse + +`func NewFederationCreateFederatedRealmResponse() *FederationCreateFederatedRealmResponse` + +NewFederationCreateFederatedRealmResponse instantiates a new FederationCreateFederatedRealmResponse 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 + +### NewFederationCreateFederatedRealmResponseWithDefaults + +`func NewFederationCreateFederatedRealmResponseWithDefaults() *FederationCreateFederatedRealmResponse` + +NewFederationCreateFederatedRealmResponseWithDefaults instantiates a new FederationCreateFederatedRealmResponse 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 *FederationCreateFederatedRealmResponse) GetResult() FederationFederatedRealm` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationCreateFederatedRealmResponse) GetResultOk() (*FederationFederatedRealm, 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 *FederationCreateFederatedRealmResponse) SetResult(v FederationFederatedRealm)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationCreateFederatedRealmResponse) 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/ipamfederation/docs/FederationCreateNextAvailableFederatedBlockResponse.md b/ipamfederation/docs/FederationCreateNextAvailableFederatedBlockResponse.md new file mode 100644 index 0000000..1bffd7a --- /dev/null +++ b/ipamfederation/docs/FederationCreateNextAvailableFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationCreateNextAvailableFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationFederatedBlock**](FederationFederatedBlock.md) | | [optional] + +## Methods + +### NewFederationCreateNextAvailableFederatedBlockResponse + +`func NewFederationCreateNextAvailableFederatedBlockResponse() *FederationCreateNextAvailableFederatedBlockResponse` + +NewFederationCreateNextAvailableFederatedBlockResponse instantiates a new FederationCreateNextAvailableFederatedBlockResponse 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 + +### NewFederationCreateNextAvailableFederatedBlockResponseWithDefaults + +`func NewFederationCreateNextAvailableFederatedBlockResponseWithDefaults() *FederationCreateNextAvailableFederatedBlockResponse` + +NewFederationCreateNextAvailableFederatedBlockResponseWithDefaults instantiates a new FederationCreateNextAvailableFederatedBlockResponse 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 + +### GetResults + +`func (o *FederationCreateNextAvailableFederatedBlockResponse) GetResults() []FederationFederatedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationCreateNextAvailableFederatedBlockResponse) GetResultsOk() (*[]FederationFederatedBlock, 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 *FederationCreateNextAvailableFederatedBlockResponse) SetResults(v []FederationFederatedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationCreateNextAvailableFederatedBlockResponse) 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/ipamfederation/docs/FederationCreateNextAvailableOverlappingBlockResponse.md b/ipamfederation/docs/FederationCreateNextAvailableOverlappingBlockResponse.md new file mode 100644 index 0000000..25411f8 --- /dev/null +++ b/ipamfederation/docs/FederationCreateNextAvailableOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# FederationCreateNextAvailableOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationOverlappingBlock**](FederationOverlappingBlock.md) | | [optional] + +## Methods + +### NewFederationCreateNextAvailableOverlappingBlockResponse + +`func NewFederationCreateNextAvailableOverlappingBlockResponse() *FederationCreateNextAvailableOverlappingBlockResponse` + +NewFederationCreateNextAvailableOverlappingBlockResponse instantiates a new FederationCreateNextAvailableOverlappingBlockResponse 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 + +### NewFederationCreateNextAvailableOverlappingBlockResponseWithDefaults + +`func NewFederationCreateNextAvailableOverlappingBlockResponseWithDefaults() *FederationCreateNextAvailableOverlappingBlockResponse` + +NewFederationCreateNextAvailableOverlappingBlockResponseWithDefaults instantiates a new FederationCreateNextAvailableOverlappingBlockResponse 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 + +### GetResults + +`func (o *FederationCreateNextAvailableOverlappingBlockResponse) GetResults() []FederationOverlappingBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationCreateNextAvailableOverlappingBlockResponse) GetResultsOk() (*[]FederationOverlappingBlock, 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 *FederationCreateNextAvailableOverlappingBlockResponse) SetResults(v []FederationOverlappingBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationCreateNextAvailableOverlappingBlockResponse) 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/ipamfederation/docs/FederationCreateNextAvailableReservedBlockResponse.md b/ipamfederation/docs/FederationCreateNextAvailableReservedBlockResponse.md new file mode 100644 index 0000000..3dc22f3 --- /dev/null +++ b/ipamfederation/docs/FederationCreateNextAvailableReservedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationCreateNextAvailableReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationReservedBlock**](FederationReservedBlock.md) | | [optional] + +## Methods + +### NewFederationCreateNextAvailableReservedBlockResponse + +`func NewFederationCreateNextAvailableReservedBlockResponse() *FederationCreateNextAvailableReservedBlockResponse` + +NewFederationCreateNextAvailableReservedBlockResponse instantiates a new FederationCreateNextAvailableReservedBlockResponse 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 + +### NewFederationCreateNextAvailableReservedBlockResponseWithDefaults + +`func NewFederationCreateNextAvailableReservedBlockResponseWithDefaults() *FederationCreateNextAvailableReservedBlockResponse` + +NewFederationCreateNextAvailableReservedBlockResponseWithDefaults instantiates a new FederationCreateNextAvailableReservedBlockResponse 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 + +### GetResults + +`func (o *FederationCreateNextAvailableReservedBlockResponse) GetResults() []FederationReservedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationCreateNextAvailableReservedBlockResponse) GetResultsOk() (*[]FederationReservedBlock, 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 *FederationCreateNextAvailableReservedBlockResponse) SetResults(v []FederationReservedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationCreateNextAvailableReservedBlockResponse) 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/ipamfederation/docs/FederationCreateOverlappingBlockResponse.md b/ipamfederation/docs/FederationCreateOverlappingBlockResponse.md new file mode 100644 index 0000000..c835439 --- /dev/null +++ b/ipamfederation/docs/FederationCreateOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# FederationCreateOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationOverlappingBlock**](FederationOverlappingBlock.md) | The created OverlappingBlock object. | [optional] + +## Methods + +### NewFederationCreateOverlappingBlockResponse + +`func NewFederationCreateOverlappingBlockResponse() *FederationCreateOverlappingBlockResponse` + +NewFederationCreateOverlappingBlockResponse instantiates a new FederationCreateOverlappingBlockResponse 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 + +### NewFederationCreateOverlappingBlockResponseWithDefaults + +`func NewFederationCreateOverlappingBlockResponseWithDefaults() *FederationCreateOverlappingBlockResponse` + +NewFederationCreateOverlappingBlockResponseWithDefaults instantiates a new FederationCreateOverlappingBlockResponse 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 *FederationCreateOverlappingBlockResponse) GetResult() FederationOverlappingBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationCreateOverlappingBlockResponse) GetResultOk() (*FederationOverlappingBlock, 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 *FederationCreateOverlappingBlockResponse) SetResult(v FederationOverlappingBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationCreateOverlappingBlockResponse) 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/ipamfederation/docs/FederationCreateReservedBlockResponse.md b/ipamfederation/docs/FederationCreateReservedBlockResponse.md new file mode 100644 index 0000000..b7820b6 --- /dev/null +++ b/ipamfederation/docs/FederationCreateReservedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationCreateReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationReservedBlock**](FederationReservedBlock.md) | The created ReservedBlock object. | [optional] + +## Methods + +### NewFederationCreateReservedBlockResponse + +`func NewFederationCreateReservedBlockResponse() *FederationCreateReservedBlockResponse` + +NewFederationCreateReservedBlockResponse instantiates a new FederationCreateReservedBlockResponse 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 + +### NewFederationCreateReservedBlockResponseWithDefaults + +`func NewFederationCreateReservedBlockResponseWithDefaults() *FederationCreateReservedBlockResponse` + +NewFederationCreateReservedBlockResponseWithDefaults instantiates a new FederationCreateReservedBlockResponse 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 *FederationCreateReservedBlockResponse) GetResult() FederationReservedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationCreateReservedBlockResponse) GetResultOk() (*FederationReservedBlock, 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 *FederationCreateReservedBlockResponse) SetResult(v FederationReservedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationCreateReservedBlockResponse) 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/ipamfederation/docs/FederationDelegation.md b/ipamfederation/docs/FederationDelegation.md new file mode 100644 index 0000000..affe29a --- /dev/null +++ b/ipamfederation/docs/FederationDelegation.md @@ -0,0 +1,332 @@ +# FederationDelegation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. | +**Cidr** | Pointer to **int64** | The CIDR of the delegation. This is required, if _address_ does not specify it in its input. | [optional] +**Comment** | Pointer to **string** | The description for the delegation. May contain 0 to 1024 characters. Can include UTF-8. | [optional] +**CreatedAt** | Pointer to **time.Time** | Time when the object has been created. | [optional] [readonly] +**DelegatedTo** | Pointer to **string** | The specific IPAM service the delegation was delegated to. | [optional] +**FederatedRealms** | **[]string** | The resource identifier. | +**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] +**Name** | Pointer to **string** | The name of the delegation. May contain 1 to 256 characters. Can include UTF-8. | [optional] +**Parents** | Pointer to **[]string** | The resource identifier. | [optional] +**Protocol** | Pointer to **string** | The type of protocol of delegation (_ip4_ or _ip6_). | [optional] [readonly] +**Tags** | Pointer to **map[string]interface{}** | The tags for the delegation in JSON format. | [optional] +**UpdatedAt** | Pointer to **time.Time** | Time when the object has been updated. Equals to _created_at_ if not updated after creation. | [optional] [readonly] + +## Methods + +### NewFederationDelegation + +`func NewFederationDelegation(address string, federatedRealms []string, ) *FederationDelegation` + +NewFederationDelegation instantiates a new FederationDelegation 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 + +### NewFederationDelegationWithDefaults + +`func NewFederationDelegationWithDefaults() *FederationDelegation` + +NewFederationDelegationWithDefaults instantiates a new FederationDelegation 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 + +### GetAddress + +`func (o *FederationDelegation) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *FederationDelegation) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *FederationDelegation) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetCidr + +`func (o *FederationDelegation) GetCidr() int64` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *FederationDelegation) GetCidrOk() (*int64, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *FederationDelegation) SetCidr(v int64)` + +SetCidr sets Cidr field to given value. + +### HasCidr + +`func (o *FederationDelegation) HasCidr() bool` + +HasCidr returns a boolean if a field has been set. + +### GetComment + +`func (o *FederationDelegation) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *FederationDelegation) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *FederationDelegation) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *FederationDelegation) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *FederationDelegation) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *FederationDelegation) 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 *FederationDelegation) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *FederationDelegation) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDelegatedTo + +`func (o *FederationDelegation) GetDelegatedTo() string` + +GetDelegatedTo returns the DelegatedTo field if non-nil, zero value otherwise. + +### GetDelegatedToOk + +`func (o *FederationDelegation) GetDelegatedToOk() (*string, bool)` + +GetDelegatedToOk returns a tuple with the DelegatedTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegatedTo + +`func (o *FederationDelegation) SetDelegatedTo(v string)` + +SetDelegatedTo sets DelegatedTo field to given value. + +### HasDelegatedTo + +`func (o *FederationDelegation) HasDelegatedTo() bool` + +HasDelegatedTo returns a boolean if a field has been set. + +### GetFederatedRealms + +`func (o *FederationDelegation) GetFederatedRealms() []string` + +GetFederatedRealms returns the FederatedRealms field if non-nil, zero value otherwise. + +### GetFederatedRealmsOk + +`func (o *FederationDelegation) GetFederatedRealmsOk() (*[]string, bool)` + +GetFederatedRealmsOk returns a tuple with the FederatedRealms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedRealms + +`func (o *FederationDelegation) SetFederatedRealms(v []string)` + +SetFederatedRealms sets FederatedRealms field to given value. + + +### GetId + +`func (o *FederationDelegation) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FederationDelegation) 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 *FederationDelegation) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *FederationDelegation) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *FederationDelegation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FederationDelegation) 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 *FederationDelegation) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FederationDelegation) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParents + +`func (o *FederationDelegation) GetParents() []string` + +GetParents returns the Parents field if non-nil, zero value otherwise. + +### GetParentsOk + +`func (o *FederationDelegation) GetParentsOk() (*[]string, bool)` + +GetParentsOk returns a tuple with the Parents field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParents + +`func (o *FederationDelegation) SetParents(v []string)` + +SetParents sets Parents field to given value. + +### HasParents + +`func (o *FederationDelegation) HasParents() bool` + +HasParents returns a boolean if a field has been set. + +### GetProtocol + +`func (o *FederationDelegation) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *FederationDelegation) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *FederationDelegation) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *FederationDelegation) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetTags + +`func (o *FederationDelegation) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FederationDelegation) GetTagsOk() (*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 *FederationDelegation) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FederationDelegation) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *FederationDelegation) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *FederationDelegation) 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 *FederationDelegation) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *FederationDelegation) 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/ipamfederation/docs/FederationDelegationBulkItem.md b/ipamfederation/docs/FederationDelegationBulkItem.md new file mode 100644 index 0000000..0d1c67d --- /dev/null +++ b/ipamfederation/docs/FederationDelegationBulkItem.md @@ -0,0 +1,82 @@ +# FederationDelegationBulkItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | Pointer to **string** | Type of action to execute on Delegation object. Valid values are: * _POST_ * _PATCH_ * _DELETE_ | [optional] +**Delegation** | Pointer to [**FederationDelegation**](FederationDelegation.md) | The Delegation object to execute the action on. | [optional] + +## Methods + +### NewFederationDelegationBulkItem + +`func NewFederationDelegationBulkItem() *FederationDelegationBulkItem` + +NewFederationDelegationBulkItem instantiates a new FederationDelegationBulkItem 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 + +### NewFederationDelegationBulkItemWithDefaults + +`func NewFederationDelegationBulkItemWithDefaults() *FederationDelegationBulkItem` + +NewFederationDelegationBulkItemWithDefaults instantiates a new FederationDelegationBulkItem 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 + +### GetAction + +`func (o *FederationDelegationBulkItem) GetAction() string` + +GetAction returns the Action field if non-nil, zero value otherwise. + +### GetActionOk + +`func (o *FederationDelegationBulkItem) GetActionOk() (*string, bool)` + +GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAction + +`func (o *FederationDelegationBulkItem) SetAction(v string)` + +SetAction sets Action field to given value. + +### HasAction + +`func (o *FederationDelegationBulkItem) HasAction() bool` + +HasAction returns a boolean if a field has been set. + +### GetDelegation + +`func (o *FederationDelegationBulkItem) GetDelegation() FederationDelegation` + +GetDelegation returns the Delegation field if non-nil, zero value otherwise. + +### GetDelegationOk + +`func (o *FederationDelegationBulkItem) GetDelegationOk() (*FederationDelegation, bool)` + +GetDelegationOk returns a tuple with the Delegation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegation + +`func (o *FederationDelegationBulkItem) SetDelegation(v FederationDelegation)` + +SetDelegation sets Delegation field to given value. + +### HasDelegation + +`func (o *FederationDelegationBulkItem) HasDelegation() bool` + +HasDelegation 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/ipamfederation/docs/FederationDelegationBulkRequest.md b/ipamfederation/docs/FederationDelegationBulkRequest.md new file mode 100644 index 0000000..d77d759 --- /dev/null +++ b/ipamfederation/docs/FederationDelegationBulkRequest.md @@ -0,0 +1,82 @@ +# FederationDelegationBulkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Delegations** | Pointer to [**[]FederationDelegationBulkItem**](FederationDelegationBulkItem.md) | list of action/delegation requests to execute. | [optional] +**Fields** | Pointer to [**ProtobufFieldMask**](ProtobufFieldMask.md) | | [optional] + +## Methods + +### NewFederationDelegationBulkRequest + +`func NewFederationDelegationBulkRequest() *FederationDelegationBulkRequest` + +NewFederationDelegationBulkRequest instantiates a new FederationDelegationBulkRequest 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 + +### NewFederationDelegationBulkRequestWithDefaults + +`func NewFederationDelegationBulkRequestWithDefaults() *FederationDelegationBulkRequest` + +NewFederationDelegationBulkRequestWithDefaults instantiates a new FederationDelegationBulkRequest 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 + +### GetDelegations + +`func (o *FederationDelegationBulkRequest) GetDelegations() []FederationDelegationBulkItem` + +GetDelegations returns the Delegations field if non-nil, zero value otherwise. + +### GetDelegationsOk + +`func (o *FederationDelegationBulkRequest) GetDelegationsOk() (*[]FederationDelegationBulkItem, bool)` + +GetDelegationsOk returns a tuple with the Delegations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegations + +`func (o *FederationDelegationBulkRequest) SetDelegations(v []FederationDelegationBulkItem)` + +SetDelegations sets Delegations field to given value. + +### HasDelegations + +`func (o *FederationDelegationBulkRequest) HasDelegations() bool` + +HasDelegations returns a boolean if a field has been set. + +### GetFields + +`func (o *FederationDelegationBulkRequest) GetFields() ProtobufFieldMask` + +GetFields returns the Fields field if non-nil, zero value otherwise. + +### GetFieldsOk + +`func (o *FederationDelegationBulkRequest) GetFieldsOk() (*ProtobufFieldMask, 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 *FederationDelegationBulkRequest) SetFields(v ProtobufFieldMask)` + +SetFields sets Fields field to given value. + +### HasFields + +`func (o *FederationDelegationBulkRequest) HasFields() bool` + +HasFields 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/ipamfederation/docs/FederationDelegationBulkResponse.md b/ipamfederation/docs/FederationDelegationBulkResponse.md new file mode 100644 index 0000000..c45625f --- /dev/null +++ b/ipamfederation/docs/FederationDelegationBulkResponse.md @@ -0,0 +1,56 @@ +# FederationDelegationBulkResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationDelegation**](FederationDelegation.md) | A list of Delegation objects. | [optional] + +## Methods + +### NewFederationDelegationBulkResponse + +`func NewFederationDelegationBulkResponse() *FederationDelegationBulkResponse` + +NewFederationDelegationBulkResponse instantiates a new FederationDelegationBulkResponse 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 + +### NewFederationDelegationBulkResponseWithDefaults + +`func NewFederationDelegationBulkResponseWithDefaults() *FederationDelegationBulkResponse` + +NewFederationDelegationBulkResponseWithDefaults instantiates a new FederationDelegationBulkResponse 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 + +### GetResults + +`func (o *FederationDelegationBulkResponse) GetResults() []FederationDelegation` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationDelegationBulkResponse) GetResultsOk() (*[]FederationDelegation, 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 *FederationDelegationBulkResponse) SetResults(v []FederationDelegation)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationDelegationBulkResponse) 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/ipamfederation/docs/FederationFederatedBlock.md b/ipamfederation/docs/FederationFederatedBlock.md new file mode 100644 index 0000000..3d82f4a --- /dev/null +++ b/ipamfederation/docs/FederationFederatedBlock.md @@ -0,0 +1,332 @@ +# FederationFederatedBlock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. | +**AllocationV4** | Pointer to [**FederationAllocation**](FederationAllocation.md) | The percentage of the Federated Block’s total address space that is consumed by Leaf Terminals. | [optional] +**Cidr** | Pointer to **int64** | The CIDR of the federated block. This is required, if _address_ does not specify it in its input. | [optional] +**Comment** | Pointer to **string** | The description for the federated block. May contain 0 to 1024 characters. Can include UTF-8. | [optional] +**CreatedAt** | Pointer to **time.Time** | Time when the object has been created. | [optional] [readonly] +**FederatedRealm** | **string** | The resource identifier. | +**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] +**Name** | Pointer to **string** | The name of the federated block. May contain 1 to 256 characters. Can include UTF-8. | [optional] +**Parent** | Pointer to **string** | The resource identifier. | [optional] +**Protocol** | Pointer to **string** | The type of protocol of federated block (_ip4_ or _ip6_). | [optional] [readonly] +**Tags** | Pointer to **map[string]interface{}** | The tags for the federated block in JSON format. | [optional] +**UpdatedAt** | Pointer to **time.Time** | Time when the object has been updated. Equals to _created_at_ if not updated after creation. | [optional] [readonly] + +## Methods + +### NewFederationFederatedBlock + +`func NewFederationFederatedBlock(address string, federatedRealm string, ) *FederationFederatedBlock` + +NewFederationFederatedBlock instantiates a new FederationFederatedBlock 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 + +### NewFederationFederatedBlockWithDefaults + +`func NewFederationFederatedBlockWithDefaults() *FederationFederatedBlock` + +NewFederationFederatedBlockWithDefaults instantiates a new FederationFederatedBlock 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 + +### GetAddress + +`func (o *FederationFederatedBlock) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *FederationFederatedBlock) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *FederationFederatedBlock) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetAllocationV4 + +`func (o *FederationFederatedBlock) GetAllocationV4() FederationAllocation` + +GetAllocationV4 returns the AllocationV4 field if non-nil, zero value otherwise. + +### GetAllocationV4Ok + +`func (o *FederationFederatedBlock) GetAllocationV4Ok() (*FederationAllocation, bool)` + +GetAllocationV4Ok returns a tuple with the AllocationV4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocationV4 + +`func (o *FederationFederatedBlock) SetAllocationV4(v FederationAllocation)` + +SetAllocationV4 sets AllocationV4 field to given value. + +### HasAllocationV4 + +`func (o *FederationFederatedBlock) HasAllocationV4() bool` + +HasAllocationV4 returns a boolean if a field has been set. + +### GetCidr + +`func (o *FederationFederatedBlock) GetCidr() int64` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *FederationFederatedBlock) GetCidrOk() (*int64, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *FederationFederatedBlock) SetCidr(v int64)` + +SetCidr sets Cidr field to given value. + +### HasCidr + +`func (o *FederationFederatedBlock) HasCidr() bool` + +HasCidr returns a boolean if a field has been set. + +### GetComment + +`func (o *FederationFederatedBlock) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *FederationFederatedBlock) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *FederationFederatedBlock) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *FederationFederatedBlock) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *FederationFederatedBlock) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *FederationFederatedBlock) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetFederatedRealm + +`func (o *FederationFederatedBlock) GetFederatedRealm() string` + +GetFederatedRealm returns the FederatedRealm field if non-nil, zero value otherwise. + +### GetFederatedRealmOk + +`func (o *FederationFederatedBlock) GetFederatedRealmOk() (*string, bool)` + +GetFederatedRealmOk returns a tuple with the FederatedRealm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedRealm + +`func (o *FederationFederatedBlock) SetFederatedRealm(v string)` + +SetFederatedRealm sets FederatedRealm field to given value. + + +### GetId + +`func (o *FederationFederatedBlock) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *FederationFederatedBlock) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *FederationFederatedBlock) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FederationFederatedBlock) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParent + +`func (o *FederationFederatedBlock) GetParent() string` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *FederationFederatedBlock) GetParentOk() (*string, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *FederationFederatedBlock) SetParent(v string)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *FederationFederatedBlock) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### GetProtocol + +`func (o *FederationFederatedBlock) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *FederationFederatedBlock) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *FederationFederatedBlock) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *FederationFederatedBlock) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetTags + +`func (o *FederationFederatedBlock) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FederationFederatedBlock) GetTagsOk() (*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 *FederationFederatedBlock) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FederationFederatedBlock) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *FederationFederatedBlock) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *FederationFederatedBlock) 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/ipamfederation/docs/FederationFederatedRealm.md b/ipamfederation/docs/FederationFederatedRealm.md new file mode 100644 index 0000000..f45f9c8 --- /dev/null +++ b/ipamfederation/docs/FederationFederatedRealm.md @@ -0,0 +1,207 @@ +# FederationFederatedRealm + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AllocationV4** | Pointer to [**FederationAllocation**](FederationAllocation.md) | The aggregate of all Federated Blocks within the Realm. | [optional] +**Comment** | Pointer to **string** | The description of the federated realm. May contain 0 to 1024 characters. Can include UTF-8. | [optional] +**CreatedAt** | Pointer to **time.Time** | Time when the object has been created. | [optional] [readonly] +**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] +**Name** | **string** | The name of the federated realm. May contain 1 to 256 characters; can include UTF-8. | +**Tags** | Pointer to **map[string]interface{}** | The tags for the federated realm in JSON format. | [optional] +**UpdatedAt** | Pointer to **time.Time** | Time when the object has been updated. Equals to _created_at_ if not updated after creation. | [optional] [readonly] + +## Methods + +### NewFederationFederatedRealm + +`func NewFederationFederatedRealm(name string, ) *FederationFederatedRealm` + +NewFederationFederatedRealm instantiates a new FederationFederatedRealm 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 + +### NewFederationFederatedRealmWithDefaults + +`func NewFederationFederatedRealmWithDefaults() *FederationFederatedRealm` + +NewFederationFederatedRealmWithDefaults instantiates a new FederationFederatedRealm 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 + +### GetAllocationV4 + +`func (o *FederationFederatedRealm) GetAllocationV4() FederationAllocation` + +GetAllocationV4 returns the AllocationV4 field if non-nil, zero value otherwise. + +### GetAllocationV4Ok + +`func (o *FederationFederatedRealm) GetAllocationV4Ok() (*FederationAllocation, bool)` + +GetAllocationV4Ok returns a tuple with the AllocationV4 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocationV4 + +`func (o *FederationFederatedRealm) SetAllocationV4(v FederationAllocation)` + +SetAllocationV4 sets AllocationV4 field to given value. + +### HasAllocationV4 + +`func (o *FederationFederatedRealm) HasAllocationV4() bool` + +HasAllocationV4 returns a boolean if a field has been set. + +### GetComment + +`func (o *FederationFederatedRealm) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *FederationFederatedRealm) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *FederationFederatedRealm) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *FederationFederatedRealm) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *FederationFederatedRealm) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *FederationFederatedRealm) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetId + +`func (o *FederationFederatedRealm) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *FederationFederatedRealm) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *FederationFederatedRealm) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) SetName(v string)` + +SetName sets Name field to given value. + + +### GetTags + +`func (o *FederationFederatedRealm) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FederationFederatedRealm) GetTagsOk() (*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 *FederationFederatedRealm) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FederationFederatedRealm) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *FederationFederatedRealm) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *FederationFederatedRealm) 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/ipamfederation/docs/FederationGenerateConfigBundleResponse.md b/ipamfederation/docs/FederationGenerateConfigBundleResponse.md new file mode 100644 index 0000000..822f3b2 --- /dev/null +++ b/ipamfederation/docs/FederationGenerateConfigBundleResponse.md @@ -0,0 +1,56 @@ +# FederationGenerateConfigBundleResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | Pointer to [**FederationConfigObject**](FederationConfigObject.md) | | [optional] + +## Methods + +### NewFederationGenerateConfigBundleResponse + +`func NewFederationGenerateConfigBundleResponse() *FederationGenerateConfigBundleResponse` + +NewFederationGenerateConfigBundleResponse instantiates a new FederationGenerateConfigBundleResponse 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 + +### NewFederationGenerateConfigBundleResponseWithDefaults + +`func NewFederationGenerateConfigBundleResponseWithDefaults() *FederationGenerateConfigBundleResponse` + +NewFederationGenerateConfigBundleResponseWithDefaults instantiates a new FederationGenerateConfigBundleResponse 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 *FederationGenerateConfigBundleResponse) GetConfig() FederationConfigObject` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *FederationGenerateConfigBundleResponse) GetConfigOk() (*FederationConfigObject, 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 *FederationGenerateConfigBundleResponse) SetConfig(v FederationConfigObject)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *FederationGenerateConfigBundleResponse) HasConfig() bool` + +HasConfig 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/ipamfederation/docs/FederationGetNextAvailableDelegationRequest.md b/ipamfederation/docs/FederationGetNextAvailableDelegationRequest.md new file mode 100644 index 0000000..fda7673 --- /dev/null +++ b/ipamfederation/docs/FederationGetNextAvailableDelegationRequest.md @@ -0,0 +1,82 @@ +# FederationGetNextAvailableDelegationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Arguments** | Pointer to [**FederationNextAvailableDelegationArguments**](FederationNextAvailableDelegationArguments.md) | The arguments which will be used as parameters while creating __Delegation__ object. | [optional] +**Properties** | Pointer to [**FederationNextAvailableDelegationProperties**](FederationNextAvailableDelegationProperties.md) | The properties, which will be used to fill the created __Delegation__ object. | [optional] + +## Methods + +### NewFederationGetNextAvailableDelegationRequest + +`func NewFederationGetNextAvailableDelegationRequest() *FederationGetNextAvailableDelegationRequest` + +NewFederationGetNextAvailableDelegationRequest instantiates a new FederationGetNextAvailableDelegationRequest 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 + +### NewFederationGetNextAvailableDelegationRequestWithDefaults + +`func NewFederationGetNextAvailableDelegationRequestWithDefaults() *FederationGetNextAvailableDelegationRequest` + +NewFederationGetNextAvailableDelegationRequestWithDefaults instantiates a new FederationGetNextAvailableDelegationRequest 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 + +### GetArguments + +`func (o *FederationGetNextAvailableDelegationRequest) GetArguments() FederationNextAvailableDelegationArguments` + +GetArguments returns the Arguments field if non-nil, zero value otherwise. + +### GetArgumentsOk + +`func (o *FederationGetNextAvailableDelegationRequest) GetArgumentsOk() (*FederationNextAvailableDelegationArguments, bool)` + +GetArgumentsOk returns a tuple with the Arguments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArguments + +`func (o *FederationGetNextAvailableDelegationRequest) SetArguments(v FederationNextAvailableDelegationArguments)` + +SetArguments sets Arguments field to given value. + +### HasArguments + +`func (o *FederationGetNextAvailableDelegationRequest) HasArguments() bool` + +HasArguments returns a boolean if a field has been set. + +### GetProperties + +`func (o *FederationGetNextAvailableDelegationRequest) GetProperties() FederationNextAvailableDelegationProperties` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *FederationGetNextAvailableDelegationRequest) GetPropertiesOk() (*FederationNextAvailableDelegationProperties, bool)` + +GetPropertiesOk returns a tuple with the Properties field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProperties + +`func (o *FederationGetNextAvailableDelegationRequest) SetProperties(v FederationNextAvailableDelegationProperties)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *FederationGetNextAvailableDelegationRequest) HasProperties() bool` + +HasProperties 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/ipamfederation/docs/FederationGetNextAvailableDelegationResponse.md b/ipamfederation/docs/FederationGetNextAvailableDelegationResponse.md new file mode 100644 index 0000000..001991a --- /dev/null +++ b/ipamfederation/docs/FederationGetNextAvailableDelegationResponse.md @@ -0,0 +1,56 @@ +# FederationGetNextAvailableDelegationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationDelegation**](FederationDelegation.md) | | [optional] + +## Methods + +### NewFederationGetNextAvailableDelegationResponse + +`func NewFederationGetNextAvailableDelegationResponse() *FederationGetNextAvailableDelegationResponse` + +NewFederationGetNextAvailableDelegationResponse instantiates a new FederationGetNextAvailableDelegationResponse 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 + +### NewFederationGetNextAvailableDelegationResponseWithDefaults + +`func NewFederationGetNextAvailableDelegationResponseWithDefaults() *FederationGetNextAvailableDelegationResponse` + +NewFederationGetNextAvailableDelegationResponseWithDefaults instantiates a new FederationGetNextAvailableDelegationResponse 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 + +### GetResults + +`func (o *FederationGetNextAvailableDelegationResponse) GetResults() []FederationDelegation` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationGetNextAvailableDelegationResponse) GetResultsOk() (*[]FederationDelegation, 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 *FederationGetNextAvailableDelegationResponse) SetResults(v []FederationDelegation)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationGetNextAvailableDelegationResponse) 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/ipamfederation/docs/FederationHealthCheckConfigResponse.md b/ipamfederation/docs/FederationHealthCheckConfigResponse.md new file mode 100644 index 0000000..0de2a70 --- /dev/null +++ b/ipamfederation/docs/FederationHealthCheckConfigResponse.md @@ -0,0 +1,56 @@ +# FederationHealthCheckConfigResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewFederationHealthCheckConfigResponse + +`func NewFederationHealthCheckConfigResponse() *FederationHealthCheckConfigResponse` + +NewFederationHealthCheckConfigResponse instantiates a new FederationHealthCheckConfigResponse 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 + +### NewFederationHealthCheckConfigResponseWithDefaults + +`func NewFederationHealthCheckConfigResponseWithDefaults() *FederationHealthCheckConfigResponse` + +NewFederationHealthCheckConfigResponseWithDefaults instantiates a new FederationHealthCheckConfigResponse 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 + +### GetMessage + +`func (o *FederationHealthCheckConfigResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *FederationHealthCheckConfigResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *FederationHealthCheckConfigResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *FederationHealthCheckConfigResponse) HasMessage() bool` + +HasMessage 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/ipamfederation/docs/FederationHealthConfig.md b/ipamfederation/docs/FederationHealthConfig.md new file mode 100644 index 0000000..1cdaaf5 --- /dev/null +++ b/ipamfederation/docs/FederationHealthConfig.md @@ -0,0 +1,160 @@ +# FederationHealthConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppName** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Ophid** | Pointer to **string** | | [optional] +**StatusCode** | Pointer to [**HealthConfigStatusCode**](HealthConfigStatusCode.md) | | [optional] [default to HEALTHCONFIGSTATUSCODE_SUCCESS] +**Version** | Pointer to **string** | | [optional] + +## Methods + +### NewFederationHealthConfig + +`func NewFederationHealthConfig() *FederationHealthConfig` + +NewFederationHealthConfig instantiates a new FederationHealthConfig 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 + +### NewFederationHealthConfigWithDefaults + +`func NewFederationHealthConfigWithDefaults() *FederationHealthConfig` + +NewFederationHealthConfigWithDefaults instantiates a new FederationHealthConfig 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 + +### GetAppName + +`func (o *FederationHealthConfig) GetAppName() string` + +GetAppName returns the AppName field if non-nil, zero value otherwise. + +### GetAppNameOk + +`func (o *FederationHealthConfig) GetAppNameOk() (*string, bool)` + +GetAppNameOk returns a tuple with the AppName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppName + +`func (o *FederationHealthConfig) SetAppName(v string)` + +SetAppName sets AppName field to given value. + +### HasAppName + +`func (o *FederationHealthConfig) HasAppName() bool` + +HasAppName returns a boolean if a field has been set. + +### GetMessage + +`func (o *FederationHealthConfig) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *FederationHealthConfig) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *FederationHealthConfig) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *FederationHealthConfig) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetOphid + +`func (o *FederationHealthConfig) GetOphid() string` + +GetOphid returns the Ophid field if non-nil, zero value otherwise. + +### GetOphidOk + +`func (o *FederationHealthConfig) GetOphidOk() (*string, bool)` + +GetOphidOk returns a tuple with the Ophid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOphid + +`func (o *FederationHealthConfig) SetOphid(v string)` + +SetOphid sets Ophid field to given value. + +### HasOphid + +`func (o *FederationHealthConfig) HasOphid() bool` + +HasOphid returns a boolean if a field has been set. + +### GetStatusCode + +`func (o *FederationHealthConfig) GetStatusCode() HealthConfigStatusCode` + +GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. + +### GetStatusCodeOk + +`func (o *FederationHealthConfig) GetStatusCodeOk() (*HealthConfigStatusCode, bool)` + +GetStatusCodeOk returns a tuple with the StatusCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusCode + +`func (o *FederationHealthConfig) SetStatusCode(v HealthConfigStatusCode)` + +SetStatusCode sets StatusCode field to given value. + +### HasStatusCode + +`func (o *FederationHealthConfig) HasStatusCode() bool` + +HasStatusCode returns a boolean if a field has been set. + +### GetVersion + +`func (o *FederationHealthConfig) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *FederationHealthConfig) GetVersionOk() (*string, 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 *FederationHealthConfig) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *FederationHealthConfig) 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/ipamfederation/docs/FederationListDelegationResponse.md b/ipamfederation/docs/FederationListDelegationResponse.md new file mode 100644 index 0000000..4a0fc41 --- /dev/null +++ b/ipamfederation/docs/FederationListDelegationResponse.md @@ -0,0 +1,56 @@ +# FederationListDelegationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationDelegation**](FederationDelegation.md) | A list of Delegation objects. | [optional] + +## Methods + +### NewFederationListDelegationResponse + +`func NewFederationListDelegationResponse() *FederationListDelegationResponse` + +NewFederationListDelegationResponse instantiates a new FederationListDelegationResponse 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 + +### NewFederationListDelegationResponseWithDefaults + +`func NewFederationListDelegationResponseWithDefaults() *FederationListDelegationResponse` + +NewFederationListDelegationResponseWithDefaults instantiates a new FederationListDelegationResponse 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 + +### GetResults + +`func (o *FederationListDelegationResponse) GetResults() []FederationDelegation` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListDelegationResponse) GetResultsOk() (*[]FederationDelegation, 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 *FederationListDelegationResponse) SetResults(v []FederationDelegation)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListDelegationResponse) 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/ipamfederation/docs/FederationListFederatedBlockResponse.md b/ipamfederation/docs/FederationListFederatedBlockResponse.md new file mode 100644 index 0000000..fbf5281 --- /dev/null +++ b/ipamfederation/docs/FederationListFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationListFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationFederatedBlock**](FederationFederatedBlock.md) | A list of FederatedBlock objects. | [optional] + +## Methods + +### NewFederationListFederatedBlockResponse + +`func NewFederationListFederatedBlockResponse() *FederationListFederatedBlockResponse` + +NewFederationListFederatedBlockResponse instantiates a new FederationListFederatedBlockResponse 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 + +### NewFederationListFederatedBlockResponseWithDefaults + +`func NewFederationListFederatedBlockResponseWithDefaults() *FederationListFederatedBlockResponse` + +NewFederationListFederatedBlockResponseWithDefaults instantiates a new FederationListFederatedBlockResponse 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 + +### GetResults + +`func (o *FederationListFederatedBlockResponse) GetResults() []FederationFederatedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListFederatedBlockResponse) GetResultsOk() (*[]FederationFederatedBlock, 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 *FederationListFederatedBlockResponse) SetResults(v []FederationFederatedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListFederatedBlockResponse) 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/ipamfederation/docs/FederationListFederatedRealmResponse.md b/ipamfederation/docs/FederationListFederatedRealmResponse.md new file mode 100644 index 0000000..a460b8b --- /dev/null +++ b/ipamfederation/docs/FederationListFederatedRealmResponse.md @@ -0,0 +1,56 @@ +# FederationListFederatedRealmResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationFederatedRealm**](FederationFederatedRealm.md) | The list of FederatedRealm objects. | [optional] + +## Methods + +### NewFederationListFederatedRealmResponse + +`func NewFederationListFederatedRealmResponse() *FederationListFederatedRealmResponse` + +NewFederationListFederatedRealmResponse instantiates a new FederationListFederatedRealmResponse 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 + +### NewFederationListFederatedRealmResponseWithDefaults + +`func NewFederationListFederatedRealmResponseWithDefaults() *FederationListFederatedRealmResponse` + +NewFederationListFederatedRealmResponseWithDefaults instantiates a new FederationListFederatedRealmResponse 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 + +### GetResults + +`func (o *FederationListFederatedRealmResponse) GetResults() []FederationFederatedRealm` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListFederatedRealmResponse) GetResultsOk() (*[]FederationFederatedRealm, 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 *FederationListFederatedRealmResponse) SetResults(v []FederationFederatedRealm)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListFederatedRealmResponse) 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/ipamfederation/docs/FederationListNextAvailableFederatedBlockResponse.md b/ipamfederation/docs/FederationListNextAvailableFederatedBlockResponse.md new file mode 100644 index 0000000..d418037 --- /dev/null +++ b/ipamfederation/docs/FederationListNextAvailableFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationListNextAvailableFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationFederatedBlock**](FederationFederatedBlock.md) | | [optional] + +## Methods + +### NewFederationListNextAvailableFederatedBlockResponse + +`func NewFederationListNextAvailableFederatedBlockResponse() *FederationListNextAvailableFederatedBlockResponse` + +NewFederationListNextAvailableFederatedBlockResponse instantiates a new FederationListNextAvailableFederatedBlockResponse 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 + +### NewFederationListNextAvailableFederatedBlockResponseWithDefaults + +`func NewFederationListNextAvailableFederatedBlockResponseWithDefaults() *FederationListNextAvailableFederatedBlockResponse` + +NewFederationListNextAvailableFederatedBlockResponseWithDefaults instantiates a new FederationListNextAvailableFederatedBlockResponse 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 + +### GetResults + +`func (o *FederationListNextAvailableFederatedBlockResponse) GetResults() []FederationFederatedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListNextAvailableFederatedBlockResponse) GetResultsOk() (*[]FederationFederatedBlock, 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 *FederationListNextAvailableFederatedBlockResponse) SetResults(v []FederationFederatedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListNextAvailableFederatedBlockResponse) 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/ipamfederation/docs/FederationListNextAvailableOverlappingBlockResponse.md b/ipamfederation/docs/FederationListNextAvailableOverlappingBlockResponse.md new file mode 100644 index 0000000..813e2ca --- /dev/null +++ b/ipamfederation/docs/FederationListNextAvailableOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# FederationListNextAvailableOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationOverlappingBlock**](FederationOverlappingBlock.md) | | [optional] + +## Methods + +### NewFederationListNextAvailableOverlappingBlockResponse + +`func NewFederationListNextAvailableOverlappingBlockResponse() *FederationListNextAvailableOverlappingBlockResponse` + +NewFederationListNextAvailableOverlappingBlockResponse instantiates a new FederationListNextAvailableOverlappingBlockResponse 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 + +### NewFederationListNextAvailableOverlappingBlockResponseWithDefaults + +`func NewFederationListNextAvailableOverlappingBlockResponseWithDefaults() *FederationListNextAvailableOverlappingBlockResponse` + +NewFederationListNextAvailableOverlappingBlockResponseWithDefaults instantiates a new FederationListNextAvailableOverlappingBlockResponse 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 + +### GetResults + +`func (o *FederationListNextAvailableOverlappingBlockResponse) GetResults() []FederationOverlappingBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListNextAvailableOverlappingBlockResponse) GetResultsOk() (*[]FederationOverlappingBlock, 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 *FederationListNextAvailableOverlappingBlockResponse) SetResults(v []FederationOverlappingBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListNextAvailableOverlappingBlockResponse) 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/ipamfederation/docs/FederationListNextAvailableReservedBlockResponse.md b/ipamfederation/docs/FederationListNextAvailableReservedBlockResponse.md new file mode 100644 index 0000000..b0d43d3 --- /dev/null +++ b/ipamfederation/docs/FederationListNextAvailableReservedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationListNextAvailableReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationReservedBlock**](FederationReservedBlock.md) | | [optional] + +## Methods + +### NewFederationListNextAvailableReservedBlockResponse + +`func NewFederationListNextAvailableReservedBlockResponse() *FederationListNextAvailableReservedBlockResponse` + +NewFederationListNextAvailableReservedBlockResponse instantiates a new FederationListNextAvailableReservedBlockResponse 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 + +### NewFederationListNextAvailableReservedBlockResponseWithDefaults + +`func NewFederationListNextAvailableReservedBlockResponseWithDefaults() *FederationListNextAvailableReservedBlockResponse` + +NewFederationListNextAvailableReservedBlockResponseWithDefaults instantiates a new FederationListNextAvailableReservedBlockResponse 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 + +### GetResults + +`func (o *FederationListNextAvailableReservedBlockResponse) GetResults() []FederationReservedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListNextAvailableReservedBlockResponse) GetResultsOk() (*[]FederationReservedBlock, 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 *FederationListNextAvailableReservedBlockResponse) SetResults(v []FederationReservedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListNextAvailableReservedBlockResponse) 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/ipamfederation/docs/FederationListOverlappingBlockResponse.md b/ipamfederation/docs/FederationListOverlappingBlockResponse.md new file mode 100644 index 0000000..2c1c49b --- /dev/null +++ b/ipamfederation/docs/FederationListOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# FederationListOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationOverlappingBlock**](FederationOverlappingBlock.md) | A list of OverlappingBlock objects. | [optional] + +## Methods + +### NewFederationListOverlappingBlockResponse + +`func NewFederationListOverlappingBlockResponse() *FederationListOverlappingBlockResponse` + +NewFederationListOverlappingBlockResponse instantiates a new FederationListOverlappingBlockResponse 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 + +### NewFederationListOverlappingBlockResponseWithDefaults + +`func NewFederationListOverlappingBlockResponseWithDefaults() *FederationListOverlappingBlockResponse` + +NewFederationListOverlappingBlockResponseWithDefaults instantiates a new FederationListOverlappingBlockResponse 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 + +### GetResults + +`func (o *FederationListOverlappingBlockResponse) GetResults() []FederationOverlappingBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListOverlappingBlockResponse) GetResultsOk() (*[]FederationOverlappingBlock, 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 *FederationListOverlappingBlockResponse) SetResults(v []FederationOverlappingBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListOverlappingBlockResponse) 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/ipamfederation/docs/FederationListReservedBlockResponse.md b/ipamfederation/docs/FederationListReservedBlockResponse.md new file mode 100644 index 0000000..0099097 --- /dev/null +++ b/ipamfederation/docs/FederationListReservedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationListReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederationReservedBlock**](FederationReservedBlock.md) | A list of ReservedBlock objects. | [optional] + +## Methods + +### NewFederationListReservedBlockResponse + +`func NewFederationListReservedBlockResponse() *FederationListReservedBlockResponse` + +NewFederationListReservedBlockResponse instantiates a new FederationListReservedBlockResponse 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 + +### NewFederationListReservedBlockResponseWithDefaults + +`func NewFederationListReservedBlockResponseWithDefaults() *FederationListReservedBlockResponse` + +NewFederationListReservedBlockResponseWithDefaults instantiates a new FederationListReservedBlockResponse 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 + +### GetResults + +`func (o *FederationListReservedBlockResponse) GetResults() []FederationReservedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *FederationListReservedBlockResponse) GetResultsOk() (*[]FederationReservedBlock, 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 *FederationListReservedBlockResponse) SetResults(v []FederationReservedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *FederationListReservedBlockResponse) 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/ipamfederation/docs/FederationNextAvailableBlockRequest.md b/ipamfederation/docs/FederationNextAvailableBlockRequest.md new file mode 100644 index 0000000..41dd473 --- /dev/null +++ b/ipamfederation/docs/FederationNextAvailableBlockRequest.md @@ -0,0 +1,186 @@ +# FederationNextAvailableBlockRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cidr** | Pointer to **int64** | The CIDR of the federated block. This is required, if _address_ does not specify it in its input. | [optional] +**Comment** | Pointer to **string** | The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. | [optional] +**Count** | Pointer to **int64** | The count of __Block__ required. If not provided, it will default to 1. | [optional] +**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] +**Name** | Pointer to **string** | The name to be provided. | [optional] +**Tags** | Pointer to **map[string]interface{}** | The tags for the federated block in JSON format. | [optional] + +## Methods + +### NewFederationNextAvailableBlockRequest + +`func NewFederationNextAvailableBlockRequest() *FederationNextAvailableBlockRequest` + +NewFederationNextAvailableBlockRequest instantiates a new FederationNextAvailableBlockRequest 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 + +### NewFederationNextAvailableBlockRequestWithDefaults + +`func NewFederationNextAvailableBlockRequestWithDefaults() *FederationNextAvailableBlockRequest` + +NewFederationNextAvailableBlockRequestWithDefaults instantiates a new FederationNextAvailableBlockRequest 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 + +### GetCidr + +`func (o *FederationNextAvailableBlockRequest) GetCidr() int64` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *FederationNextAvailableBlockRequest) GetCidrOk() (*int64, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *FederationNextAvailableBlockRequest) SetCidr(v int64)` + +SetCidr sets Cidr field to given value. + +### HasCidr + +`func (o *FederationNextAvailableBlockRequest) HasCidr() bool` + +HasCidr returns a boolean if a field has been set. + +### GetComment + +`func (o *FederationNextAvailableBlockRequest) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *FederationNextAvailableBlockRequest) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *FederationNextAvailableBlockRequest) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *FederationNextAvailableBlockRequest) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCount + +`func (o *FederationNextAvailableBlockRequest) GetCount() int64` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *FederationNextAvailableBlockRequest) GetCountOk() (*int64, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *FederationNextAvailableBlockRequest) SetCount(v int64)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *FederationNextAvailableBlockRequest) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetId + +`func (o *FederationNextAvailableBlockRequest) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *FederationNextAvailableBlockRequest) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *FederationNextAvailableBlockRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FederationNextAvailableBlockRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetTags + +`func (o *FederationNextAvailableBlockRequest) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FederationNextAvailableBlockRequest) GetTagsOk() (*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 *FederationNextAvailableBlockRequest) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FederationNextAvailableBlockRequest) HasTags() bool` + +HasTags 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/ipamfederation/docs/FederationNextAvailableDelegationArguments.md b/ipamfederation/docs/FederationNextAvailableDelegationArguments.md new file mode 100644 index 0000000..5c61147 --- /dev/null +++ b/ipamfederation/docs/FederationNextAvailableDelegationArguments.md @@ -0,0 +1,160 @@ +# FederationNextAvailableDelegationArguments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cidr** | Pointer to **int64** | The CIDR of the delegation to be created. This is required, if _address_ does not specify it in its input. | [optional] +**Count** | Pointer to **int64** | The count of __Delegation__ required. If not provided, it will default to 1. | [optional] +**FederatedRealms** | Pointer to **[]string** | The resource identifier. | [optional] +**Predicates** | Pointer to **map[string]interface{}** | It contains the map of attributes and the associated value. | [optional] +**ReadOnly** | Pointer to **bool** | The field which denotes if the __Delegation__ will be provisioned or just calculated and returned. | [optional] + +## Methods + +### NewFederationNextAvailableDelegationArguments + +`func NewFederationNextAvailableDelegationArguments() *FederationNextAvailableDelegationArguments` + +NewFederationNextAvailableDelegationArguments instantiates a new FederationNextAvailableDelegationArguments 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 + +### NewFederationNextAvailableDelegationArgumentsWithDefaults + +`func NewFederationNextAvailableDelegationArgumentsWithDefaults() *FederationNextAvailableDelegationArguments` + +NewFederationNextAvailableDelegationArgumentsWithDefaults instantiates a new FederationNextAvailableDelegationArguments 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 + +### GetCidr + +`func (o *FederationNextAvailableDelegationArguments) GetCidr() int64` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *FederationNextAvailableDelegationArguments) GetCidrOk() (*int64, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *FederationNextAvailableDelegationArguments) SetCidr(v int64)` + +SetCidr sets Cidr field to given value. + +### HasCidr + +`func (o *FederationNextAvailableDelegationArguments) HasCidr() bool` + +HasCidr returns a boolean if a field has been set. + +### GetCount + +`func (o *FederationNextAvailableDelegationArguments) GetCount() int64` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *FederationNextAvailableDelegationArguments) GetCountOk() (*int64, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *FederationNextAvailableDelegationArguments) SetCount(v int64)` + +SetCount sets Count field to given value. + +### HasCount + +`func (o *FederationNextAvailableDelegationArguments) HasCount() bool` + +HasCount returns a boolean if a field has been set. + +### GetFederatedRealms + +`func (o *FederationNextAvailableDelegationArguments) GetFederatedRealms() []string` + +GetFederatedRealms returns the FederatedRealms field if non-nil, zero value otherwise. + +### GetFederatedRealmsOk + +`func (o *FederationNextAvailableDelegationArguments) GetFederatedRealmsOk() (*[]string, bool)` + +GetFederatedRealmsOk returns a tuple with the FederatedRealms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedRealms + +`func (o *FederationNextAvailableDelegationArguments) SetFederatedRealms(v []string)` + +SetFederatedRealms sets FederatedRealms field to given value. + +### HasFederatedRealms + +`func (o *FederationNextAvailableDelegationArguments) HasFederatedRealms() bool` + +HasFederatedRealms returns a boolean if a field has been set. + +### GetPredicates + +`func (o *FederationNextAvailableDelegationArguments) GetPredicates() map[string]interface{}` + +GetPredicates returns the Predicates field if non-nil, zero value otherwise. + +### GetPredicatesOk + +`func (o *FederationNextAvailableDelegationArguments) GetPredicatesOk() (*map[string]interface{}, bool)` + +GetPredicatesOk returns a tuple with the Predicates field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPredicates + +`func (o *FederationNextAvailableDelegationArguments) SetPredicates(v map[string]interface{})` + +SetPredicates sets Predicates field to given value. + +### HasPredicates + +`func (o *FederationNextAvailableDelegationArguments) HasPredicates() bool` + +HasPredicates returns a boolean if a field has been set. + +### GetReadOnly + +`func (o *FederationNextAvailableDelegationArguments) GetReadOnly() bool` + +GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise. + +### GetReadOnlyOk + +`func (o *FederationNextAvailableDelegationArguments) GetReadOnlyOk() (*bool, bool)` + +GetReadOnlyOk returns a tuple with the ReadOnly field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReadOnly + +`func (o *FederationNextAvailableDelegationArguments) SetReadOnly(v bool)` + +SetReadOnly sets ReadOnly field to given value. + +### HasReadOnly + +`func (o *FederationNextAvailableDelegationArguments) HasReadOnly() bool` + +HasReadOnly 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/ipamfederation/docs/FederationNextAvailableDelegationProperties.md b/ipamfederation/docs/FederationNextAvailableDelegationProperties.md new file mode 100644 index 0000000..a420d6e --- /dev/null +++ b/ipamfederation/docs/FederationNextAvailableDelegationProperties.md @@ -0,0 +1,108 @@ +# FederationNextAvailableDelegationProperties + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Comment** | Pointer to **string** | The description for the __Delegation__. May contain 0 to 1024 characters. Can include UTF-8. | [optional] +**DelegatedTo** | Pointer to **string** | The specific IPAM service the __Delegation__ was delegated to. | [optional] +**Name** | Pointer to **string** | The name to be provided. | [optional] + +## Methods + +### NewFederationNextAvailableDelegationProperties + +`func NewFederationNextAvailableDelegationProperties() *FederationNextAvailableDelegationProperties` + +NewFederationNextAvailableDelegationProperties instantiates a new FederationNextAvailableDelegationProperties 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 + +### NewFederationNextAvailableDelegationPropertiesWithDefaults + +`func NewFederationNextAvailableDelegationPropertiesWithDefaults() *FederationNextAvailableDelegationProperties` + +NewFederationNextAvailableDelegationPropertiesWithDefaults instantiates a new FederationNextAvailableDelegationProperties 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 + +### GetComment + +`func (o *FederationNextAvailableDelegationProperties) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *FederationNextAvailableDelegationProperties) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *FederationNextAvailableDelegationProperties) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *FederationNextAvailableDelegationProperties) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetDelegatedTo + +`func (o *FederationNextAvailableDelegationProperties) GetDelegatedTo() string` + +GetDelegatedTo returns the DelegatedTo field if non-nil, zero value otherwise. + +### GetDelegatedToOk + +`func (o *FederationNextAvailableDelegationProperties) GetDelegatedToOk() (*string, bool)` + +GetDelegatedToOk returns a tuple with the DelegatedTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDelegatedTo + +`func (o *FederationNextAvailableDelegationProperties) SetDelegatedTo(v string)` + +SetDelegatedTo sets DelegatedTo field to given value. + +### HasDelegatedTo + +`func (o *FederationNextAvailableDelegationProperties) HasDelegatedTo() bool` + +HasDelegatedTo returns a boolean if a field has been set. + +### GetName + +`func (o *FederationNextAvailableDelegationProperties) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FederationNextAvailableDelegationProperties) 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 *FederationNextAvailableDelegationProperties) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FederationNextAvailableDelegationProperties) 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/ipamfederation/docs/FederationOverlappingBlock.md b/ipamfederation/docs/FederationOverlappingBlock.md new file mode 100644 index 0000000..4b9130d --- /dev/null +++ b/ipamfederation/docs/FederationOverlappingBlock.md @@ -0,0 +1,306 @@ +# FederationOverlappingBlock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. | +**Cidr** | Pointer to **int64** | The CIDR of the overlapping block. This is required, if _address_ does not specify it in its input. | [optional] +**Comment** | Pointer to **string** | The description for the overlapping block. May contain 0 to 1024 characters. Can include UTF-8. | [optional] +**CreatedAt** | Pointer to **time.Time** | Time when the object has been created. | [optional] [readonly] +**FederatedRealm** | **string** | The resource identifier. | +**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] +**Name** | Pointer to **string** | The name of the overlapping block. May contain 1 to 256 characters. Can include UTF-8. | [optional] +**Parent** | Pointer to **string** | The resource identifier. | [optional] +**Protocol** | Pointer to **string** | The type of protocol of overlapping block (_ip4_ or _ip6_). | [optional] [readonly] +**Tags** | Pointer to **map[string]interface{}** | The tags for the overlapping block in JSON format. | [optional] +**UpdatedAt** | Pointer to **time.Time** | Time when the object has been updated. Equals to _created_at_ if not updated after creation. | [optional] [readonly] + +## Methods + +### NewFederationOverlappingBlock + +`func NewFederationOverlappingBlock(address string, federatedRealm string, ) *FederationOverlappingBlock` + +NewFederationOverlappingBlock instantiates a new FederationOverlappingBlock 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 + +### NewFederationOverlappingBlockWithDefaults + +`func NewFederationOverlappingBlockWithDefaults() *FederationOverlappingBlock` + +NewFederationOverlappingBlockWithDefaults instantiates a new FederationOverlappingBlock 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 + +### GetAddress + +`func (o *FederationOverlappingBlock) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *FederationOverlappingBlock) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *FederationOverlappingBlock) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetCidr + +`func (o *FederationOverlappingBlock) GetCidr() int64` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *FederationOverlappingBlock) GetCidrOk() (*int64, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *FederationOverlappingBlock) SetCidr(v int64)` + +SetCidr sets Cidr field to given value. + +### HasCidr + +`func (o *FederationOverlappingBlock) HasCidr() bool` + +HasCidr returns a boolean if a field has been set. + +### GetComment + +`func (o *FederationOverlappingBlock) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *FederationOverlappingBlock) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *FederationOverlappingBlock) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *FederationOverlappingBlock) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *FederationOverlappingBlock) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *FederationOverlappingBlock) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetFederatedRealm + +`func (o *FederationOverlappingBlock) GetFederatedRealm() string` + +GetFederatedRealm returns the FederatedRealm field if non-nil, zero value otherwise. + +### GetFederatedRealmOk + +`func (o *FederationOverlappingBlock) GetFederatedRealmOk() (*string, bool)` + +GetFederatedRealmOk returns a tuple with the FederatedRealm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedRealm + +`func (o *FederationOverlappingBlock) SetFederatedRealm(v string)` + +SetFederatedRealm sets FederatedRealm field to given value. + + +### GetId + +`func (o *FederationOverlappingBlock) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *FederationOverlappingBlock) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *FederationOverlappingBlock) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FederationOverlappingBlock) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParent + +`func (o *FederationOverlappingBlock) GetParent() string` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *FederationOverlappingBlock) GetParentOk() (*string, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *FederationOverlappingBlock) SetParent(v string)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *FederationOverlappingBlock) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### GetProtocol + +`func (o *FederationOverlappingBlock) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *FederationOverlappingBlock) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *FederationOverlappingBlock) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *FederationOverlappingBlock) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetTags + +`func (o *FederationOverlappingBlock) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FederationOverlappingBlock) GetTagsOk() (*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 *FederationOverlappingBlock) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FederationOverlappingBlock) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *FederationOverlappingBlock) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *FederationOverlappingBlock) 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/ipamfederation/docs/FederationReadDelegationResponse.md b/ipamfederation/docs/FederationReadDelegationResponse.md new file mode 100644 index 0000000..d055b3f --- /dev/null +++ b/ipamfederation/docs/FederationReadDelegationResponse.md @@ -0,0 +1,56 @@ +# FederationReadDelegationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationDelegation**](FederationDelegation.md) | The Delegation object. | [optional] + +## Methods + +### NewFederationReadDelegationResponse + +`func NewFederationReadDelegationResponse() *FederationReadDelegationResponse` + +NewFederationReadDelegationResponse instantiates a new FederationReadDelegationResponse 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 + +### NewFederationReadDelegationResponseWithDefaults + +`func NewFederationReadDelegationResponseWithDefaults() *FederationReadDelegationResponse` + +NewFederationReadDelegationResponseWithDefaults instantiates a new FederationReadDelegationResponse 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 *FederationReadDelegationResponse) GetResult() FederationDelegation` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationReadDelegationResponse) GetResultOk() (*FederationDelegation, 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 *FederationReadDelegationResponse) SetResult(v FederationDelegation)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationReadDelegationResponse) 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/ipamfederation/docs/FederationReadFederatedBlockResponse.md b/ipamfederation/docs/FederationReadFederatedBlockResponse.md new file mode 100644 index 0000000..db71ec1 --- /dev/null +++ b/ipamfederation/docs/FederationReadFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationReadFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationFederatedBlock**](FederationFederatedBlock.md) | The FederatedBlock object. | [optional] + +## Methods + +### NewFederationReadFederatedBlockResponse + +`func NewFederationReadFederatedBlockResponse() *FederationReadFederatedBlockResponse` + +NewFederationReadFederatedBlockResponse instantiates a new FederationReadFederatedBlockResponse 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 + +### NewFederationReadFederatedBlockResponseWithDefaults + +`func NewFederationReadFederatedBlockResponseWithDefaults() *FederationReadFederatedBlockResponse` + +NewFederationReadFederatedBlockResponseWithDefaults instantiates a new FederationReadFederatedBlockResponse 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 *FederationReadFederatedBlockResponse) GetResult() FederationFederatedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationReadFederatedBlockResponse) GetResultOk() (*FederationFederatedBlock, 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 *FederationReadFederatedBlockResponse) SetResult(v FederationFederatedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationReadFederatedBlockResponse) 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/ipamfederation/docs/FederationReadFederatedRealmResponse.md b/ipamfederation/docs/FederationReadFederatedRealmResponse.md new file mode 100644 index 0000000..08ee028 --- /dev/null +++ b/ipamfederation/docs/FederationReadFederatedRealmResponse.md @@ -0,0 +1,56 @@ +# FederationReadFederatedRealmResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationFederatedRealm**](FederationFederatedRealm.md) | The FederatedRealm object. | [optional] + +## Methods + +### NewFederationReadFederatedRealmResponse + +`func NewFederationReadFederatedRealmResponse() *FederationReadFederatedRealmResponse` + +NewFederationReadFederatedRealmResponse instantiates a new FederationReadFederatedRealmResponse 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 + +### NewFederationReadFederatedRealmResponseWithDefaults + +`func NewFederationReadFederatedRealmResponseWithDefaults() *FederationReadFederatedRealmResponse` + +NewFederationReadFederatedRealmResponseWithDefaults instantiates a new FederationReadFederatedRealmResponse 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 *FederationReadFederatedRealmResponse) GetResult() FederationFederatedRealm` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationReadFederatedRealmResponse) GetResultOk() (*FederationFederatedRealm, 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 *FederationReadFederatedRealmResponse) SetResult(v FederationFederatedRealm)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationReadFederatedRealmResponse) 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/ipamfederation/docs/FederationReadOverlappingBlockResponse.md b/ipamfederation/docs/FederationReadOverlappingBlockResponse.md new file mode 100644 index 0000000..72b44c6 --- /dev/null +++ b/ipamfederation/docs/FederationReadOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# FederationReadOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationOverlappingBlock**](FederationOverlappingBlock.md) | The OverlappingBlock object. | [optional] + +## Methods + +### NewFederationReadOverlappingBlockResponse + +`func NewFederationReadOverlappingBlockResponse() *FederationReadOverlappingBlockResponse` + +NewFederationReadOverlappingBlockResponse instantiates a new FederationReadOverlappingBlockResponse 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 + +### NewFederationReadOverlappingBlockResponseWithDefaults + +`func NewFederationReadOverlappingBlockResponseWithDefaults() *FederationReadOverlappingBlockResponse` + +NewFederationReadOverlappingBlockResponseWithDefaults instantiates a new FederationReadOverlappingBlockResponse 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 *FederationReadOverlappingBlockResponse) GetResult() FederationOverlappingBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationReadOverlappingBlockResponse) GetResultOk() (*FederationOverlappingBlock, 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 *FederationReadOverlappingBlockResponse) SetResult(v FederationOverlappingBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationReadOverlappingBlockResponse) 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/ipamfederation/docs/FederationReadReservedBlockResponse.md b/ipamfederation/docs/FederationReadReservedBlockResponse.md new file mode 100644 index 0000000..7d0c781 --- /dev/null +++ b/ipamfederation/docs/FederationReadReservedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationReadReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationReservedBlock**](FederationReservedBlock.md) | The ReservedBlock object. | [optional] + +## Methods + +### NewFederationReadReservedBlockResponse + +`func NewFederationReadReservedBlockResponse() *FederationReadReservedBlockResponse` + +NewFederationReadReservedBlockResponse instantiates a new FederationReadReservedBlockResponse 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 + +### NewFederationReadReservedBlockResponseWithDefaults + +`func NewFederationReadReservedBlockResponseWithDefaults() *FederationReadReservedBlockResponse` + +NewFederationReadReservedBlockResponseWithDefaults instantiates a new FederationReadReservedBlockResponse 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 *FederationReadReservedBlockResponse) GetResult() FederationReservedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationReadReservedBlockResponse) GetResultOk() (*FederationReservedBlock, 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 *FederationReadReservedBlockResponse) SetResult(v FederationReservedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationReadReservedBlockResponse) 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/ipamfederation/docs/FederationReservedBlock.md b/ipamfederation/docs/FederationReservedBlock.md new file mode 100644 index 0000000..3ed456a --- /dev/null +++ b/ipamfederation/docs/FederationReservedBlock.md @@ -0,0 +1,306 @@ +# FederationReservedBlock + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. | +**Cidr** | Pointer to **int64** | The CIDR of the reserved block. This is required field, if _address_ does not specify it in its input. | [optional] +**Comment** | Pointer to **string** | The description for the reserved block. May contain 0 to 1024 characters. Can include UTF-8. | [optional] +**CreatedAt** | Pointer to **time.Time** | Time when the object has been created. | [optional] [readonly] +**FederatedRealm** | **string** | The resource identifier. | +**Id** | Pointer to **string** | The resource identifier. | [optional] [readonly] +**Name** | Pointer to **string** | The name of the reserved block. May contain 1 to 256 characters. Can include UTF-8. | [optional] +**Parent** | Pointer to **string** | The resource identifier. | [optional] +**Protocol** | Pointer to **string** | The type of protocol of reserved block (_ip4_ or _ip6_). | [optional] [readonly] +**Tags** | Pointer to **map[string]interface{}** | The tags for the reserved block in JSON format. | [optional] +**UpdatedAt** | Pointer to **time.Time** | Time when the object has been updated. Equals to _created_at_ if not updated after creation. | [optional] [readonly] + +## Methods + +### NewFederationReservedBlock + +`func NewFederationReservedBlock(address string, federatedRealm string, ) *FederationReservedBlock` + +NewFederationReservedBlock instantiates a new FederationReservedBlock 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 + +### NewFederationReservedBlockWithDefaults + +`func NewFederationReservedBlockWithDefaults() *FederationReservedBlock` + +NewFederationReservedBlockWithDefaults instantiates a new FederationReservedBlock 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 + +### GetAddress + +`func (o *FederationReservedBlock) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *FederationReservedBlock) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *FederationReservedBlock) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetCidr + +`func (o *FederationReservedBlock) GetCidr() int64` + +GetCidr returns the Cidr field if non-nil, zero value otherwise. + +### GetCidrOk + +`func (o *FederationReservedBlock) GetCidrOk() (*int64, bool)` + +GetCidrOk returns a tuple with the Cidr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCidr + +`func (o *FederationReservedBlock) SetCidr(v int64)` + +SetCidr sets Cidr field to given value. + +### HasCidr + +`func (o *FederationReservedBlock) HasCidr() bool` + +HasCidr returns a boolean if a field has been set. + +### GetComment + +`func (o *FederationReservedBlock) GetComment() string` + +GetComment returns the Comment field if non-nil, zero value otherwise. + +### GetCommentOk + +`func (o *FederationReservedBlock) GetCommentOk() (*string, bool)` + +GetCommentOk returns a tuple with the Comment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComment + +`func (o *FederationReservedBlock) SetComment(v string)` + +SetComment sets Comment field to given value. + +### HasComment + +`func (o *FederationReservedBlock) HasComment() bool` + +HasComment returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *FederationReservedBlock) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *FederationReservedBlock) 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 *FederationReservedBlock) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *FederationReservedBlock) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetFederatedRealm + +`func (o *FederationReservedBlock) GetFederatedRealm() string` + +GetFederatedRealm returns the FederatedRealm field if non-nil, zero value otherwise. + +### GetFederatedRealmOk + +`func (o *FederationReservedBlock) GetFederatedRealmOk() (*string, bool)` + +GetFederatedRealmOk returns a tuple with the FederatedRealm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFederatedRealm + +`func (o *FederationReservedBlock) SetFederatedRealm(v string)` + +SetFederatedRealm sets FederatedRealm field to given value. + + +### GetId + +`func (o *FederationReservedBlock) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *FederationReservedBlock) 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 *FederationReservedBlock) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *FederationReservedBlock) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *FederationReservedBlock) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FederationReservedBlock) 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 *FederationReservedBlock) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FederationReservedBlock) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetParent + +`func (o *FederationReservedBlock) GetParent() string` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *FederationReservedBlock) GetParentOk() (*string, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *FederationReservedBlock) SetParent(v string)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *FederationReservedBlock) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### GetProtocol + +`func (o *FederationReservedBlock) GetProtocol() string` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *FederationReservedBlock) GetProtocolOk() (*string, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *FederationReservedBlock) SetProtocol(v string)` + +SetProtocol sets Protocol field to given value. + +### HasProtocol + +`func (o *FederationReservedBlock) HasProtocol() bool` + +HasProtocol returns a boolean if a field has been set. + +### GetTags + +`func (o *FederationReservedBlock) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FederationReservedBlock) GetTagsOk() (*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 *FederationReservedBlock) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FederationReservedBlock) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *FederationReservedBlock) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *FederationReservedBlock) 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 *FederationReservedBlock) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *FederationReservedBlock) 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/ipamfederation/docs/FederationUpdateDelegationResponse.md b/ipamfederation/docs/FederationUpdateDelegationResponse.md new file mode 100644 index 0000000..ea80577 --- /dev/null +++ b/ipamfederation/docs/FederationUpdateDelegationResponse.md @@ -0,0 +1,56 @@ +# FederationUpdateDelegationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationDelegation**](FederationDelegation.md) | The Delegation object. | [optional] + +## Methods + +### NewFederationUpdateDelegationResponse + +`func NewFederationUpdateDelegationResponse() *FederationUpdateDelegationResponse` + +NewFederationUpdateDelegationResponse instantiates a new FederationUpdateDelegationResponse 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 + +### NewFederationUpdateDelegationResponseWithDefaults + +`func NewFederationUpdateDelegationResponseWithDefaults() *FederationUpdateDelegationResponse` + +NewFederationUpdateDelegationResponseWithDefaults instantiates a new FederationUpdateDelegationResponse 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 *FederationUpdateDelegationResponse) GetResult() FederationDelegation` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationUpdateDelegationResponse) GetResultOk() (*FederationDelegation, 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 *FederationUpdateDelegationResponse) SetResult(v FederationDelegation)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationUpdateDelegationResponse) 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/ipamfederation/docs/FederationUpdateFederatedBlockResponse.md b/ipamfederation/docs/FederationUpdateFederatedBlockResponse.md new file mode 100644 index 0000000..54d2220 --- /dev/null +++ b/ipamfederation/docs/FederationUpdateFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationUpdateFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationFederatedBlock**](FederationFederatedBlock.md) | The FederatedBlock object. | [optional] + +## Methods + +### NewFederationUpdateFederatedBlockResponse + +`func NewFederationUpdateFederatedBlockResponse() *FederationUpdateFederatedBlockResponse` + +NewFederationUpdateFederatedBlockResponse instantiates a new FederationUpdateFederatedBlockResponse 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 + +### NewFederationUpdateFederatedBlockResponseWithDefaults + +`func NewFederationUpdateFederatedBlockResponseWithDefaults() *FederationUpdateFederatedBlockResponse` + +NewFederationUpdateFederatedBlockResponseWithDefaults instantiates a new FederationUpdateFederatedBlockResponse 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 *FederationUpdateFederatedBlockResponse) GetResult() FederationFederatedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationUpdateFederatedBlockResponse) GetResultOk() (*FederationFederatedBlock, 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 *FederationUpdateFederatedBlockResponse) SetResult(v FederationFederatedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationUpdateFederatedBlockResponse) 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/ipamfederation/docs/FederationUpdateFederatedRealmResponse.md b/ipamfederation/docs/FederationUpdateFederatedRealmResponse.md new file mode 100644 index 0000000..bf0fe3b --- /dev/null +++ b/ipamfederation/docs/FederationUpdateFederatedRealmResponse.md @@ -0,0 +1,56 @@ +# FederationUpdateFederatedRealmResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationFederatedRealm**](FederationFederatedRealm.md) | The FederatedRealm object. | [optional] + +## Methods + +### NewFederationUpdateFederatedRealmResponse + +`func NewFederationUpdateFederatedRealmResponse() *FederationUpdateFederatedRealmResponse` + +NewFederationUpdateFederatedRealmResponse instantiates a new FederationUpdateFederatedRealmResponse 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 + +### NewFederationUpdateFederatedRealmResponseWithDefaults + +`func NewFederationUpdateFederatedRealmResponseWithDefaults() *FederationUpdateFederatedRealmResponse` + +NewFederationUpdateFederatedRealmResponseWithDefaults instantiates a new FederationUpdateFederatedRealmResponse 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 *FederationUpdateFederatedRealmResponse) GetResult() FederationFederatedRealm` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationUpdateFederatedRealmResponse) GetResultOk() (*FederationFederatedRealm, 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 *FederationUpdateFederatedRealmResponse) SetResult(v FederationFederatedRealm)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationUpdateFederatedRealmResponse) 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/ipamfederation/docs/FederationUpdateOverlappingBlockResponse.md b/ipamfederation/docs/FederationUpdateOverlappingBlockResponse.md new file mode 100644 index 0000000..5b1687d --- /dev/null +++ b/ipamfederation/docs/FederationUpdateOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# FederationUpdateOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationOverlappingBlock**](FederationOverlappingBlock.md) | The OverlappingBlock object. | [optional] + +## Methods + +### NewFederationUpdateOverlappingBlockResponse + +`func NewFederationUpdateOverlappingBlockResponse() *FederationUpdateOverlappingBlockResponse` + +NewFederationUpdateOverlappingBlockResponse instantiates a new FederationUpdateOverlappingBlockResponse 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 + +### NewFederationUpdateOverlappingBlockResponseWithDefaults + +`func NewFederationUpdateOverlappingBlockResponseWithDefaults() *FederationUpdateOverlappingBlockResponse` + +NewFederationUpdateOverlappingBlockResponseWithDefaults instantiates a new FederationUpdateOverlappingBlockResponse 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 *FederationUpdateOverlappingBlockResponse) GetResult() FederationOverlappingBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationUpdateOverlappingBlockResponse) GetResultOk() (*FederationOverlappingBlock, 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 *FederationUpdateOverlappingBlockResponse) SetResult(v FederationOverlappingBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationUpdateOverlappingBlockResponse) 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/ipamfederation/docs/FederationUpdateReservedBlockResponse.md b/ipamfederation/docs/FederationUpdateReservedBlockResponse.md new file mode 100644 index 0000000..0dc68c8 --- /dev/null +++ b/ipamfederation/docs/FederationUpdateReservedBlockResponse.md @@ -0,0 +1,56 @@ +# FederationUpdateReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederationReservedBlock**](FederationReservedBlock.md) | The ReservedBlock object. | [optional] + +## Methods + +### NewFederationUpdateReservedBlockResponse + +`func NewFederationUpdateReservedBlockResponse() *FederationUpdateReservedBlockResponse` + +NewFederationUpdateReservedBlockResponse instantiates a new FederationUpdateReservedBlockResponse 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 + +### NewFederationUpdateReservedBlockResponseWithDefaults + +`func NewFederationUpdateReservedBlockResponseWithDefaults() *FederationUpdateReservedBlockResponse` + +NewFederationUpdateReservedBlockResponseWithDefaults instantiates a new FederationUpdateReservedBlockResponse 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 *FederationUpdateReservedBlockResponse) GetResult() FederationReservedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *FederationUpdateReservedBlockResponse) GetResultOk() (*FederationReservedBlock, 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 *FederationUpdateReservedBlockResponse) SetResult(v FederationReservedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *FederationUpdateReservedBlockResponse) 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/ipamfederation/docs/HealthConfigStatusCode.md b/ipamfederation/docs/HealthConfigStatusCode.md new file mode 100644 index 0000000..942a869 --- /dev/null +++ b/ipamfederation/docs/HealthConfigStatusCode.md @@ -0,0 +1,21 @@ +# HealthConfigStatusCode + +## Enum + + +* `SUCCESS` (value: `"StatusCode_SUCCESS"`) + +* `GENERAL_FAILURE` (value: `"StatusCode_GENERAL_FAILURE"`) + +* `HASH_FAILURE` (value: `"StatusCode_HASH_FAILURE"`) + +* `VALIDATION_FAILURE` (value: `"StatusCode_VALIDATION_FAILURE"`) + +* `COPY_FAILURE` (value: `"StatusCode_COPY_FAILURE"`) + +* `RELOAD_FAILIURE` (value: `"StatusCode_RELOAD_FAILIURE"`) + + +[[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/ipamfederation/docs/NextAvailableDelegationAPI.md b/ipamfederation/docs/NextAvailableDelegationAPI.md new file mode 100644 index 0000000..2d4904c --- /dev/null +++ b/ipamfederation/docs/NextAvailableDelegationAPI.md @@ -0,0 +1,75 @@ +# NextAvailableDelegationAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetNextAvailableDelegation**](NextAvailableDelegationAPI.md#GetNextAvailableDelegation) | **Post** /federation/next_available_delegation | Retrieve the next available delegation. + + + +## GetNextAvailableDelegation + +> FederationGetNextAvailableDelegationResponse GetNextAvailableDelegation(ctx).Body(body).Execute() + +Retrieve the next available delegation. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationGetNextAvailableDelegationRequest() // FederationGetNextAvailableDelegationRequest | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.NextAvailableDelegationAPI.GetNextAvailableDelegation(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NextAvailableDelegationAPI.GetNextAvailableDelegation``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetNextAvailableDelegation`: FederationGetNextAvailableDelegationResponse + fmt.Fprintf(os.Stdout, "Response from `NextAvailableDelegationAPI.GetNextAvailableDelegation`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `NextAvailableDelegationAPIGetNextAvailableDelegationRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationGetNextAvailableDelegationRequest**](FederationGetNextAvailableDelegationRequest.md) | | + +### Return type + +[**FederationGetNextAvailableDelegationResponse**](FederationGetNextAvailableDelegationResponse.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/ipamfederation/docs/NextAvailableFederatedBlockAPI.md b/ipamfederation/docs/NextAvailableFederatedBlockAPI.md new file mode 100644 index 0000000..a69d4c1 --- /dev/null +++ b/ipamfederation/docs/NextAvailableFederatedBlockAPI.md @@ -0,0 +1,298 @@ +# NextAvailableFederatedBlockAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateNextAvailableFederatedBlocks**](NextAvailableFederatedBlockAPI.md#CreateNextAvailableFederatedBlocks) | **Post** /federation/federated_block/{id}/next_available_federated_block | Retrieve the next available federated block. +[**CreateNextAvailableOverlappingBlocks**](NextAvailableFederatedBlockAPI.md#CreateNextAvailableOverlappingBlocks) | **Post** /federation/federated_block/{id}/next_available_overlapping_block | Retrieve the next available overlapping block. +[**CreateNextAvailableReservedBlocks**](NextAvailableFederatedBlockAPI.md#CreateNextAvailableReservedBlocks) | **Post** /federation/federated_block/{id}/next_available_reserved_block | Retrieve the next available reserved block. +[**ListNextAvailableFederatedBlocks**](NextAvailableFederatedBlockAPI.md#ListNextAvailableFederatedBlocks) | **Get** /federation/federated_block/{id}/next_available_federated_block | List the next available federated block. + + + +## CreateNextAvailableFederatedBlocks + +> FederationCreateNextAvailableFederatedBlockResponse CreateNextAvailableFederatedBlocks(ctx, id).Body(body).Execute() + +Retrieve the next available federated block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationNextAvailableBlockRequest() // FederationNextAvailableBlockRequest | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableFederatedBlocks(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NextAvailableFederatedBlockAPI.CreateNextAvailableFederatedBlocks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNextAvailableFederatedBlocks`: FederationCreateNextAvailableFederatedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.CreateNextAvailableFederatedBlocks`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationNextAvailableBlockRequest**](FederationNextAvailableBlockRequest.md) | | + +### Return type + +[**FederationCreateNextAvailableFederatedBlockResponse**](FederationCreateNextAvailableFederatedBlockResponse.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) + + +## CreateNextAvailableOverlappingBlocks + +> FederationCreateNextAvailableOverlappingBlockResponse CreateNextAvailableOverlappingBlocks(ctx, id).Body(body).Execute() + +Retrieve the next available overlapping block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationNextAvailableBlockRequest() // FederationNextAvailableBlockRequest | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableOverlappingBlocks(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NextAvailableFederatedBlockAPI.CreateNextAvailableOverlappingBlocks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNextAvailableOverlappingBlocks`: FederationCreateNextAvailableOverlappingBlockResponse + fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.CreateNextAvailableOverlappingBlocks`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationNextAvailableBlockRequest**](FederationNextAvailableBlockRequest.md) | | + +### Return type + +[**FederationCreateNextAvailableOverlappingBlockResponse**](FederationCreateNextAvailableOverlappingBlockResponse.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) + + +## CreateNextAvailableReservedBlocks + +> FederationCreateNextAvailableReservedBlockResponse CreateNextAvailableReservedBlocks(ctx, id).Body(body).Execute() + +Retrieve the next available reserved block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationNextAvailableBlockRequest() // FederationNextAvailableBlockRequest | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableReservedBlocks(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NextAvailableFederatedBlockAPI.CreateNextAvailableReservedBlocks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateNextAvailableReservedBlocks`: FederationCreateNextAvailableReservedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.CreateNextAvailableReservedBlocks`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationNextAvailableBlockRequest**](FederationNextAvailableBlockRequest.md) | | + +### Return type + +[**FederationCreateNextAvailableReservedBlockResponse**](FederationCreateNextAvailableReservedBlockResponse.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) + + +## ListNextAvailableFederatedBlocks + +> FederationListNextAvailableFederatedBlockResponse ListNextAvailableFederatedBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() + +List the next available federated block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.NextAvailableFederatedBlockAPI.ListNextAvailableFederatedBlocks(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NextAvailableFederatedBlockAPI.ListNextAvailableFederatedBlocks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNextAvailableFederatedBlocks`: FederationListNextAvailableFederatedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.ListNextAvailableFederatedBlocks`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**cidr** | **int64** | The CIDR of the federated block. This is required, if _address_ does not specify it in its input. | +**count** | **int64** | The count of __Block__ required. If not provided, it will default to 1. | +**name** | **string** | The name to be provided. | +**comment** | **string** | The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. | + +### Return type + +[**FederationListNextAvailableFederatedBlockResponse**](FederationListNextAvailableFederatedBlockResponse.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/ipamfederation/docs/NextAvailableOverlappingBlockAPI.md b/ipamfederation/docs/NextAvailableOverlappingBlockAPI.md new file mode 100644 index 0000000..e231c20 --- /dev/null +++ b/ipamfederation/docs/NextAvailableOverlappingBlockAPI.md @@ -0,0 +1,82 @@ +# NextAvailableOverlappingBlockAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ListNextAvailableOverlappingBlocks**](NextAvailableOverlappingBlockAPI.md#ListNextAvailableOverlappingBlocks) | **Get** /federation/federated_block/{id}/next_available_overlapping_block | List the next available overlapping block. + + + +## ListNextAvailableOverlappingBlocks + +> FederationListNextAvailableOverlappingBlockResponse ListNextAvailableOverlappingBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() + +List the next available overlapping block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.NextAvailableOverlappingBlockAPI.ListNextAvailableOverlappingBlocks(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NextAvailableOverlappingBlockAPI.ListNextAvailableOverlappingBlocks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNextAvailableOverlappingBlocks`: FederationListNextAvailableOverlappingBlockResponse + fmt.Fprintf(os.Stdout, "Response from `NextAvailableOverlappingBlockAPI.ListNextAvailableOverlappingBlocks`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**cidr** | **int64** | The CIDR of the federated block. This is required, if _address_ does not specify it in its input. | +**count** | **int64** | The count of __Block__ required. If not provided, it will default to 1. | +**name** | **string** | The name to be provided. | +**comment** | **string** | The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. | + +### Return type + +[**FederationListNextAvailableOverlappingBlockResponse**](FederationListNextAvailableOverlappingBlockResponse.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/ipamfederation/docs/NextAvailableReservedBlockAPI.md b/ipamfederation/docs/NextAvailableReservedBlockAPI.md new file mode 100644 index 0000000..ca3d00d --- /dev/null +++ b/ipamfederation/docs/NextAvailableReservedBlockAPI.md @@ -0,0 +1,82 @@ +# NextAvailableReservedBlockAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ListNextAvailableReservedBlocks**](NextAvailableReservedBlockAPI.md#ListNextAvailableReservedBlocks) | **Get** /federation/federated_block/{id}/next_available_reserved_block | List the next available reserved block. + + + +## ListNextAvailableReservedBlocks + +> FederationListNextAvailableReservedBlockResponse ListNextAvailableReservedBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() + +List the next available reserved block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.NextAvailableReservedBlockAPI.ListNextAvailableReservedBlocks(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NextAvailableReservedBlockAPI.ListNextAvailableReservedBlocks``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ListNextAvailableReservedBlocks`: FederationListNextAvailableReservedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `NextAvailableReservedBlockAPI.ListNextAvailableReservedBlocks`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**cidr** | **int64** | The CIDR of the federated block. This is required, if _address_ does not specify it in its input. | +**count** | **int64** | The count of __Block__ required. If not provided, it will default to 1. | +**name** | **string** | The name to be provided. | +**comment** | **string** | The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. | + +### Return type + +[**FederationListNextAvailableReservedBlockResponse**](FederationListNextAvailableReservedBlockResponse.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/ipamfederation/docs/OverlappingBlockAPI.md b/ipamfederation/docs/OverlappingBlockAPI.md new file mode 100644 index 0000000..667d3f4 --- /dev/null +++ b/ipamfederation/docs/OverlappingBlockAPI.md @@ -0,0 +1,359 @@ +# OverlappingBlockAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Create**](OverlappingBlockAPI.md#Create) | **Post** /federation/overlapping_block | Create the overlapping block. +[**Delete**](OverlappingBlockAPI.md#Delete) | **Delete** /federation/overlapping_block/{id} | Delete the overlapping block. +[**List**](OverlappingBlockAPI.md#List) | **Get** /federation/overlapping_block | Retrieve the overlapping block. +[**Read**](OverlappingBlockAPI.md#Read) | **Get** /federation/overlapping_block/{id} | Retrieve the overlapping block. +[**Update**](OverlappingBlockAPI.md#Update) | **Patch** /federation/overlapping_block/{id} | Update the overlapping block. + + + +## Create + +> FederationCreateOverlappingBlockResponse Create(ctx).Body(body).Execute() + +Create the overlapping block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationOverlappingBlock("Address_example", "FederatedRealm_example") // FederationOverlappingBlock | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.OverlappingBlockAPI.Create(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OverlappingBlockAPI.Create``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Create`: FederationCreateOverlappingBlockResponse + fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.Create`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `OverlappingBlockAPICreateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationOverlappingBlock**](FederationOverlappingBlock.md) | | + +### Return type + +[**FederationCreateOverlappingBlockResponse**](FederationCreateOverlappingBlockResponse.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 the overlapping block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + r, err := apiClient.OverlappingBlockAPI.Delete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OverlappingBlockAPI.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** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `OverlappingBlockAPIDeleteRequest` 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 + +> FederationListOverlappingBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() + +Retrieve the overlapping block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.OverlappingBlockAPI.List(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OverlappingBlockAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: FederationListOverlappingBlockResponse + fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `OverlappingBlockAPIListRequest` 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. | +**torderBy** | **string** | This parameter is used for sorting by tags. | +**tfilter** | **string** | This parameter is used for filtering by tags. | + +### Return type + +[**FederationListOverlappingBlockResponse**](FederationListOverlappingBlockResponse.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 + +> FederationReadOverlappingBlockResponse Read(ctx, id).Fields(fields).Execute() + +Retrieve the overlapping block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.OverlappingBlockAPI.Read(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OverlappingBlockAPI.Read``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Read`: FederationReadOverlappingBlockResponse + fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.Read`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `OverlappingBlockAPIReadRequest` 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 + +[**FederationReadOverlappingBlockResponse**](FederationReadOverlappingBlockResponse.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 + +> FederationUpdateOverlappingBlockResponse Update(ctx, id).Body(body).Execute() + +Update the overlapping block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationOverlappingBlock("Address_example", "FederatedRealm_example") // FederationOverlappingBlock | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.OverlappingBlockAPI.Update(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OverlappingBlockAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: FederationUpdateOverlappingBlockResponse + fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.Update`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `OverlappingBlockAPIUpdateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationOverlappingBlock**](FederationOverlappingBlock.md) | | + +### Return type + +[**FederationUpdateOverlappingBlockResponse**](FederationUpdateOverlappingBlockResponse.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/ipamfederation/docs/ProtobufFieldMask.md b/ipamfederation/docs/ProtobufFieldMask.md new file mode 100644 index 0000000..770b011 --- /dev/null +++ b/ipamfederation/docs/ProtobufFieldMask.md @@ -0,0 +1,56 @@ +# ProtobufFieldMask + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Paths** | Pointer to **[]string** | The set of field mask paths. | [optional] + +## Methods + +### NewProtobufFieldMask + +`func NewProtobufFieldMask() *ProtobufFieldMask` + +NewProtobufFieldMask instantiates a new ProtobufFieldMask 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 + +### NewProtobufFieldMaskWithDefaults + +`func NewProtobufFieldMaskWithDefaults() *ProtobufFieldMask` + +NewProtobufFieldMaskWithDefaults instantiates a new ProtobufFieldMask 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 + +### GetPaths + +`func (o *ProtobufFieldMask) GetPaths() []string` + +GetPaths returns the Paths field if non-nil, zero value otherwise. + +### GetPathsOk + +`func (o *ProtobufFieldMask) GetPathsOk() (*[]string, bool)` + +GetPathsOk returns a tuple with the Paths field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaths + +`func (o *ProtobufFieldMask) SetPaths(v []string)` + +SetPaths sets Paths field to given value. + +### HasPaths + +`func (o *ProtobufFieldMask) HasPaths() bool` + +HasPaths 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/ipamfederation/docs/ReservedBlockAPI.md b/ipamfederation/docs/ReservedBlockAPI.md new file mode 100644 index 0000000..fcb7a0f --- /dev/null +++ b/ipamfederation/docs/ReservedBlockAPI.md @@ -0,0 +1,359 @@ +# ReservedBlockAPI + +All URIs are relative to */api/ddi/v1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**Create**](ReservedBlockAPI.md#Create) | **Post** /federation/reserved_block | Create the reserved block. +[**Delete**](ReservedBlockAPI.md#Delete) | **Delete** /federation/reserved_block/{id} | Delete the reserved block. +[**List**](ReservedBlockAPI.md#List) | **Get** /federation/reserved_block | Retrieve the reserved block. +[**Read**](ReservedBlockAPI.md#Read) | **Get** /federation/reserved_block/{id} | Retrieve the reserved block. +[**Update**](ReservedBlockAPI.md#Update) | **Patch** /federation/reserved_block/{id} | Update the reserved block. + + + +## Create + +> FederationCreateReservedBlockResponse Create(ctx).Body(body).Execute() + +Create the reserved block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + body := *ipamfederation.NewFederationReservedBlock("Address_example", "FederatedRealm_example") // FederationReservedBlock | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.ReservedBlockAPI.Create(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedBlockAPI.Create``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Create`: FederationCreateReservedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.Create`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `ReservedBlockAPICreateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationReservedBlock**](FederationReservedBlock.md) | | + +### Return type + +[**FederationCreateReservedBlockResponse**](FederationCreateReservedBlockResponse.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 the reserved block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + r, err := apiClient.ReservedBlockAPI.Delete(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedBlockAPI.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** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `ReservedBlockAPIDeleteRequest` 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 + +> FederationListReservedBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() + +Retrieve the reserved block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.ReservedBlockAPI.List(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedBlockAPI.List``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `List`: FederationListReservedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.List`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `ReservedBlockAPIListRequest` 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. | +**torderBy** | **string** | This parameter is used for sorting by tags. | +**tfilter** | **string** | This parameter is used for filtering by tags. | + +### Return type + +[**FederationListReservedBlockResponse**](FederationListReservedBlockResponse.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 + +> FederationReadReservedBlockResponse Read(ctx, id).Fields(fields).Execute() + +Retrieve the reserved block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.ReservedBlockAPI.Read(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedBlockAPI.Read``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Read`: FederationReadReservedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.Read`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `ReservedBlockAPIReadRequest` 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 + +[**FederationReadReservedBlockResponse**](FederationReadReservedBlockResponse.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 + +> FederationUpdateReservedBlockResponse Update(ctx, id).Body(body).Execute() + +Update the reserved block. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func main() { + id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource + body := *ipamfederation.NewFederationReservedBlock("Address_example", "FederatedRealm_example") // FederationReservedBlock | + + apiClient := ipamfederation.NewAPIClient() + resp, r, err := apiClient.ReservedBlockAPI.Update(context.Background(), id).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReservedBlockAPI.Update``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Update`: FederationUpdateReservedBlockResponse + fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.Update`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | An application specific resource identity of a resource | + +### Other Parameters + +Other parameters are passed through a pointer to a `ReservedBlockAPIUpdateRequest` struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**body** | [**FederationReservedBlock**](FederationReservedBlock.md) | | + +### Return type + +[**FederationUpdateReservedBlockResponse**](FederationUpdateReservedBlockResponse.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/ipamfederation/model_federation_allocation.go b/ipamfederation/model_federation_allocation.go new file mode 100644 index 0000000..16a291d --- /dev/null +++ b/ipamfederation/model_federation_allocation.go @@ -0,0 +1,268 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationAllocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationAllocation{} + +// FederationAllocation The __Allocation__ tracks the distribution of Federated Blocks within each of the supported objects. +type FederationAllocation struct { + // Percent of total space allocated. + Allocated *int64 `json:"allocated,omitempty"` + // Percent of total space delegated. + Delegated *int64 `json:"delegated,omitempty"` + // Percent of total space in overlapping blocks. + Overlapping *int64 `json:"overlapping,omitempty"` + // Percent of total space reserved. + Reserved *int64 `json:"reserved,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationAllocation FederationAllocation + +// NewFederationAllocation instantiates a new FederationAllocation 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 NewFederationAllocation() *FederationAllocation { + this := FederationAllocation{} + return &this +} + +// NewFederationAllocationWithDefaults instantiates a new FederationAllocation 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 NewFederationAllocationWithDefaults() *FederationAllocation { + this := FederationAllocation{} + return &this +} + +// GetAllocated returns the Allocated field value if set, zero value otherwise. +func (o *FederationAllocation) GetAllocated() int64 { + if o == nil || IsNil(o.Allocated) { + var ret int64 + return ret + } + return *o.Allocated +} + +// GetAllocatedOk returns a tuple with the Allocated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationAllocation) GetAllocatedOk() (*int64, bool) { + if o == nil || IsNil(o.Allocated) { + return nil, false + } + return o.Allocated, true +} + +// HasAllocated returns a boolean if a field has been set. +func (o *FederationAllocation) HasAllocated() bool { + if o != nil && !IsNil(o.Allocated) { + return true + } + + return false +} + +// SetAllocated gets a reference to the given int64 and assigns it to the Allocated field. +func (o *FederationAllocation) SetAllocated(v int64) { + o.Allocated = &v +} + +// GetDelegated returns the Delegated field value if set, zero value otherwise. +func (o *FederationAllocation) GetDelegated() int64 { + if o == nil || IsNil(o.Delegated) { + var ret int64 + return ret + } + return *o.Delegated +} + +// GetDelegatedOk returns a tuple with the Delegated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationAllocation) GetDelegatedOk() (*int64, bool) { + if o == nil || IsNil(o.Delegated) { + return nil, false + } + return o.Delegated, true +} + +// HasDelegated returns a boolean if a field has been set. +func (o *FederationAllocation) HasDelegated() bool { + if o != nil && !IsNil(o.Delegated) { + return true + } + + return false +} + +// SetDelegated gets a reference to the given int64 and assigns it to the Delegated field. +func (o *FederationAllocation) SetDelegated(v int64) { + o.Delegated = &v +} + +// GetOverlapping returns the Overlapping field value if set, zero value otherwise. +func (o *FederationAllocation) GetOverlapping() int64 { + if o == nil || IsNil(o.Overlapping) { + var ret int64 + return ret + } + return *o.Overlapping +} + +// GetOverlappingOk returns a tuple with the Overlapping field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationAllocation) GetOverlappingOk() (*int64, bool) { + if o == nil || IsNil(o.Overlapping) { + return nil, false + } + return o.Overlapping, true +} + +// HasOverlapping returns a boolean if a field has been set. +func (o *FederationAllocation) HasOverlapping() bool { + if o != nil && !IsNil(o.Overlapping) { + return true + } + + return false +} + +// SetOverlapping gets a reference to the given int64 and assigns it to the Overlapping field. +func (o *FederationAllocation) SetOverlapping(v int64) { + o.Overlapping = &v +} + +// GetReserved returns the Reserved field value if set, zero value otherwise. +func (o *FederationAllocation) GetReserved() int64 { + if o == nil || IsNil(o.Reserved) { + var ret int64 + return ret + } + return *o.Reserved +} + +// GetReservedOk returns a tuple with the Reserved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationAllocation) GetReservedOk() (*int64, bool) { + if o == nil || IsNil(o.Reserved) { + return nil, false + } + return o.Reserved, true +} + +// HasReserved returns a boolean if a field has been set. +func (o *FederationAllocation) HasReserved() bool { + if o != nil && !IsNil(o.Reserved) { + return true + } + + return false +} + +// SetReserved gets a reference to the given int64 and assigns it to the Reserved field. +func (o *FederationAllocation) SetReserved(v int64) { + o.Reserved = &v +} + +func (o FederationAllocation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationAllocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Allocated) { + toSerialize["allocated"] = o.Allocated + } + if !IsNil(o.Delegated) { + toSerialize["delegated"] = o.Delegated + } + if !IsNil(o.Overlapping) { + toSerialize["overlapping"] = o.Overlapping + } + if !IsNil(o.Reserved) { + toSerialize["reserved"] = o.Reserved + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationAllocation) UnmarshalJSON(data []byte) (err error) { + varFederationAllocation := _FederationAllocation{} + + err = json.Unmarshal(data, &varFederationAllocation) + + if err != nil { + return err + } + + *o = FederationAllocation(varFederationAllocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "allocated") + delete(additionalProperties, "delegated") + delete(additionalProperties, "overlapping") + delete(additionalProperties, "reserved") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationAllocation struct { + value *FederationAllocation + isSet bool +} + +func (v NullableFederationAllocation) Get() *FederationAllocation { + return v.value +} + +func (v *NullableFederationAllocation) Set(val *FederationAllocation) { + v.value = val + v.isSet = true +} + +func (v NullableFederationAllocation) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationAllocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationAllocation(val *FederationAllocation) *NullableFederationAllocation { + return &NullableFederationAllocation{value: val, isSet: true} +} + +func (v NullableFederationAllocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationAllocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_config_object.go b/ipamfederation/model_federation_config_object.go new file mode 100644 index 0000000..8ade892 --- /dev/null +++ b/ipamfederation/model_federation_config_object.go @@ -0,0 +1,227 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationConfigObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationConfigObject{} + +// FederationConfigObject struct for FederationConfigObject +type FederationConfigObject struct { + ConfigBody *string `json:"configBody,omitempty"` + Ophid *string `json:"ophid,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationConfigObject FederationConfigObject + +// NewFederationConfigObject instantiates a new FederationConfigObject 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 NewFederationConfigObject() *FederationConfigObject { + this := FederationConfigObject{} + return &this +} + +// NewFederationConfigObjectWithDefaults instantiates a new FederationConfigObject 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 NewFederationConfigObjectWithDefaults() *FederationConfigObject { + this := FederationConfigObject{} + return &this +} + +// GetConfigBody returns the ConfigBody field value if set, zero value otherwise. +func (o *FederationConfigObject) GetConfigBody() string { + if o == nil || IsNil(o.ConfigBody) { + var ret string + return ret + } + return *o.ConfigBody +} + +// GetConfigBodyOk returns a tuple with the ConfigBody field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationConfigObject) GetConfigBodyOk() (*string, bool) { + if o == nil || IsNil(o.ConfigBody) { + return nil, false + } + return o.ConfigBody, true +} + +// HasConfigBody returns a boolean if a field has been set. +func (o *FederationConfigObject) HasConfigBody() bool { + if o != nil && !IsNil(o.ConfigBody) { + return true + } + + return false +} + +// SetConfigBody gets a reference to the given string and assigns it to the ConfigBody field. +func (o *FederationConfigObject) SetConfigBody(v string) { + o.ConfigBody = &v +} + +// GetOphid returns the Ophid field value if set, zero value otherwise. +func (o *FederationConfigObject) GetOphid() string { + if o == nil || IsNil(o.Ophid) { + var ret string + return ret + } + return *o.Ophid +} + +// GetOphidOk returns a tuple with the Ophid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationConfigObject) GetOphidOk() (*string, bool) { + if o == nil || IsNil(o.Ophid) { + return nil, false + } + return o.Ophid, true +} + +// HasOphid returns a boolean if a field has been set. +func (o *FederationConfigObject) HasOphid() bool { + if o != nil && !IsNil(o.Ophid) { + return true + } + + return false +} + +// SetOphid gets a reference to the given string and assigns it to the Ophid field. +func (o *FederationConfigObject) SetOphid(v string) { + o.Ophid = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *FederationConfigObject) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + 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 *FederationConfigObject) GetVersionOk() (*string, 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 *FederationConfigObject) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *FederationConfigObject) SetVersion(v string) { + o.Version = &v +} + +func (o FederationConfigObject) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationConfigObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ConfigBody) { + toSerialize["configBody"] = o.ConfigBody + } + if !IsNil(o.Ophid) { + toSerialize["ophid"] = o.Ophid + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationConfigObject) UnmarshalJSON(data []byte) (err error) { + varFederationConfigObject := _FederationConfigObject{} + + err = json.Unmarshal(data, &varFederationConfigObject) + + if err != nil { + return err + } + + *o = FederationConfigObject(varFederationConfigObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "configBody") + delete(additionalProperties, "ophid") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationConfigObject struct { + value *FederationConfigObject + isSet bool +} + +func (v NullableFederationConfigObject) Get() *FederationConfigObject { + return v.value +} + +func (v *NullableFederationConfigObject) Set(val *FederationConfigObject) { + v.value = val + v.isSet = true +} + +func (v NullableFederationConfigObject) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationConfigObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationConfigObject(val *FederationConfigObject) *NullableFederationConfigObject { + return &NullableFederationConfigObject{value: val, isSet: true} +} + +func (v NullableFederationConfigObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationConfigObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_delegation_response.go b/ipamfederation/model_federation_create_delegation_response.go new file mode 100644 index 0000000..c4b805c --- /dev/null +++ b/ipamfederation/model_federation_create_delegation_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateDelegationResponse{} + +// FederationCreateDelegationResponse The response format to create the __Delegation__ object. +type FederationCreateDelegationResponse struct { + // The created Delegation object. + Result *FederationDelegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateDelegationResponse FederationCreateDelegationResponse + +// NewFederationCreateDelegationResponse instantiates a new FederationCreateDelegationResponse 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 NewFederationCreateDelegationResponse() *FederationCreateDelegationResponse { + this := FederationCreateDelegationResponse{} + return &this +} + +// NewFederationCreateDelegationResponseWithDefaults instantiates a new FederationCreateDelegationResponse 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 NewFederationCreateDelegationResponseWithDefaults() *FederationCreateDelegationResponse { + this := FederationCreateDelegationResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationCreateDelegationResponse) GetResult() FederationDelegation { + if o == nil || IsNil(o.Result) { + var ret FederationDelegation + 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 *FederationCreateDelegationResponse) GetResultOk() (*FederationDelegation, 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 *FederationCreateDelegationResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationDelegation and assigns it to the Result field. +func (o *FederationCreateDelegationResponse) SetResult(v FederationDelegation) { + o.Result = &v +} + +func (o FederationCreateDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateDelegationResponse) 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 *FederationCreateDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateDelegationResponse := _FederationCreateDelegationResponse{} + + err = json.Unmarshal(data, &varFederationCreateDelegationResponse) + + if err != nil { + return err + } + + *o = FederationCreateDelegationResponse(varFederationCreateDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateDelegationResponse struct { + value *FederationCreateDelegationResponse + isSet bool +} + +func (v NullableFederationCreateDelegationResponse) Get() *FederationCreateDelegationResponse { + return v.value +} + +func (v *NullableFederationCreateDelegationResponse) Set(val *FederationCreateDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateDelegationResponse(val *FederationCreateDelegationResponse) *NullableFederationCreateDelegationResponse { + return &NullableFederationCreateDelegationResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_federated_block_response.go b/ipamfederation/model_federation_create_federated_block_response.go new file mode 100644 index 0000000..de7c125 --- /dev/null +++ b/ipamfederation/model_federation_create_federated_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateFederatedBlockResponse{} + +// FederationCreateFederatedBlockResponse The response format to create the __FederatedBlock__ object. +type FederationCreateFederatedBlockResponse struct { + // The created FederatedBlock object. + Result *FederationFederatedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateFederatedBlockResponse FederationCreateFederatedBlockResponse + +// NewFederationCreateFederatedBlockResponse instantiates a new FederationCreateFederatedBlockResponse 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 NewFederationCreateFederatedBlockResponse() *FederationCreateFederatedBlockResponse { + this := FederationCreateFederatedBlockResponse{} + return &this +} + +// NewFederationCreateFederatedBlockResponseWithDefaults instantiates a new FederationCreateFederatedBlockResponse 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 NewFederationCreateFederatedBlockResponseWithDefaults() *FederationCreateFederatedBlockResponse { + this := FederationCreateFederatedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationCreateFederatedBlockResponse) GetResult() FederationFederatedBlock { + if o == nil || IsNil(o.Result) { + var ret FederationFederatedBlock + 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 *FederationCreateFederatedBlockResponse) GetResultOk() (*FederationFederatedBlock, 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 *FederationCreateFederatedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationFederatedBlock and assigns it to the Result field. +func (o *FederationCreateFederatedBlockResponse) SetResult(v FederationFederatedBlock) { + o.Result = &v +} + +func (o FederationCreateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateFederatedBlockResponse) 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 *FederationCreateFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateFederatedBlockResponse := _FederationCreateFederatedBlockResponse{} + + err = json.Unmarshal(data, &varFederationCreateFederatedBlockResponse) + + if err != nil { + return err + } + + *o = FederationCreateFederatedBlockResponse(varFederationCreateFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateFederatedBlockResponse struct { + value *FederationCreateFederatedBlockResponse + isSet bool +} + +func (v NullableFederationCreateFederatedBlockResponse) Get() *FederationCreateFederatedBlockResponse { + return v.value +} + +func (v *NullableFederationCreateFederatedBlockResponse) Set(val *FederationCreateFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateFederatedBlockResponse(val *FederationCreateFederatedBlockResponse) *NullableFederationCreateFederatedBlockResponse { + return &NullableFederationCreateFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_federated_realm_response.go b/ipamfederation/model_federation_create_federated_realm_response.go new file mode 100644 index 0000000..1d13472 --- /dev/null +++ b/ipamfederation/model_federation_create_federated_realm_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateFederatedRealmResponse{} + +// FederationCreateFederatedRealmResponse The response format to create the __FederatedRealm__ object. +type FederationCreateFederatedRealmResponse struct { + // The created Federated Realm object. + Result *FederationFederatedRealm `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateFederatedRealmResponse FederationCreateFederatedRealmResponse + +// NewFederationCreateFederatedRealmResponse instantiates a new FederationCreateFederatedRealmResponse 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 NewFederationCreateFederatedRealmResponse() *FederationCreateFederatedRealmResponse { + this := FederationCreateFederatedRealmResponse{} + return &this +} + +// NewFederationCreateFederatedRealmResponseWithDefaults instantiates a new FederationCreateFederatedRealmResponse 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 NewFederationCreateFederatedRealmResponseWithDefaults() *FederationCreateFederatedRealmResponse { + this := FederationCreateFederatedRealmResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationCreateFederatedRealmResponse) GetResult() FederationFederatedRealm { + if o == nil || IsNil(o.Result) { + var ret FederationFederatedRealm + 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 *FederationCreateFederatedRealmResponse) GetResultOk() (*FederationFederatedRealm, 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 *FederationCreateFederatedRealmResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationFederatedRealm and assigns it to the Result field. +func (o *FederationCreateFederatedRealmResponse) SetResult(v FederationFederatedRealm) { + o.Result = &v +} + +func (o FederationCreateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateFederatedRealmResponse) 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 *FederationCreateFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateFederatedRealmResponse := _FederationCreateFederatedRealmResponse{} + + err = json.Unmarshal(data, &varFederationCreateFederatedRealmResponse) + + if err != nil { + return err + } + + *o = FederationCreateFederatedRealmResponse(varFederationCreateFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateFederatedRealmResponse struct { + value *FederationCreateFederatedRealmResponse + isSet bool +} + +func (v NullableFederationCreateFederatedRealmResponse) Get() *FederationCreateFederatedRealmResponse { + return v.value +} + +func (v *NullableFederationCreateFederatedRealmResponse) Set(val *FederationCreateFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateFederatedRealmResponse(val *FederationCreateFederatedRealmResponse) *NullableFederationCreateFederatedRealmResponse { + return &NullableFederationCreateFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_next_available_federated_block_response.go b/ipamfederation/model_federation_create_next_available_federated_block_response.go new file mode 100644 index 0000000..f4f203f --- /dev/null +++ b/ipamfederation/model_federation_create_next_available_federated_block_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateNextAvailableFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateNextAvailableFederatedBlockResponse{} + +// FederationCreateNextAvailableFederatedBlockResponse The response format to allocate next available __FederatedBlock__ objects. +type FederationCreateNextAvailableFederatedBlockResponse struct { + Results []FederationFederatedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateNextAvailableFederatedBlockResponse FederationCreateNextAvailableFederatedBlockResponse + +// NewFederationCreateNextAvailableFederatedBlockResponse instantiates a new FederationCreateNextAvailableFederatedBlockResponse 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 NewFederationCreateNextAvailableFederatedBlockResponse() *FederationCreateNextAvailableFederatedBlockResponse { + this := FederationCreateNextAvailableFederatedBlockResponse{} + return &this +} + +// NewFederationCreateNextAvailableFederatedBlockResponseWithDefaults instantiates a new FederationCreateNextAvailableFederatedBlockResponse 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 NewFederationCreateNextAvailableFederatedBlockResponseWithDefaults() *FederationCreateNextAvailableFederatedBlockResponse { + this := FederationCreateNextAvailableFederatedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationCreateNextAvailableFederatedBlockResponse) GetResults() []FederationFederatedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationFederatedBlock + 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 *FederationCreateNextAvailableFederatedBlockResponse) GetResultsOk() ([]FederationFederatedBlock, 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 *FederationCreateNextAvailableFederatedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationFederatedBlock and assigns it to the Results field. +func (o *FederationCreateNextAvailableFederatedBlockResponse) SetResults(v []FederationFederatedBlock) { + o.Results = v +} + +func (o FederationCreateNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateNextAvailableFederatedBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationCreateNextAvailableFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateNextAvailableFederatedBlockResponse := _FederationCreateNextAvailableFederatedBlockResponse{} + + err = json.Unmarshal(data, &varFederationCreateNextAvailableFederatedBlockResponse) + + if err != nil { + return err + } + + *o = FederationCreateNextAvailableFederatedBlockResponse(varFederationCreateNextAvailableFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateNextAvailableFederatedBlockResponse struct { + value *FederationCreateNextAvailableFederatedBlockResponse + isSet bool +} + +func (v NullableFederationCreateNextAvailableFederatedBlockResponse) Get() *FederationCreateNextAvailableFederatedBlockResponse { + return v.value +} + +func (v *NullableFederationCreateNextAvailableFederatedBlockResponse) Set(val *FederationCreateNextAvailableFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateNextAvailableFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateNextAvailableFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateNextAvailableFederatedBlockResponse(val *FederationCreateNextAvailableFederatedBlockResponse) *NullableFederationCreateNextAvailableFederatedBlockResponse { + return &NullableFederationCreateNextAvailableFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateNextAvailableFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_next_available_overlapping_block_response.go b/ipamfederation/model_federation_create_next_available_overlapping_block_response.go new file mode 100644 index 0000000..2ca9b4b --- /dev/null +++ b/ipamfederation/model_federation_create_next_available_overlapping_block_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateNextAvailableOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateNextAvailableOverlappingBlockResponse{} + +// FederationCreateNextAvailableOverlappingBlockResponse The response format to allocate next available __OverlappingBlock__ objects. +type FederationCreateNextAvailableOverlappingBlockResponse struct { + Results []FederationOverlappingBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateNextAvailableOverlappingBlockResponse FederationCreateNextAvailableOverlappingBlockResponse + +// NewFederationCreateNextAvailableOverlappingBlockResponse instantiates a new FederationCreateNextAvailableOverlappingBlockResponse 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 NewFederationCreateNextAvailableOverlappingBlockResponse() *FederationCreateNextAvailableOverlappingBlockResponse { + this := FederationCreateNextAvailableOverlappingBlockResponse{} + return &this +} + +// NewFederationCreateNextAvailableOverlappingBlockResponseWithDefaults instantiates a new FederationCreateNextAvailableOverlappingBlockResponse 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 NewFederationCreateNextAvailableOverlappingBlockResponseWithDefaults() *FederationCreateNextAvailableOverlappingBlockResponse { + this := FederationCreateNextAvailableOverlappingBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationCreateNextAvailableOverlappingBlockResponse) GetResults() []FederationOverlappingBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationOverlappingBlock + 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 *FederationCreateNextAvailableOverlappingBlockResponse) GetResultsOk() ([]FederationOverlappingBlock, 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 *FederationCreateNextAvailableOverlappingBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationOverlappingBlock and assigns it to the Results field. +func (o *FederationCreateNextAvailableOverlappingBlockResponse) SetResults(v []FederationOverlappingBlock) { + o.Results = v +} + +func (o FederationCreateNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateNextAvailableOverlappingBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationCreateNextAvailableOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateNextAvailableOverlappingBlockResponse := _FederationCreateNextAvailableOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varFederationCreateNextAvailableOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = FederationCreateNextAvailableOverlappingBlockResponse(varFederationCreateNextAvailableOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateNextAvailableOverlappingBlockResponse struct { + value *FederationCreateNextAvailableOverlappingBlockResponse + isSet bool +} + +func (v NullableFederationCreateNextAvailableOverlappingBlockResponse) Get() *FederationCreateNextAvailableOverlappingBlockResponse { + return v.value +} + +func (v *NullableFederationCreateNextAvailableOverlappingBlockResponse) Set(val *FederationCreateNextAvailableOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateNextAvailableOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateNextAvailableOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateNextAvailableOverlappingBlockResponse(val *FederationCreateNextAvailableOverlappingBlockResponse) *NullableFederationCreateNextAvailableOverlappingBlockResponse { + return &NullableFederationCreateNextAvailableOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateNextAvailableOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_next_available_reserved_block_response.go b/ipamfederation/model_federation_create_next_available_reserved_block_response.go new file mode 100644 index 0000000..34c449c --- /dev/null +++ b/ipamfederation/model_federation_create_next_available_reserved_block_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateNextAvailableReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateNextAvailableReservedBlockResponse{} + +// FederationCreateNextAvailableReservedBlockResponse The response format to allocate next available __ReservedBlock__ objects. +type FederationCreateNextAvailableReservedBlockResponse struct { + Results []FederationReservedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateNextAvailableReservedBlockResponse FederationCreateNextAvailableReservedBlockResponse + +// NewFederationCreateNextAvailableReservedBlockResponse instantiates a new FederationCreateNextAvailableReservedBlockResponse 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 NewFederationCreateNextAvailableReservedBlockResponse() *FederationCreateNextAvailableReservedBlockResponse { + this := FederationCreateNextAvailableReservedBlockResponse{} + return &this +} + +// NewFederationCreateNextAvailableReservedBlockResponseWithDefaults instantiates a new FederationCreateNextAvailableReservedBlockResponse 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 NewFederationCreateNextAvailableReservedBlockResponseWithDefaults() *FederationCreateNextAvailableReservedBlockResponse { + this := FederationCreateNextAvailableReservedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationCreateNextAvailableReservedBlockResponse) GetResults() []FederationReservedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationReservedBlock + 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 *FederationCreateNextAvailableReservedBlockResponse) GetResultsOk() ([]FederationReservedBlock, 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 *FederationCreateNextAvailableReservedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationReservedBlock and assigns it to the Results field. +func (o *FederationCreateNextAvailableReservedBlockResponse) SetResults(v []FederationReservedBlock) { + o.Results = v +} + +func (o FederationCreateNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateNextAvailableReservedBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationCreateNextAvailableReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateNextAvailableReservedBlockResponse := _FederationCreateNextAvailableReservedBlockResponse{} + + err = json.Unmarshal(data, &varFederationCreateNextAvailableReservedBlockResponse) + + if err != nil { + return err + } + + *o = FederationCreateNextAvailableReservedBlockResponse(varFederationCreateNextAvailableReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateNextAvailableReservedBlockResponse struct { + value *FederationCreateNextAvailableReservedBlockResponse + isSet bool +} + +func (v NullableFederationCreateNextAvailableReservedBlockResponse) Get() *FederationCreateNextAvailableReservedBlockResponse { + return v.value +} + +func (v *NullableFederationCreateNextAvailableReservedBlockResponse) Set(val *FederationCreateNextAvailableReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateNextAvailableReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateNextAvailableReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateNextAvailableReservedBlockResponse(val *FederationCreateNextAvailableReservedBlockResponse) *NullableFederationCreateNextAvailableReservedBlockResponse { + return &NullableFederationCreateNextAvailableReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateNextAvailableReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_overlapping_block_response.go b/ipamfederation/model_federation_create_overlapping_block_response.go new file mode 100644 index 0000000..3e19939 --- /dev/null +++ b/ipamfederation/model_federation_create_overlapping_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateOverlappingBlockResponse{} + +// FederationCreateOverlappingBlockResponse The response format to create the __OverlappingBlock__ object. +type FederationCreateOverlappingBlockResponse struct { + // The created OverlappingBlock object. + Result *FederationOverlappingBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateOverlappingBlockResponse FederationCreateOverlappingBlockResponse + +// NewFederationCreateOverlappingBlockResponse instantiates a new FederationCreateOverlappingBlockResponse 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 NewFederationCreateOverlappingBlockResponse() *FederationCreateOverlappingBlockResponse { + this := FederationCreateOverlappingBlockResponse{} + return &this +} + +// NewFederationCreateOverlappingBlockResponseWithDefaults instantiates a new FederationCreateOverlappingBlockResponse 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 NewFederationCreateOverlappingBlockResponseWithDefaults() *FederationCreateOverlappingBlockResponse { + this := FederationCreateOverlappingBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationCreateOverlappingBlockResponse) GetResult() FederationOverlappingBlock { + if o == nil || IsNil(o.Result) { + var ret FederationOverlappingBlock + 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 *FederationCreateOverlappingBlockResponse) GetResultOk() (*FederationOverlappingBlock, 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 *FederationCreateOverlappingBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationOverlappingBlock and assigns it to the Result field. +func (o *FederationCreateOverlappingBlockResponse) SetResult(v FederationOverlappingBlock) { + o.Result = &v +} + +func (o FederationCreateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateOverlappingBlockResponse) 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 *FederationCreateOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateOverlappingBlockResponse := _FederationCreateOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varFederationCreateOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = FederationCreateOverlappingBlockResponse(varFederationCreateOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateOverlappingBlockResponse struct { + value *FederationCreateOverlappingBlockResponse + isSet bool +} + +func (v NullableFederationCreateOverlappingBlockResponse) Get() *FederationCreateOverlappingBlockResponse { + return v.value +} + +func (v *NullableFederationCreateOverlappingBlockResponse) Set(val *FederationCreateOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateOverlappingBlockResponse(val *FederationCreateOverlappingBlockResponse) *NullableFederationCreateOverlappingBlockResponse { + return &NullableFederationCreateOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_create_reserved_block_response.go b/ipamfederation/model_federation_create_reserved_block_response.go new file mode 100644 index 0000000..c1809bf --- /dev/null +++ b/ipamfederation/model_federation_create_reserved_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationCreateReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationCreateReservedBlockResponse{} + +// FederationCreateReservedBlockResponse The response format to create the __ReservedBlock__ object. +type FederationCreateReservedBlockResponse struct { + // The created ReservedBlock object. + Result *FederationReservedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationCreateReservedBlockResponse FederationCreateReservedBlockResponse + +// NewFederationCreateReservedBlockResponse instantiates a new FederationCreateReservedBlockResponse 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 NewFederationCreateReservedBlockResponse() *FederationCreateReservedBlockResponse { + this := FederationCreateReservedBlockResponse{} + return &this +} + +// NewFederationCreateReservedBlockResponseWithDefaults instantiates a new FederationCreateReservedBlockResponse 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 NewFederationCreateReservedBlockResponseWithDefaults() *FederationCreateReservedBlockResponse { + this := FederationCreateReservedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationCreateReservedBlockResponse) GetResult() FederationReservedBlock { + if o == nil || IsNil(o.Result) { + var ret FederationReservedBlock + 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 *FederationCreateReservedBlockResponse) GetResultOk() (*FederationReservedBlock, 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 *FederationCreateReservedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationReservedBlock and assigns it to the Result field. +func (o *FederationCreateReservedBlockResponse) SetResult(v FederationReservedBlock) { + o.Result = &v +} + +func (o FederationCreateReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationCreateReservedBlockResponse) 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 *FederationCreateReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationCreateReservedBlockResponse := _FederationCreateReservedBlockResponse{} + + err = json.Unmarshal(data, &varFederationCreateReservedBlockResponse) + + if err != nil { + return err + } + + *o = FederationCreateReservedBlockResponse(varFederationCreateReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationCreateReservedBlockResponse struct { + value *FederationCreateReservedBlockResponse + isSet bool +} + +func (v NullableFederationCreateReservedBlockResponse) Get() *FederationCreateReservedBlockResponse { + return v.value +} + +func (v *NullableFederationCreateReservedBlockResponse) Set(val *FederationCreateReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationCreateReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationCreateReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationCreateReservedBlockResponse(val *FederationCreateReservedBlockResponse) *NullableFederationCreateReservedBlockResponse { + return &NullableFederationCreateReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationCreateReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationCreateReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_delegation.go b/ipamfederation/model_federation_delegation.go new file mode 100644 index 0000000..da7cfad --- /dev/null +++ b/ipamfederation/model_federation_delegation.go @@ -0,0 +1,578 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the FederationDelegation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationDelegation{} + +// FederationDelegation A __Delegation__ object (_federation/delegation_) is a set of contiguous IP addresses with no gap, expressed as a CIDR block. A Delegation is explicitly associated with Federated Realms, and implicitly with Federated Block Parents. A Delegation in a given realm is said to be the child of the closest enclosing parent. +type FederationDelegation struct { + // The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. + Address string `json:"address"` + // The CIDR of the delegation. This is required, if _address_ does not specify it in its input. + Cidr *int64 `json:"cidr,omitempty"` + // The description for the delegation. May contain 0 to 1024 characters. Can include UTF-8. + Comment *string `json:"comment,omitempty"` + // Time when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // The specific IPAM service the delegation was delegated to. + DelegatedTo *string `json:"delegated_to,omitempty"` + // The resource identifier. + FederatedRealms []string `json:"federated_realms"` + // The resource identifier. + Id *string `json:"id,omitempty"` + // The name of the delegation. May contain 1 to 256 characters. Can include UTF-8. + Name *string `json:"name,omitempty"` + // The resource identifier. + Parents []string `json:"parents,omitempty"` + // The type of protocol of delegation (_ip4_ or _ip6_). + Protocol *string `json:"protocol,omitempty"` + // The tags for the delegation in JSON format. + Tags map[string]interface{} `json:"tags,omitempty"` + // Time when the object has been updated. Equals to _created_at_ if not updated after creation. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationDelegation FederationDelegation + +// NewFederationDelegation instantiates a new FederationDelegation 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 NewFederationDelegation(address string, federatedRealms []string) *FederationDelegation { + this := FederationDelegation{} + this.Address = address + this.FederatedRealms = federatedRealms + return &this +} + +// NewFederationDelegationWithDefaults instantiates a new FederationDelegation 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 NewFederationDelegationWithDefaults() *FederationDelegation { + this := FederationDelegation{} + return &this +} + +// GetAddress returns the Address field value +func (o *FederationDelegation) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *FederationDelegation) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *FederationDelegation) SetAddress(v string) { + o.Address = v +} + +// GetCidr returns the Cidr field value if set, zero value otherwise. +func (o *FederationDelegation) GetCidr() int64 { + if o == nil || IsNil(o.Cidr) { + var ret int64 + return ret + } + return *o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegation) GetCidrOk() (*int64, bool) { + if o == nil || IsNil(o.Cidr) { + return nil, false + } + return o.Cidr, true +} + +// HasCidr returns a boolean if a field has been set. +func (o *FederationDelegation) HasCidr() bool { + if o != nil && !IsNil(o.Cidr) { + return true + } + + return false +} + +// SetCidr gets a reference to the given int64 and assigns it to the Cidr field. +func (o *FederationDelegation) SetCidr(v int64) { + o.Cidr = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *FederationDelegation) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegation) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *FederationDelegation) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *FederationDelegation) SetComment(v string) { + o.Comment = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetDelegatedTo returns the DelegatedTo field value if set, zero value otherwise. +func (o *FederationDelegation) GetDelegatedTo() string { + if o == nil || IsNil(o.DelegatedTo) { + var ret string + return ret + } + return *o.DelegatedTo +} + +// GetDelegatedToOk returns a tuple with the DelegatedTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegation) GetDelegatedToOk() (*string, bool) { + if o == nil || IsNil(o.DelegatedTo) { + return nil, false + } + return o.DelegatedTo, true +} + +// HasDelegatedTo returns a boolean if a field has been set. +func (o *FederationDelegation) HasDelegatedTo() bool { + if o != nil && !IsNil(o.DelegatedTo) { + return true + } + + return false +} + +// SetDelegatedTo gets a reference to the given string and assigns it to the DelegatedTo field. +func (o *FederationDelegation) SetDelegatedTo(v string) { + o.DelegatedTo = &v +} + +// GetFederatedRealms returns the FederatedRealms field value +func (o *FederationDelegation) GetFederatedRealms() []string { + if o == nil { + var ret []string + return ret + } + + return o.FederatedRealms +} + +// GetFederatedRealmsOk returns a tuple with the FederatedRealms field value +// and a boolean to check if the value has been set. +func (o *FederationDelegation) GetFederatedRealmsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.FederatedRealms, true +} + +// SetFederatedRealms sets field value +func (o *FederationDelegation) SetFederatedRealms(v []string) { + o.FederatedRealms = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) SetName(v string) { + o.Name = &v +} + +// GetParents returns the Parents field value if set, zero value otherwise. +func (o *FederationDelegation) GetParents() []string { + if o == nil || IsNil(o.Parents) { + var ret []string + return ret + } + return o.Parents +} + +// GetParentsOk returns a tuple with the Parents field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegation) GetParentsOk() ([]string, bool) { + if o == nil || IsNil(o.Parents) { + return nil, false + } + return o.Parents, true +} + +// HasParents returns a boolean if a field has been set. +func (o *FederationDelegation) HasParents() bool { + if o != nil && !IsNil(o.Parents) { + return true + } + + return false +} + +// SetParents gets a reference to the given []string and assigns it to the Parents field. +func (o *FederationDelegation) SetParents(v []string) { + o.Parents = v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *FederationDelegation) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegation) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *FederationDelegation) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *FederationDelegation) SetProtocol(v string) { + o.Protocol = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FederationDelegation) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret 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 *FederationDelegation) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FederationDelegation) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *FederationDelegation) SetTags(v map[string]interface{}) { + o.Tags = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) 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 *FederationDelegation) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o FederationDelegation) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationDelegation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if !IsNil(o.Cidr) { + toSerialize["cidr"] = o.Cidr + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DelegatedTo) { + toSerialize["delegated_to"] = o.DelegatedTo + } + toSerialize["federated_realms"] = o.FederatedRealms + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parents) { + toSerialize["parents"] = o.Parents + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + 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 *FederationDelegation) 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{ + "address", + "federated_realms", + } + + 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) + } + } + + varFederationDelegation := _FederationDelegation{} + + err = json.Unmarshal(data, &varFederationDelegation) + + if err != nil { + return err + } + + *o = FederationDelegation(varFederationDelegation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "cidr") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "delegated_to") + delete(additionalProperties, "federated_realms") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "parents") + delete(additionalProperties, "protocol") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationDelegation struct { + value *FederationDelegation + isSet bool +} + +func (v NullableFederationDelegation) Get() *FederationDelegation { + return v.value +} + +func (v *NullableFederationDelegation) Set(val *FederationDelegation) { + v.value = val + v.isSet = true +} + +func (v NullableFederationDelegation) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationDelegation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationDelegation(val *FederationDelegation) *NullableFederationDelegation { + return &NullableFederationDelegation{value: val, isSet: true} +} + +func (v NullableFederationDelegation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationDelegation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_delegation_bulk_item.go b/ipamfederation/model_federation_delegation_bulk_item.go new file mode 100644 index 0000000..dd813c6 --- /dev/null +++ b/ipamfederation/model_federation_delegation_bulk_item.go @@ -0,0 +1,192 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationDelegationBulkItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationDelegationBulkItem{} + +// FederationDelegationBulkItem DelegationBulkItem object. +type FederationDelegationBulkItem struct { + // Type of action to execute on Delegation object. Valid values are: * _POST_ * _PATCH_ * _DELETE_ + Action *string `json:"action,omitempty"` + // The Delegation object to execute the action on. + Delegation *FederationDelegation `json:"delegation,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationDelegationBulkItem FederationDelegationBulkItem + +// NewFederationDelegationBulkItem instantiates a new FederationDelegationBulkItem 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 NewFederationDelegationBulkItem() *FederationDelegationBulkItem { + this := FederationDelegationBulkItem{} + return &this +} + +// NewFederationDelegationBulkItemWithDefaults instantiates a new FederationDelegationBulkItem 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 NewFederationDelegationBulkItemWithDefaults() *FederationDelegationBulkItem { + this := FederationDelegationBulkItem{} + return &this +} + +// GetAction returns the Action field value if set, zero value otherwise. +func (o *FederationDelegationBulkItem) GetAction() string { + if o == nil || IsNil(o.Action) { + var ret string + return ret + } + return *o.Action +} + +// GetActionOk returns a tuple with the Action field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegationBulkItem) GetActionOk() (*string, bool) { + if o == nil || IsNil(o.Action) { + return nil, false + } + return o.Action, true +} + +// HasAction returns a boolean if a field has been set. +func (o *FederationDelegationBulkItem) HasAction() bool { + if o != nil && !IsNil(o.Action) { + return true + } + + return false +} + +// SetAction gets a reference to the given string and assigns it to the Action field. +func (o *FederationDelegationBulkItem) SetAction(v string) { + o.Action = &v +} + +// GetDelegation returns the Delegation field value if set, zero value otherwise. +func (o *FederationDelegationBulkItem) GetDelegation() FederationDelegation { + if o == nil || IsNil(o.Delegation) { + var ret FederationDelegation + return ret + } + return *o.Delegation +} + +// GetDelegationOk returns a tuple with the Delegation field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegationBulkItem) GetDelegationOk() (*FederationDelegation, bool) { + if o == nil || IsNil(o.Delegation) { + return nil, false + } + return o.Delegation, true +} + +// HasDelegation returns a boolean if a field has been set. +func (o *FederationDelegationBulkItem) HasDelegation() bool { + if o != nil && !IsNil(o.Delegation) { + return true + } + + return false +} + +// SetDelegation gets a reference to the given FederationDelegation and assigns it to the Delegation field. +func (o *FederationDelegationBulkItem) SetDelegation(v FederationDelegation) { + o.Delegation = &v +} + +func (o FederationDelegationBulkItem) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationDelegationBulkItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Action) { + toSerialize["action"] = o.Action + } + if !IsNil(o.Delegation) { + toSerialize["delegation"] = o.Delegation + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationDelegationBulkItem) UnmarshalJSON(data []byte) (err error) { + varFederationDelegationBulkItem := _FederationDelegationBulkItem{} + + err = json.Unmarshal(data, &varFederationDelegationBulkItem) + + if err != nil { + return err + } + + *o = FederationDelegationBulkItem(varFederationDelegationBulkItem) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "action") + delete(additionalProperties, "delegation") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationDelegationBulkItem struct { + value *FederationDelegationBulkItem + isSet bool +} + +func (v NullableFederationDelegationBulkItem) Get() *FederationDelegationBulkItem { + return v.value +} + +func (v *NullableFederationDelegationBulkItem) Set(val *FederationDelegationBulkItem) { + v.value = val + v.isSet = true +} + +func (v NullableFederationDelegationBulkItem) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationDelegationBulkItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationDelegationBulkItem(val *FederationDelegationBulkItem) *NullableFederationDelegationBulkItem { + return &NullableFederationDelegationBulkItem{value: val, isSet: true} +} + +func (v NullableFederationDelegationBulkItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationDelegationBulkItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_delegation_bulk_request.go b/ipamfederation/model_federation_delegation_bulk_request.go new file mode 100644 index 0000000..44bba5c --- /dev/null +++ b/ipamfederation/model_federation_delegation_bulk_request.go @@ -0,0 +1,191 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationDelegationBulkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationDelegationBulkRequest{} + +// FederationDelegationBulkRequest DelegationBulk request object. +type FederationDelegationBulkRequest struct { + // list of action/delegation requests to execute. + Delegations []FederationDelegationBulkItem `json:"delegations,omitempty"` + Fields *ProtobufFieldMask `json:"fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationDelegationBulkRequest FederationDelegationBulkRequest + +// NewFederationDelegationBulkRequest instantiates a new FederationDelegationBulkRequest 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 NewFederationDelegationBulkRequest() *FederationDelegationBulkRequest { + this := FederationDelegationBulkRequest{} + return &this +} + +// NewFederationDelegationBulkRequestWithDefaults instantiates a new FederationDelegationBulkRequest 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 NewFederationDelegationBulkRequestWithDefaults() *FederationDelegationBulkRequest { + this := FederationDelegationBulkRequest{} + return &this +} + +// GetDelegations returns the Delegations field value if set, zero value otherwise. +func (o *FederationDelegationBulkRequest) GetDelegations() []FederationDelegationBulkItem { + if o == nil || IsNil(o.Delegations) { + var ret []FederationDelegationBulkItem + return ret + } + return o.Delegations +} + +// GetDelegationsOk returns a tuple with the Delegations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationDelegationBulkRequest) GetDelegationsOk() ([]FederationDelegationBulkItem, bool) { + if o == nil || IsNil(o.Delegations) { + return nil, false + } + return o.Delegations, true +} + +// HasDelegations returns a boolean if a field has been set. +func (o *FederationDelegationBulkRequest) HasDelegations() bool { + if o != nil && !IsNil(o.Delegations) { + return true + } + + return false +} + +// SetDelegations gets a reference to the given []FederationDelegationBulkItem and assigns it to the Delegations field. +func (o *FederationDelegationBulkRequest) SetDelegations(v []FederationDelegationBulkItem) { + o.Delegations = v +} + +// GetFields returns the Fields field value if set, zero value otherwise. +func (o *FederationDelegationBulkRequest) GetFields() ProtobufFieldMask { + if o == nil || IsNil(o.Fields) { + var ret ProtobufFieldMask + 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 *FederationDelegationBulkRequest) GetFieldsOk() (*ProtobufFieldMask, 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 *FederationDelegationBulkRequest) HasFields() bool { + if o != nil && !IsNil(o.Fields) { + return true + } + + return false +} + +// SetFields gets a reference to the given ProtobufFieldMask and assigns it to the Fields field. +func (o *FederationDelegationBulkRequest) SetFields(v ProtobufFieldMask) { + o.Fields = &v +} + +func (o FederationDelegationBulkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationDelegationBulkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Delegations) { + toSerialize["delegations"] = o.Delegations + } + if !IsNil(o.Fields) { + toSerialize["fields"] = o.Fields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationDelegationBulkRequest) UnmarshalJSON(data []byte) (err error) { + varFederationDelegationBulkRequest := _FederationDelegationBulkRequest{} + + err = json.Unmarshal(data, &varFederationDelegationBulkRequest) + + if err != nil { + return err + } + + *o = FederationDelegationBulkRequest(varFederationDelegationBulkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "delegations") + delete(additionalProperties, "fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationDelegationBulkRequest struct { + value *FederationDelegationBulkRequest + isSet bool +} + +func (v NullableFederationDelegationBulkRequest) Get() *FederationDelegationBulkRequest { + return v.value +} + +func (v *NullableFederationDelegationBulkRequest) Set(val *FederationDelegationBulkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableFederationDelegationBulkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationDelegationBulkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationDelegationBulkRequest(val *FederationDelegationBulkRequest) *NullableFederationDelegationBulkRequest { + return &NullableFederationDelegationBulkRequest{value: val, isSet: true} +} + +func (v NullableFederationDelegationBulkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationDelegationBulkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_delegation_bulk_response.go b/ipamfederation/model_federation_delegation_bulk_response.go new file mode 100644 index 0000000..fbbda1d --- /dev/null +++ b/ipamfederation/model_federation_delegation_bulk_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationDelegationBulkResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationDelegationBulkResponse{} + +// FederationDelegationBulkResponse The DelegationBulk response object. +type FederationDelegationBulkResponse struct { + // A list of Delegation objects. + Results []FederationDelegation `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationDelegationBulkResponse FederationDelegationBulkResponse + +// NewFederationDelegationBulkResponse instantiates a new FederationDelegationBulkResponse 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 NewFederationDelegationBulkResponse() *FederationDelegationBulkResponse { + this := FederationDelegationBulkResponse{} + return &this +} + +// NewFederationDelegationBulkResponseWithDefaults instantiates a new FederationDelegationBulkResponse 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 NewFederationDelegationBulkResponseWithDefaults() *FederationDelegationBulkResponse { + this := FederationDelegationBulkResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationDelegationBulkResponse) GetResults() []FederationDelegation { + if o == nil || IsNil(o.Results) { + var ret []FederationDelegation + 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 *FederationDelegationBulkResponse) GetResultsOk() ([]FederationDelegation, 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 *FederationDelegationBulkResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationDelegation and assigns it to the Results field. +func (o *FederationDelegationBulkResponse) SetResults(v []FederationDelegation) { + o.Results = v +} + +func (o FederationDelegationBulkResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationDelegationBulkResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationDelegationBulkResponse) UnmarshalJSON(data []byte) (err error) { + varFederationDelegationBulkResponse := _FederationDelegationBulkResponse{} + + err = json.Unmarshal(data, &varFederationDelegationBulkResponse) + + if err != nil { + return err + } + + *o = FederationDelegationBulkResponse(varFederationDelegationBulkResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationDelegationBulkResponse struct { + value *FederationDelegationBulkResponse + isSet bool +} + +func (v NullableFederationDelegationBulkResponse) Get() *FederationDelegationBulkResponse { + return v.value +} + +func (v *NullableFederationDelegationBulkResponse) Set(val *FederationDelegationBulkResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationDelegationBulkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationDelegationBulkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationDelegationBulkResponse(val *FederationDelegationBulkResponse) *NullableFederationDelegationBulkResponse { + return &NullableFederationDelegationBulkResponse{value: val, isSet: true} +} + +func (v NullableFederationDelegationBulkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationDelegationBulkResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_federated_block.go b/ipamfederation/model_federation_federated_block.go new file mode 100644 index 0000000..bbe17e5 --- /dev/null +++ b/ipamfederation/model_federation_federated_block.go @@ -0,0 +1,578 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the FederationFederatedBlock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationFederatedBlock{} + +// FederationFederatedBlock A __FederatedBlock__ object (_federation/federated_block_) is a set of contiguous IP addresses with no gap, expressed as a CIDR block. Federated blocks are hierarchical and may be parented to other federated blocks as long as the parent block fully contains the child and no sibling overlaps. Top level federated blocks are parented to a federated realm. +type FederationFederatedBlock struct { + // The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. + Address string `json:"address"` + // The percentage of the Federated Block’s total address space that is consumed by Leaf Terminals. + AllocationV4 *FederationAllocation `json:"allocation_v4,omitempty"` + // The CIDR of the federated block. This is required, if _address_ does not specify it in its input. + Cidr *int64 `json:"cidr,omitempty"` + // The description for the federated block. May contain 0 to 1024 characters. Can include UTF-8. + Comment *string `json:"comment,omitempty"` + // Time when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // The resource identifier. + FederatedRealm string `json:"federated_realm"` + // The resource identifier. + Id *string `json:"id,omitempty"` + // The name of the federated block. May contain 1 to 256 characters. Can include UTF-8. + Name *string `json:"name,omitempty"` + // The resource identifier. + Parent *string `json:"parent,omitempty"` + // The type of protocol of federated block (_ip4_ or _ip6_). + Protocol *string `json:"protocol,omitempty"` + // The tags for the federated block in JSON format. + Tags map[string]interface{} `json:"tags,omitempty"` + // Time when the object has been updated. Equals to _created_at_ if not updated after creation. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationFederatedBlock FederationFederatedBlock + +// NewFederationFederatedBlock instantiates a new FederationFederatedBlock 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 NewFederationFederatedBlock(address string, federatedRealm string) *FederationFederatedBlock { + this := FederationFederatedBlock{} + this.Address = address + this.FederatedRealm = federatedRealm + return &this +} + +// NewFederationFederatedBlockWithDefaults instantiates a new FederationFederatedBlock 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 NewFederationFederatedBlockWithDefaults() *FederationFederatedBlock { + this := FederationFederatedBlock{} + return &this +} + +// GetAddress returns the Address field value +func (o *FederationFederatedBlock) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *FederationFederatedBlock) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *FederationFederatedBlock) SetAddress(v string) { + o.Address = v +} + +// GetAllocationV4 returns the AllocationV4 field value if set, zero value otherwise. +func (o *FederationFederatedBlock) GetAllocationV4() FederationAllocation { + if o == nil || IsNil(o.AllocationV4) { + var ret FederationAllocation + return ret + } + return *o.AllocationV4 +} + +// GetAllocationV4Ok returns a tuple with the AllocationV4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationFederatedBlock) GetAllocationV4Ok() (*FederationAllocation, bool) { + if o == nil || IsNil(o.AllocationV4) { + return nil, false + } + return o.AllocationV4, true +} + +// HasAllocationV4 returns a boolean if a field has been set. +func (o *FederationFederatedBlock) HasAllocationV4() bool { + if o != nil && !IsNil(o.AllocationV4) { + return true + } + + return false +} + +// SetAllocationV4 gets a reference to the given FederationAllocation and assigns it to the AllocationV4 field. +func (o *FederationFederatedBlock) SetAllocationV4(v FederationAllocation) { + o.AllocationV4 = &v +} + +// GetCidr returns the Cidr field value if set, zero value otherwise. +func (o *FederationFederatedBlock) GetCidr() int64 { + if o == nil || IsNil(o.Cidr) { + var ret int64 + return ret + } + return *o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationFederatedBlock) GetCidrOk() (*int64, bool) { + if o == nil || IsNil(o.Cidr) { + return nil, false + } + return o.Cidr, true +} + +// HasCidr returns a boolean if a field has been set. +func (o *FederationFederatedBlock) HasCidr() bool { + if o != nil && !IsNil(o.Cidr) { + return true + } + + return false +} + +// SetCidr gets a reference to the given int64 and assigns it to the Cidr field. +func (o *FederationFederatedBlock) SetCidr(v int64) { + o.Cidr = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *FederationFederatedBlock) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationFederatedBlock) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *FederationFederatedBlock) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *FederationFederatedBlock) SetComment(v string) { + o.Comment = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetFederatedRealm returns the FederatedRealm field value +func (o *FederationFederatedBlock) GetFederatedRealm() string { + if o == nil { + var ret string + return ret + } + + return o.FederatedRealm +} + +// GetFederatedRealmOk returns a tuple with the FederatedRealm field value +// and a boolean to check if the value has been set. +func (o *FederationFederatedBlock) GetFederatedRealmOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FederatedRealm, true +} + +// SetFederatedRealm sets field value +func (o *FederationFederatedBlock) SetFederatedRealm(v string) { + o.FederatedRealm = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) SetName(v string) { + o.Name = &v +} + +// GetParent returns the Parent field value if set, zero value otherwise. +func (o *FederationFederatedBlock) GetParent() string { + if o == nil || IsNil(o.Parent) { + var ret string + return ret + } + return *o.Parent +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationFederatedBlock) GetParentOk() (*string, bool) { + if o == nil || IsNil(o.Parent) { + return nil, false + } + return o.Parent, true +} + +// HasParent returns a boolean if a field has been set. +func (o *FederationFederatedBlock) HasParent() bool { + if o != nil && !IsNil(o.Parent) { + return true + } + + return false +} + +// SetParent gets a reference to the given string and assigns it to the Parent field. +func (o *FederationFederatedBlock) SetParent(v string) { + o.Parent = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *FederationFederatedBlock) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationFederatedBlock) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *FederationFederatedBlock) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *FederationFederatedBlock) SetProtocol(v string) { + o.Protocol = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FederationFederatedBlock) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret 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 *FederationFederatedBlock) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FederationFederatedBlock) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *FederationFederatedBlock) SetTags(v map[string]interface{}) { + o.Tags = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) 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 *FederationFederatedBlock) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o FederationFederatedBlock) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationFederatedBlock) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if !IsNil(o.AllocationV4) { + toSerialize["allocation_v4"] = o.AllocationV4 + } + if !IsNil(o.Cidr) { + toSerialize["cidr"] = o.Cidr + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + toSerialize["federated_realm"] = o.FederatedRealm + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parent) { + toSerialize["parent"] = o.Parent + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + 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 *FederationFederatedBlock) 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{ + "address", + "federated_realm", + } + + 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) + } + } + + varFederationFederatedBlock := _FederationFederatedBlock{} + + err = json.Unmarshal(data, &varFederationFederatedBlock) + + if err != nil { + return err + } + + *o = FederationFederatedBlock(varFederationFederatedBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "allocation_v4") + delete(additionalProperties, "cidr") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "federated_realm") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationFederatedBlock struct { + value *FederationFederatedBlock + isSet bool +} + +func (v NullableFederationFederatedBlock) Get() *FederationFederatedBlock { + return v.value +} + +func (v *NullableFederationFederatedBlock) Set(val *FederationFederatedBlock) { + v.value = val + v.isSet = true +} + +func (v NullableFederationFederatedBlock) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationFederatedBlock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationFederatedBlock(val *FederationFederatedBlock) *NullableFederationFederatedBlock { + return &NullableFederationFederatedBlock{value: val, isSet: true} +} + +func (v NullableFederationFederatedBlock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationFederatedBlock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_federated_realm.go b/ipamfederation/model_federation_federated_realm.go new file mode 100644 index 0000000..4385738 --- /dev/null +++ b/ipamfederation/model_federation_federated_realm.go @@ -0,0 +1,396 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the FederationFederatedRealm type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationFederatedRealm{} + +// FederationFederatedRealm A __FederatedRealm__ object is a unique set of federated blocks per realm. +type FederationFederatedRealm struct { + // The aggregate of all Federated Blocks within the Realm. + AllocationV4 *FederationAllocation `json:"allocation_v4,omitempty"` + // The description of the federated realm. May contain 0 to 1024 characters. Can include UTF-8. + Comment *string `json:"comment,omitempty"` + // Time when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // The resource identifier. + Id *string `json:"id,omitempty"` + // The name of the federated realm. May contain 1 to 256 characters; can include UTF-8. + Name string `json:"name"` + // The tags for the federated realm in JSON format. + Tags map[string]interface{} `json:"tags,omitempty"` + // Time when the object has been updated. Equals to _created_at_ if not updated after creation. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationFederatedRealm FederationFederatedRealm + +// NewFederationFederatedRealm instantiates a new FederationFederatedRealm 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 NewFederationFederatedRealm(name string) *FederationFederatedRealm { + this := FederationFederatedRealm{} + this.Name = name + return &this +} + +// NewFederationFederatedRealmWithDefaults instantiates a new FederationFederatedRealm 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 NewFederationFederatedRealmWithDefaults() *FederationFederatedRealm { + this := FederationFederatedRealm{} + return &this +} + +// GetAllocationV4 returns the AllocationV4 field value if set, zero value otherwise. +func (o *FederationFederatedRealm) GetAllocationV4() FederationAllocation { + if o == nil || IsNil(o.AllocationV4) { + var ret FederationAllocation + return ret + } + return *o.AllocationV4 +} + +// GetAllocationV4Ok returns a tuple with the AllocationV4 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationFederatedRealm) GetAllocationV4Ok() (*FederationAllocation, bool) { + if o == nil || IsNil(o.AllocationV4) { + return nil, false + } + return o.AllocationV4, true +} + +// HasAllocationV4 returns a boolean if a field has been set. +func (o *FederationFederatedRealm) HasAllocationV4() bool { + if o != nil && !IsNil(o.AllocationV4) { + return true + } + + return false +} + +// SetAllocationV4 gets a reference to the given FederationAllocation and assigns it to the AllocationV4 field. +func (o *FederationFederatedRealm) SetAllocationV4(v FederationAllocation) { + o.AllocationV4 = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *FederationFederatedRealm) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationFederatedRealm) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *FederationFederatedRealm) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *FederationFederatedRealm) SetComment(v string) { + o.Comment = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) 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 *FederationFederatedRealm) 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 *FederationFederatedRealm) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) 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 *FederationFederatedRealm) 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 *FederationFederatedRealm) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value +func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *FederationFederatedRealm) SetName(v string) { + o.Name = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FederationFederatedRealm) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret 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 *FederationFederatedRealm) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FederationFederatedRealm) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *FederationFederatedRealm) SetTags(v map[string]interface{}) { + o.Tags = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *FederationFederatedRealm) 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 *FederationFederatedRealm) 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 *FederationFederatedRealm) 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 *FederationFederatedRealm) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o FederationFederatedRealm) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationFederatedRealm) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AllocationV4) { + toSerialize["allocation_v4"] = o.AllocationV4 + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + toSerialize["name"] = o.Name + 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 *FederationFederatedRealm) 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) + } + } + + varFederationFederatedRealm := _FederationFederatedRealm{} + + err = json.Unmarshal(data, &varFederationFederatedRealm) + + if err != nil { + return err + } + + *o = FederationFederatedRealm(varFederationFederatedRealm) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "allocation_v4") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationFederatedRealm struct { + value *FederationFederatedRealm + isSet bool +} + +func (v NullableFederationFederatedRealm) Get() *FederationFederatedRealm { + return v.value +} + +func (v *NullableFederationFederatedRealm) Set(val *FederationFederatedRealm) { + v.value = val + v.isSet = true +} + +func (v NullableFederationFederatedRealm) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationFederatedRealm) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationFederatedRealm(val *FederationFederatedRealm) *NullableFederationFederatedRealm { + return &NullableFederationFederatedRealm{value: val, isSet: true} +} + +func (v NullableFederationFederatedRealm) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationFederatedRealm) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_generate_config_bundle_response.go b/ipamfederation/model_federation_generate_config_bundle_response.go new file mode 100644 index 0000000..19a115d --- /dev/null +++ b/ipamfederation/model_federation_generate_config_bundle_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationGenerateConfigBundleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationGenerateConfigBundleResponse{} + +// FederationGenerateConfigBundleResponse The response format to retrieve __ConfigBundle__ objects. +type FederationGenerateConfigBundleResponse struct { + Config *FederationConfigObject `json:"config,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationGenerateConfigBundleResponse FederationGenerateConfigBundleResponse + +// NewFederationGenerateConfigBundleResponse instantiates a new FederationGenerateConfigBundleResponse 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 NewFederationGenerateConfigBundleResponse() *FederationGenerateConfigBundleResponse { + this := FederationGenerateConfigBundleResponse{} + return &this +} + +// NewFederationGenerateConfigBundleResponseWithDefaults instantiates a new FederationGenerateConfigBundleResponse 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 NewFederationGenerateConfigBundleResponseWithDefaults() *FederationGenerateConfigBundleResponse { + this := FederationGenerateConfigBundleResponse{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *FederationGenerateConfigBundleResponse) GetConfig() FederationConfigObject { + if o == nil || IsNil(o.Config) { + var ret FederationConfigObject + 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 *FederationGenerateConfigBundleResponse) GetConfigOk() (*FederationConfigObject, 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 *FederationGenerateConfigBundleResponse) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given FederationConfigObject and assigns it to the Config field. +func (o *FederationGenerateConfigBundleResponse) SetConfig(v FederationConfigObject) { + o.Config = &v +} + +func (o FederationGenerateConfigBundleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationGenerateConfigBundleResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationGenerateConfigBundleResponse) UnmarshalJSON(data []byte) (err error) { + varFederationGenerateConfigBundleResponse := _FederationGenerateConfigBundleResponse{} + + err = json.Unmarshal(data, &varFederationGenerateConfigBundleResponse) + + if err != nil { + return err + } + + *o = FederationGenerateConfigBundleResponse(varFederationGenerateConfigBundleResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationGenerateConfigBundleResponse struct { + value *FederationGenerateConfigBundleResponse + isSet bool +} + +func (v NullableFederationGenerateConfigBundleResponse) Get() *FederationGenerateConfigBundleResponse { + return v.value +} + +func (v *NullableFederationGenerateConfigBundleResponse) Set(val *FederationGenerateConfigBundleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationGenerateConfigBundleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationGenerateConfigBundleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationGenerateConfigBundleResponse(val *FederationGenerateConfigBundleResponse) *NullableFederationGenerateConfigBundleResponse { + return &NullableFederationGenerateConfigBundleResponse{value: val, isSet: true} +} + +func (v NullableFederationGenerateConfigBundleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationGenerateConfigBundleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_get_next_available_delegation_request.go b/ipamfederation/model_federation_get_next_available_delegation_request.go new file mode 100644 index 0000000..76acacc --- /dev/null +++ b/ipamfederation/model_federation_get_next_available_delegation_request.go @@ -0,0 +1,192 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationGetNextAvailableDelegationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationGetNextAvailableDelegationRequest{} + +// FederationGetNextAvailableDelegationRequest struct for FederationGetNextAvailableDelegationRequest +type FederationGetNextAvailableDelegationRequest struct { + // The arguments which will be used as parameters while creating __Delegation__ object. + Arguments *FederationNextAvailableDelegationArguments `json:"arguments,omitempty"` + // The properties, which will be used to fill the created __Delegation__ object. + Properties *FederationNextAvailableDelegationProperties `json:"properties,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationGetNextAvailableDelegationRequest FederationGetNextAvailableDelegationRequest + +// NewFederationGetNextAvailableDelegationRequest instantiates a new FederationGetNextAvailableDelegationRequest 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 NewFederationGetNextAvailableDelegationRequest() *FederationGetNextAvailableDelegationRequest { + this := FederationGetNextAvailableDelegationRequest{} + return &this +} + +// NewFederationGetNextAvailableDelegationRequestWithDefaults instantiates a new FederationGetNextAvailableDelegationRequest 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 NewFederationGetNextAvailableDelegationRequestWithDefaults() *FederationGetNextAvailableDelegationRequest { + this := FederationGetNextAvailableDelegationRequest{} + return &this +} + +// GetArguments returns the Arguments field value if set, zero value otherwise. +func (o *FederationGetNextAvailableDelegationRequest) GetArguments() FederationNextAvailableDelegationArguments { + if o == nil || IsNil(o.Arguments) { + var ret FederationNextAvailableDelegationArguments + return ret + } + return *o.Arguments +} + +// GetArgumentsOk returns a tuple with the Arguments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationGetNextAvailableDelegationRequest) GetArgumentsOk() (*FederationNextAvailableDelegationArguments, bool) { + if o == nil || IsNil(o.Arguments) { + return nil, false + } + return o.Arguments, true +} + +// HasArguments returns a boolean if a field has been set. +func (o *FederationGetNextAvailableDelegationRequest) HasArguments() bool { + if o != nil && !IsNil(o.Arguments) { + return true + } + + return false +} + +// SetArguments gets a reference to the given FederationNextAvailableDelegationArguments and assigns it to the Arguments field. +func (o *FederationGetNextAvailableDelegationRequest) SetArguments(v FederationNextAvailableDelegationArguments) { + o.Arguments = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *FederationGetNextAvailableDelegationRequest) GetProperties() FederationNextAvailableDelegationProperties { + if o == nil || IsNil(o.Properties) { + var ret FederationNextAvailableDelegationProperties + return ret + } + return *o.Properties +} + +// GetPropertiesOk returns a tuple with the Properties field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationGetNextAvailableDelegationRequest) GetPropertiesOk() (*FederationNextAvailableDelegationProperties, bool) { + if o == nil || IsNil(o.Properties) { + return nil, false + } + return o.Properties, true +} + +// HasProperties returns a boolean if a field has been set. +func (o *FederationGetNextAvailableDelegationRequest) HasProperties() bool { + if o != nil && !IsNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given FederationNextAvailableDelegationProperties and assigns it to the Properties field. +func (o *FederationGetNextAvailableDelegationRequest) SetProperties(v FederationNextAvailableDelegationProperties) { + o.Properties = &v +} + +func (o FederationGetNextAvailableDelegationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationGetNextAvailableDelegationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Arguments) { + toSerialize["arguments"] = o.Arguments + } + if !IsNil(o.Properties) { + toSerialize["properties"] = o.Properties + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationGetNextAvailableDelegationRequest) UnmarshalJSON(data []byte) (err error) { + varFederationGetNextAvailableDelegationRequest := _FederationGetNextAvailableDelegationRequest{} + + err = json.Unmarshal(data, &varFederationGetNextAvailableDelegationRequest) + + if err != nil { + return err + } + + *o = FederationGetNextAvailableDelegationRequest(varFederationGetNextAvailableDelegationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "arguments") + delete(additionalProperties, "properties") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationGetNextAvailableDelegationRequest struct { + value *FederationGetNextAvailableDelegationRequest + isSet bool +} + +func (v NullableFederationGetNextAvailableDelegationRequest) Get() *FederationGetNextAvailableDelegationRequest { + return v.value +} + +func (v *NullableFederationGetNextAvailableDelegationRequest) Set(val *FederationGetNextAvailableDelegationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableFederationGetNextAvailableDelegationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationGetNextAvailableDelegationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationGetNextAvailableDelegationRequest(val *FederationGetNextAvailableDelegationRequest) *NullableFederationGetNextAvailableDelegationRequest { + return &NullableFederationGetNextAvailableDelegationRequest{value: val, isSet: true} +} + +func (v NullableFederationGetNextAvailableDelegationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationGetNextAvailableDelegationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_get_next_available_delegation_response.go b/ipamfederation/model_federation_get_next_available_delegation_response.go new file mode 100644 index 0000000..1cac959 --- /dev/null +++ b/ipamfederation/model_federation_get_next_available_delegation_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationGetNextAvailableDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationGetNextAvailableDelegationResponse{} + +// FederationGetNextAvailableDelegationResponse The response format to get next available __Delegation__ objects. +type FederationGetNextAvailableDelegationResponse struct { + Results []FederationDelegation `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationGetNextAvailableDelegationResponse FederationGetNextAvailableDelegationResponse + +// NewFederationGetNextAvailableDelegationResponse instantiates a new FederationGetNextAvailableDelegationResponse 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 NewFederationGetNextAvailableDelegationResponse() *FederationGetNextAvailableDelegationResponse { + this := FederationGetNextAvailableDelegationResponse{} + return &this +} + +// NewFederationGetNextAvailableDelegationResponseWithDefaults instantiates a new FederationGetNextAvailableDelegationResponse 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 NewFederationGetNextAvailableDelegationResponseWithDefaults() *FederationGetNextAvailableDelegationResponse { + this := FederationGetNextAvailableDelegationResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationGetNextAvailableDelegationResponse) GetResults() []FederationDelegation { + if o == nil || IsNil(o.Results) { + var ret []FederationDelegation + 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 *FederationGetNextAvailableDelegationResponse) GetResultsOk() ([]FederationDelegation, 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 *FederationGetNextAvailableDelegationResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationDelegation and assigns it to the Results field. +func (o *FederationGetNextAvailableDelegationResponse) SetResults(v []FederationDelegation) { + o.Results = v +} + +func (o FederationGetNextAvailableDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationGetNextAvailableDelegationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationGetNextAvailableDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varFederationGetNextAvailableDelegationResponse := _FederationGetNextAvailableDelegationResponse{} + + err = json.Unmarshal(data, &varFederationGetNextAvailableDelegationResponse) + + if err != nil { + return err + } + + *o = FederationGetNextAvailableDelegationResponse(varFederationGetNextAvailableDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationGetNextAvailableDelegationResponse struct { + value *FederationGetNextAvailableDelegationResponse + isSet bool +} + +func (v NullableFederationGetNextAvailableDelegationResponse) Get() *FederationGetNextAvailableDelegationResponse { + return v.value +} + +func (v *NullableFederationGetNextAvailableDelegationResponse) Set(val *FederationGetNextAvailableDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationGetNextAvailableDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationGetNextAvailableDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationGetNextAvailableDelegationResponse(val *FederationGetNextAvailableDelegationResponse) *NullableFederationGetNextAvailableDelegationResponse { + return &NullableFederationGetNextAvailableDelegationResponse{value: val, isSet: true} +} + +func (v NullableFederationGetNextAvailableDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationGetNextAvailableDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_health_check_config_response.go b/ipamfederation/model_federation_health_check_config_response.go new file mode 100644 index 0000000..5a4b0d8 --- /dev/null +++ b/ipamfederation/model_federation_health_check_config_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationHealthCheckConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationHealthCheckConfigResponse{} + +// FederationHealthCheckConfigResponse struct for FederationHealthCheckConfigResponse +type FederationHealthCheckConfigResponse struct { + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationHealthCheckConfigResponse FederationHealthCheckConfigResponse + +// NewFederationHealthCheckConfigResponse instantiates a new FederationHealthCheckConfigResponse 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 NewFederationHealthCheckConfigResponse() *FederationHealthCheckConfigResponse { + this := FederationHealthCheckConfigResponse{} + return &this +} + +// NewFederationHealthCheckConfigResponseWithDefaults instantiates a new FederationHealthCheckConfigResponse 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 NewFederationHealthCheckConfigResponseWithDefaults() *FederationHealthCheckConfigResponse { + this := FederationHealthCheckConfigResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *FederationHealthCheckConfigResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationHealthCheckConfigResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *FederationHealthCheckConfigResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *FederationHealthCheckConfigResponse) SetMessage(v string) { + o.Message = &v +} + +func (o FederationHealthCheckConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationHealthCheckConfigResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationHealthCheckConfigResponse) UnmarshalJSON(data []byte) (err error) { + varFederationHealthCheckConfigResponse := _FederationHealthCheckConfigResponse{} + + err = json.Unmarshal(data, &varFederationHealthCheckConfigResponse) + + if err != nil { + return err + } + + *o = FederationHealthCheckConfigResponse(varFederationHealthCheckConfigResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationHealthCheckConfigResponse struct { + value *FederationHealthCheckConfigResponse + isSet bool +} + +func (v NullableFederationHealthCheckConfigResponse) Get() *FederationHealthCheckConfigResponse { + return v.value +} + +func (v *NullableFederationHealthCheckConfigResponse) Set(val *FederationHealthCheckConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationHealthCheckConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationHealthCheckConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationHealthCheckConfigResponse(val *FederationHealthCheckConfigResponse) *NullableFederationHealthCheckConfigResponse { + return &NullableFederationHealthCheckConfigResponse{value: val, isSet: true} +} + +func (v NullableFederationHealthCheckConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationHealthCheckConfigResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_health_config.go b/ipamfederation/model_federation_health_config.go new file mode 100644 index 0000000..43da731 --- /dev/null +++ b/ipamfederation/model_federation_health_config.go @@ -0,0 +1,305 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationHealthConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationHealthConfig{} + +// FederationHealthConfig struct for FederationHealthConfig +type FederationHealthConfig struct { + AppName *string `json:"appName,omitempty"` + Message *string `json:"message,omitempty"` + Ophid *string `json:"ophid,omitempty"` + StatusCode *HealthConfigStatusCode `json:"statusCode,omitempty"` + Version *string `json:"version,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationHealthConfig FederationHealthConfig + +// NewFederationHealthConfig instantiates a new FederationHealthConfig 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 NewFederationHealthConfig() *FederationHealthConfig { + this := FederationHealthConfig{} + var statusCode HealthConfigStatusCode = HEALTHCONFIGSTATUSCODE_SUCCESS + this.StatusCode = &statusCode + return &this +} + +// NewFederationHealthConfigWithDefaults instantiates a new FederationHealthConfig 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 NewFederationHealthConfigWithDefaults() *FederationHealthConfig { + this := FederationHealthConfig{} + var statusCode HealthConfigStatusCode = HEALTHCONFIGSTATUSCODE_SUCCESS + this.StatusCode = &statusCode + return &this +} + +// GetAppName returns the AppName field value if set, zero value otherwise. +func (o *FederationHealthConfig) GetAppName() string { + if o == nil || IsNil(o.AppName) { + var ret string + return ret + } + return *o.AppName +} + +// GetAppNameOk returns a tuple with the AppName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationHealthConfig) GetAppNameOk() (*string, bool) { + if o == nil || IsNil(o.AppName) { + return nil, false + } + return o.AppName, true +} + +// HasAppName returns a boolean if a field has been set. +func (o *FederationHealthConfig) HasAppName() bool { + if o != nil && !IsNil(o.AppName) { + return true + } + + return false +} + +// SetAppName gets a reference to the given string and assigns it to the AppName field. +func (o *FederationHealthConfig) SetAppName(v string) { + o.AppName = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *FederationHealthConfig) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationHealthConfig) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *FederationHealthConfig) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *FederationHealthConfig) SetMessage(v string) { + o.Message = &v +} + +// GetOphid returns the Ophid field value if set, zero value otherwise. +func (o *FederationHealthConfig) GetOphid() string { + if o == nil || IsNil(o.Ophid) { + var ret string + return ret + } + return *o.Ophid +} + +// GetOphidOk returns a tuple with the Ophid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationHealthConfig) GetOphidOk() (*string, bool) { + if o == nil || IsNil(o.Ophid) { + return nil, false + } + return o.Ophid, true +} + +// HasOphid returns a boolean if a field has been set. +func (o *FederationHealthConfig) HasOphid() bool { + if o != nil && !IsNil(o.Ophid) { + return true + } + + return false +} + +// SetOphid gets a reference to the given string and assigns it to the Ophid field. +func (o *FederationHealthConfig) SetOphid(v string) { + o.Ophid = &v +} + +// GetStatusCode returns the StatusCode field value if set, zero value otherwise. +func (o *FederationHealthConfig) GetStatusCode() HealthConfigStatusCode { + if o == nil || IsNil(o.StatusCode) { + var ret HealthConfigStatusCode + return ret + } + return *o.StatusCode +} + +// GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationHealthConfig) GetStatusCodeOk() (*HealthConfigStatusCode, bool) { + if o == nil || IsNil(o.StatusCode) { + return nil, false + } + return o.StatusCode, true +} + +// HasStatusCode returns a boolean if a field has been set. +func (o *FederationHealthConfig) HasStatusCode() bool { + if o != nil && !IsNil(o.StatusCode) { + return true + } + + return false +} + +// SetStatusCode gets a reference to the given HealthConfigStatusCode and assigns it to the StatusCode field. +func (o *FederationHealthConfig) SetStatusCode(v HealthConfigStatusCode) { + o.StatusCode = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise. +func (o *FederationHealthConfig) GetVersion() string { + if o == nil || IsNil(o.Version) { + var ret string + 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 *FederationHealthConfig) GetVersionOk() (*string, 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 *FederationHealthConfig) HasVersion() bool { + if o != nil && !IsNil(o.Version) { + return true + } + + return false +} + +// SetVersion gets a reference to the given string and assigns it to the Version field. +func (o *FederationHealthConfig) SetVersion(v string) { + o.Version = &v +} + +func (o FederationHealthConfig) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationHealthConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AppName) { + toSerialize["appName"] = o.AppName + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.Ophid) { + toSerialize["ophid"] = o.Ophid + } + if !IsNil(o.StatusCode) { + toSerialize["statusCode"] = o.StatusCode + } + if !IsNil(o.Version) { + toSerialize["version"] = o.Version + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationHealthConfig) UnmarshalJSON(data []byte) (err error) { + varFederationHealthConfig := _FederationHealthConfig{} + + err = json.Unmarshal(data, &varFederationHealthConfig) + + if err != nil { + return err + } + + *o = FederationHealthConfig(varFederationHealthConfig) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "appName") + delete(additionalProperties, "message") + delete(additionalProperties, "ophid") + delete(additionalProperties, "statusCode") + delete(additionalProperties, "version") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationHealthConfig struct { + value *FederationHealthConfig + isSet bool +} + +func (v NullableFederationHealthConfig) Get() *FederationHealthConfig { + return v.value +} + +func (v *NullableFederationHealthConfig) Set(val *FederationHealthConfig) { + v.value = val + v.isSet = true +} + +func (v NullableFederationHealthConfig) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationHealthConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationHealthConfig(val *FederationHealthConfig) *NullableFederationHealthConfig { + return &NullableFederationHealthConfig{value: val, isSet: true} +} + +func (v NullableFederationHealthConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationHealthConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_delegation_response.go b/ipamfederation/model_federation_list_delegation_response.go new file mode 100644 index 0000000..d35e815 --- /dev/null +++ b/ipamfederation/model_federation_list_delegation_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListDelegationResponse{} + +// FederationListDelegationResponse The response format to retrieve __Delegation__ objects. +type FederationListDelegationResponse struct { + // A list of Delegation objects. + Results []FederationDelegation `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListDelegationResponse FederationListDelegationResponse + +// NewFederationListDelegationResponse instantiates a new FederationListDelegationResponse 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 NewFederationListDelegationResponse() *FederationListDelegationResponse { + this := FederationListDelegationResponse{} + return &this +} + +// NewFederationListDelegationResponseWithDefaults instantiates a new FederationListDelegationResponse 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 NewFederationListDelegationResponseWithDefaults() *FederationListDelegationResponse { + this := FederationListDelegationResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListDelegationResponse) GetResults() []FederationDelegation { + if o == nil || IsNil(o.Results) { + var ret []FederationDelegation + 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 *FederationListDelegationResponse) GetResultsOk() ([]FederationDelegation, 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 *FederationListDelegationResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationDelegation and assigns it to the Results field. +func (o *FederationListDelegationResponse) SetResults(v []FederationDelegation) { + o.Results = v +} + +func (o FederationListDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListDelegationResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListDelegationResponse := _FederationListDelegationResponse{} + + err = json.Unmarshal(data, &varFederationListDelegationResponse) + + if err != nil { + return err + } + + *o = FederationListDelegationResponse(varFederationListDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListDelegationResponse struct { + value *FederationListDelegationResponse + isSet bool +} + +func (v NullableFederationListDelegationResponse) Get() *FederationListDelegationResponse { + return v.value +} + +func (v *NullableFederationListDelegationResponse) Set(val *FederationListDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListDelegationResponse(val *FederationListDelegationResponse) *NullableFederationListDelegationResponse { + return &NullableFederationListDelegationResponse{value: val, isSet: true} +} + +func (v NullableFederationListDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_federated_block_response.go b/ipamfederation/model_federation_list_federated_block_response.go new file mode 100644 index 0000000..ec6f827 --- /dev/null +++ b/ipamfederation/model_federation_list_federated_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListFederatedBlockResponse{} + +// FederationListFederatedBlockResponse The response format to retrieve __FederatedBlock__ objects. +type FederationListFederatedBlockResponse struct { + // A list of FederatedBlock objects. + Results []FederationFederatedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListFederatedBlockResponse FederationListFederatedBlockResponse + +// NewFederationListFederatedBlockResponse instantiates a new FederationListFederatedBlockResponse 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 NewFederationListFederatedBlockResponse() *FederationListFederatedBlockResponse { + this := FederationListFederatedBlockResponse{} + return &this +} + +// NewFederationListFederatedBlockResponseWithDefaults instantiates a new FederationListFederatedBlockResponse 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 NewFederationListFederatedBlockResponseWithDefaults() *FederationListFederatedBlockResponse { + this := FederationListFederatedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListFederatedBlockResponse) GetResults() []FederationFederatedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationFederatedBlock + 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 *FederationListFederatedBlockResponse) GetResultsOk() ([]FederationFederatedBlock, 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 *FederationListFederatedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationFederatedBlock and assigns it to the Results field. +func (o *FederationListFederatedBlockResponse) SetResults(v []FederationFederatedBlock) { + o.Results = v +} + +func (o FederationListFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListFederatedBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListFederatedBlockResponse := _FederationListFederatedBlockResponse{} + + err = json.Unmarshal(data, &varFederationListFederatedBlockResponse) + + if err != nil { + return err + } + + *o = FederationListFederatedBlockResponse(varFederationListFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListFederatedBlockResponse struct { + value *FederationListFederatedBlockResponse + isSet bool +} + +func (v NullableFederationListFederatedBlockResponse) Get() *FederationListFederatedBlockResponse { + return v.value +} + +func (v *NullableFederationListFederatedBlockResponse) Set(val *FederationListFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListFederatedBlockResponse(val *FederationListFederatedBlockResponse) *NullableFederationListFederatedBlockResponse { + return &NullableFederationListFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationListFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_federated_realm_response.go b/ipamfederation/model_federation_list_federated_realm_response.go new file mode 100644 index 0000000..dd6dafc --- /dev/null +++ b/ipamfederation/model_federation_list_federated_realm_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListFederatedRealmResponse{} + +// FederationListFederatedRealmResponse The response format to retrieve __FederatedRealm__ objects. +type FederationListFederatedRealmResponse struct { + // The list of FederatedRealm objects. + Results []FederationFederatedRealm `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListFederatedRealmResponse FederationListFederatedRealmResponse + +// NewFederationListFederatedRealmResponse instantiates a new FederationListFederatedRealmResponse 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 NewFederationListFederatedRealmResponse() *FederationListFederatedRealmResponse { + this := FederationListFederatedRealmResponse{} + return &this +} + +// NewFederationListFederatedRealmResponseWithDefaults instantiates a new FederationListFederatedRealmResponse 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 NewFederationListFederatedRealmResponseWithDefaults() *FederationListFederatedRealmResponse { + this := FederationListFederatedRealmResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListFederatedRealmResponse) GetResults() []FederationFederatedRealm { + if o == nil || IsNil(o.Results) { + var ret []FederationFederatedRealm + 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 *FederationListFederatedRealmResponse) GetResultsOk() ([]FederationFederatedRealm, 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 *FederationListFederatedRealmResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationFederatedRealm and assigns it to the Results field. +func (o *FederationListFederatedRealmResponse) SetResults(v []FederationFederatedRealm) { + o.Results = v +} + +func (o FederationListFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListFederatedRealmResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListFederatedRealmResponse := _FederationListFederatedRealmResponse{} + + err = json.Unmarshal(data, &varFederationListFederatedRealmResponse) + + if err != nil { + return err + } + + *o = FederationListFederatedRealmResponse(varFederationListFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListFederatedRealmResponse struct { + value *FederationListFederatedRealmResponse + isSet bool +} + +func (v NullableFederationListFederatedRealmResponse) Get() *FederationListFederatedRealmResponse { + return v.value +} + +func (v *NullableFederationListFederatedRealmResponse) Set(val *FederationListFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListFederatedRealmResponse(val *FederationListFederatedRealmResponse) *NullableFederationListFederatedRealmResponse { + return &NullableFederationListFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableFederationListFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_next_available_federated_block_response.go b/ipamfederation/model_federation_list_next_available_federated_block_response.go new file mode 100644 index 0000000..c37e910 --- /dev/null +++ b/ipamfederation/model_federation_list_next_available_federated_block_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListNextAvailableFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListNextAvailableFederatedBlockResponse{} + +// FederationListNextAvailableFederatedBlockResponse The response format to list next available __FederatedBlock__ objects. +type FederationListNextAvailableFederatedBlockResponse struct { + Results []FederationFederatedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListNextAvailableFederatedBlockResponse FederationListNextAvailableFederatedBlockResponse + +// NewFederationListNextAvailableFederatedBlockResponse instantiates a new FederationListNextAvailableFederatedBlockResponse 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 NewFederationListNextAvailableFederatedBlockResponse() *FederationListNextAvailableFederatedBlockResponse { + this := FederationListNextAvailableFederatedBlockResponse{} + return &this +} + +// NewFederationListNextAvailableFederatedBlockResponseWithDefaults instantiates a new FederationListNextAvailableFederatedBlockResponse 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 NewFederationListNextAvailableFederatedBlockResponseWithDefaults() *FederationListNextAvailableFederatedBlockResponse { + this := FederationListNextAvailableFederatedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListNextAvailableFederatedBlockResponse) GetResults() []FederationFederatedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationFederatedBlock + 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 *FederationListNextAvailableFederatedBlockResponse) GetResultsOk() ([]FederationFederatedBlock, 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 *FederationListNextAvailableFederatedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationFederatedBlock and assigns it to the Results field. +func (o *FederationListNextAvailableFederatedBlockResponse) SetResults(v []FederationFederatedBlock) { + o.Results = v +} + +func (o FederationListNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListNextAvailableFederatedBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListNextAvailableFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListNextAvailableFederatedBlockResponse := _FederationListNextAvailableFederatedBlockResponse{} + + err = json.Unmarshal(data, &varFederationListNextAvailableFederatedBlockResponse) + + if err != nil { + return err + } + + *o = FederationListNextAvailableFederatedBlockResponse(varFederationListNextAvailableFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListNextAvailableFederatedBlockResponse struct { + value *FederationListNextAvailableFederatedBlockResponse + isSet bool +} + +func (v NullableFederationListNextAvailableFederatedBlockResponse) Get() *FederationListNextAvailableFederatedBlockResponse { + return v.value +} + +func (v *NullableFederationListNextAvailableFederatedBlockResponse) Set(val *FederationListNextAvailableFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListNextAvailableFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListNextAvailableFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListNextAvailableFederatedBlockResponse(val *FederationListNextAvailableFederatedBlockResponse) *NullableFederationListNextAvailableFederatedBlockResponse { + return &NullableFederationListNextAvailableFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationListNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListNextAvailableFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_next_available_overlapping_block_response.go b/ipamfederation/model_federation_list_next_available_overlapping_block_response.go new file mode 100644 index 0000000..21a5d05 --- /dev/null +++ b/ipamfederation/model_federation_list_next_available_overlapping_block_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListNextAvailableOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListNextAvailableOverlappingBlockResponse{} + +// FederationListNextAvailableOverlappingBlockResponse The response format to list next available __OverlappingBlock__ objects. +type FederationListNextAvailableOverlappingBlockResponse struct { + Results []FederationOverlappingBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListNextAvailableOverlappingBlockResponse FederationListNextAvailableOverlappingBlockResponse + +// NewFederationListNextAvailableOverlappingBlockResponse instantiates a new FederationListNextAvailableOverlappingBlockResponse 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 NewFederationListNextAvailableOverlappingBlockResponse() *FederationListNextAvailableOverlappingBlockResponse { + this := FederationListNextAvailableOverlappingBlockResponse{} + return &this +} + +// NewFederationListNextAvailableOverlappingBlockResponseWithDefaults instantiates a new FederationListNextAvailableOverlappingBlockResponse 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 NewFederationListNextAvailableOverlappingBlockResponseWithDefaults() *FederationListNextAvailableOverlappingBlockResponse { + this := FederationListNextAvailableOverlappingBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListNextAvailableOverlappingBlockResponse) GetResults() []FederationOverlappingBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationOverlappingBlock + 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 *FederationListNextAvailableOverlappingBlockResponse) GetResultsOk() ([]FederationOverlappingBlock, 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 *FederationListNextAvailableOverlappingBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationOverlappingBlock and assigns it to the Results field. +func (o *FederationListNextAvailableOverlappingBlockResponse) SetResults(v []FederationOverlappingBlock) { + o.Results = v +} + +func (o FederationListNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListNextAvailableOverlappingBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListNextAvailableOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListNextAvailableOverlappingBlockResponse := _FederationListNextAvailableOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varFederationListNextAvailableOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = FederationListNextAvailableOverlappingBlockResponse(varFederationListNextAvailableOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListNextAvailableOverlappingBlockResponse struct { + value *FederationListNextAvailableOverlappingBlockResponse + isSet bool +} + +func (v NullableFederationListNextAvailableOverlappingBlockResponse) Get() *FederationListNextAvailableOverlappingBlockResponse { + return v.value +} + +func (v *NullableFederationListNextAvailableOverlappingBlockResponse) Set(val *FederationListNextAvailableOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListNextAvailableOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListNextAvailableOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListNextAvailableOverlappingBlockResponse(val *FederationListNextAvailableOverlappingBlockResponse) *NullableFederationListNextAvailableOverlappingBlockResponse { + return &NullableFederationListNextAvailableOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationListNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListNextAvailableOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_next_available_reserved_block_response.go b/ipamfederation/model_federation_list_next_available_reserved_block_response.go new file mode 100644 index 0000000..9394d35 --- /dev/null +++ b/ipamfederation/model_federation_list_next_available_reserved_block_response.go @@ -0,0 +1,153 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListNextAvailableReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListNextAvailableReservedBlockResponse{} + +// FederationListNextAvailableReservedBlockResponse The response format to list next available __ReservedBlock__ objects. +type FederationListNextAvailableReservedBlockResponse struct { + Results []FederationReservedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListNextAvailableReservedBlockResponse FederationListNextAvailableReservedBlockResponse + +// NewFederationListNextAvailableReservedBlockResponse instantiates a new FederationListNextAvailableReservedBlockResponse 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 NewFederationListNextAvailableReservedBlockResponse() *FederationListNextAvailableReservedBlockResponse { + this := FederationListNextAvailableReservedBlockResponse{} + return &this +} + +// NewFederationListNextAvailableReservedBlockResponseWithDefaults instantiates a new FederationListNextAvailableReservedBlockResponse 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 NewFederationListNextAvailableReservedBlockResponseWithDefaults() *FederationListNextAvailableReservedBlockResponse { + this := FederationListNextAvailableReservedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListNextAvailableReservedBlockResponse) GetResults() []FederationReservedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationReservedBlock + 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 *FederationListNextAvailableReservedBlockResponse) GetResultsOk() ([]FederationReservedBlock, 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 *FederationListNextAvailableReservedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationReservedBlock and assigns it to the Results field. +func (o *FederationListNextAvailableReservedBlockResponse) SetResults(v []FederationReservedBlock) { + o.Results = v +} + +func (o FederationListNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListNextAvailableReservedBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListNextAvailableReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListNextAvailableReservedBlockResponse := _FederationListNextAvailableReservedBlockResponse{} + + err = json.Unmarshal(data, &varFederationListNextAvailableReservedBlockResponse) + + if err != nil { + return err + } + + *o = FederationListNextAvailableReservedBlockResponse(varFederationListNextAvailableReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListNextAvailableReservedBlockResponse struct { + value *FederationListNextAvailableReservedBlockResponse + isSet bool +} + +func (v NullableFederationListNextAvailableReservedBlockResponse) Get() *FederationListNextAvailableReservedBlockResponse { + return v.value +} + +func (v *NullableFederationListNextAvailableReservedBlockResponse) Set(val *FederationListNextAvailableReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListNextAvailableReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListNextAvailableReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListNextAvailableReservedBlockResponse(val *FederationListNextAvailableReservedBlockResponse) *NullableFederationListNextAvailableReservedBlockResponse { + return &NullableFederationListNextAvailableReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationListNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListNextAvailableReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_overlapping_block_response.go b/ipamfederation/model_federation_list_overlapping_block_response.go new file mode 100644 index 0000000..4028eb3 --- /dev/null +++ b/ipamfederation/model_federation_list_overlapping_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListOverlappingBlockResponse{} + +// FederationListOverlappingBlockResponse The response format to retrieve __OverlappingBlock__ objects. +type FederationListOverlappingBlockResponse struct { + // A list of OverlappingBlock objects. + Results []FederationOverlappingBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListOverlappingBlockResponse FederationListOverlappingBlockResponse + +// NewFederationListOverlappingBlockResponse instantiates a new FederationListOverlappingBlockResponse 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 NewFederationListOverlappingBlockResponse() *FederationListOverlappingBlockResponse { + this := FederationListOverlappingBlockResponse{} + return &this +} + +// NewFederationListOverlappingBlockResponseWithDefaults instantiates a new FederationListOverlappingBlockResponse 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 NewFederationListOverlappingBlockResponseWithDefaults() *FederationListOverlappingBlockResponse { + this := FederationListOverlappingBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListOverlappingBlockResponse) GetResults() []FederationOverlappingBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationOverlappingBlock + 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 *FederationListOverlappingBlockResponse) GetResultsOk() ([]FederationOverlappingBlock, 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 *FederationListOverlappingBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationOverlappingBlock and assigns it to the Results field. +func (o *FederationListOverlappingBlockResponse) SetResults(v []FederationOverlappingBlock) { + o.Results = v +} + +func (o FederationListOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListOverlappingBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListOverlappingBlockResponse := _FederationListOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varFederationListOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = FederationListOverlappingBlockResponse(varFederationListOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListOverlappingBlockResponse struct { + value *FederationListOverlappingBlockResponse + isSet bool +} + +func (v NullableFederationListOverlappingBlockResponse) Get() *FederationListOverlappingBlockResponse { + return v.value +} + +func (v *NullableFederationListOverlappingBlockResponse) Set(val *FederationListOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListOverlappingBlockResponse(val *FederationListOverlappingBlockResponse) *NullableFederationListOverlappingBlockResponse { + return &NullableFederationListOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationListOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_list_reserved_block_response.go b/ipamfederation/model_federation_list_reserved_block_response.go new file mode 100644 index 0000000..d80ff0c --- /dev/null +++ b/ipamfederation/model_federation_list_reserved_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationListReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationListReservedBlockResponse{} + +// FederationListReservedBlockResponse The response format to retrieve __ReservedBlock__ objects. +type FederationListReservedBlockResponse struct { + // A list of ReservedBlock objects. + Results []FederationReservedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationListReservedBlockResponse FederationListReservedBlockResponse + +// NewFederationListReservedBlockResponse instantiates a new FederationListReservedBlockResponse 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 NewFederationListReservedBlockResponse() *FederationListReservedBlockResponse { + this := FederationListReservedBlockResponse{} + return &this +} + +// NewFederationListReservedBlockResponseWithDefaults instantiates a new FederationListReservedBlockResponse 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 NewFederationListReservedBlockResponseWithDefaults() *FederationListReservedBlockResponse { + this := FederationListReservedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *FederationListReservedBlockResponse) GetResults() []FederationReservedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederationReservedBlock + 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 *FederationListReservedBlockResponse) GetResultsOk() ([]FederationReservedBlock, 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 *FederationListReservedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederationReservedBlock and assigns it to the Results field. +func (o *FederationListReservedBlockResponse) SetResults(v []FederationReservedBlock) { + o.Results = v +} + +func (o FederationListReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationListReservedBlockResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationListReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationListReservedBlockResponse := _FederationListReservedBlockResponse{} + + err = json.Unmarshal(data, &varFederationListReservedBlockResponse) + + if err != nil { + return err + } + + *o = FederationListReservedBlockResponse(varFederationListReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationListReservedBlockResponse struct { + value *FederationListReservedBlockResponse + isSet bool +} + +func (v NullableFederationListReservedBlockResponse) Get() *FederationListReservedBlockResponse { + return v.value +} + +func (v *NullableFederationListReservedBlockResponse) Set(val *FederationListReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationListReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationListReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationListReservedBlockResponse(val *FederationListReservedBlockResponse) *NullableFederationListReservedBlockResponse { + return &NullableFederationListReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationListReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationListReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_next_available_block_request.go b/ipamfederation/model_federation_next_available_block_request.go new file mode 100644 index 0000000..76da3f4 --- /dev/null +++ b/ipamfederation/model_federation_next_available_block_request.go @@ -0,0 +1,344 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationNextAvailableBlockRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationNextAvailableBlockRequest{} + +// FederationNextAvailableBlockRequest struct for FederationNextAvailableBlockRequest +type FederationNextAvailableBlockRequest struct { + // The CIDR of the federated block. This is required, if _address_ does not specify it in its input. + Cidr *int64 `json:"cidr,omitempty"` + // The description for the _federation/federated_block_. May contain 0 to 1024 characters. Can include UTF-8. + Comment *string `json:"comment,omitempty"` + // The count of __Block__ required. If not provided, it will default to 1. + Count *int64 `json:"count,omitempty"` + // The resource identifier. + Id *string `json:"id,omitempty"` + // The name to be provided. + Name *string `json:"name,omitempty"` + // The tags for the federated block in JSON format. + Tags map[string]interface{} `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationNextAvailableBlockRequest FederationNextAvailableBlockRequest + +// NewFederationNextAvailableBlockRequest instantiates a new FederationNextAvailableBlockRequest 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 NewFederationNextAvailableBlockRequest() *FederationNextAvailableBlockRequest { + this := FederationNextAvailableBlockRequest{} + return &this +} + +// NewFederationNextAvailableBlockRequestWithDefaults instantiates a new FederationNextAvailableBlockRequest 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 NewFederationNextAvailableBlockRequestWithDefaults() *FederationNextAvailableBlockRequest { + this := FederationNextAvailableBlockRequest{} + return &this +} + +// GetCidr returns the Cidr field value if set, zero value otherwise. +func (o *FederationNextAvailableBlockRequest) GetCidr() int64 { + if o == nil || IsNil(o.Cidr) { + var ret int64 + return ret + } + return *o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableBlockRequest) GetCidrOk() (*int64, bool) { + if o == nil || IsNil(o.Cidr) { + return nil, false + } + return o.Cidr, true +} + +// HasCidr returns a boolean if a field has been set. +func (o *FederationNextAvailableBlockRequest) HasCidr() bool { + if o != nil && !IsNil(o.Cidr) { + return true + } + + return false +} + +// SetCidr gets a reference to the given int64 and assigns it to the Cidr field. +func (o *FederationNextAvailableBlockRequest) SetCidr(v int64) { + o.Cidr = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *FederationNextAvailableBlockRequest) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableBlockRequest) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *FederationNextAvailableBlockRequest) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *FederationNextAvailableBlockRequest) SetComment(v string) { + o.Comment = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *FederationNextAvailableBlockRequest) GetCount() int64 { + if o == nil || IsNil(o.Count) { + var ret int64 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableBlockRequest) GetCountOk() (*int64, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *FederationNextAvailableBlockRequest) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *FederationNextAvailableBlockRequest) SetCount(v int64) { + o.Count = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) 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 *FederationNextAvailableBlockRequest) SetName(v string) { + o.Name = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FederationNextAvailableBlockRequest) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret 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 *FederationNextAvailableBlockRequest) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FederationNextAvailableBlockRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *FederationNextAvailableBlockRequest) SetTags(v map[string]interface{}) { + o.Tags = v +} + +func (o FederationNextAvailableBlockRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationNextAvailableBlockRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cidr) { + toSerialize["cidr"] = o.Cidr + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationNextAvailableBlockRequest) UnmarshalJSON(data []byte) (err error) { + varFederationNextAvailableBlockRequest := _FederationNextAvailableBlockRequest{} + + err = json.Unmarshal(data, &varFederationNextAvailableBlockRequest) + + if err != nil { + return err + } + + *o = FederationNextAvailableBlockRequest(varFederationNextAvailableBlockRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cidr") + delete(additionalProperties, "comment") + delete(additionalProperties, "count") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationNextAvailableBlockRequest struct { + value *FederationNextAvailableBlockRequest + isSet bool +} + +func (v NullableFederationNextAvailableBlockRequest) Get() *FederationNextAvailableBlockRequest { + return v.value +} + +func (v *NullableFederationNextAvailableBlockRequest) Set(val *FederationNextAvailableBlockRequest) { + v.value = val + v.isSet = true +} + +func (v NullableFederationNextAvailableBlockRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationNextAvailableBlockRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationNextAvailableBlockRequest(val *FederationNextAvailableBlockRequest) *NullableFederationNextAvailableBlockRequest { + return &NullableFederationNextAvailableBlockRequest{value: val, isSet: true} +} + +func (v NullableFederationNextAvailableBlockRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationNextAvailableBlockRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_next_available_delegation_arguments.go b/ipamfederation/model_federation_next_available_delegation_arguments.go new file mode 100644 index 0000000..cba1173 --- /dev/null +++ b/ipamfederation/model_federation_next_available_delegation_arguments.go @@ -0,0 +1,306 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationNextAvailableDelegationArguments type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationNextAvailableDelegationArguments{} + +// FederationNextAvailableDelegationArguments struct for FederationNextAvailableDelegationArguments +type FederationNextAvailableDelegationArguments struct { + // The CIDR of the delegation to be created. This is required, if _address_ does not specify it in its input. + Cidr *int64 `json:"cidr,omitempty"` + // The count of __Delegation__ required. If not provided, it will default to 1. + Count *int64 `json:"count,omitempty"` + // The resource identifier. + FederatedRealms []string `json:"federated_realms,omitempty"` + // It contains the map of attributes and the associated value. + Predicates map[string]interface{} `json:"predicates,omitempty"` + // The field which denotes if the __Delegation__ will be provisioned or just calculated and returned. + ReadOnly *bool `json:"read_only,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationNextAvailableDelegationArguments FederationNextAvailableDelegationArguments + +// NewFederationNextAvailableDelegationArguments instantiates a new FederationNextAvailableDelegationArguments 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 NewFederationNextAvailableDelegationArguments() *FederationNextAvailableDelegationArguments { + this := FederationNextAvailableDelegationArguments{} + return &this +} + +// NewFederationNextAvailableDelegationArgumentsWithDefaults instantiates a new FederationNextAvailableDelegationArguments 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 NewFederationNextAvailableDelegationArgumentsWithDefaults() *FederationNextAvailableDelegationArguments { + this := FederationNextAvailableDelegationArguments{} + return &this +} + +// GetCidr returns the Cidr field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationArguments) GetCidr() int64 { + if o == nil || IsNil(o.Cidr) { + var ret int64 + return ret + } + return *o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableDelegationArguments) GetCidrOk() (*int64, bool) { + if o == nil || IsNil(o.Cidr) { + return nil, false + } + return o.Cidr, true +} + +// HasCidr returns a boolean if a field has been set. +func (o *FederationNextAvailableDelegationArguments) HasCidr() bool { + if o != nil && !IsNil(o.Cidr) { + return true + } + + return false +} + +// SetCidr gets a reference to the given int64 and assigns it to the Cidr field. +func (o *FederationNextAvailableDelegationArguments) SetCidr(v int64) { + o.Cidr = &v +} + +// GetCount returns the Count field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationArguments) GetCount() int64 { + if o == nil || IsNil(o.Count) { + var ret int64 + return ret + } + return *o.Count +} + +// GetCountOk returns a tuple with the Count field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableDelegationArguments) GetCountOk() (*int64, bool) { + if o == nil || IsNil(o.Count) { + return nil, false + } + return o.Count, true +} + +// HasCount returns a boolean if a field has been set. +func (o *FederationNextAvailableDelegationArguments) HasCount() bool { + if o != nil && !IsNil(o.Count) { + return true + } + + return false +} + +// SetCount gets a reference to the given int64 and assigns it to the Count field. +func (o *FederationNextAvailableDelegationArguments) SetCount(v int64) { + o.Count = &v +} + +// GetFederatedRealms returns the FederatedRealms field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationArguments) GetFederatedRealms() []string { + if o == nil || IsNil(o.FederatedRealms) { + var ret []string + return ret + } + return o.FederatedRealms +} + +// GetFederatedRealmsOk returns a tuple with the FederatedRealms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableDelegationArguments) GetFederatedRealmsOk() ([]string, bool) { + if o == nil || IsNil(o.FederatedRealms) { + return nil, false + } + return o.FederatedRealms, true +} + +// HasFederatedRealms returns a boolean if a field has been set. +func (o *FederationNextAvailableDelegationArguments) HasFederatedRealms() bool { + if o != nil && !IsNil(o.FederatedRealms) { + return true + } + + return false +} + +// SetFederatedRealms gets a reference to the given []string and assigns it to the FederatedRealms field. +func (o *FederationNextAvailableDelegationArguments) SetFederatedRealms(v []string) { + o.FederatedRealms = v +} + +// GetPredicates returns the Predicates field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationArguments) GetPredicates() map[string]interface{} { + if o == nil || IsNil(o.Predicates) { + var ret map[string]interface{} + return ret + } + return o.Predicates +} + +// GetPredicatesOk returns a tuple with the Predicates field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableDelegationArguments) GetPredicatesOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Predicates) { + return map[string]interface{}{}, false + } + return o.Predicates, true +} + +// HasPredicates returns a boolean if a field has been set. +func (o *FederationNextAvailableDelegationArguments) HasPredicates() bool { + if o != nil && !IsNil(o.Predicates) { + return true + } + + return false +} + +// SetPredicates gets a reference to the given map[string]interface{} and assigns it to the Predicates field. +func (o *FederationNextAvailableDelegationArguments) SetPredicates(v map[string]interface{}) { + o.Predicates = v +} + +// GetReadOnly returns the ReadOnly field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationArguments) GetReadOnly() bool { + if o == nil || IsNil(o.ReadOnly) { + var ret bool + return ret + } + return *o.ReadOnly +} + +// GetReadOnlyOk returns a tuple with the ReadOnly field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableDelegationArguments) GetReadOnlyOk() (*bool, bool) { + if o == nil || IsNil(o.ReadOnly) { + return nil, false + } + return o.ReadOnly, true +} + +// HasReadOnly returns a boolean if a field has been set. +func (o *FederationNextAvailableDelegationArguments) HasReadOnly() bool { + if o != nil && !IsNil(o.ReadOnly) { + return true + } + + return false +} + +// SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field. +func (o *FederationNextAvailableDelegationArguments) SetReadOnly(v bool) { + o.ReadOnly = &v +} + +func (o FederationNextAvailableDelegationArguments) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationNextAvailableDelegationArguments) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Cidr) { + toSerialize["cidr"] = o.Cidr + } + if !IsNil(o.Count) { + toSerialize["count"] = o.Count + } + if !IsNil(o.FederatedRealms) { + toSerialize["federated_realms"] = o.FederatedRealms + } + if !IsNil(o.Predicates) { + toSerialize["predicates"] = o.Predicates + } + if !IsNil(o.ReadOnly) { + toSerialize["read_only"] = o.ReadOnly + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationNextAvailableDelegationArguments) UnmarshalJSON(data []byte) (err error) { + varFederationNextAvailableDelegationArguments := _FederationNextAvailableDelegationArguments{} + + err = json.Unmarshal(data, &varFederationNextAvailableDelegationArguments) + + if err != nil { + return err + } + + *o = FederationNextAvailableDelegationArguments(varFederationNextAvailableDelegationArguments) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cidr") + delete(additionalProperties, "count") + delete(additionalProperties, "federated_realms") + delete(additionalProperties, "predicates") + delete(additionalProperties, "read_only") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationNextAvailableDelegationArguments struct { + value *FederationNextAvailableDelegationArguments + isSet bool +} + +func (v NullableFederationNextAvailableDelegationArguments) Get() *FederationNextAvailableDelegationArguments { + return v.value +} + +func (v *NullableFederationNextAvailableDelegationArguments) Set(val *FederationNextAvailableDelegationArguments) { + v.value = val + v.isSet = true +} + +func (v NullableFederationNextAvailableDelegationArguments) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationNextAvailableDelegationArguments) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationNextAvailableDelegationArguments(val *FederationNextAvailableDelegationArguments) *NullableFederationNextAvailableDelegationArguments { + return &NullableFederationNextAvailableDelegationArguments{value: val, isSet: true} +} + +func (v NullableFederationNextAvailableDelegationArguments) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationNextAvailableDelegationArguments) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_next_available_delegation_properties.go b/ipamfederation/model_federation_next_available_delegation_properties.go new file mode 100644 index 0000000..ae8704c --- /dev/null +++ b/ipamfederation/model_federation_next_available_delegation_properties.go @@ -0,0 +1,230 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationNextAvailableDelegationProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationNextAvailableDelegationProperties{} + +// FederationNextAvailableDelegationProperties struct for FederationNextAvailableDelegationProperties +type FederationNextAvailableDelegationProperties struct { + // The description for the __Delegation__. May contain 0 to 1024 characters. Can include UTF-8. + Comment *string `json:"comment,omitempty"` + // The specific IPAM service the __Delegation__ was delegated to. + DelegatedTo *string `json:"delegated_to,omitempty"` + // The name to be provided. + Name *string `json:"name,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationNextAvailableDelegationProperties FederationNextAvailableDelegationProperties + +// NewFederationNextAvailableDelegationProperties instantiates a new FederationNextAvailableDelegationProperties 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 NewFederationNextAvailableDelegationProperties() *FederationNextAvailableDelegationProperties { + this := FederationNextAvailableDelegationProperties{} + return &this +} + +// NewFederationNextAvailableDelegationPropertiesWithDefaults instantiates a new FederationNextAvailableDelegationProperties 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 NewFederationNextAvailableDelegationPropertiesWithDefaults() *FederationNextAvailableDelegationProperties { + this := FederationNextAvailableDelegationProperties{} + return &this +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationProperties) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableDelegationProperties) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *FederationNextAvailableDelegationProperties) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *FederationNextAvailableDelegationProperties) SetComment(v string) { + o.Comment = &v +} + +// GetDelegatedTo returns the DelegatedTo field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationProperties) GetDelegatedTo() string { + if o == nil || IsNil(o.DelegatedTo) { + var ret string + return ret + } + return *o.DelegatedTo +} + +// GetDelegatedToOk returns a tuple with the DelegatedTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationNextAvailableDelegationProperties) GetDelegatedToOk() (*string, bool) { + if o == nil || IsNil(o.DelegatedTo) { + return nil, false + } + return o.DelegatedTo, true +} + +// HasDelegatedTo returns a boolean if a field has been set. +func (o *FederationNextAvailableDelegationProperties) HasDelegatedTo() bool { + if o != nil && !IsNil(o.DelegatedTo) { + return true + } + + return false +} + +// SetDelegatedTo gets a reference to the given string and assigns it to the DelegatedTo field. +func (o *FederationNextAvailableDelegationProperties) SetDelegatedTo(v string) { + o.DelegatedTo = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FederationNextAvailableDelegationProperties) 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 *FederationNextAvailableDelegationProperties) 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 *FederationNextAvailableDelegationProperties) 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 *FederationNextAvailableDelegationProperties) SetName(v string) { + o.Name = &v +} + +func (o FederationNextAvailableDelegationProperties) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationNextAvailableDelegationProperties) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.DelegatedTo) { + toSerialize["delegated_to"] = o.DelegatedTo + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *FederationNextAvailableDelegationProperties) UnmarshalJSON(data []byte) (err error) { + varFederationNextAvailableDelegationProperties := _FederationNextAvailableDelegationProperties{} + + err = json.Unmarshal(data, &varFederationNextAvailableDelegationProperties) + + if err != nil { + return err + } + + *o = FederationNextAvailableDelegationProperties(varFederationNextAvailableDelegationProperties) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "comment") + delete(additionalProperties, "delegated_to") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationNextAvailableDelegationProperties struct { + value *FederationNextAvailableDelegationProperties + isSet bool +} + +func (v NullableFederationNextAvailableDelegationProperties) Get() *FederationNextAvailableDelegationProperties { + return v.value +} + +func (v *NullableFederationNextAvailableDelegationProperties) Set(val *FederationNextAvailableDelegationProperties) { + v.value = val + v.isSet = true +} + +func (v NullableFederationNextAvailableDelegationProperties) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationNextAvailableDelegationProperties) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationNextAvailableDelegationProperties(val *FederationNextAvailableDelegationProperties) *NullableFederationNextAvailableDelegationProperties { + return &NullableFederationNextAvailableDelegationProperties{value: val, isSet: true} +} + +func (v NullableFederationNextAvailableDelegationProperties) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationNextAvailableDelegationProperties) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_overlapping_block.go b/ipamfederation/model_federation_overlapping_block.go new file mode 100644 index 0000000..899de43 --- /dev/null +++ b/ipamfederation/model_federation_overlapping_block.go @@ -0,0 +1,540 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the FederationOverlappingBlock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationOverlappingBlock{} + +// FederationOverlappingBlock An __OverlappingBlock__ object (_federation/overlapping_block_) is a set of contiguous IP addresses with no gap, expressed as a CIDR block. It is explicitly associated with a Federated Realm, and implicitly with a Federated Block Parent. An __OverlappingBlock__ in a given realm is said to be the child of the closest enclosing parent. An __OverlappingBlock__ indicates an address range that may be managed independently by all participating IPAM services. +type FederationOverlappingBlock struct { + // The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. + Address string `json:"address"` + // The CIDR of the overlapping block. This is required, if _address_ does not specify it in its input. + Cidr *int64 `json:"cidr,omitempty"` + // The description for the overlapping block. May contain 0 to 1024 characters. Can include UTF-8. + Comment *string `json:"comment,omitempty"` + // Time when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // The resource identifier. + FederatedRealm string `json:"federated_realm"` + // The resource identifier. + Id *string `json:"id,omitempty"` + // The name of the overlapping block. May contain 1 to 256 characters. Can include UTF-8. + Name *string `json:"name,omitempty"` + // The resource identifier. + Parent *string `json:"parent,omitempty"` + // The type of protocol of overlapping block (_ip4_ or _ip6_). + Protocol *string `json:"protocol,omitempty"` + // The tags for the overlapping block in JSON format. + Tags map[string]interface{} `json:"tags,omitempty"` + // Time when the object has been updated. Equals to _created_at_ if not updated after creation. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationOverlappingBlock FederationOverlappingBlock + +// NewFederationOverlappingBlock instantiates a new FederationOverlappingBlock 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 NewFederationOverlappingBlock(address string, federatedRealm string) *FederationOverlappingBlock { + this := FederationOverlappingBlock{} + this.Address = address + this.FederatedRealm = federatedRealm + return &this +} + +// NewFederationOverlappingBlockWithDefaults instantiates a new FederationOverlappingBlock 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 NewFederationOverlappingBlockWithDefaults() *FederationOverlappingBlock { + this := FederationOverlappingBlock{} + return &this +} + +// GetAddress returns the Address field value +func (o *FederationOverlappingBlock) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *FederationOverlappingBlock) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *FederationOverlappingBlock) SetAddress(v string) { + o.Address = v +} + +// GetCidr returns the Cidr field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) GetCidr() int64 { + if o == nil || IsNil(o.Cidr) { + var ret int64 + return ret + } + return *o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationOverlappingBlock) GetCidrOk() (*int64, bool) { + if o == nil || IsNil(o.Cidr) { + return nil, false + } + return o.Cidr, true +} + +// HasCidr returns a boolean if a field has been set. +func (o *FederationOverlappingBlock) HasCidr() bool { + if o != nil && !IsNil(o.Cidr) { + return true + } + + return false +} + +// SetCidr gets a reference to the given int64 and assigns it to the Cidr field. +func (o *FederationOverlappingBlock) SetCidr(v int64) { + o.Cidr = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationOverlappingBlock) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *FederationOverlappingBlock) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *FederationOverlappingBlock) SetComment(v string) { + o.Comment = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetFederatedRealm returns the FederatedRealm field value +func (o *FederationOverlappingBlock) GetFederatedRealm() string { + if o == nil { + var ret string + return ret + } + + return o.FederatedRealm +} + +// GetFederatedRealmOk returns a tuple with the FederatedRealm field value +// and a boolean to check if the value has been set. +func (o *FederationOverlappingBlock) GetFederatedRealmOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FederatedRealm, true +} + +// SetFederatedRealm sets field value +func (o *FederationOverlappingBlock) SetFederatedRealm(v string) { + o.FederatedRealm = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetName(v string) { + o.Name = &v +} + +// GetParent returns the Parent field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) GetParent() string { + if o == nil || IsNil(o.Parent) { + var ret string + return ret + } + return *o.Parent +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationOverlappingBlock) GetParentOk() (*string, bool) { + if o == nil || IsNil(o.Parent) { + return nil, false + } + return o.Parent, true +} + +// HasParent returns a boolean if a field has been set. +func (o *FederationOverlappingBlock) HasParent() bool { + if o != nil && !IsNil(o.Parent) { + return true + } + + return false +} + +// SetParent gets a reference to the given string and assigns it to the Parent field. +func (o *FederationOverlappingBlock) SetParent(v string) { + o.Parent = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationOverlappingBlock) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *FederationOverlappingBlock) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *FederationOverlappingBlock) SetProtocol(v string) { + o.Protocol = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret 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 *FederationOverlappingBlock) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FederationOverlappingBlock) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *FederationOverlappingBlock) SetTags(v map[string]interface{}) { + o.Tags = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) 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 *FederationOverlappingBlock) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o FederationOverlappingBlock) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationOverlappingBlock) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if !IsNil(o.Cidr) { + toSerialize["cidr"] = o.Cidr + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + toSerialize["federated_realm"] = o.FederatedRealm + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parent) { + toSerialize["parent"] = o.Parent + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + 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 *FederationOverlappingBlock) 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{ + "address", + "federated_realm", + } + + 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) + } + } + + varFederationOverlappingBlock := _FederationOverlappingBlock{} + + err = json.Unmarshal(data, &varFederationOverlappingBlock) + + if err != nil { + return err + } + + *o = FederationOverlappingBlock(varFederationOverlappingBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "cidr") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "federated_realm") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationOverlappingBlock struct { + value *FederationOverlappingBlock + isSet bool +} + +func (v NullableFederationOverlappingBlock) Get() *FederationOverlappingBlock { + return v.value +} + +func (v *NullableFederationOverlappingBlock) Set(val *FederationOverlappingBlock) { + v.value = val + v.isSet = true +} + +func (v NullableFederationOverlappingBlock) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationOverlappingBlock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationOverlappingBlock(val *FederationOverlappingBlock) *NullableFederationOverlappingBlock { + return &NullableFederationOverlappingBlock{value: val, isSet: true} +} + +func (v NullableFederationOverlappingBlock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationOverlappingBlock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_read_delegation_response.go b/ipamfederation/model_federation_read_delegation_response.go new file mode 100644 index 0000000..5eac3fd --- /dev/null +++ b/ipamfederation/model_federation_read_delegation_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationReadDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationReadDelegationResponse{} + +// FederationReadDelegationResponse The response format to retrieve the __Delegation__ object. +type FederationReadDelegationResponse struct { + // The Delegation object. + Result *FederationDelegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationReadDelegationResponse FederationReadDelegationResponse + +// NewFederationReadDelegationResponse instantiates a new FederationReadDelegationResponse 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 NewFederationReadDelegationResponse() *FederationReadDelegationResponse { + this := FederationReadDelegationResponse{} + return &this +} + +// NewFederationReadDelegationResponseWithDefaults instantiates a new FederationReadDelegationResponse 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 NewFederationReadDelegationResponseWithDefaults() *FederationReadDelegationResponse { + this := FederationReadDelegationResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationReadDelegationResponse) GetResult() FederationDelegation { + if o == nil || IsNil(o.Result) { + var ret FederationDelegation + 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 *FederationReadDelegationResponse) GetResultOk() (*FederationDelegation, 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 *FederationReadDelegationResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationDelegation and assigns it to the Result field. +func (o *FederationReadDelegationResponse) SetResult(v FederationDelegation) { + o.Result = &v +} + +func (o FederationReadDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationReadDelegationResponse) 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 *FederationReadDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varFederationReadDelegationResponse := _FederationReadDelegationResponse{} + + err = json.Unmarshal(data, &varFederationReadDelegationResponse) + + if err != nil { + return err + } + + *o = FederationReadDelegationResponse(varFederationReadDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationReadDelegationResponse struct { + value *FederationReadDelegationResponse + isSet bool +} + +func (v NullableFederationReadDelegationResponse) Get() *FederationReadDelegationResponse { + return v.value +} + +func (v *NullableFederationReadDelegationResponse) Set(val *FederationReadDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationReadDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationReadDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationReadDelegationResponse(val *FederationReadDelegationResponse) *NullableFederationReadDelegationResponse { + return &NullableFederationReadDelegationResponse{value: val, isSet: true} +} + +func (v NullableFederationReadDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationReadDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_read_federated_block_response.go b/ipamfederation/model_federation_read_federated_block_response.go new file mode 100644 index 0000000..ec935a3 --- /dev/null +++ b/ipamfederation/model_federation_read_federated_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationReadFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationReadFederatedBlockResponse{} + +// FederationReadFederatedBlockResponse The response format to retrieve the __FederatedBlock__ object. +type FederationReadFederatedBlockResponse struct { + // The FederatedBlock object. + Result *FederationFederatedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationReadFederatedBlockResponse FederationReadFederatedBlockResponse + +// NewFederationReadFederatedBlockResponse instantiates a new FederationReadFederatedBlockResponse 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 NewFederationReadFederatedBlockResponse() *FederationReadFederatedBlockResponse { + this := FederationReadFederatedBlockResponse{} + return &this +} + +// NewFederationReadFederatedBlockResponseWithDefaults instantiates a new FederationReadFederatedBlockResponse 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 NewFederationReadFederatedBlockResponseWithDefaults() *FederationReadFederatedBlockResponse { + this := FederationReadFederatedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationReadFederatedBlockResponse) GetResult() FederationFederatedBlock { + if o == nil || IsNil(o.Result) { + var ret FederationFederatedBlock + 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 *FederationReadFederatedBlockResponse) GetResultOk() (*FederationFederatedBlock, 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 *FederationReadFederatedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationFederatedBlock and assigns it to the Result field. +func (o *FederationReadFederatedBlockResponse) SetResult(v FederationFederatedBlock) { + o.Result = &v +} + +func (o FederationReadFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationReadFederatedBlockResponse) 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 *FederationReadFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationReadFederatedBlockResponse := _FederationReadFederatedBlockResponse{} + + err = json.Unmarshal(data, &varFederationReadFederatedBlockResponse) + + if err != nil { + return err + } + + *o = FederationReadFederatedBlockResponse(varFederationReadFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationReadFederatedBlockResponse struct { + value *FederationReadFederatedBlockResponse + isSet bool +} + +func (v NullableFederationReadFederatedBlockResponse) Get() *FederationReadFederatedBlockResponse { + return v.value +} + +func (v *NullableFederationReadFederatedBlockResponse) Set(val *FederationReadFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationReadFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationReadFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationReadFederatedBlockResponse(val *FederationReadFederatedBlockResponse) *NullableFederationReadFederatedBlockResponse { + return &NullableFederationReadFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationReadFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationReadFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_read_federated_realm_response.go b/ipamfederation/model_federation_read_federated_realm_response.go new file mode 100644 index 0000000..bc3d6ff --- /dev/null +++ b/ipamfederation/model_federation_read_federated_realm_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationReadFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationReadFederatedRealmResponse{} + +// FederationReadFederatedRealmResponse The response format to retrieve the __FederatedRealm__ object. +type FederationReadFederatedRealmResponse struct { + // The FederatedRealm object. + Result *FederationFederatedRealm `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationReadFederatedRealmResponse FederationReadFederatedRealmResponse + +// NewFederationReadFederatedRealmResponse instantiates a new FederationReadFederatedRealmResponse 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 NewFederationReadFederatedRealmResponse() *FederationReadFederatedRealmResponse { + this := FederationReadFederatedRealmResponse{} + return &this +} + +// NewFederationReadFederatedRealmResponseWithDefaults instantiates a new FederationReadFederatedRealmResponse 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 NewFederationReadFederatedRealmResponseWithDefaults() *FederationReadFederatedRealmResponse { + this := FederationReadFederatedRealmResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationReadFederatedRealmResponse) GetResult() FederationFederatedRealm { + if o == nil || IsNil(o.Result) { + var ret FederationFederatedRealm + 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 *FederationReadFederatedRealmResponse) GetResultOk() (*FederationFederatedRealm, 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 *FederationReadFederatedRealmResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationFederatedRealm and assigns it to the Result field. +func (o *FederationReadFederatedRealmResponse) SetResult(v FederationFederatedRealm) { + o.Result = &v +} + +func (o FederationReadFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationReadFederatedRealmResponse) 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 *FederationReadFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varFederationReadFederatedRealmResponse := _FederationReadFederatedRealmResponse{} + + err = json.Unmarshal(data, &varFederationReadFederatedRealmResponse) + + if err != nil { + return err + } + + *o = FederationReadFederatedRealmResponse(varFederationReadFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationReadFederatedRealmResponse struct { + value *FederationReadFederatedRealmResponse + isSet bool +} + +func (v NullableFederationReadFederatedRealmResponse) Get() *FederationReadFederatedRealmResponse { + return v.value +} + +func (v *NullableFederationReadFederatedRealmResponse) Set(val *FederationReadFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationReadFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationReadFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationReadFederatedRealmResponse(val *FederationReadFederatedRealmResponse) *NullableFederationReadFederatedRealmResponse { + return &NullableFederationReadFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableFederationReadFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationReadFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_read_overlapping_block_response.go b/ipamfederation/model_federation_read_overlapping_block_response.go new file mode 100644 index 0000000..99ad73f --- /dev/null +++ b/ipamfederation/model_federation_read_overlapping_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationReadOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationReadOverlappingBlockResponse{} + +// FederationReadOverlappingBlockResponse The response format to retrieve the __OverlappingBlock__ object. +type FederationReadOverlappingBlockResponse struct { + // The OverlappingBlock object. + Result *FederationOverlappingBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationReadOverlappingBlockResponse FederationReadOverlappingBlockResponse + +// NewFederationReadOverlappingBlockResponse instantiates a new FederationReadOverlappingBlockResponse 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 NewFederationReadOverlappingBlockResponse() *FederationReadOverlappingBlockResponse { + this := FederationReadOverlappingBlockResponse{} + return &this +} + +// NewFederationReadOverlappingBlockResponseWithDefaults instantiates a new FederationReadOverlappingBlockResponse 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 NewFederationReadOverlappingBlockResponseWithDefaults() *FederationReadOverlappingBlockResponse { + this := FederationReadOverlappingBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationReadOverlappingBlockResponse) GetResult() FederationOverlappingBlock { + if o == nil || IsNil(o.Result) { + var ret FederationOverlappingBlock + 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 *FederationReadOverlappingBlockResponse) GetResultOk() (*FederationOverlappingBlock, 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 *FederationReadOverlappingBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationOverlappingBlock and assigns it to the Result field. +func (o *FederationReadOverlappingBlockResponse) SetResult(v FederationOverlappingBlock) { + o.Result = &v +} + +func (o FederationReadOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationReadOverlappingBlockResponse) 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 *FederationReadOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationReadOverlappingBlockResponse := _FederationReadOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varFederationReadOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = FederationReadOverlappingBlockResponse(varFederationReadOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationReadOverlappingBlockResponse struct { + value *FederationReadOverlappingBlockResponse + isSet bool +} + +func (v NullableFederationReadOverlappingBlockResponse) Get() *FederationReadOverlappingBlockResponse { + return v.value +} + +func (v *NullableFederationReadOverlappingBlockResponse) Set(val *FederationReadOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationReadOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationReadOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationReadOverlappingBlockResponse(val *FederationReadOverlappingBlockResponse) *NullableFederationReadOverlappingBlockResponse { + return &NullableFederationReadOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationReadOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationReadOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_read_reserved_block_response.go b/ipamfederation/model_federation_read_reserved_block_response.go new file mode 100644 index 0000000..28b5d13 --- /dev/null +++ b/ipamfederation/model_federation_read_reserved_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationReadReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationReadReservedBlockResponse{} + +// FederationReadReservedBlockResponse The response format to retrieve the __ReservedBlock__ object. +type FederationReadReservedBlockResponse struct { + // The ReservedBlock object. + Result *FederationReservedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationReadReservedBlockResponse FederationReadReservedBlockResponse + +// NewFederationReadReservedBlockResponse instantiates a new FederationReadReservedBlockResponse 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 NewFederationReadReservedBlockResponse() *FederationReadReservedBlockResponse { + this := FederationReadReservedBlockResponse{} + return &this +} + +// NewFederationReadReservedBlockResponseWithDefaults instantiates a new FederationReadReservedBlockResponse 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 NewFederationReadReservedBlockResponseWithDefaults() *FederationReadReservedBlockResponse { + this := FederationReadReservedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationReadReservedBlockResponse) GetResult() FederationReservedBlock { + if o == nil || IsNil(o.Result) { + var ret FederationReservedBlock + 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 *FederationReadReservedBlockResponse) GetResultOk() (*FederationReservedBlock, 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 *FederationReadReservedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationReservedBlock and assigns it to the Result field. +func (o *FederationReadReservedBlockResponse) SetResult(v FederationReservedBlock) { + o.Result = &v +} + +func (o FederationReadReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationReadReservedBlockResponse) 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 *FederationReadReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationReadReservedBlockResponse := _FederationReadReservedBlockResponse{} + + err = json.Unmarshal(data, &varFederationReadReservedBlockResponse) + + if err != nil { + return err + } + + *o = FederationReadReservedBlockResponse(varFederationReadReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationReadReservedBlockResponse struct { + value *FederationReadReservedBlockResponse + isSet bool +} + +func (v NullableFederationReadReservedBlockResponse) Get() *FederationReadReservedBlockResponse { + return v.value +} + +func (v *NullableFederationReadReservedBlockResponse) Set(val *FederationReadReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationReadReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationReadReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationReadReservedBlockResponse(val *FederationReadReservedBlockResponse) *NullableFederationReadReservedBlockResponse { + return &NullableFederationReadReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationReadReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationReadReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_reserved_block.go b/ipamfederation/model_federation_reserved_block.go new file mode 100644 index 0000000..515a914 --- /dev/null +++ b/ipamfederation/model_federation_reserved_block.go @@ -0,0 +1,540 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" + "fmt" + "time" +) + +// checks if the FederationReservedBlock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationReservedBlock{} + +// FederationReservedBlock A __ReservedBlock__ object (_federation/reserved_block_) is a set of contiguous IP addresses with no gap, expressed as a CIDR block. It is explicitly associated with a Federated Realm. A __ReservedBlock__ indicates an address range for which authority is expressly forbidden. Cooperating IPAM services must not make allocations in this range. +type FederationReservedBlock struct { + // The address field in form “a.b.c.d/n” where the “/n” may be omitted. In this case, the CIDR value must be defined in the _cidr_ field. When reading, the _address_ field is always in the form “a.b.c.d”. + Address string `json:"address"` + // The CIDR of the reserved block. This is required field, if _address_ does not specify it in its input. + Cidr *int64 `json:"cidr,omitempty"` + // The description for the reserved block. May contain 0 to 1024 characters. Can include UTF-8. + Comment *string `json:"comment,omitempty"` + // Time when the object has been created. + CreatedAt *time.Time `json:"created_at,omitempty"` + // The resource identifier. + FederatedRealm string `json:"federated_realm"` + // The resource identifier. + Id *string `json:"id,omitempty"` + // The name of the reserved block. May contain 1 to 256 characters. Can include UTF-8. + Name *string `json:"name,omitempty"` + // The resource identifier. + Parent *string `json:"parent,omitempty"` + // The type of protocol of reserved block (_ip4_ or _ip6_). + Protocol *string `json:"protocol,omitempty"` + // The tags for the reserved block in JSON format. + Tags map[string]interface{} `json:"tags,omitempty"` + // Time when the object has been updated. Equals to _created_at_ if not updated after creation. + UpdatedAt *time.Time `json:"updated_at,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationReservedBlock FederationReservedBlock + +// NewFederationReservedBlock instantiates a new FederationReservedBlock 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 NewFederationReservedBlock(address string, federatedRealm string) *FederationReservedBlock { + this := FederationReservedBlock{} + this.Address = address + this.FederatedRealm = federatedRealm + return &this +} + +// NewFederationReservedBlockWithDefaults instantiates a new FederationReservedBlock 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 NewFederationReservedBlockWithDefaults() *FederationReservedBlock { + this := FederationReservedBlock{} + return &this +} + +// GetAddress returns the Address field value +func (o *FederationReservedBlock) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *FederationReservedBlock) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *FederationReservedBlock) SetAddress(v string) { + o.Address = v +} + +// GetCidr returns the Cidr field value if set, zero value otherwise. +func (o *FederationReservedBlock) GetCidr() int64 { + if o == nil || IsNil(o.Cidr) { + var ret int64 + return ret + } + return *o.Cidr +} + +// GetCidrOk returns a tuple with the Cidr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationReservedBlock) GetCidrOk() (*int64, bool) { + if o == nil || IsNil(o.Cidr) { + return nil, false + } + return o.Cidr, true +} + +// HasCidr returns a boolean if a field has been set. +func (o *FederationReservedBlock) HasCidr() bool { + if o != nil && !IsNil(o.Cidr) { + return true + } + + return false +} + +// SetCidr gets a reference to the given int64 and assigns it to the Cidr field. +func (o *FederationReservedBlock) SetCidr(v int64) { + o.Cidr = &v +} + +// GetComment returns the Comment field value if set, zero value otherwise. +func (o *FederationReservedBlock) GetComment() string { + if o == nil || IsNil(o.Comment) { + var ret string + return ret + } + return *o.Comment +} + +// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationReservedBlock) GetCommentOk() (*string, bool) { + if o == nil || IsNil(o.Comment) { + return nil, false + } + return o.Comment, true +} + +// HasComment returns a boolean if a field has been set. +func (o *FederationReservedBlock) HasComment() bool { + if o != nil && !IsNil(o.Comment) { + return true + } + + return false +} + +// SetComment gets a reference to the given string and assigns it to the Comment field. +func (o *FederationReservedBlock) SetComment(v string) { + o.Comment = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetFederatedRealm returns the FederatedRealm field value +func (o *FederationReservedBlock) GetFederatedRealm() string { + if o == nil { + var ret string + return ret + } + + return o.FederatedRealm +} + +// GetFederatedRealmOk returns a tuple with the FederatedRealm field value +// and a boolean to check if the value has been set. +func (o *FederationReservedBlock) GetFederatedRealmOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.FederatedRealm, true +} + +// SetFederatedRealm sets field value +func (o *FederationReservedBlock) SetFederatedRealm(v string) { + o.FederatedRealm = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) SetName(v string) { + o.Name = &v +} + +// GetParent returns the Parent field value if set, zero value otherwise. +func (o *FederationReservedBlock) GetParent() string { + if o == nil || IsNil(o.Parent) { + var ret string + return ret + } + return *o.Parent +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationReservedBlock) GetParentOk() (*string, bool) { + if o == nil || IsNil(o.Parent) { + return nil, false + } + return o.Parent, true +} + +// HasParent returns a boolean if a field has been set. +func (o *FederationReservedBlock) HasParent() bool { + if o != nil && !IsNil(o.Parent) { + return true + } + + return false +} + +// SetParent gets a reference to the given string and assigns it to the Parent field. +func (o *FederationReservedBlock) SetParent(v string) { + o.Parent = &v +} + +// GetProtocol returns the Protocol field value if set, zero value otherwise. +func (o *FederationReservedBlock) GetProtocol() string { + if o == nil || IsNil(o.Protocol) { + var ret string + return ret + } + return *o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FederationReservedBlock) GetProtocolOk() (*string, bool) { + if o == nil || IsNil(o.Protocol) { + return nil, false + } + return o.Protocol, true +} + +// HasProtocol returns a boolean if a field has been set. +func (o *FederationReservedBlock) HasProtocol() bool { + if o != nil && !IsNil(o.Protocol) { + return true + } + + return false +} + +// SetProtocol gets a reference to the given string and assigns it to the Protocol field. +func (o *FederationReservedBlock) SetProtocol(v string) { + o.Protocol = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FederationReservedBlock) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret 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 *FederationReservedBlock) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FederationReservedBlock) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *FederationReservedBlock) SetTags(v map[string]interface{}) { + o.Tags = v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) 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 *FederationReservedBlock) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +func (o FederationReservedBlock) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationReservedBlock) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if !IsNil(o.Cidr) { + toSerialize["cidr"] = o.Cidr + } + if !IsNil(o.Comment) { + toSerialize["comment"] = o.Comment + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + toSerialize["federated_realm"] = o.FederatedRealm + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Parent) { + toSerialize["parent"] = o.Parent + } + if !IsNil(o.Protocol) { + toSerialize["protocol"] = o.Protocol + } + 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 *FederationReservedBlock) 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{ + "address", + "federated_realm", + } + + 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) + } + } + + varFederationReservedBlock := _FederationReservedBlock{} + + err = json.Unmarshal(data, &varFederationReservedBlock) + + if err != nil { + return err + } + + *o = FederationReservedBlock(varFederationReservedBlock) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "cidr") + delete(additionalProperties, "comment") + delete(additionalProperties, "created_at") + delete(additionalProperties, "federated_realm") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "parent") + delete(additionalProperties, "protocol") + delete(additionalProperties, "tags") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationReservedBlock struct { + value *FederationReservedBlock + isSet bool +} + +func (v NullableFederationReservedBlock) Get() *FederationReservedBlock { + return v.value +} + +func (v *NullableFederationReservedBlock) Set(val *FederationReservedBlock) { + v.value = val + v.isSet = true +} + +func (v NullableFederationReservedBlock) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationReservedBlock) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationReservedBlock(val *FederationReservedBlock) *NullableFederationReservedBlock { + return &NullableFederationReservedBlock{value: val, isSet: true} +} + +func (v NullableFederationReservedBlock) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationReservedBlock) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_update_delegation_response.go b/ipamfederation/model_federation_update_delegation_response.go new file mode 100644 index 0000000..b7fe022 --- /dev/null +++ b/ipamfederation/model_federation_update_delegation_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationUpdateDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationUpdateDelegationResponse{} + +// FederationUpdateDelegationResponse The response format to update the __Delegation__ object. +type FederationUpdateDelegationResponse struct { + // The Delegation object. + Result *FederationDelegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationUpdateDelegationResponse FederationUpdateDelegationResponse + +// NewFederationUpdateDelegationResponse instantiates a new FederationUpdateDelegationResponse 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 NewFederationUpdateDelegationResponse() *FederationUpdateDelegationResponse { + this := FederationUpdateDelegationResponse{} + return &this +} + +// NewFederationUpdateDelegationResponseWithDefaults instantiates a new FederationUpdateDelegationResponse 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 NewFederationUpdateDelegationResponseWithDefaults() *FederationUpdateDelegationResponse { + this := FederationUpdateDelegationResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationUpdateDelegationResponse) GetResult() FederationDelegation { + if o == nil || IsNil(o.Result) { + var ret FederationDelegation + 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 *FederationUpdateDelegationResponse) GetResultOk() (*FederationDelegation, 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 *FederationUpdateDelegationResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationDelegation and assigns it to the Result field. +func (o *FederationUpdateDelegationResponse) SetResult(v FederationDelegation) { + o.Result = &v +} + +func (o FederationUpdateDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationUpdateDelegationResponse) 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 *FederationUpdateDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varFederationUpdateDelegationResponse := _FederationUpdateDelegationResponse{} + + err = json.Unmarshal(data, &varFederationUpdateDelegationResponse) + + if err != nil { + return err + } + + *o = FederationUpdateDelegationResponse(varFederationUpdateDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationUpdateDelegationResponse struct { + value *FederationUpdateDelegationResponse + isSet bool +} + +func (v NullableFederationUpdateDelegationResponse) Get() *FederationUpdateDelegationResponse { + return v.value +} + +func (v *NullableFederationUpdateDelegationResponse) Set(val *FederationUpdateDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationUpdateDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationUpdateDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationUpdateDelegationResponse(val *FederationUpdateDelegationResponse) *NullableFederationUpdateDelegationResponse { + return &NullableFederationUpdateDelegationResponse{value: val, isSet: true} +} + +func (v NullableFederationUpdateDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationUpdateDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_update_federated_block_response.go b/ipamfederation/model_federation_update_federated_block_response.go new file mode 100644 index 0000000..5acf2ed --- /dev/null +++ b/ipamfederation/model_federation_update_federated_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationUpdateFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationUpdateFederatedBlockResponse{} + +// FederationUpdateFederatedBlockResponse The response format to update the __FederatedBlock__ object. +type FederationUpdateFederatedBlockResponse struct { + // The FederatedBlock object. + Result *FederationFederatedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationUpdateFederatedBlockResponse FederationUpdateFederatedBlockResponse + +// NewFederationUpdateFederatedBlockResponse instantiates a new FederationUpdateFederatedBlockResponse 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 NewFederationUpdateFederatedBlockResponse() *FederationUpdateFederatedBlockResponse { + this := FederationUpdateFederatedBlockResponse{} + return &this +} + +// NewFederationUpdateFederatedBlockResponseWithDefaults instantiates a new FederationUpdateFederatedBlockResponse 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 NewFederationUpdateFederatedBlockResponseWithDefaults() *FederationUpdateFederatedBlockResponse { + this := FederationUpdateFederatedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationUpdateFederatedBlockResponse) GetResult() FederationFederatedBlock { + if o == nil || IsNil(o.Result) { + var ret FederationFederatedBlock + 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 *FederationUpdateFederatedBlockResponse) GetResultOk() (*FederationFederatedBlock, 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 *FederationUpdateFederatedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationFederatedBlock and assigns it to the Result field. +func (o *FederationUpdateFederatedBlockResponse) SetResult(v FederationFederatedBlock) { + o.Result = &v +} + +func (o FederationUpdateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationUpdateFederatedBlockResponse) 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 *FederationUpdateFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationUpdateFederatedBlockResponse := _FederationUpdateFederatedBlockResponse{} + + err = json.Unmarshal(data, &varFederationUpdateFederatedBlockResponse) + + if err != nil { + return err + } + + *o = FederationUpdateFederatedBlockResponse(varFederationUpdateFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationUpdateFederatedBlockResponse struct { + value *FederationUpdateFederatedBlockResponse + isSet bool +} + +func (v NullableFederationUpdateFederatedBlockResponse) Get() *FederationUpdateFederatedBlockResponse { + return v.value +} + +func (v *NullableFederationUpdateFederatedBlockResponse) Set(val *FederationUpdateFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationUpdateFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationUpdateFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationUpdateFederatedBlockResponse(val *FederationUpdateFederatedBlockResponse) *NullableFederationUpdateFederatedBlockResponse { + return &NullableFederationUpdateFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationUpdateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationUpdateFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_update_federated_realm_response.go b/ipamfederation/model_federation_update_federated_realm_response.go new file mode 100644 index 0000000..54ff057 --- /dev/null +++ b/ipamfederation/model_federation_update_federated_realm_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationUpdateFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationUpdateFederatedRealmResponse{} + +// FederationUpdateFederatedRealmResponse The response format to update the __FederatedRealm__ object. +type FederationUpdateFederatedRealmResponse struct { + // The FederatedRealm object. + Result *FederationFederatedRealm `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationUpdateFederatedRealmResponse FederationUpdateFederatedRealmResponse + +// NewFederationUpdateFederatedRealmResponse instantiates a new FederationUpdateFederatedRealmResponse 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 NewFederationUpdateFederatedRealmResponse() *FederationUpdateFederatedRealmResponse { + this := FederationUpdateFederatedRealmResponse{} + return &this +} + +// NewFederationUpdateFederatedRealmResponseWithDefaults instantiates a new FederationUpdateFederatedRealmResponse 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 NewFederationUpdateFederatedRealmResponseWithDefaults() *FederationUpdateFederatedRealmResponse { + this := FederationUpdateFederatedRealmResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationUpdateFederatedRealmResponse) GetResult() FederationFederatedRealm { + if o == nil || IsNil(o.Result) { + var ret FederationFederatedRealm + 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 *FederationUpdateFederatedRealmResponse) GetResultOk() (*FederationFederatedRealm, 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 *FederationUpdateFederatedRealmResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationFederatedRealm and assigns it to the Result field. +func (o *FederationUpdateFederatedRealmResponse) SetResult(v FederationFederatedRealm) { + o.Result = &v +} + +func (o FederationUpdateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationUpdateFederatedRealmResponse) 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 *FederationUpdateFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varFederationUpdateFederatedRealmResponse := _FederationUpdateFederatedRealmResponse{} + + err = json.Unmarshal(data, &varFederationUpdateFederatedRealmResponse) + + if err != nil { + return err + } + + *o = FederationUpdateFederatedRealmResponse(varFederationUpdateFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationUpdateFederatedRealmResponse struct { + value *FederationUpdateFederatedRealmResponse + isSet bool +} + +func (v NullableFederationUpdateFederatedRealmResponse) Get() *FederationUpdateFederatedRealmResponse { + return v.value +} + +func (v *NullableFederationUpdateFederatedRealmResponse) Set(val *FederationUpdateFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationUpdateFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationUpdateFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationUpdateFederatedRealmResponse(val *FederationUpdateFederatedRealmResponse) *NullableFederationUpdateFederatedRealmResponse { + return &NullableFederationUpdateFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableFederationUpdateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationUpdateFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_update_overlapping_block_response.go b/ipamfederation/model_federation_update_overlapping_block_response.go new file mode 100644 index 0000000..d240bda --- /dev/null +++ b/ipamfederation/model_federation_update_overlapping_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationUpdateOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationUpdateOverlappingBlockResponse{} + +// FederationUpdateOverlappingBlockResponse The response format to update the __OverlappingBlock__ object. +type FederationUpdateOverlappingBlockResponse struct { + // The OverlappingBlock object. + Result *FederationOverlappingBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationUpdateOverlappingBlockResponse FederationUpdateOverlappingBlockResponse + +// NewFederationUpdateOverlappingBlockResponse instantiates a new FederationUpdateOverlappingBlockResponse 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 NewFederationUpdateOverlappingBlockResponse() *FederationUpdateOverlappingBlockResponse { + this := FederationUpdateOverlappingBlockResponse{} + return &this +} + +// NewFederationUpdateOverlappingBlockResponseWithDefaults instantiates a new FederationUpdateOverlappingBlockResponse 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 NewFederationUpdateOverlappingBlockResponseWithDefaults() *FederationUpdateOverlappingBlockResponse { + this := FederationUpdateOverlappingBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationUpdateOverlappingBlockResponse) GetResult() FederationOverlappingBlock { + if o == nil || IsNil(o.Result) { + var ret FederationOverlappingBlock + 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 *FederationUpdateOverlappingBlockResponse) GetResultOk() (*FederationOverlappingBlock, 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 *FederationUpdateOverlappingBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationOverlappingBlock and assigns it to the Result field. +func (o *FederationUpdateOverlappingBlockResponse) SetResult(v FederationOverlappingBlock) { + o.Result = &v +} + +func (o FederationUpdateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationUpdateOverlappingBlockResponse) 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 *FederationUpdateOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationUpdateOverlappingBlockResponse := _FederationUpdateOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varFederationUpdateOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = FederationUpdateOverlappingBlockResponse(varFederationUpdateOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationUpdateOverlappingBlockResponse struct { + value *FederationUpdateOverlappingBlockResponse + isSet bool +} + +func (v NullableFederationUpdateOverlappingBlockResponse) Get() *FederationUpdateOverlappingBlockResponse { + return v.value +} + +func (v *NullableFederationUpdateOverlappingBlockResponse) Set(val *FederationUpdateOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationUpdateOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationUpdateOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationUpdateOverlappingBlockResponse(val *FederationUpdateOverlappingBlockResponse) *NullableFederationUpdateOverlappingBlockResponse { + return &NullableFederationUpdateOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationUpdateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationUpdateOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_update_reserved_block_response.go b/ipamfederation/model_federation_update_reserved_block_response.go new file mode 100644 index 0000000..28dd23b --- /dev/null +++ b/ipamfederation/model_federation_update_reserved_block_response.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the FederationUpdateReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederationUpdateReservedBlockResponse{} + +// FederationUpdateReservedBlockResponse The response format to update the __ReservedBlock__ object. +type FederationUpdateReservedBlockResponse struct { + // The ReservedBlock object. + Result *FederationReservedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _FederationUpdateReservedBlockResponse FederationUpdateReservedBlockResponse + +// NewFederationUpdateReservedBlockResponse instantiates a new FederationUpdateReservedBlockResponse 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 NewFederationUpdateReservedBlockResponse() *FederationUpdateReservedBlockResponse { + this := FederationUpdateReservedBlockResponse{} + return &this +} + +// NewFederationUpdateReservedBlockResponseWithDefaults instantiates a new FederationUpdateReservedBlockResponse 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 NewFederationUpdateReservedBlockResponseWithDefaults() *FederationUpdateReservedBlockResponse { + this := FederationUpdateReservedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *FederationUpdateReservedBlockResponse) GetResult() FederationReservedBlock { + if o == nil || IsNil(o.Result) { + var ret FederationReservedBlock + 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 *FederationUpdateReservedBlockResponse) GetResultOk() (*FederationReservedBlock, 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 *FederationUpdateReservedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederationReservedBlock and assigns it to the Result field. +func (o *FederationUpdateReservedBlockResponse) SetResult(v FederationReservedBlock) { + o.Result = &v +} + +func (o FederationUpdateReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o FederationUpdateReservedBlockResponse) 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 *FederationUpdateReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varFederationUpdateReservedBlockResponse := _FederationUpdateReservedBlockResponse{} + + err = json.Unmarshal(data, &varFederationUpdateReservedBlockResponse) + + if err != nil { + return err + } + + *o = FederationUpdateReservedBlockResponse(varFederationUpdateReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableFederationUpdateReservedBlockResponse struct { + value *FederationUpdateReservedBlockResponse + isSet bool +} + +func (v NullableFederationUpdateReservedBlockResponse) Get() *FederationUpdateReservedBlockResponse { + return v.value +} + +func (v *NullableFederationUpdateReservedBlockResponse) Set(val *FederationUpdateReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableFederationUpdateReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableFederationUpdateReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFederationUpdateReservedBlockResponse(val *FederationUpdateReservedBlockResponse) *NullableFederationUpdateReservedBlockResponse { + return &NullableFederationUpdateReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableFederationUpdateReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFederationUpdateReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_health_config_status_code.go b/ipamfederation/model_health_config_status_code.go new file mode 100644 index 0000000..09cbfea --- /dev/null +++ b/ipamfederation/model_health_config_status_code.go @@ -0,0 +1,118 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" + "fmt" +) + +// HealthConfigStatusCode the model 'HealthConfigStatusCode' +type HealthConfigStatusCode string + +// List of HealthConfigStatusCode +const ( + HEALTHCONFIGSTATUSCODE_SUCCESS HealthConfigStatusCode = "StatusCode_SUCCESS" + HEALTHCONFIGSTATUSCODE_GENERAL_FAILURE HealthConfigStatusCode = "StatusCode_GENERAL_FAILURE" + HEALTHCONFIGSTATUSCODE_HASH_FAILURE HealthConfigStatusCode = "StatusCode_HASH_FAILURE" + HEALTHCONFIGSTATUSCODE_VALIDATION_FAILURE HealthConfigStatusCode = "StatusCode_VALIDATION_FAILURE" + HEALTHCONFIGSTATUSCODE_COPY_FAILURE HealthConfigStatusCode = "StatusCode_COPY_FAILURE" + HEALTHCONFIGSTATUSCODE_RELOAD_FAILIURE HealthConfigStatusCode = "StatusCode_RELOAD_FAILIURE" +) + +// All allowed values of HealthConfigStatusCode enum +var AllowedHealthConfigStatusCodeEnumValues = []HealthConfigStatusCode{ + "StatusCode_SUCCESS", + "StatusCode_GENERAL_FAILURE", + "StatusCode_HASH_FAILURE", + "StatusCode_VALIDATION_FAILURE", + "StatusCode_COPY_FAILURE", + "StatusCode_RELOAD_FAILIURE", +} + +func (v *HealthConfigStatusCode) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := HealthConfigStatusCode(value) + for _, existing := range AllowedHealthConfigStatusCodeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid HealthConfigStatusCode", value) +} + +// NewHealthConfigStatusCodeFromValue returns a pointer to a valid HealthConfigStatusCode +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewHealthConfigStatusCodeFromValue(v string) (*HealthConfigStatusCode, error) { + ev := HealthConfigStatusCode(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for HealthConfigStatusCode: valid values are %v", v, AllowedHealthConfigStatusCodeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v HealthConfigStatusCode) IsValid() bool { + for _, existing := range AllowedHealthConfigStatusCodeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to HealthConfigStatusCode value +func (v HealthConfigStatusCode) Ptr() *HealthConfigStatusCode { + return &v +} + +type NullableHealthConfigStatusCode struct { + value *HealthConfigStatusCode + isSet bool +} + +func (v NullableHealthConfigStatusCode) Get() *HealthConfigStatusCode { + return v.value +} + +func (v *NullableHealthConfigStatusCode) Set(val *HealthConfigStatusCode) { + v.value = val + v.isSet = true +} + +func (v NullableHealthConfigStatusCode) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthConfigStatusCode) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthConfigStatusCode(val *HealthConfigStatusCode) *NullableHealthConfigStatusCode { + return &NullableHealthConfigStatusCode{value: val, isSet: true} +} + +func (v NullableHealthConfigStatusCode) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthConfigStatusCode) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_protobuf_field_mask.go b/ipamfederation/model_protobuf_field_mask.go new file mode 100644 index 0000000..13c4b2d --- /dev/null +++ b/ipamfederation/model_protobuf_field_mask.go @@ -0,0 +1,154 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +import ( + "encoding/json" +) + +// checks if the ProtobufFieldMask type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProtobufFieldMask{} + +// ProtobufFieldMask paths: \"f.a\" paths: \"f.b.d\" Here `f` represents a field in some root message, `a` and `b` fields in the message found in `f`, and `d` a field found in the message in `f.b`. Field masks are used to specify a subset of fields that should be returned by a get operation or modified by an update operation. Field masks also have a custom JSON encoding (see below). # Field Masks in Projections When used in the context of a projection, a response message or sub-message is filtered by the API to only contain those fields as specified in the mask. For example, if the mask in the previous example is applied to a response message as follows: f { a : 22 b { d : 1 x : 2 } y : 13 } z: 8 The result will not contain specific values for fields x,y and z (their value will be set to the default, and omitted in proto text output): f { a : 22 b { d : 1 } } A repeated field is not allowed except at the last position of a paths string. If a FieldMask object is not present in a get operation, the operation applies to all fields (as if a FieldMask of all fields had been specified). Note that a field mask does not necessarily apply to the top-level response message. In case of a REST get operation, the field mask applies directly to the response, but in case of a REST list operation, the mask instead applies to each individual message in the returned resource list. In case of a REST custom method, other definitions may be used. Where the mask applies will be clearly documented together with its declaration in the API. In any case, the effect on the returned resource/resources is required behavior for APIs. # Field Masks in Update Operations A field mask in update operations specifies which fields of the targeted resource are going to be updated. The API is required to only change the values of the fields as specified in the mask and leave the others untouched. If a resource is passed in to describe the updated values, the API ignores the values of all fields not covered by the mask. If a repeated field is specified for an update operation, the existing repeated values in the target resource will be overwritten by the new values. Note that a repeated field is only allowed in the last position of a `paths` string. If a sub-message is specified in the last position of the field mask for an update operation, then the existing sub-message in the target resource is overwritten. Given the target message: f { b { d : 1 x : 2 } c : 1 } And an update message: f { b { d : 10 } } then if the field mask is: paths: \"f.b\" then the result will be: f { b { d : 10 } c : 1 } However, if the update mask was: paths: \"f.b.d\" then the result would be: f { b { d : 10 x : 2 } c : 1 } In order to reset a field's value to the default, the field must be in the mask and set to the default value in the provided resource. Hence, in order to reset all fields of a resource, provide a default instance of the resource and set all fields in the mask, or do not provide a mask as described below. If a field mask is not present on update, the operation applies to all fields (as if a field mask of all fields has been specified). Note that in the presence of schema evolution, this may mean that fields the client does not know and has therefore not filled into the request will be reset to their default. If this is unwanted behavior, a specific service may require a client to always specify a field mask, producing an error if not. As with get operations, the location of the resource which describes the updated values in the request message depends on the operation kind. In any case, the effect of the field mask is required to be honored by the API. ## Considerations for HTTP REST The HTTP kind of an update operation which uses a field mask must be set to PATCH instead of PUT in order to satisfy HTTP semantics (PUT must only be used for full updates). # JSON Encoding of Field Masks In JSON, a field mask is encoded as a single string where paths are separated by a comma. Fields name in each path are converted to/from lower-camel naming conventions. As an example, consider the following message declarations: message Profile { User user = 1; Photo photo = 2; } message User { string display_name = 1; string address = 2; } In proto a field mask for `Profile` may look as such: mask { paths: \"user.display_name\" paths: \"photo\" } In JSON, the same mask is represented as below: { mask: \"user.displayName,photo\" } # Field Masks and Oneof Fields Field masks treat fields in oneofs just as regular fields. Consider the following message: message SampleMessage { oneof test_oneof { string name = 4; SubMessage sub_message = 9; } } The field mask can be: mask { paths: \"name\" } Or: mask { paths: \"sub_message\" } Note that oneof type names (\"test_oneof\" in this case) cannot be used in paths. ## Field Mask Verification The implementation of the all the API methods, which have any FieldMask type field in the request, should verify the included field paths, and return `INVALID_ARGUMENT` error if any path is duplicated or unmappable. +type ProtobufFieldMask struct { + // The set of field mask paths. + Paths []string `json:"paths,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ProtobufFieldMask ProtobufFieldMask + +// NewProtobufFieldMask instantiates a new ProtobufFieldMask 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 NewProtobufFieldMask() *ProtobufFieldMask { + this := ProtobufFieldMask{} + return &this +} + +// NewProtobufFieldMaskWithDefaults instantiates a new ProtobufFieldMask 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 NewProtobufFieldMaskWithDefaults() *ProtobufFieldMask { + this := ProtobufFieldMask{} + return &this +} + +// GetPaths returns the Paths field value if set, zero value otherwise. +func (o *ProtobufFieldMask) GetPaths() []string { + if o == nil || IsNil(o.Paths) { + var ret []string + return ret + } + return o.Paths +} + +// GetPathsOk returns a tuple with the Paths field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProtobufFieldMask) GetPathsOk() ([]string, bool) { + if o == nil || IsNil(o.Paths) { + return nil, false + } + return o.Paths, true +} + +// HasPaths returns a boolean if a field has been set. +func (o *ProtobufFieldMask) HasPaths() bool { + if o != nil && !IsNil(o.Paths) { + return true + } + + return false +} + +// SetPaths gets a reference to the given []string and assigns it to the Paths field. +func (o *ProtobufFieldMask) SetPaths(v []string) { + o.Paths = v +} + +func (o ProtobufFieldMask) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProtobufFieldMask) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Paths) { + toSerialize["paths"] = o.Paths + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ProtobufFieldMask) UnmarshalJSON(data []byte) (err error) { + varProtobufFieldMask := _ProtobufFieldMask{} + + err = json.Unmarshal(data, &varProtobufFieldMask) + + if err != nil { + return err + } + + *o = ProtobufFieldMask(varProtobufFieldMask) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "paths") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableProtobufFieldMask struct { + value *ProtobufFieldMask + isSet bool +} + +func (v NullableProtobufFieldMask) Get() *ProtobufFieldMask { + return v.value +} + +func (v *NullableProtobufFieldMask) Set(val *ProtobufFieldMask) { + v.value = val + v.isSet = true +} + +func (v NullableProtobufFieldMask) IsSet() bool { + return v.isSet +} + +func (v *NullableProtobufFieldMask) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProtobufFieldMask(val *ProtobufFieldMask) *NullableProtobufFieldMask { + return &NullableProtobufFieldMask{value: val, isSet: true} +} + +func (v NullableProtobufFieldMask) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProtobufFieldMask) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/test/api_bulk_test.go b/ipamfederation/test/api_bulk_test.go new file mode 100644 index 0000000..4338b10 --- /dev/null +++ b/ipamfederation/test/api_bulk_test.go @@ -0,0 +1,38 @@ +/* +IPAM Federation API + +Testing BulkAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestBulkAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test BulkAPIService DelegationbulkDelegationBulk", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BulkAPI.DelegationbulkDelegationBulk(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_config_gen_test.go b/ipamfederation/test/api_config_gen_test.go new file mode 100644 index 0000000..3225f3d --- /dev/null +++ b/ipamfederation/test/api_config_gen_test.go @@ -0,0 +1,52 @@ +/* +IPAM Federation API + +Testing ConfigGenAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestConfigGenAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test ConfigGenAPIService Fetch", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var ophid string + + resp, httpRes, err := apiClient.ConfigGenAPI.Fetch(context.Background(), ophid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ConfigGenAPIService UpdateConfigStatus", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ConfigGenAPI.UpdateConfigStatus(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_delegation_test.go b/ipamfederation/test/api_delegation_test.go new file mode 100644 index 0000000..f3e1ae8 --- /dev/null +++ b/ipamfederation/test/api_delegation_test.go @@ -0,0 +1,114 @@ +/* +IPAM Federation API + +Testing DelegationAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestDelegationAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test DelegationAPIService Create", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DelegationAPI.Create(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DelegationAPIService Delete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.DelegationAPI.Delete(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DelegationAPIService DeleteWithoutId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.DelegationAPI.DeleteWithoutId(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DelegationAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DelegationAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DelegationAPIService Read", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.DelegationAPI.Read(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DelegationAPIService Update", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.DelegationAPI.Update(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test DelegationAPIService bulkDelegationBulk", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DelegationAPI.bulkDelegationBulk(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_federated_block_test.go b/ipamfederation/test/api_federated_block_test.go new file mode 100644 index 0000000..0f7714f --- /dev/null +++ b/ipamfederation/test/api_federated_block_test.go @@ -0,0 +1,91 @@ +/* +IPAM Federation API + +Testing FederatedBlockAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestFederatedBlockAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test FederatedBlockAPIService Create", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.FederatedBlockAPI.Create(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedBlockAPIService Delete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.FederatedBlockAPI.Delete(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedBlockAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.FederatedBlockAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedBlockAPIService Read", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.FederatedBlockAPI.Read(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedBlockAPIService Update", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.FederatedBlockAPI.Update(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_federated_realm_test.go b/ipamfederation/test/api_federated_realm_test.go new file mode 100644 index 0000000..846a899 --- /dev/null +++ b/ipamfederation/test/api_federated_realm_test.go @@ -0,0 +1,91 @@ +/* +IPAM Federation API + +Testing FederatedRealmAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestFederatedRealmAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test FederatedRealmAPIService Create", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.FederatedRealmAPI.Create(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedRealmAPIService Delete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.FederatedRealmAPI.Delete(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedRealmAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.FederatedRealmAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedRealmAPIService Read", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.FederatedRealmAPI.Read(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test FederatedRealmAPIService Update", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.FederatedRealmAPI.Update(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_next_available_delegation_test.go b/ipamfederation/test/api_next_available_delegation_test.go new file mode 100644 index 0000000..47aec51 --- /dev/null +++ b/ipamfederation/test/api_next_available_delegation_test.go @@ -0,0 +1,38 @@ +/* +IPAM Federation API + +Testing NextAvailableDelegationAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestNextAvailableDelegationAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test NextAvailableDelegationAPIService GetNextAvailableDelegation", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NextAvailableDelegationAPI.GetNextAvailableDelegation(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_next_available_federated_block_test.go b/ipamfederation/test/api_next_available_federated_block_test.go new file mode 100644 index 0000000..6bdd6be --- /dev/null +++ b/ipamfederation/test/api_next_available_federated_block_test.go @@ -0,0 +1,82 @@ +/* +IPAM Federation API + +Testing NextAvailableFederatedBlockAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestNextAvailableFederatedBlockAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test NextAvailableFederatedBlockAPIService CreateNextAvailableFederatedBlocks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableFederatedBlocks(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NextAvailableFederatedBlockAPIService CreateNextAvailableOverlappingBlocks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableOverlappingBlocks(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NextAvailableFederatedBlockAPIService CreateNextAvailableReservedBlocks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableReservedBlocks(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NextAvailableFederatedBlockAPIService ListNextAvailableFederatedBlocks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.NextAvailableFederatedBlockAPI.ListNextAvailableFederatedBlocks(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_next_available_overlapping_block_test.go b/ipamfederation/test/api_next_available_overlapping_block_test.go new file mode 100644 index 0000000..b856b70 --- /dev/null +++ b/ipamfederation/test/api_next_available_overlapping_block_test.go @@ -0,0 +1,40 @@ +/* +IPAM Federation API + +Testing NextAvailableOverlappingBlockAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestNextAvailableOverlappingBlockAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test NextAvailableOverlappingBlockAPIService ListNextAvailableOverlappingBlocks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.NextAvailableOverlappingBlockAPI.ListNextAvailableOverlappingBlocks(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_next_available_reserved_block_test.go b/ipamfederation/test/api_next_available_reserved_block_test.go new file mode 100644 index 0000000..1c872df --- /dev/null +++ b/ipamfederation/test/api_next_available_reserved_block_test.go @@ -0,0 +1,40 @@ +/* +IPAM Federation API + +Testing NextAvailableReservedBlockAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestNextAvailableReservedBlockAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test NextAvailableReservedBlockAPIService ListNextAvailableReservedBlocks", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.NextAvailableReservedBlockAPI.ListNextAvailableReservedBlocks(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_overlapping_block_test.go b/ipamfederation/test/api_overlapping_block_test.go new file mode 100644 index 0000000..72051f3 --- /dev/null +++ b/ipamfederation/test/api_overlapping_block_test.go @@ -0,0 +1,91 @@ +/* +IPAM Federation API + +Testing OverlappingBlockAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestOverlappingBlockAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test OverlappingBlockAPIService Create", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OverlappingBlockAPI.Create(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OverlappingBlockAPIService Delete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.OverlappingBlockAPI.Delete(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OverlappingBlockAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OverlappingBlockAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OverlappingBlockAPIService Read", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OverlappingBlockAPI.Read(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OverlappingBlockAPIService Update", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OverlappingBlockAPI.Update(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/test/api_reserved_block_test.go b/ipamfederation/test/api_reserved_block_test.go new file mode 100644 index 0000000..555e2df --- /dev/null +++ b/ipamfederation/test/api_reserved_block_test.go @@ -0,0 +1,91 @@ +/* +IPAM Federation API + +Testing ReservedBlockAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package ipamfederation + +import ( + "context" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + + "github.com/infobloxopen/bloxone-go-client/ipamfederation" +) + +func TestReservedBlockAPIService(t *testing.T) { + + apiClient := ipamfederation.NewAPIClient() + + t.Run("Test ReservedBlockAPIService Create", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReservedBlockAPI.Create(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReservedBlockAPIService Delete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.ReservedBlockAPI.Delete(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReservedBlockAPIService List", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ReservedBlockAPI.List(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReservedBlockAPIService Read", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.ReservedBlockAPI.Read(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReservedBlockAPIService Update", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.ReservedBlockAPI.Update(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/ipamfederation/utils.go b/ipamfederation/utils.go new file mode 100644 index 0000000..6118b63 --- /dev/null +++ b/ipamfederation/utils.go @@ -0,0 +1,347 @@ +/* +IPAM Federation API + +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. + +API version: v1 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package ipamfederation + +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) +}