From 14d591b3e0168d3f9d3f9915b7050cdb8e3f0e1b Mon Sep 17 00:00:00 2001 From: Ujjwal Nasra Date: Fri, 16 Aug 2024 17:55:36 +0530 Subject: [PATCH 1/6] Changes --- ipamfederation/.openapi-generator-ignore | 23 + ipamfederation/.openapi-generator/FILES | 130 + ipamfederation/.openapi-generator/VERSION | 1 + ipamfederation/README.md | 193 ++ ipamfederation/api/openapi.yaml | 2950 +++++++++++++++++ ipamfederation/api_bulk.go | 144 + ipamfederation/api_config_gen.go | 248 ++ ipamfederation/api_delegation.go | 900 +++++ ipamfederation/api_federated_block.go | 686 ++++ ipamfederation/api_federated_realm.go | 684 ++++ .../api_next_available_delegation.go | 146 + .../api_next_available_federated_block.go | 553 +++ .../api_next_available_overlapping_block.go | 181 + .../api_next_available_reserved_block.go | 181 + ipamfederation/api_overlapping_block.go | 686 ++++ ipamfederation/api_reserved_block.go | 686 ++++ ipamfederation/client.go | 70 + ipamfederation/docs/BulkAPI.md | 75 + ipamfederation/docs/ConfigGenAPI.md | 141 + ipamfederation/docs/DelegationAPI.md | 486 +++ ipamfederation/docs/FederatedBlockAPI.md | 359 ++ ipamfederation/docs/FederatedRealmAPI.md | 359 ++ ipamfederation/docs/FederationAllocation.md | 134 + ipamfederation/docs/FederationConfigObject.md | 108 + .../FederationCreateDelegationResponse.md | 56 + .../FederationCreateFederatedBlockResponse.md | 56 + .../FederationCreateFederatedRealmResponse.md | 56 + ...eateNextAvailableFederatedBlockResponse.md | 56 + ...teNextAvailableOverlappingBlockResponse.md | 56 + ...reateNextAvailableReservedBlockResponse.md | 56 + ...ederationCreateOverlappingBlockResponse.md | 56 + .../FederationCreateReservedBlockResponse.md | 56 + ipamfederation/docs/FederationDelegation.md | 332 ++ .../docs/FederationDelegationBulkItem.md | 82 + .../docs/FederationDelegationBulkRequest.md | 82 + .../docs/FederationDelegationBulkResponse.md | 56 + .../docs/FederationFederatedBlock.md | 332 ++ .../docs/FederationFederatedRealm.md | 207 ++ .../FederationGenerateConfigBundleResponse.md | 56 + ...rationGetNextAvailableDelegationRequest.md | 82 + ...ationGetNextAvailableDelegationResponse.md | 56 + .../FederationHealthCheckConfigResponse.md | 56 + ipamfederation/docs/FederationHealthConfig.md | 160 + .../docs/FederationListDelegationResponse.md | 56 + .../FederationListFederatedBlockResponse.md | 56 + .../FederationListFederatedRealmResponse.md | 56 + ...ListNextAvailableFederatedBlockResponse.md | 56 + ...stNextAvailableOverlappingBlockResponse.md | 56 + ...nListNextAvailableReservedBlockResponse.md | 56 + .../FederationListOverlappingBlockResponse.md | 56 + .../FederationListReservedBlockResponse.md | 56 + .../FederationNextAvailableBlockRequest.md | 186 ++ ...erationNextAvailableDelegationArguments.md | 160 + ...rationNextAvailableDelegationProperties.md | 108 + .../docs/FederationOverlappingBlock.md | 306 ++ .../docs/FederationReadDelegationResponse.md | 56 + .../FederationReadFederatedBlockResponse.md | 56 + .../FederationReadFederatedRealmResponse.md | 56 + .../FederationReadOverlappingBlockResponse.md | 56 + .../FederationReadReservedBlockResponse.md | 56 + .../docs/FederationReservedBlock.md | 306 ++ .../FederationUpdateDelegationResponse.md | 56 + .../FederationUpdateFederatedBlockResponse.md | 56 + .../FederationUpdateFederatedRealmResponse.md | 56 + ...ederationUpdateOverlappingBlockResponse.md | 56 + .../FederationUpdateReservedBlockResponse.md | 56 + ipamfederation/docs/HealthConfigStatusCode.md | 21 + .../docs/NextAvailableDelegationAPI.md | 75 + .../docs/NextAvailableFederatedBlockAPI.md | 298 ++ .../docs/NextAvailableOverlappingBlockAPI.md | 82 + .../docs/NextAvailableReservedBlockAPI.md | 82 + ipamfederation/docs/OverlappingBlockAPI.md | 359 ++ ipamfederation/docs/ProtobufFieldMask.md | 56 + ipamfederation/docs/ReservedBlockAPI.md | 359 ++ ipamfederation/model_federation_allocation.go | 268 ++ .../model_federation_config_object.go | 227 ++ ...l_federation_create_delegation_response.go | 154 + ...eration_create_federated_block_response.go | 154 + ...eration_create_federated_realm_response.go | 154 + ...next_available_federated_block_response.go | 153 + ...xt_available_overlapping_block_response.go | 153 + ..._next_available_reserved_block_response.go | 153 + ...ation_create_overlapping_block_response.go | 154 + ...deration_create_reserved_block_response.go | 154 + ipamfederation/model_federation_delegation.go | 578 ++++ .../model_federation_delegation_bulk_item.go | 192 ++ ...odel_federation_delegation_bulk_request.go | 191 ++ ...del_federation_delegation_bulk_response.go | 154 + .../model_federation_federated_block.go | 578 ++++ .../model_federation_federated_realm.go | 396 +++ ...eration_generate_config_bundle_response.go | 153 + ...n_get_next_available_delegation_request.go | 192 ++ ..._get_next_available_delegation_response.go | 153 + ...federation_health_check_config_response.go | 153 + .../model_federation_health_config.go | 305 ++ ...del_federation_list_delegation_response.go | 154 + ...ederation_list_federated_block_response.go | 154 + ...ederation_list_federated_realm_response.go | 154 + ...next_available_federated_block_response.go | 153 + ...xt_available_overlapping_block_response.go | 153 + ..._next_available_reserved_block_response.go | 153 + ...eration_list_overlapping_block_response.go | 154 + ...federation_list_reserved_block_response.go | 154 + ...federation_next_available_block_request.go | 344 ++ ...ion_next_available_delegation_arguments.go | 306 ++ ...on_next_available_delegation_properties.go | 230 ++ .../model_federation_overlapping_block.go | 540 +++ ...del_federation_read_delegation_response.go | 154 + ...ederation_read_federated_block_response.go | 154 + ...ederation_read_federated_realm_response.go | 154 + ...eration_read_overlapping_block_response.go | 154 + ...federation_read_reserved_block_response.go | 154 + .../model_federation_reserved_block.go | 540 +++ ...l_federation_update_delegation_response.go | 154 + ...eration_update_federated_block_response.go | 154 + ...eration_update_federated_realm_response.go | 154 + ...ation_update_overlapping_block_response.go | 154 + ...deration_update_reserved_block_response.go | 154 + .../model_health_config_status_code.go | 118 + ipamfederation/model_protobuf_field_mask.go | 154 + ipamfederation/test/api_bulk_test.go | 38 + ipamfederation/test/api_config_gen_test.go | 52 + ipamfederation/test/api_delegation_test.go | 114 + .../test/api_federated_block_test.go | 91 + .../test/api_federated_realm_test.go | 91 + .../api_next_available_delegation_test.go | 38 + ...api_next_available_federated_block_test.go | 82 + ...i_next_available_overlapping_block_test.go | 40 + .../api_next_available_reserved_block_test.go | 40 + .../test/api_overlapping_block_test.go | 91 + .../test/api_reserved_block_test.go | 91 + ipamfederation/utils.go | 347 ++ 132 files changed, 26364 insertions(+) create mode 100644 ipamfederation/.openapi-generator-ignore create mode 100644 ipamfederation/.openapi-generator/FILES create mode 100644 ipamfederation/.openapi-generator/VERSION create mode 100644 ipamfederation/README.md create mode 100644 ipamfederation/api/openapi.yaml create mode 100644 ipamfederation/api_bulk.go create mode 100644 ipamfederation/api_config_gen.go create mode 100644 ipamfederation/api_delegation.go create mode 100644 ipamfederation/api_federated_block.go create mode 100644 ipamfederation/api_federated_realm.go create mode 100644 ipamfederation/api_next_available_delegation.go create mode 100644 ipamfederation/api_next_available_federated_block.go create mode 100644 ipamfederation/api_next_available_overlapping_block.go create mode 100644 ipamfederation/api_next_available_reserved_block.go create mode 100644 ipamfederation/api_overlapping_block.go create mode 100644 ipamfederation/api_reserved_block.go create mode 100644 ipamfederation/client.go create mode 100644 ipamfederation/docs/BulkAPI.md create mode 100644 ipamfederation/docs/ConfigGenAPI.md create mode 100644 ipamfederation/docs/DelegationAPI.md create mode 100644 ipamfederation/docs/FederatedBlockAPI.md create mode 100644 ipamfederation/docs/FederatedRealmAPI.md create mode 100644 ipamfederation/docs/FederationAllocation.md create mode 100644 ipamfederation/docs/FederationConfigObject.md create mode 100644 ipamfederation/docs/FederationCreateDelegationResponse.md create mode 100644 ipamfederation/docs/FederationCreateFederatedBlockResponse.md create mode 100644 ipamfederation/docs/FederationCreateFederatedRealmResponse.md create mode 100644 ipamfederation/docs/FederationCreateNextAvailableFederatedBlockResponse.md create mode 100644 ipamfederation/docs/FederationCreateNextAvailableOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/FederationCreateNextAvailableReservedBlockResponse.md create mode 100644 ipamfederation/docs/FederationCreateOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/FederationCreateReservedBlockResponse.md create mode 100644 ipamfederation/docs/FederationDelegation.md create mode 100644 ipamfederation/docs/FederationDelegationBulkItem.md create mode 100644 ipamfederation/docs/FederationDelegationBulkRequest.md create mode 100644 ipamfederation/docs/FederationDelegationBulkResponse.md create mode 100644 ipamfederation/docs/FederationFederatedBlock.md create mode 100644 ipamfederation/docs/FederationFederatedRealm.md create mode 100644 ipamfederation/docs/FederationGenerateConfigBundleResponse.md create mode 100644 ipamfederation/docs/FederationGetNextAvailableDelegationRequest.md create mode 100644 ipamfederation/docs/FederationGetNextAvailableDelegationResponse.md create mode 100644 ipamfederation/docs/FederationHealthCheckConfigResponse.md create mode 100644 ipamfederation/docs/FederationHealthConfig.md create mode 100644 ipamfederation/docs/FederationListDelegationResponse.md create mode 100644 ipamfederation/docs/FederationListFederatedBlockResponse.md create mode 100644 ipamfederation/docs/FederationListFederatedRealmResponse.md create mode 100644 ipamfederation/docs/FederationListNextAvailableFederatedBlockResponse.md create mode 100644 ipamfederation/docs/FederationListNextAvailableOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/FederationListNextAvailableReservedBlockResponse.md create mode 100644 ipamfederation/docs/FederationListOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/FederationListReservedBlockResponse.md create mode 100644 ipamfederation/docs/FederationNextAvailableBlockRequest.md create mode 100644 ipamfederation/docs/FederationNextAvailableDelegationArguments.md create mode 100644 ipamfederation/docs/FederationNextAvailableDelegationProperties.md create mode 100644 ipamfederation/docs/FederationOverlappingBlock.md create mode 100644 ipamfederation/docs/FederationReadDelegationResponse.md create mode 100644 ipamfederation/docs/FederationReadFederatedBlockResponse.md create mode 100644 ipamfederation/docs/FederationReadFederatedRealmResponse.md create mode 100644 ipamfederation/docs/FederationReadOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/FederationReadReservedBlockResponse.md create mode 100644 ipamfederation/docs/FederationReservedBlock.md create mode 100644 ipamfederation/docs/FederationUpdateDelegationResponse.md create mode 100644 ipamfederation/docs/FederationUpdateFederatedBlockResponse.md create mode 100644 ipamfederation/docs/FederationUpdateFederatedRealmResponse.md create mode 100644 ipamfederation/docs/FederationUpdateOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/FederationUpdateReservedBlockResponse.md create mode 100644 ipamfederation/docs/HealthConfigStatusCode.md create mode 100644 ipamfederation/docs/NextAvailableDelegationAPI.md create mode 100644 ipamfederation/docs/NextAvailableFederatedBlockAPI.md create mode 100644 ipamfederation/docs/NextAvailableOverlappingBlockAPI.md create mode 100644 ipamfederation/docs/NextAvailableReservedBlockAPI.md create mode 100644 ipamfederation/docs/OverlappingBlockAPI.md create mode 100644 ipamfederation/docs/ProtobufFieldMask.md create mode 100644 ipamfederation/docs/ReservedBlockAPI.md create mode 100644 ipamfederation/model_federation_allocation.go create mode 100644 ipamfederation/model_federation_config_object.go create mode 100644 ipamfederation/model_federation_create_delegation_response.go create mode 100644 ipamfederation/model_federation_create_federated_block_response.go create mode 100644 ipamfederation/model_federation_create_federated_realm_response.go create mode 100644 ipamfederation/model_federation_create_next_available_federated_block_response.go create mode 100644 ipamfederation/model_federation_create_next_available_overlapping_block_response.go create mode 100644 ipamfederation/model_federation_create_next_available_reserved_block_response.go create mode 100644 ipamfederation/model_federation_create_overlapping_block_response.go create mode 100644 ipamfederation/model_federation_create_reserved_block_response.go create mode 100644 ipamfederation/model_federation_delegation.go create mode 100644 ipamfederation/model_federation_delegation_bulk_item.go create mode 100644 ipamfederation/model_federation_delegation_bulk_request.go create mode 100644 ipamfederation/model_federation_delegation_bulk_response.go create mode 100644 ipamfederation/model_federation_federated_block.go create mode 100644 ipamfederation/model_federation_federated_realm.go create mode 100644 ipamfederation/model_federation_generate_config_bundle_response.go create mode 100644 ipamfederation/model_federation_get_next_available_delegation_request.go create mode 100644 ipamfederation/model_federation_get_next_available_delegation_response.go create mode 100644 ipamfederation/model_federation_health_check_config_response.go create mode 100644 ipamfederation/model_federation_health_config.go create mode 100644 ipamfederation/model_federation_list_delegation_response.go create mode 100644 ipamfederation/model_federation_list_federated_block_response.go create mode 100644 ipamfederation/model_federation_list_federated_realm_response.go create mode 100644 ipamfederation/model_federation_list_next_available_federated_block_response.go create mode 100644 ipamfederation/model_federation_list_next_available_overlapping_block_response.go create mode 100644 ipamfederation/model_federation_list_next_available_reserved_block_response.go create mode 100644 ipamfederation/model_federation_list_overlapping_block_response.go create mode 100644 ipamfederation/model_federation_list_reserved_block_response.go create mode 100644 ipamfederation/model_federation_next_available_block_request.go create mode 100644 ipamfederation/model_federation_next_available_delegation_arguments.go create mode 100644 ipamfederation/model_federation_next_available_delegation_properties.go create mode 100644 ipamfederation/model_federation_overlapping_block.go create mode 100644 ipamfederation/model_federation_read_delegation_response.go create mode 100644 ipamfederation/model_federation_read_federated_block_response.go create mode 100644 ipamfederation/model_federation_read_federated_realm_response.go create mode 100644 ipamfederation/model_federation_read_overlapping_block_response.go create mode 100644 ipamfederation/model_federation_read_reserved_block_response.go create mode 100644 ipamfederation/model_federation_reserved_block.go create mode 100644 ipamfederation/model_federation_update_delegation_response.go create mode 100644 ipamfederation/model_federation_update_federated_block_response.go create mode 100644 ipamfederation/model_federation_update_federated_realm_response.go create mode 100644 ipamfederation/model_federation_update_overlapping_block_response.go create mode 100644 ipamfederation/model_federation_update_reserved_block_response.go create mode 100644 ipamfederation/model_health_config_status_code.go create mode 100644 ipamfederation/model_protobuf_field_mask.go create mode 100644 ipamfederation/test/api_bulk_test.go create mode 100644 ipamfederation/test/api_config_gen_test.go create mode 100644 ipamfederation/test/api_delegation_test.go create mode 100644 ipamfederation/test/api_federated_block_test.go create mode 100644 ipamfederation/test/api_federated_realm_test.go create mode 100644 ipamfederation/test/api_next_available_delegation_test.go create mode 100644 ipamfederation/test/api_next_available_federated_block_test.go create mode 100644 ipamfederation/test/api_next_available_overlapping_block_test.go create mode 100644 ipamfederation/test/api_next_available_reserved_block_test.go create mode 100644 ipamfederation/test/api_overlapping_block_test.go create mode 100644 ipamfederation/test/api_reserved_block_test.go create mode 100644 ipamfederation/utils.go 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..a9e8e0c --- /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..e7eaade --- /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) +} From 7a2800b476a474a1db898848864329c5b3bf4ee1 Mon Sep 17 00:00:00 2001 From: Ujjwal Nasra Date: Tue, 20 Aug 2024 00:55:14 +0530 Subject: [PATCH 2/6] Fixed Delegation Bulk Naming --- ipamfederation/README.md | 4 +- ipamfederation/api_bulk.go | 30 +-- ipamfederation/api_delegation.go | 232 ++++++++++----------- ipamfederation/client.go | 22 +- ipamfederation/docs/BulkAPI.md | 16 +- ipamfederation/docs/DelegationAPI.md | 134 ++++++------ ipamfederation/test/api_bulk_test.go | 2 +- ipamfederation/test/api_delegation_test.go | 2 +- ipamfederation/utils.go | 2 +- 9 files changed, 222 insertions(+), 222 deletions(-) diff --git a/ipamfederation/README.md b/ipamfederation/README.md index 2da6112..4e700ef 100644 --- a/ipamfederation/README.md +++ b/ipamfederation/README.md @@ -87,16 +87,16 @@ 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. +*BulkAPI* | [**DelegationBulk**](docs/BulkAPI.md#delegationbulk) | **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* | [**Bulk**](docs/DelegationAPI.md#bulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. *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. diff --git a/ipamfederation/api_bulk.go b/ipamfederation/api_bulk.go index 2acedd8..ea1db91 100644 --- a/ipamfederation/api_bulk.go +++ b/ipamfederation/api_bulk.go @@ -22,48 +22,48 @@ import ( type BulkAPI interface { /* - DelegationbulkDelegationBulk Execute multiple operations on delegation objects. + DelegationBulk 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 + @return BulkAPIDelegationBulkRequest */ - DelegationbulkDelegationBulk(ctx context.Context) BulkAPIDelegationbulkDelegationBulkRequest + DelegationBulk(ctx context.Context) BulkAPIDelegationBulkRequest - // DelegationbulkDelegationBulkExecute executes the request + // DelegationBulkExecute executes the request // @return FederationDelegationBulkResponse - DelegationbulkDelegationBulkExecute(r BulkAPIDelegationbulkDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) + DelegationBulkExecute(r BulkAPIDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) } // BulkAPIService BulkAPI service type BulkAPIService internal.Service -type BulkAPIDelegationbulkDelegationBulkRequest struct { +type BulkAPIDelegationBulkRequest struct { ctx context.Context ApiService BulkAPI body *FederationDelegationBulkRequest } -func (r BulkAPIDelegationbulkDelegationBulkRequest) Body(body FederationDelegationBulkRequest) BulkAPIDelegationbulkDelegationBulkRequest { +func (r BulkAPIDelegationBulkRequest) Body(body FederationDelegationBulkRequest) BulkAPIDelegationBulkRequest { r.body = &body return r } -func (r BulkAPIDelegationbulkDelegationBulkRequest) Execute() (*FederationDelegationBulkResponse, *http.Response, error) { - return r.ApiService.DelegationbulkDelegationBulkExecute(r) +func (r BulkAPIDelegationBulkRequest) Execute() (*FederationDelegationBulkResponse, *http.Response, error) { + return r.ApiService.DelegationBulkExecute(r) } /* -DelegationbulkDelegationBulk Execute multiple operations on delegation objects. +DelegationBulk 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 + @return BulkAPIDelegationBulkRequest */ -func (a *BulkAPIService) DelegationbulkDelegationBulk(ctx context.Context) BulkAPIDelegationbulkDelegationBulkRequest { - return BulkAPIDelegationbulkDelegationBulkRequest{ +func (a *BulkAPIService) DelegationBulk(ctx context.Context) BulkAPIDelegationBulkRequest { + return BulkAPIDelegationBulkRequest{ ApiService: a, ctx: ctx, } @@ -72,7 +72,7 @@ func (a *BulkAPIService) DelegationbulkDelegationBulk(ctx context.Context) BulkA // Execute executes the request // // @return FederationDelegationBulkResponse -func (a *BulkAPIService) DelegationbulkDelegationBulkExecute(r BulkAPIDelegationbulkDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) { +func (a *BulkAPIService) DelegationBulkExecute(r BulkAPIDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -80,7 +80,7 @@ func (a *BulkAPIService) DelegationbulkDelegationBulkExecute(r BulkAPIDelegation localVarReturnValue *FederationDelegationBulkResponse ) - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "BulkAPIService.DelegationbulkDelegationBulk") + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "BulkAPIService.DelegationBulk") if err != nil { return localVarReturnValue, nil, internal.NewGenericOpenAPIError(err.Error()) } diff --git a/ipamfederation/api_delegation.go b/ipamfederation/api_delegation.go index 9f4cb81..e004a73 100644 --- a/ipamfederation/api_delegation.go +++ b/ipamfederation/api_delegation.go @@ -22,6 +22,19 @@ import ( ) type DelegationAPI interface { + /* + Bulk 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 DelegationAPIBulkRequest + */ + Bulk(ctx context.Context) DelegationAPIBulkRequest + + // BulkExecute executes the request + // @return FederationDelegationBulkResponse + BulkExecute(r DelegationAPIBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) /* Create Create the delegation. @@ -106,23 +119,114 @@ type DelegationAPI interface { // 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. +// DelegationAPIService DelegationAPI service +type DelegationAPIService internal.Service - @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 +type DelegationAPIBulkRequest struct { + ctx context.Context + ApiService DelegationAPI + body *FederationDelegationBulkRequest +} - // bulkDelegationBulkExecute executes the request - // @return FederationDelegationBulkResponse - bulkDelegationBulkExecute(r DelegationAPIbulkDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) +func (r DelegationAPIBulkRequest) Body(body FederationDelegationBulkRequest) DelegationAPIBulkRequest { + r.body = &body + return r } -// DelegationAPIService DelegationAPI service -type DelegationAPIService internal.Service +func (r DelegationAPIBulkRequest) Execute() (*FederationDelegationBulkResponse, *http.Response, error) { + return r.ApiService.BulkExecute(r) +} + +/* +Bulk 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 DelegationAPIBulkRequest +*/ +func (a *DelegationAPIService) Bulk(ctx context.Context) DelegationAPIBulkRequest { + return DelegationAPIBulkRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return FederationDelegationBulkResponse +func (a *DelegationAPIService) BulkExecute(r DelegationAPIBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *FederationDelegationBulkResponse + ) + + localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Bulk") + 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 +} type DelegationAPICreateRequest struct { ctx context.Context @@ -794,107 +898,3 @@ func (a *DelegationAPIService) UpdateExecute(r DelegationAPIUpdateRequest) (*Fed } 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/client.go b/ipamfederation/client.go index a9e8e0c..6dfda41 100644 --- a/ipamfederation/client.go +++ b/ipamfederation/client.go @@ -1,7 +1,7 @@ /* IPAM Federation API -The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. API version: v1 */ @@ -23,17 +23,17 @@ type APIClient struct { *internal.APIClient // API Services - BulkAPI BulkAPI - ConfigGenAPI ConfigGenAPI - DelegationAPI DelegationAPI - FederatedBlockAPI FederatedBlockAPI - FederatedRealmAPI FederatedRealmAPI - NextAvailableDelegationAPI NextAvailableDelegationAPI - NextAvailableFederatedBlockAPI NextAvailableFederatedBlockAPI + BulkAPI BulkAPI + ConfigGenAPI ConfigGenAPI + DelegationAPI DelegationAPI + FederatedBlockAPI FederatedBlockAPI + FederatedRealmAPI FederatedRealmAPI + NextAvailableDelegationAPI NextAvailableDelegationAPI + NextAvailableFederatedBlockAPI NextAvailableFederatedBlockAPI NextAvailableOverlappingBlockAPI NextAvailableOverlappingBlockAPI - NextAvailableReservedBlockAPI NextAvailableReservedBlockAPI - OverlappingBlockAPI OverlappingBlockAPI - ReservedBlockAPI ReservedBlockAPI + NextAvailableReservedBlockAPI NextAvailableReservedBlockAPI + OverlappingBlockAPI OverlappingBlockAPI + ReservedBlockAPI ReservedBlockAPI } // NewAPIClient creates a new API client. diff --git a/ipamfederation/docs/BulkAPI.md b/ipamfederation/docs/BulkAPI.md index d85b84b..68fb551 100644 --- a/ipamfederation/docs/BulkAPI.md +++ b/ipamfederation/docs/BulkAPI.md @@ -4,13 +4,13 @@ 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. +[**DelegationBulk**](BulkAPI.md#DelegationBulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. -## DelegationbulkDelegationBulk +## DelegationBulk -> FederationDelegationBulkResponse DelegationbulkDelegationBulk(ctx).Body(body).Execute() +> FederationDelegationBulkResponse DelegationBulk(ctx).Body(body).Execute() Execute multiple operations on delegation objects. @@ -33,13 +33,13 @@ func main() { body := *ipamfederation.NewFederationDelegationBulkRequest() // FederationDelegationBulkRequest | apiClient := ipamfederation.NewAPIClient() - resp, r, err := apiClient.BulkAPI.DelegationbulkDelegationBulk(context.Background()).Body(body).Execute() + resp, r, err := apiClient.BulkAPI.DelegationBulk(context.Background()).Body(body).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BulkAPI.DelegationbulkDelegationBulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `BulkAPI.DelegationBulk``: %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) + // response from `DelegationBulk`: FederationDelegationBulkResponse + fmt.Fprintf(os.Stdout, "Response from `BulkAPI.DelegationBulk`: %v\n", resp) } ``` @@ -49,7 +49,7 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a `BulkAPIDelegationbulkDelegationBulkRequest` struct via the builder pattern +Other parameters are passed through a pointer to a `BulkAPIDelegationBulkRequest` struct via the builder pattern Name | Type | Description | Notes diff --git a/ipamfederation/docs/DelegationAPI.md b/ipamfederation/docs/DelegationAPI.md index 971eca5..052196a 100644 --- a/ipamfederation/docs/DelegationAPI.md +++ b/ipamfederation/docs/DelegationAPI.md @@ -4,16 +4,82 @@ All URIs are relative to */api/ddi/v1* Method | HTTP request | Description ------------- | ------------- | ------------- +[**Bulk**](DelegationAPI.md#Bulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. [**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. +## Bulk + +> FederationDelegationBulkResponse Bulk(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.Bulk(context.Background()).Body(body).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.Bulk``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `Bulk`: FederationDelegationBulkResponse + fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Bulk`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a `DelegationAPIBulkRequest` 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) + + ## Create > FederationCreateDelegationResponse Create(ctx).Body(body).Execute() @@ -418,69 +484,3 @@ Name | Type | Description | Notes [[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/test/api_bulk_test.go b/ipamfederation/test/api_bulk_test.go index 4338b10..5cab83b 100644 --- a/ipamfederation/test/api_bulk_test.go +++ b/ipamfederation/test/api_bulk_test.go @@ -27,7 +27,7 @@ func TestBulkAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.BulkAPI.DelegationbulkDelegationBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.BulkAPI.DelegationBulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/ipamfederation/test/api_delegation_test.go b/ipamfederation/test/api_delegation_test.go index f3e1ae8..e82f609 100644 --- a/ipamfederation/test/api_delegation_test.go +++ b/ipamfederation/test/api_delegation_test.go @@ -103,7 +103,7 @@ func TestDelegationAPIService(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.DelegationAPI.bulkDelegationBulk(context.Background()).Execute() + resp, httpRes, err := apiClient.DelegationAPI.Bulk(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/ipamfederation/utils.go b/ipamfederation/utils.go index e7eaade..6118b63 100644 --- a/ipamfederation/utils.go +++ b/ipamfederation/utils.go @@ -1,7 +1,7 @@ /* IPAM Federation API -The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. +The DDI IPAM Federation application enables a SaaS administrator to manage multiple IPAM systems from one central control point CSP. API version: v1 */ From c6298d908a0db66fac4ab2d35f3ee243dcb1387a Mon Sep 17 00:00:00 2001 From: Ujjwal Nasra Date: Tue, 20 Aug 2024 00:56:35 +0530 Subject: [PATCH 3/6] Updated FILES --- ipamfederation/.openapi-generator/FILES | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/ipamfederation/.openapi-generator/FILES b/ipamfederation/.openapi-generator/FILES index f3173fc..4f8543a 100644 --- a/ipamfederation/.openapi-generator/FILES +++ b/ipamfederation/.openapi-generator/FILES @@ -1,4 +1,3 @@ -.openapi-generator-ignore README.md api/openapi.yaml api_bulk.go @@ -116,15 +115,4 @@ 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 From 88c6ec447776526cd95538f70c537226da36b8c9 Mon Sep 17 00:00:00 2001 From: Ujjwal Nasra Date: Tue, 20 Aug 2024 01:59:42 +0530 Subject: [PATCH 4/6] Regenerated Client with new changes --- ipamfederation/.openapi-generator/FILES | 189 +++++++++-------- ipamfederation/README.md | 89 ++++---- ipamfederation/api/openapi.yaml | 1 - ipamfederation/api_bulk.go | 144 ------------- ipamfederation/api_config_gen.go | 28 +-- ipamfederation/api_delegation.go | 72 +++---- ipamfederation/api_federated_block.go | 56 ++--- ipamfederation/api_federated_realm.go | 56 ++--- .../api_next_available_delegation.go | 16 +- .../api_next_available_federated_block.go | 60 +++--- .../api_next_available_overlapping_block.go | 12 +- .../api_next_available_reserved_block.go | 12 +- ipamfederation/api_overlapping_block.go | 56 ++--- ipamfederation/api_reserved_block.go | 56 ++--- ipamfederation/client.go | 2 - ...{FederationAllocation.md => Allocation.md} | 46 ++--- ipamfederation/docs/BulkAPI.md | 75 ------- ipamfederation/docs/ConfigGenAPI.md | 16 +- ...erationConfigObject.md => ConfigObject.md} | 38 ++-- ...esponse.md => CreateDelegationResponse.md} | 24 +-- ...nse.md => CreateFederatedBlockResponse.md} | 24 +-- ...nse.md => CreateFederatedRealmResponse.md} | 24 +-- ...ateNextAvailableFederatedBlockResponse.md} | 24 +-- ...eNextAvailableOverlappingBlockResponse.md} | 24 +-- ...eateNextAvailableReservedBlockResponse.md} | 24 +-- ...e.md => CreateOverlappingBlockResponse.md} | 24 +-- .../docs/CreateReservedBlockResponse.md | 56 +++++ ...{FederationDelegation.md => Delegation.md} | 106 +++++----- ipamfederation/docs/DelegationAPI.md | 42 ++-- ...ationBulkItem.md => DelegationBulkItem.md} | 32 +-- ...ulkRequest.md => DelegationBulkRequest.md} | 32 +-- ...kResponse.md => DelegationBulkResponse.md} | 24 +-- ...ionFederatedBlock.md => FederatedBlock.md} | 108 +++++----- ipamfederation/docs/FederatedBlockAPI.md | 32 +-- ...ionFederatedRealm.md => FederatedRealm.md} | 70 +++---- ipamfederation/docs/FederatedRealmAPI.md | 32 +-- .../FederationCreateFederatedRealmResponse.md | 56 ----- ...eateNextAvailableFederatedBlockResponse.md | 56 ----- ...teNextAvailableOverlappingBlockResponse.md | 56 ----- ...reateNextAvailableReservedBlockResponse.md | 56 ----- ...ederationCreateOverlappingBlockResponse.md | 56 ----- .../FederationCreateReservedBlockResponse.md | 56 ----- ...rationGetNextAvailableDelegationRequest.md | 82 -------- ...ationGetNextAvailableDelegationResponse.md | 56 ----- ...ListNextAvailableFederatedBlockResponse.md | 56 ----- ...stNextAvailableOverlappingBlockResponse.md | 56 ----- ...nListNextAvailableReservedBlockResponse.md | 56 ----- .../FederationReadFederatedBlockResponse.md | 56 ----- .../FederationReadFederatedRealmResponse.md | 56 ----- .../FederationReadOverlappingBlockResponse.md | 56 ----- .../FederationUpdateFederatedBlockResponse.md | 56 ----- ...ederationUpdateOverlappingBlockResponse.md | 56 ----- .../FederationUpdateReservedBlockResponse.md | 56 ----- ...nse.md => GenerateConfigBundleResponse.md} | 24 +-- .../docs/GetNextAvailableDelegationRequest.md | 82 ++++++++ ... => GetNextAvailableDelegationResponse.md} | 24 +-- ...sponse.md => HealthCheckConfigResponse.md} | 22 +- ...erationHealthConfig.md => HealthConfig.md} | 54 ++--- ipamfederation/docs/ListDelegationResponse.md | 56 +++++ .../docs/ListFederatedBlockResponse.md | 56 +++++ .../docs/ListFederatedRealmResponse.md | 56 +++++ ...ListNextAvailableFederatedBlockResponse.md | 56 +++++ ...tNextAvailableOverlappingBlockResponse.md} | 24 +-- .../ListNextAvailableReservedBlockResponse.md | 56 +++++ .../docs/ListOverlappingBlockResponse.md | 56 +++++ .../docs/ListReservedBlockResponse.md | 56 +++++ ...equest.md => NextAvailableBlockRequest.md} | 62 +++--- .../docs/NextAvailableDelegationAPI.md | 10 +- ...md => NextAvailableDelegationArguments.md} | 54 ++--- ...d => NextAvailableDelegationProperties.md} | 38 ++-- .../docs/NextAvailableFederatedBlockAPI.md | 36 ++-- .../docs/NextAvailableOverlappingBlockAPI.md | 6 +- .../docs/NextAvailableReservedBlockAPI.md | 6 +- ...verlappingBlock.md => OverlappingBlock.md} | 98 ++++----- ipamfederation/docs/OverlappingBlockAPI.md | 32 +-- ipamfederation/docs/ReadDelegationResponse.md | 56 +++++ .../docs/ReadFederatedBlockResponse.md | 56 +++++ .../docs/ReadFederatedRealmResponse.md | 56 +++++ .../docs/ReadOverlappingBlockResponse.md | 56 +++++ ...sponse.md => ReadReservedBlockResponse.md} | 24 +-- ...ationReservedBlock.md => ReservedBlock.md} | 98 ++++----- ipamfederation/docs/ReservedBlockAPI.md | 32 +-- ...esponse.md => UpdateDelegationResponse.md} | 24 +-- .../docs/UpdateFederatedBlockResponse.md | 56 +++++ .../docs/UpdateFederatedRealmResponse.md | 56 +++++ .../docs/UpdateOverlappingBlockResponse.md | 56 +++++ .../docs/UpdateReservedBlockResponse.md | 56 +++++ ...tion_allocation.go => model_allocation.go} | 86 ++++---- ...onfig_object.go => model_config_object.go} | 78 +++---- .../model_create_delegation_response.go | 154 ++++++++++++++ .../model_create_federated_block_response.go | 154 ++++++++++++++ .../model_create_federated_realm_response.go | 154 ++++++++++++++ ...next_available_federated_block_response.go | 153 ++++++++++++++ ...xt_available_overlapping_block_response.go | 153 ++++++++++++++ ..._next_available_reserved_block_response.go | 153 ++++++++++++++ ...model_create_overlapping_block_response.go | 154 ++++++++++++++ .../model_create_reserved_block_response.go | 154 ++++++++++++++ ...tion_delegation.go => model_delegation.go} | 146 ++++++------- ..._item.go => model_delegation_bulk_item.go} | 76 +++---- .../model_delegation_bulk_request.go | 191 +++++++++++++++++ .../model_delegation_bulk_response.go | 154 ++++++++++++++ ...ated_block.go => model_federated_block.go} | 152 +++++++------- ...ated_realm.go => model_federated_realm.go} | 114 +++++------ ...l_federation_create_delegation_response.go | 154 -------------- ...eration_create_federated_block_response.go | 154 -------------- ...eration_create_federated_realm_response.go | 154 -------------- ...next_available_federated_block_response.go | 153 -------------- ...xt_available_overlapping_block_response.go | 153 -------------- ..._next_available_reserved_block_response.go | 153 -------------- ...ation_create_overlapping_block_response.go | 154 -------------- ...deration_create_reserved_block_response.go | 154 -------------- ...odel_federation_delegation_bulk_request.go | 191 ----------------- ...del_federation_delegation_bulk_response.go | 154 -------------- ...eration_generate_config_bundle_response.go | 153 -------------- ...n_get_next_available_delegation_request.go | 192 ------------------ ..._get_next_available_delegation_response.go | 153 -------------- ...federation_health_check_config_response.go | 153 -------------- ...del_federation_list_delegation_response.go | 154 -------------- ...ederation_list_federated_block_response.go | 154 -------------- ...ederation_list_federated_realm_response.go | 154 -------------- ...next_available_federated_block_response.go | 153 -------------- ...xt_available_overlapping_block_response.go | 153 -------------- ..._next_available_reserved_block_response.go | 153 -------------- ...eration_list_overlapping_block_response.go | 154 -------------- ...federation_list_reserved_block_response.go | 154 -------------- ...del_federation_read_delegation_response.go | 154 -------------- ...ederation_read_federated_block_response.go | 154 -------------- ...ederation_read_federated_realm_response.go | 154 -------------- ...eration_read_overlapping_block_response.go | 154 -------------- ...federation_read_reserved_block_response.go | 154 -------------- ...l_federation_update_delegation_response.go | 154 -------------- ...eration_update_federated_block_response.go | 154 -------------- ...eration_update_federated_realm_response.go | 154 -------------- ...ation_update_overlapping_block_response.go | 154 -------------- ...deration_update_reserved_block_response.go | 154 -------------- .../model_generate_config_bundle_response.go | 153 ++++++++++++++ ...l_get_next_available_delegation_request.go | 192 ++++++++++++++++++ ..._get_next_available_delegation_response.go | 153 ++++++++++++++ .../model_health_check_config_response.go | 153 ++++++++++++++ ...ealth_config.go => model_health_config.go} | 94 ++++----- .../model_list_delegation_response.go | 154 ++++++++++++++ .../model_list_federated_block_response.go | 154 ++++++++++++++ .../model_list_federated_realm_response.go | 154 ++++++++++++++ ...next_available_federated_block_response.go | 153 ++++++++++++++ ...xt_available_overlapping_block_response.go | 153 ++++++++++++++ ..._next_available_reserved_block_response.go | 153 ++++++++++++++ .../model_list_overlapping_block_response.go | 154 ++++++++++++++ .../model_list_reserved_block_response.go | 154 ++++++++++++++ ... => model_next_available_block_request.go} | 102 +++++----- ...el_next_available_delegation_arguments.go} | 94 ++++----- ...l_next_available_delegation_properties.go} | 78 +++---- ...ng_block.go => model_overlapping_block.go} | 138 ++++++------- .../model_read_delegation_response.go | 154 ++++++++++++++ .../model_read_federated_block_response.go | 154 ++++++++++++++ .../model_read_federated_realm_response.go | 154 ++++++++++++++ .../model_read_overlapping_block_response.go | 154 ++++++++++++++ .../model_read_reserved_block_response.go | 154 ++++++++++++++ ...erved_block.go => model_reserved_block.go} | 138 ++++++------- .../model_update_delegation_response.go | 154 ++++++++++++++ .../model_update_federated_block_response.go | 154 ++++++++++++++ .../model_update_federated_realm_response.go | 154 ++++++++++++++ ...model_update_overlapping_block_response.go | 154 ++++++++++++++ .../model_update_reserved_block_response.go | 154 ++++++++++++++ ipamfederation/test/api_bulk_test.go | 38 ---- ipamfederation/test/api_delegation_test.go | 24 +-- 165 files changed, 7694 insertions(+), 7946 deletions(-) delete mode 100644 ipamfederation/api_bulk.go rename ipamfederation/docs/{FederationAllocation.md => Allocation.md} (67%) delete mode 100644 ipamfederation/docs/BulkAPI.md rename ipamfederation/docs/{FederationConfigObject.md => ConfigObject.md} (64%) rename ipamfederation/docs/{FederationReadDelegationResponse.md => CreateDelegationResponse.md} (52%) rename ipamfederation/docs/{FederationUpdateDelegationResponse.md => CreateFederatedBlockResponse.md} (52%) rename ipamfederation/docs/{FederationCreateDelegationResponse.md => CreateFederatedRealmResponse.md} (51%) rename ipamfederation/docs/{FederationListFederatedBlockResponse.md => CreateNextAvailableFederatedBlockResponse.md} (50%) rename ipamfederation/docs/{FederationListOverlappingBlockResponse.md => CreateNextAvailableOverlappingBlockResponse.md} (51%) rename ipamfederation/docs/{FederationListReservedBlockResponse.md => CreateNextAvailableReservedBlockResponse.md} (50%) rename ipamfederation/docs/{FederationUpdateFederatedRealmResponse.md => CreateOverlappingBlockResponse.md} (52%) create mode 100644 ipamfederation/docs/CreateReservedBlockResponse.md rename ipamfederation/docs/{FederationDelegation.md => Delegation.md} (68%) rename ipamfederation/docs/{FederationDelegationBulkItem.md => DelegationBulkItem.md} (58%) rename ipamfederation/docs/{FederationDelegationBulkRequest.md => DelegationBulkRequest.md} (54%) rename ipamfederation/docs/{FederationDelegationBulkResponse.md => DelegationBulkResponse.md} (52%) rename ipamfederation/docs/{FederationFederatedBlock.md => FederatedBlock.md} (65%) rename ipamfederation/docs/{FederationFederatedRealm.md => FederatedRealm.md} (63%) delete mode 100644 ipamfederation/docs/FederationCreateFederatedRealmResponse.md delete mode 100644 ipamfederation/docs/FederationCreateNextAvailableFederatedBlockResponse.md delete mode 100644 ipamfederation/docs/FederationCreateNextAvailableOverlappingBlockResponse.md delete mode 100644 ipamfederation/docs/FederationCreateNextAvailableReservedBlockResponse.md delete mode 100644 ipamfederation/docs/FederationCreateOverlappingBlockResponse.md delete mode 100644 ipamfederation/docs/FederationCreateReservedBlockResponse.md delete mode 100644 ipamfederation/docs/FederationGetNextAvailableDelegationRequest.md delete mode 100644 ipamfederation/docs/FederationGetNextAvailableDelegationResponse.md delete mode 100644 ipamfederation/docs/FederationListNextAvailableFederatedBlockResponse.md delete mode 100644 ipamfederation/docs/FederationListNextAvailableOverlappingBlockResponse.md delete mode 100644 ipamfederation/docs/FederationListNextAvailableReservedBlockResponse.md delete mode 100644 ipamfederation/docs/FederationReadFederatedBlockResponse.md delete mode 100644 ipamfederation/docs/FederationReadFederatedRealmResponse.md delete mode 100644 ipamfederation/docs/FederationReadOverlappingBlockResponse.md delete mode 100644 ipamfederation/docs/FederationUpdateFederatedBlockResponse.md delete mode 100644 ipamfederation/docs/FederationUpdateOverlappingBlockResponse.md delete mode 100644 ipamfederation/docs/FederationUpdateReservedBlockResponse.md rename ipamfederation/docs/{FederationGenerateConfigBundleResponse.md => GenerateConfigBundleResponse.md} (50%) create mode 100644 ipamfederation/docs/GetNextAvailableDelegationRequest.md rename ipamfederation/docs/{FederationListDelegationResponse.md => GetNextAvailableDelegationResponse.md} (52%) rename ipamfederation/docs/{FederationHealthCheckConfigResponse.md => HealthCheckConfigResponse.md} (57%) rename ipamfederation/docs/{FederationHealthConfig.md => HealthConfig.md} (64%) create mode 100644 ipamfederation/docs/ListDelegationResponse.md create mode 100644 ipamfederation/docs/ListFederatedBlockResponse.md create mode 100644 ipamfederation/docs/ListFederatedRealmResponse.md create mode 100644 ipamfederation/docs/ListNextAvailableFederatedBlockResponse.md rename ipamfederation/docs/{FederationListFederatedRealmResponse.md => ListNextAvailableOverlappingBlockResponse.md} (50%) create mode 100644 ipamfederation/docs/ListNextAvailableReservedBlockResponse.md create mode 100644 ipamfederation/docs/ListOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/ListReservedBlockResponse.md rename ipamfederation/docs/{FederationNextAvailableBlockRequest.md => NextAvailableBlockRequest.md} (61%) rename ipamfederation/docs/{FederationNextAvailableDelegationArguments.md => NextAvailableDelegationArguments.md} (59%) rename ipamfederation/docs/{FederationNextAvailableDelegationProperties.md => NextAvailableDelegationProperties.md} (58%) rename ipamfederation/docs/{FederationOverlappingBlock.md => OverlappingBlock.md} (66%) create mode 100644 ipamfederation/docs/ReadDelegationResponse.md create mode 100644 ipamfederation/docs/ReadFederatedBlockResponse.md create mode 100644 ipamfederation/docs/ReadFederatedRealmResponse.md create mode 100644 ipamfederation/docs/ReadOverlappingBlockResponse.md rename ipamfederation/docs/{FederationReadReservedBlockResponse.md => ReadReservedBlockResponse.md} (51%) rename ipamfederation/docs/{FederationReservedBlock.md => ReservedBlock.md} (67%) rename ipamfederation/docs/{FederationCreateFederatedBlockResponse.md => UpdateDelegationResponse.md} (52%) create mode 100644 ipamfederation/docs/UpdateFederatedBlockResponse.md create mode 100644 ipamfederation/docs/UpdateFederatedRealmResponse.md create mode 100644 ipamfederation/docs/UpdateOverlappingBlockResponse.md create mode 100644 ipamfederation/docs/UpdateReservedBlockResponse.md rename ipamfederation/{model_federation_allocation.go => model_allocation.go} (65%) rename ipamfederation/{model_federation_config_object.go => model_config_object.go} (61%) create mode 100644 ipamfederation/model_create_delegation_response.go create mode 100644 ipamfederation/model_create_federated_block_response.go create mode 100644 ipamfederation/model_create_federated_realm_response.go create mode 100644 ipamfederation/model_create_next_available_federated_block_response.go create mode 100644 ipamfederation/model_create_next_available_overlapping_block_response.go create mode 100644 ipamfederation/model_create_next_available_reserved_block_response.go create mode 100644 ipamfederation/model_create_overlapping_block_response.go create mode 100644 ipamfederation/model_create_reserved_block_response.go rename ipamfederation/{model_federation_delegation.go => model_delegation.go} (72%) rename ipamfederation/{model_federation_delegation_bulk_item.go => model_delegation_bulk_item.go} (53%) create mode 100644 ipamfederation/model_delegation_bulk_request.go create mode 100644 ipamfederation/model_delegation_bulk_response.go rename ipamfederation/{model_federation_federated_block.go => model_federated_block.go} (69%) rename ipamfederation/{model_federation_federated_realm.go => model_federated_realm.go} (67%) delete mode 100644 ipamfederation/model_federation_create_delegation_response.go delete mode 100644 ipamfederation/model_federation_create_federated_block_response.go delete mode 100644 ipamfederation/model_federation_create_federated_realm_response.go delete mode 100644 ipamfederation/model_federation_create_next_available_federated_block_response.go delete mode 100644 ipamfederation/model_federation_create_next_available_overlapping_block_response.go delete mode 100644 ipamfederation/model_federation_create_next_available_reserved_block_response.go delete mode 100644 ipamfederation/model_federation_create_overlapping_block_response.go delete mode 100644 ipamfederation/model_federation_create_reserved_block_response.go delete mode 100644 ipamfederation/model_federation_delegation_bulk_request.go delete mode 100644 ipamfederation/model_federation_delegation_bulk_response.go delete mode 100644 ipamfederation/model_federation_generate_config_bundle_response.go delete mode 100644 ipamfederation/model_federation_get_next_available_delegation_request.go delete mode 100644 ipamfederation/model_federation_get_next_available_delegation_response.go delete mode 100644 ipamfederation/model_federation_health_check_config_response.go delete mode 100644 ipamfederation/model_federation_list_delegation_response.go delete mode 100644 ipamfederation/model_federation_list_federated_block_response.go delete mode 100644 ipamfederation/model_federation_list_federated_realm_response.go delete mode 100644 ipamfederation/model_federation_list_next_available_federated_block_response.go delete mode 100644 ipamfederation/model_federation_list_next_available_overlapping_block_response.go delete mode 100644 ipamfederation/model_federation_list_next_available_reserved_block_response.go delete mode 100644 ipamfederation/model_federation_list_overlapping_block_response.go delete mode 100644 ipamfederation/model_federation_list_reserved_block_response.go delete mode 100644 ipamfederation/model_federation_read_delegation_response.go delete mode 100644 ipamfederation/model_federation_read_federated_block_response.go delete mode 100644 ipamfederation/model_federation_read_federated_realm_response.go delete mode 100644 ipamfederation/model_federation_read_overlapping_block_response.go delete mode 100644 ipamfederation/model_federation_read_reserved_block_response.go delete mode 100644 ipamfederation/model_federation_update_delegation_response.go delete mode 100644 ipamfederation/model_federation_update_federated_block_response.go delete mode 100644 ipamfederation/model_federation_update_federated_realm_response.go delete mode 100644 ipamfederation/model_federation_update_overlapping_block_response.go delete mode 100644 ipamfederation/model_federation_update_reserved_block_response.go create mode 100644 ipamfederation/model_generate_config_bundle_response.go create mode 100644 ipamfederation/model_get_next_available_delegation_request.go create mode 100644 ipamfederation/model_get_next_available_delegation_response.go create mode 100644 ipamfederation/model_health_check_config_response.go rename ipamfederation/{model_federation_health_config.go => model_health_config.go} (66%) create mode 100644 ipamfederation/model_list_delegation_response.go create mode 100644 ipamfederation/model_list_federated_block_response.go create mode 100644 ipamfederation/model_list_federated_realm_response.go create mode 100644 ipamfederation/model_list_next_available_federated_block_response.go create mode 100644 ipamfederation/model_list_next_available_overlapping_block_response.go create mode 100644 ipamfederation/model_list_next_available_reserved_block_response.go create mode 100644 ipamfederation/model_list_overlapping_block_response.go create mode 100644 ipamfederation/model_list_reserved_block_response.go rename ipamfederation/{model_federation_next_available_block_request.go => model_next_available_block_request.go} (62%) rename ipamfederation/{model_federation_next_available_delegation_arguments.go => model_next_available_delegation_arguments.go} (59%) rename ipamfederation/{model_federation_next_available_delegation_properties.go => model_next_available_delegation_properties.go} (54%) rename ipamfederation/{model_federation_overlapping_block.go => model_overlapping_block.go} (68%) create mode 100644 ipamfederation/model_read_delegation_response.go create mode 100644 ipamfederation/model_read_federated_block_response.go create mode 100644 ipamfederation/model_read_federated_realm_response.go create mode 100644 ipamfederation/model_read_overlapping_block_response.go create mode 100644 ipamfederation/model_read_reserved_block_response.go rename ipamfederation/{model_federation_reserved_block.go => model_reserved_block.go} (70%) create mode 100644 ipamfederation/model_update_delegation_response.go create mode 100644 ipamfederation/model_update_federated_block_response.go create mode 100644 ipamfederation/model_update_federated_realm_response.go create mode 100644 ipamfederation/model_update_overlapping_block_response.go create mode 100644 ipamfederation/model_update_reserved_block_response.go delete mode 100644 ipamfederation/test/api_bulk_test.go diff --git a/ipamfederation/.openapi-generator/FILES b/ipamfederation/.openapi-generator/FILES index 4f8543a..0f28eb4 100644 --- a/ipamfederation/.openapi-generator/FILES +++ b/ipamfederation/.openapi-generator/FILES @@ -1,6 +1,6 @@ +.openapi-generator-ignore README.md api/openapi.yaml -api_bulk.go api_config_gen.go api_delegation.go api_federated_block.go @@ -12,107 +12,116 @@ api_next_available_reserved_block.go api_overlapping_block.go api_reserved_block.go client.go -docs/BulkAPI.md +docs/Allocation.md docs/ConfigGenAPI.md +docs/ConfigObject.md +docs/CreateDelegationResponse.md +docs/CreateFederatedBlockResponse.md +docs/CreateFederatedRealmResponse.md +docs/CreateNextAvailableFederatedBlockResponse.md +docs/CreateNextAvailableOverlappingBlockResponse.md +docs/CreateNextAvailableReservedBlockResponse.md +docs/CreateOverlappingBlockResponse.md +docs/CreateReservedBlockResponse.md +docs/Delegation.md docs/DelegationAPI.md +docs/DelegationBulkItem.md +docs/DelegationBulkRequest.md +docs/DelegationBulkResponse.md +docs/FederatedBlock.md docs/FederatedBlockAPI.md +docs/FederatedRealm.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/GenerateConfigBundleResponse.md +docs/GetNextAvailableDelegationRequest.md +docs/GetNextAvailableDelegationResponse.md +docs/HealthCheckConfigResponse.md +docs/HealthConfig.md docs/HealthConfigStatusCode.md +docs/ListDelegationResponse.md +docs/ListFederatedBlockResponse.md +docs/ListFederatedRealmResponse.md +docs/ListNextAvailableFederatedBlockResponse.md +docs/ListNextAvailableOverlappingBlockResponse.md +docs/ListNextAvailableReservedBlockResponse.md +docs/ListOverlappingBlockResponse.md +docs/ListReservedBlockResponse.md +docs/NextAvailableBlockRequest.md docs/NextAvailableDelegationAPI.md +docs/NextAvailableDelegationArguments.md +docs/NextAvailableDelegationProperties.md docs/NextAvailableFederatedBlockAPI.md docs/NextAvailableOverlappingBlockAPI.md docs/NextAvailableReservedBlockAPI.md +docs/OverlappingBlock.md docs/OverlappingBlockAPI.md docs/ProtobufFieldMask.md +docs/ReadDelegationResponse.md +docs/ReadFederatedBlockResponse.md +docs/ReadFederatedRealmResponse.md +docs/ReadOverlappingBlockResponse.md +docs/ReadReservedBlockResponse.md +docs/ReservedBlock.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 +docs/UpdateDelegationResponse.md +docs/UpdateFederatedBlockResponse.md +docs/UpdateFederatedRealmResponse.md +docs/UpdateOverlappingBlockResponse.md +docs/UpdateReservedBlockResponse.md +model_allocation.go +model_config_object.go +model_create_delegation_response.go +model_create_federated_block_response.go +model_create_federated_realm_response.go +model_create_next_available_federated_block_response.go +model_create_next_available_overlapping_block_response.go +model_create_next_available_reserved_block_response.go +model_create_overlapping_block_response.go +model_create_reserved_block_response.go +model_delegation.go +model_delegation_bulk_item.go +model_delegation_bulk_request.go +model_delegation_bulk_response.go +model_federated_block.go +model_federated_realm.go +model_generate_config_bundle_response.go +model_get_next_available_delegation_request.go +model_get_next_available_delegation_response.go +model_health_check_config_response.go +model_health_config.go model_health_config_status_code.go +model_list_delegation_response.go +model_list_federated_block_response.go +model_list_federated_realm_response.go +model_list_next_available_federated_block_response.go +model_list_next_available_overlapping_block_response.go +model_list_next_available_reserved_block_response.go +model_list_overlapping_block_response.go +model_list_reserved_block_response.go +model_next_available_block_request.go +model_next_available_delegation_arguments.go +model_next_available_delegation_properties.go +model_overlapping_block.go model_protobuf_field_mask.go +model_read_delegation_response.go +model_read_federated_block_response.go +model_read_federated_realm_response.go +model_read_overlapping_block_response.go +model_read_reserved_block_response.go +model_reserved_block.go +model_update_delegation_response.go +model_update_federated_block_response.go +model_update_federated_realm_response.go +model_update_overlapping_block_response.go +model_update_reserved_block_response.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/README.md b/ipamfederation/README.md index 4e700ef..d4bd9da 100644 --- a/ipamfederation/README.md +++ b/ipamfederation/README.md @@ -87,7 +87,6 @@ All URIs are relative to */api/ddi/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*BulkAPI* | [**DelegationBulk**](docs/BulkAPI.md#delegationbulk) | **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* | [**Bulk**](docs/DelegationAPI.md#bulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. @@ -128,52 +127,52 @@ Class | Method | HTTP request | Description ## 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) + - [Allocation](docs/Allocation.md) + - [ConfigObject](docs/ConfigObject.md) + - [CreateDelegationResponse](docs/CreateDelegationResponse.md) + - [CreateFederatedBlockResponse](docs/CreateFederatedBlockResponse.md) + - [CreateFederatedRealmResponse](docs/CreateFederatedRealmResponse.md) + - [CreateNextAvailableFederatedBlockResponse](docs/CreateNextAvailableFederatedBlockResponse.md) + - [CreateNextAvailableOverlappingBlockResponse](docs/CreateNextAvailableOverlappingBlockResponse.md) + - [CreateNextAvailableReservedBlockResponse](docs/CreateNextAvailableReservedBlockResponse.md) + - [CreateOverlappingBlockResponse](docs/CreateOverlappingBlockResponse.md) + - [CreateReservedBlockResponse](docs/CreateReservedBlockResponse.md) + - [Delegation](docs/Delegation.md) + - [DelegationBulkItem](docs/DelegationBulkItem.md) + - [DelegationBulkRequest](docs/DelegationBulkRequest.md) + - [DelegationBulkResponse](docs/DelegationBulkResponse.md) + - [FederatedBlock](docs/FederatedBlock.md) + - [FederatedRealm](docs/FederatedRealm.md) + - [GenerateConfigBundleResponse](docs/GenerateConfigBundleResponse.md) + - [GetNextAvailableDelegationRequest](docs/GetNextAvailableDelegationRequest.md) + - [GetNextAvailableDelegationResponse](docs/GetNextAvailableDelegationResponse.md) + - [HealthCheckConfigResponse](docs/HealthCheckConfigResponse.md) + - [HealthConfig](docs/HealthConfig.md) - [HealthConfigStatusCode](docs/HealthConfigStatusCode.md) + - [ListDelegationResponse](docs/ListDelegationResponse.md) + - [ListFederatedBlockResponse](docs/ListFederatedBlockResponse.md) + - [ListFederatedRealmResponse](docs/ListFederatedRealmResponse.md) + - [ListNextAvailableFederatedBlockResponse](docs/ListNextAvailableFederatedBlockResponse.md) + - [ListNextAvailableOverlappingBlockResponse](docs/ListNextAvailableOverlappingBlockResponse.md) + - [ListNextAvailableReservedBlockResponse](docs/ListNextAvailableReservedBlockResponse.md) + - [ListOverlappingBlockResponse](docs/ListOverlappingBlockResponse.md) + - [ListReservedBlockResponse](docs/ListReservedBlockResponse.md) + - [NextAvailableBlockRequest](docs/NextAvailableBlockRequest.md) + - [NextAvailableDelegationArguments](docs/NextAvailableDelegationArguments.md) + - [NextAvailableDelegationProperties](docs/NextAvailableDelegationProperties.md) + - [OverlappingBlock](docs/OverlappingBlock.md) - [ProtobufFieldMask](docs/ProtobufFieldMask.md) + - [ReadDelegationResponse](docs/ReadDelegationResponse.md) + - [ReadFederatedBlockResponse](docs/ReadFederatedBlockResponse.md) + - [ReadFederatedRealmResponse](docs/ReadFederatedRealmResponse.md) + - [ReadOverlappingBlockResponse](docs/ReadOverlappingBlockResponse.md) + - [ReadReservedBlockResponse](docs/ReadReservedBlockResponse.md) + - [ReservedBlock](docs/ReservedBlock.md) + - [UpdateDelegationResponse](docs/UpdateDelegationResponse.md) + - [UpdateFederatedBlockResponse](docs/UpdateFederatedBlockResponse.md) + - [UpdateFederatedRealmResponse](docs/UpdateFederatedRealmResponse.md) + - [UpdateOverlappingBlockResponse](docs/UpdateOverlappingBlockResponse.md) + - [UpdateReservedBlockResponse](docs/UpdateReservedBlockResponse.md) ## Documentation for Utility Methods diff --git a/ipamfederation/api/openapi.yaml b/ipamfederation/api/openapi.yaml index 0f0d2a5..4909a5f 100644 --- a/ipamfederation/api/openapi.yaml +++ b/ipamfederation/api/openapi.yaml @@ -242,7 +242,6 @@ paths: summary: Execute multiple operations on delegation objects. tags: - delegation - - bulk x-codegen-request-body-name: body /federation/federated_block: get: diff --git a/ipamfederation/api_bulk.go b/ipamfederation/api_bulk.go deleted file mode 100644 index ea1db91..0000000 --- a/ipamfederation/api_bulk.go +++ /dev/null @@ -1,144 +0,0 @@ -/* -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 { - /* - DelegationBulk 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 BulkAPIDelegationBulkRequest - */ - DelegationBulk(ctx context.Context) BulkAPIDelegationBulkRequest - - // DelegationBulkExecute executes the request - // @return FederationDelegationBulkResponse - DelegationBulkExecute(r BulkAPIDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) -} - -// BulkAPIService BulkAPI service -type BulkAPIService internal.Service - -type BulkAPIDelegationBulkRequest struct { - ctx context.Context - ApiService BulkAPI - body *FederationDelegationBulkRequest -} - -func (r BulkAPIDelegationBulkRequest) Body(body FederationDelegationBulkRequest) BulkAPIDelegationBulkRequest { - r.body = &body - return r -} - -func (r BulkAPIDelegationBulkRequest) Execute() (*FederationDelegationBulkResponse, *http.Response, error) { - return r.ApiService.DelegationBulkExecute(r) -} - -/* -DelegationBulk 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 BulkAPIDelegationBulkRequest -*/ -func (a *BulkAPIService) DelegationBulk(ctx context.Context) BulkAPIDelegationBulkRequest { - return BulkAPIDelegationBulkRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return FederationDelegationBulkResponse -func (a *BulkAPIService) DelegationBulkExecute(r BulkAPIDelegationBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *FederationDelegationBulkResponse - ) - - localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "BulkAPIService.DelegationBulk") - 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 index f2ce78f..9655b27 100644 --- a/ipamfederation/api_config_gen.go +++ b/ipamfederation/api_config_gen.go @@ -32,8 +32,8 @@ type ConfigGenAPI interface { Fetch(ctx context.Context, ophid string) ConfigGenAPIFetchRequest // FetchExecute executes the request - // @return FederationGenerateConfigBundleResponse - FetchExecute(r ConfigGenAPIFetchRequest) (*FederationGenerateConfigBundleResponse, *http.Response, error) + // @return GenerateConfigBundleResponse + FetchExecute(r ConfigGenAPIFetchRequest) (*GenerateConfigBundleResponse, *http.Response, error) /* UpdateConfigStatus Method for UpdateConfigStatus @@ -43,8 +43,8 @@ type ConfigGenAPI interface { UpdateConfigStatus(ctx context.Context) ConfigGenAPIUpdateConfigStatusRequest // UpdateConfigStatusExecute executes the request - // @return FederationHealthCheckConfigResponse - UpdateConfigStatusExecute(r ConfigGenAPIUpdateConfigStatusRequest) (*FederationHealthCheckConfigResponse, *http.Response, error) + // @return HealthCheckConfigResponse + UpdateConfigStatusExecute(r ConfigGenAPIUpdateConfigStatusRequest) (*HealthCheckConfigResponse, *http.Response, error) } // ConfigGenAPIService ConfigGenAPI service @@ -56,7 +56,7 @@ type ConfigGenAPIFetchRequest struct { ophid string } -func (r ConfigGenAPIFetchRequest) Execute() (*FederationGenerateConfigBundleResponse, *http.Response, error) { +func (r ConfigGenAPIFetchRequest) Execute() (*GenerateConfigBundleResponse, *http.Response, error) { return r.ApiService.FetchExecute(r) } @@ -77,13 +77,13 @@ func (a *ConfigGenAPIService) Fetch(ctx context.Context, ophid string) ConfigGen // Execute executes the request // -// @return FederationGenerateConfigBundleResponse -func (a *ConfigGenAPIService) FetchExecute(r ConfigGenAPIFetchRequest) (*FederationGenerateConfigBundleResponse, *http.Response, error) { +// @return GenerateConfigBundleResponse +func (a *ConfigGenAPIService) FetchExecute(r ConfigGenAPIFetchRequest) (*GenerateConfigBundleResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationGenerateConfigBundleResponse + localVarReturnValue *GenerateConfigBundleResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ConfigGenAPIService.Fetch") @@ -148,15 +148,15 @@ func (a *ConfigGenAPIService) FetchExecute(r ConfigGenAPIFetchRequest) (*Federat type ConfigGenAPIUpdateConfigStatusRequest struct { ctx context.Context ApiService ConfigGenAPI - body *FederationHealthConfig + body *HealthConfig } -func (r ConfigGenAPIUpdateConfigStatusRequest) Body(body FederationHealthConfig) ConfigGenAPIUpdateConfigStatusRequest { +func (r ConfigGenAPIUpdateConfigStatusRequest) Body(body HealthConfig) ConfigGenAPIUpdateConfigStatusRequest { r.body = &body return r } -func (r ConfigGenAPIUpdateConfigStatusRequest) Execute() (*FederationHealthCheckConfigResponse, *http.Response, error) { +func (r ConfigGenAPIUpdateConfigStatusRequest) Execute() (*HealthCheckConfigResponse, *http.Response, error) { return r.ApiService.UpdateConfigStatusExecute(r) } @@ -175,13 +175,13 @@ func (a *ConfigGenAPIService) UpdateConfigStatus(ctx context.Context) ConfigGenA // Execute executes the request // -// @return FederationHealthCheckConfigResponse -func (a *ConfigGenAPIService) UpdateConfigStatusExecute(r ConfigGenAPIUpdateConfigStatusRequest) (*FederationHealthCheckConfigResponse, *http.Response, error) { +// @return HealthCheckConfigResponse +func (a *ConfigGenAPIService) UpdateConfigStatusExecute(r ConfigGenAPIUpdateConfigStatusRequest) (*HealthCheckConfigResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationHealthCheckConfigResponse + localVarReturnValue *HealthCheckConfigResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ConfigGenAPIService.UpdateConfigStatus") diff --git a/ipamfederation/api_delegation.go b/ipamfederation/api_delegation.go index e004a73..c11aecd 100644 --- a/ipamfederation/api_delegation.go +++ b/ipamfederation/api_delegation.go @@ -33,8 +33,8 @@ type DelegationAPI interface { Bulk(ctx context.Context) DelegationAPIBulkRequest // BulkExecute executes the request - // @return FederationDelegationBulkResponse - BulkExecute(r DelegationAPIBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) + // @return DelegationBulkResponse + BulkExecute(r DelegationAPIBulkRequest) (*DelegationBulkResponse, *http.Response, error) /* Create Create the delegation. @@ -47,8 +47,8 @@ type DelegationAPI interface { Create(ctx context.Context) DelegationAPICreateRequest // CreateExecute executes the request - // @return FederationCreateDelegationResponse - CreateExecute(r DelegationAPICreateRequest) (*FederationCreateDelegationResponse, *http.Response, error) + // @return CreateDelegationResponse + CreateExecute(r DelegationAPICreateRequest) (*CreateDelegationResponse, *http.Response, error) /* Delete Delete the delegation. @@ -87,8 +87,8 @@ type DelegationAPI interface { List(ctx context.Context) DelegationAPIListRequest // ListExecute executes the request - // @return FederationListDelegationResponse - ListExecute(r DelegationAPIListRequest) (*FederationListDelegationResponse, *http.Response, error) + // @return ListDelegationResponse + ListExecute(r DelegationAPIListRequest) (*ListDelegationResponse, *http.Response, error) /* Read Retrieve the delegation. @@ -102,8 +102,8 @@ type DelegationAPI interface { Read(ctx context.Context, id string) DelegationAPIReadRequest // ReadExecute executes the request - // @return FederationReadDelegationResponse - ReadExecute(r DelegationAPIReadRequest) (*FederationReadDelegationResponse, *http.Response, error) + // @return ReadDelegationResponse + ReadExecute(r DelegationAPIReadRequest) (*ReadDelegationResponse, *http.Response, error) /* Update Update the delegation. @@ -117,8 +117,8 @@ type DelegationAPI interface { Update(ctx context.Context, id string) DelegationAPIUpdateRequest // UpdateExecute executes the request - // @return FederationUpdateDelegationResponse - UpdateExecute(r DelegationAPIUpdateRequest) (*FederationUpdateDelegationResponse, *http.Response, error) + // @return UpdateDelegationResponse + UpdateExecute(r DelegationAPIUpdateRequest) (*UpdateDelegationResponse, *http.Response, error) } // DelegationAPIService DelegationAPI service @@ -127,15 +127,15 @@ type DelegationAPIService internal.Service type DelegationAPIBulkRequest struct { ctx context.Context ApiService DelegationAPI - body *FederationDelegationBulkRequest + body *DelegationBulkRequest } -func (r DelegationAPIBulkRequest) Body(body FederationDelegationBulkRequest) DelegationAPIBulkRequest { +func (r DelegationAPIBulkRequest) Body(body DelegationBulkRequest) DelegationAPIBulkRequest { r.body = &body return r } -func (r DelegationAPIBulkRequest) Execute() (*FederationDelegationBulkResponse, *http.Response, error) { +func (r DelegationAPIBulkRequest) Execute() (*DelegationBulkResponse, *http.Response, error) { return r.ApiService.BulkExecute(r) } @@ -156,13 +156,13 @@ func (a *DelegationAPIService) Bulk(ctx context.Context) DelegationAPIBulkReques // Execute executes the request // -// @return FederationDelegationBulkResponse -func (a *DelegationAPIService) BulkExecute(r DelegationAPIBulkRequest) (*FederationDelegationBulkResponse, *http.Response, error) { +// @return DelegationBulkResponse +func (a *DelegationAPIService) BulkExecute(r DelegationAPIBulkRequest) (*DelegationBulkResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationDelegationBulkResponse + localVarReturnValue *DelegationBulkResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Bulk") @@ -231,15 +231,15 @@ func (a *DelegationAPIService) BulkExecute(r DelegationAPIBulkRequest) (*Federat type DelegationAPICreateRequest struct { ctx context.Context ApiService DelegationAPI - body *FederationDelegation + body *Delegation } -func (r DelegationAPICreateRequest) Body(body FederationDelegation) DelegationAPICreateRequest { +func (r DelegationAPICreateRequest) Body(body Delegation) DelegationAPICreateRequest { r.body = &body return r } -func (r DelegationAPICreateRequest) Execute() (*FederationCreateDelegationResponse, *http.Response, error) { +func (r DelegationAPICreateRequest) Execute() (*CreateDelegationResponse, *http.Response, error) { return r.ApiService.CreateExecute(r) } @@ -261,13 +261,13 @@ func (a *DelegationAPIService) Create(ctx context.Context) DelegationAPICreateRe // Execute executes the request // -// @return FederationCreateDelegationResponse -func (a *DelegationAPIService) CreateExecute(r DelegationAPICreateRequest) (*FederationCreateDelegationResponse, *http.Response, error) { +// @return CreateDelegationResponse +func (a *DelegationAPIService) CreateExecute(r DelegationAPICreateRequest) (*CreateDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateDelegationResponse + localVarReturnValue *CreateDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Create") @@ -569,7 +569,7 @@ func (r DelegationAPIListRequest) Tfilter(tfilter string) DelegationAPIListReque return r } -func (r DelegationAPIListRequest) Execute() (*FederationListDelegationResponse, *http.Response, error) { +func (r DelegationAPIListRequest) Execute() (*ListDelegationResponse, *http.Response, error) { return r.ApiService.ListExecute(r) } @@ -591,13 +591,13 @@ func (a *DelegationAPIService) List(ctx context.Context) DelegationAPIListReques // Execute executes the request // -// @return FederationListDelegationResponse -func (a *DelegationAPIService) ListExecute(r DelegationAPIListRequest) (*FederationListDelegationResponse, *http.Response, error) { +// @return ListDelegationResponse +func (a *DelegationAPIService) ListExecute(r DelegationAPIListRequest) (*ListDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListDelegationResponse + localVarReturnValue *ListDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.List") @@ -695,7 +695,7 @@ func (r DelegationAPIReadRequest) Fields(fields string) DelegationAPIReadRequest return r } -func (r DelegationAPIReadRequest) Execute() (*FederationReadDelegationResponse, *http.Response, error) { +func (r DelegationAPIReadRequest) Execute() (*ReadDelegationResponse, *http.Response, error) { return r.ApiService.ReadExecute(r) } @@ -719,13 +719,13 @@ func (a *DelegationAPIService) Read(ctx context.Context, id string) DelegationAP // Execute executes the request // -// @return FederationReadDelegationResponse -func (a *DelegationAPIService) ReadExecute(r DelegationAPIReadRequest) (*FederationReadDelegationResponse, *http.Response, error) { +// @return ReadDelegationResponse +func (a *DelegationAPIService) ReadExecute(r DelegationAPIReadRequest) (*ReadDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationReadDelegationResponse + localVarReturnValue *ReadDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Read") @@ -794,15 +794,15 @@ type DelegationAPIUpdateRequest struct { ctx context.Context ApiService DelegationAPI id string - body *FederationDelegation + body *Delegation } -func (r DelegationAPIUpdateRequest) Body(body FederationDelegation) DelegationAPIUpdateRequest { +func (r DelegationAPIUpdateRequest) Body(body Delegation) DelegationAPIUpdateRequest { r.body = &body return r } -func (r DelegationAPIUpdateRequest) Execute() (*FederationUpdateDelegationResponse, *http.Response, error) { +func (r DelegationAPIUpdateRequest) Execute() (*UpdateDelegationResponse, *http.Response, error) { return r.ApiService.UpdateExecute(r) } @@ -826,13 +826,13 @@ func (a *DelegationAPIService) Update(ctx context.Context, id string) Delegation // Execute executes the request // -// @return FederationUpdateDelegationResponse -func (a *DelegationAPIService) UpdateExecute(r DelegationAPIUpdateRequest) (*FederationUpdateDelegationResponse, *http.Response, error) { +// @return UpdateDelegationResponse +func (a *DelegationAPIService) UpdateExecute(r DelegationAPIUpdateRequest) (*UpdateDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationUpdateDelegationResponse + localVarReturnValue *UpdateDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "DelegationAPIService.Update") diff --git a/ipamfederation/api_federated_block.go b/ipamfederation/api_federated_block.go index c95fcb5..727a99d 100644 --- a/ipamfederation/api_federated_block.go +++ b/ipamfederation/api_federated_block.go @@ -34,8 +34,8 @@ type FederatedBlockAPI interface { Create(ctx context.Context) FederatedBlockAPICreateRequest // CreateExecute executes the request - // @return FederationCreateFederatedBlockResponse - CreateExecute(r FederatedBlockAPICreateRequest) (*FederationCreateFederatedBlockResponse, *http.Response, error) + // @return CreateFederatedBlockResponse + CreateExecute(r FederatedBlockAPICreateRequest) (*CreateFederatedBlockResponse, *http.Response, error) /* Delete Delete the federated block. @@ -62,8 +62,8 @@ type FederatedBlockAPI interface { List(ctx context.Context) FederatedBlockAPIListRequest // ListExecute executes the request - // @return FederationListFederatedBlockResponse - ListExecute(r FederatedBlockAPIListRequest) (*FederationListFederatedBlockResponse, *http.Response, error) + // @return ListFederatedBlockResponse + ListExecute(r FederatedBlockAPIListRequest) (*ListFederatedBlockResponse, *http.Response, error) /* Read Retrieve the federated block. @@ -77,8 +77,8 @@ type FederatedBlockAPI interface { Read(ctx context.Context, id string) FederatedBlockAPIReadRequest // ReadExecute executes the request - // @return FederationReadFederatedBlockResponse - ReadExecute(r FederatedBlockAPIReadRequest) (*FederationReadFederatedBlockResponse, *http.Response, error) + // @return ReadFederatedBlockResponse + ReadExecute(r FederatedBlockAPIReadRequest) (*ReadFederatedBlockResponse, *http.Response, error) /* Update Update the federated block. @@ -92,8 +92,8 @@ type FederatedBlockAPI interface { Update(ctx context.Context, id string) FederatedBlockAPIUpdateRequest // UpdateExecute executes the request - // @return FederationUpdateFederatedBlockResponse - UpdateExecute(r FederatedBlockAPIUpdateRequest) (*FederationUpdateFederatedBlockResponse, *http.Response, error) + // @return UpdateFederatedBlockResponse + UpdateExecute(r FederatedBlockAPIUpdateRequest) (*UpdateFederatedBlockResponse, *http.Response, error) } // FederatedBlockAPIService FederatedBlockAPI service @@ -102,15 +102,15 @@ type FederatedBlockAPIService internal.Service type FederatedBlockAPICreateRequest struct { ctx context.Context ApiService FederatedBlockAPI - body *FederationFederatedBlock + body *FederatedBlock } -func (r FederatedBlockAPICreateRequest) Body(body FederationFederatedBlock) FederatedBlockAPICreateRequest { +func (r FederatedBlockAPICreateRequest) Body(body FederatedBlock) FederatedBlockAPICreateRequest { r.body = &body return r } -func (r FederatedBlockAPICreateRequest) Execute() (*FederationCreateFederatedBlockResponse, *http.Response, error) { +func (r FederatedBlockAPICreateRequest) Execute() (*CreateFederatedBlockResponse, *http.Response, error) { return r.ApiService.CreateExecute(r) } @@ -132,13 +132,13 @@ func (a *FederatedBlockAPIService) Create(ctx context.Context) FederatedBlockAPI // Execute executes the request // -// @return FederationCreateFederatedBlockResponse -func (a *FederatedBlockAPIService) CreateExecute(r FederatedBlockAPICreateRequest) (*FederationCreateFederatedBlockResponse, *http.Response, error) { +// @return CreateFederatedBlockResponse +func (a *FederatedBlockAPIService) CreateExecute(r FederatedBlockAPICreateRequest) (*CreateFederatedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateFederatedBlockResponse + localVarReturnValue *CreateFederatedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.Create") @@ -355,7 +355,7 @@ func (r FederatedBlockAPIListRequest) Tfilter(tfilter string) FederatedBlockAPIL return r } -func (r FederatedBlockAPIListRequest) Execute() (*FederationListFederatedBlockResponse, *http.Response, error) { +func (r FederatedBlockAPIListRequest) Execute() (*ListFederatedBlockResponse, *http.Response, error) { return r.ApiService.ListExecute(r) } @@ -377,13 +377,13 @@ func (a *FederatedBlockAPIService) List(ctx context.Context) FederatedBlockAPILi // Execute executes the request // -// @return FederationListFederatedBlockResponse -func (a *FederatedBlockAPIService) ListExecute(r FederatedBlockAPIListRequest) (*FederationListFederatedBlockResponse, *http.Response, error) { +// @return ListFederatedBlockResponse +func (a *FederatedBlockAPIService) ListExecute(r FederatedBlockAPIListRequest) (*ListFederatedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListFederatedBlockResponse + localVarReturnValue *ListFederatedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.List") @@ -481,7 +481,7 @@ func (r FederatedBlockAPIReadRequest) Fields(fields string) FederatedBlockAPIRea return r } -func (r FederatedBlockAPIReadRequest) Execute() (*FederationReadFederatedBlockResponse, *http.Response, error) { +func (r FederatedBlockAPIReadRequest) Execute() (*ReadFederatedBlockResponse, *http.Response, error) { return r.ApiService.ReadExecute(r) } @@ -505,13 +505,13 @@ func (a *FederatedBlockAPIService) Read(ctx context.Context, id string) Federate // Execute executes the request // -// @return FederationReadFederatedBlockResponse -func (a *FederatedBlockAPIService) ReadExecute(r FederatedBlockAPIReadRequest) (*FederationReadFederatedBlockResponse, *http.Response, error) { +// @return ReadFederatedBlockResponse +func (a *FederatedBlockAPIService) ReadExecute(r FederatedBlockAPIReadRequest) (*ReadFederatedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationReadFederatedBlockResponse + localVarReturnValue *ReadFederatedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.Read") @@ -580,15 +580,15 @@ type FederatedBlockAPIUpdateRequest struct { ctx context.Context ApiService FederatedBlockAPI id string - body *FederationFederatedBlock + body *FederatedBlock } -func (r FederatedBlockAPIUpdateRequest) Body(body FederationFederatedBlock) FederatedBlockAPIUpdateRequest { +func (r FederatedBlockAPIUpdateRequest) Body(body FederatedBlock) FederatedBlockAPIUpdateRequest { r.body = &body return r } -func (r FederatedBlockAPIUpdateRequest) Execute() (*FederationUpdateFederatedBlockResponse, *http.Response, error) { +func (r FederatedBlockAPIUpdateRequest) Execute() (*UpdateFederatedBlockResponse, *http.Response, error) { return r.ApiService.UpdateExecute(r) } @@ -612,13 +612,13 @@ func (a *FederatedBlockAPIService) Update(ctx context.Context, id string) Federa // Execute executes the request // -// @return FederationUpdateFederatedBlockResponse -func (a *FederatedBlockAPIService) UpdateExecute(r FederatedBlockAPIUpdateRequest) (*FederationUpdateFederatedBlockResponse, *http.Response, error) { +// @return UpdateFederatedBlockResponse +func (a *FederatedBlockAPIService) UpdateExecute(r FederatedBlockAPIUpdateRequest) (*UpdateFederatedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationUpdateFederatedBlockResponse + localVarReturnValue *UpdateFederatedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedBlockAPIService.Update") diff --git a/ipamfederation/api_federated_realm.go b/ipamfederation/api_federated_realm.go index 3de8fa8..88b3035 100644 --- a/ipamfederation/api_federated_realm.go +++ b/ipamfederation/api_federated_realm.go @@ -34,8 +34,8 @@ type FederatedRealmAPI interface { Create(ctx context.Context) FederatedRealmAPICreateRequest // CreateExecute executes the request - // @return FederationCreateFederatedRealmResponse - CreateExecute(r FederatedRealmAPICreateRequest) (*FederationCreateFederatedRealmResponse, *http.Response, error) + // @return CreateFederatedRealmResponse + CreateExecute(r FederatedRealmAPICreateRequest) (*CreateFederatedRealmResponse, *http.Response, error) /* Delete Delete federated realm. @@ -61,8 +61,8 @@ type FederatedRealmAPI interface { List(ctx context.Context) FederatedRealmAPIListRequest // ListExecute executes the request - // @return FederationListFederatedRealmResponse - ListExecute(r FederatedRealmAPIListRequest) (*FederationListFederatedRealmResponse, *http.Response, error) + // @return ListFederatedRealmResponse + ListExecute(r FederatedRealmAPIListRequest) (*ListFederatedRealmResponse, *http.Response, error) /* Read Retrieve the federated realm. @@ -76,8 +76,8 @@ type FederatedRealmAPI interface { Read(ctx context.Context, id string) FederatedRealmAPIReadRequest // ReadExecute executes the request - // @return FederationReadFederatedRealmResponse - ReadExecute(r FederatedRealmAPIReadRequest) (*FederationReadFederatedRealmResponse, *http.Response, error) + // @return ReadFederatedRealmResponse + ReadExecute(r FederatedRealmAPIReadRequest) (*ReadFederatedRealmResponse, *http.Response, error) /* Update Update the federated realm. @@ -91,8 +91,8 @@ type FederatedRealmAPI interface { Update(ctx context.Context, id string) FederatedRealmAPIUpdateRequest // UpdateExecute executes the request - // @return FederationUpdateFederatedRealmResponse - UpdateExecute(r FederatedRealmAPIUpdateRequest) (*FederationUpdateFederatedRealmResponse, *http.Response, error) + // @return UpdateFederatedRealmResponse + UpdateExecute(r FederatedRealmAPIUpdateRequest) (*UpdateFederatedRealmResponse, *http.Response, error) } // FederatedRealmAPIService FederatedRealmAPI service @@ -101,15 +101,15 @@ type FederatedRealmAPIService internal.Service type FederatedRealmAPICreateRequest struct { ctx context.Context ApiService FederatedRealmAPI - body *FederationFederatedRealm + body *FederatedRealm } -func (r FederatedRealmAPICreateRequest) Body(body FederationFederatedRealm) FederatedRealmAPICreateRequest { +func (r FederatedRealmAPICreateRequest) Body(body FederatedRealm) FederatedRealmAPICreateRequest { r.body = &body return r } -func (r FederatedRealmAPICreateRequest) Execute() (*FederationCreateFederatedRealmResponse, *http.Response, error) { +func (r FederatedRealmAPICreateRequest) Execute() (*CreateFederatedRealmResponse, *http.Response, error) { return r.ApiService.CreateExecute(r) } @@ -131,13 +131,13 @@ func (a *FederatedRealmAPIService) Create(ctx context.Context) FederatedRealmAPI // Execute executes the request // -// @return FederationCreateFederatedRealmResponse -func (a *FederatedRealmAPIService) CreateExecute(r FederatedRealmAPICreateRequest) (*FederationCreateFederatedRealmResponse, *http.Response, error) { +// @return CreateFederatedRealmResponse +func (a *FederatedRealmAPIService) CreateExecute(r FederatedRealmAPICreateRequest) (*CreateFederatedRealmResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateFederatedRealmResponse + localVarReturnValue *CreateFederatedRealmResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.Create") @@ -353,7 +353,7 @@ func (r FederatedRealmAPIListRequest) Tfilter(tfilter string) FederatedRealmAPIL return r } -func (r FederatedRealmAPIListRequest) Execute() (*FederationListFederatedRealmResponse, *http.Response, error) { +func (r FederatedRealmAPIListRequest) Execute() (*ListFederatedRealmResponse, *http.Response, error) { return r.ApiService.ListExecute(r) } @@ -375,13 +375,13 @@ func (a *FederatedRealmAPIService) List(ctx context.Context) FederatedRealmAPILi // Execute executes the request // -// @return FederationListFederatedRealmResponse -func (a *FederatedRealmAPIService) ListExecute(r FederatedRealmAPIListRequest) (*FederationListFederatedRealmResponse, *http.Response, error) { +// @return ListFederatedRealmResponse +func (a *FederatedRealmAPIService) ListExecute(r FederatedRealmAPIListRequest) (*ListFederatedRealmResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListFederatedRealmResponse + localVarReturnValue *ListFederatedRealmResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.List") @@ -479,7 +479,7 @@ func (r FederatedRealmAPIReadRequest) Fields(fields string) FederatedRealmAPIRea return r } -func (r FederatedRealmAPIReadRequest) Execute() (*FederationReadFederatedRealmResponse, *http.Response, error) { +func (r FederatedRealmAPIReadRequest) Execute() (*ReadFederatedRealmResponse, *http.Response, error) { return r.ApiService.ReadExecute(r) } @@ -503,13 +503,13 @@ func (a *FederatedRealmAPIService) Read(ctx context.Context, id string) Federate // Execute executes the request // -// @return FederationReadFederatedRealmResponse -func (a *FederatedRealmAPIService) ReadExecute(r FederatedRealmAPIReadRequest) (*FederationReadFederatedRealmResponse, *http.Response, error) { +// @return ReadFederatedRealmResponse +func (a *FederatedRealmAPIService) ReadExecute(r FederatedRealmAPIReadRequest) (*ReadFederatedRealmResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationReadFederatedRealmResponse + localVarReturnValue *ReadFederatedRealmResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.Read") @@ -578,15 +578,15 @@ type FederatedRealmAPIUpdateRequest struct { ctx context.Context ApiService FederatedRealmAPI id string - body *FederationFederatedRealm + body *FederatedRealm } -func (r FederatedRealmAPIUpdateRequest) Body(body FederationFederatedRealm) FederatedRealmAPIUpdateRequest { +func (r FederatedRealmAPIUpdateRequest) Body(body FederatedRealm) FederatedRealmAPIUpdateRequest { r.body = &body return r } -func (r FederatedRealmAPIUpdateRequest) Execute() (*FederationUpdateFederatedRealmResponse, *http.Response, error) { +func (r FederatedRealmAPIUpdateRequest) Execute() (*UpdateFederatedRealmResponse, *http.Response, error) { return r.ApiService.UpdateExecute(r) } @@ -610,13 +610,13 @@ func (a *FederatedRealmAPIService) Update(ctx context.Context, id string) Federa // Execute executes the request // -// @return FederationUpdateFederatedRealmResponse -func (a *FederatedRealmAPIService) UpdateExecute(r FederatedRealmAPIUpdateRequest) (*FederationUpdateFederatedRealmResponse, *http.Response, error) { +// @return UpdateFederatedRealmResponse +func (a *FederatedRealmAPIService) UpdateExecute(r FederatedRealmAPIUpdateRequest) (*UpdateFederatedRealmResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationUpdateFederatedRealmResponse + localVarReturnValue *UpdateFederatedRealmResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "FederatedRealmAPIService.Update") diff --git a/ipamfederation/api_next_available_delegation.go b/ipamfederation/api_next_available_delegation.go index d187520..028ea78 100644 --- a/ipamfederation/api_next_available_delegation.go +++ b/ipamfederation/api_next_available_delegation.go @@ -33,8 +33,8 @@ type NextAvailableDelegationAPI interface { GetNextAvailableDelegation(ctx context.Context) NextAvailableDelegationAPIGetNextAvailableDelegationRequest // GetNextAvailableDelegationExecute executes the request - // @return FederationGetNextAvailableDelegationResponse - GetNextAvailableDelegationExecute(r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) (*FederationGetNextAvailableDelegationResponse, *http.Response, error) + // @return GetNextAvailableDelegationResponse + GetNextAvailableDelegationExecute(r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) (*GetNextAvailableDelegationResponse, *http.Response, error) } // NextAvailableDelegationAPIService NextAvailableDelegationAPI service @@ -43,15 +43,15 @@ type NextAvailableDelegationAPIService internal.Service type NextAvailableDelegationAPIGetNextAvailableDelegationRequest struct { ctx context.Context ApiService NextAvailableDelegationAPI - body *FederationGetNextAvailableDelegationRequest + body *GetNextAvailableDelegationRequest } -func (r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) Body(body FederationGetNextAvailableDelegationRequest) NextAvailableDelegationAPIGetNextAvailableDelegationRequest { +func (r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) Body(body GetNextAvailableDelegationRequest) NextAvailableDelegationAPIGetNextAvailableDelegationRequest { r.body = &body return r } -func (r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) Execute() (*FederationGetNextAvailableDelegationResponse, *http.Response, error) { +func (r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) Execute() (*GetNextAvailableDelegationResponse, *http.Response, error) { return r.ApiService.GetNextAvailableDelegationExecute(r) } @@ -73,13 +73,13 @@ func (a *NextAvailableDelegationAPIService) GetNextAvailableDelegation(ctx conte // Execute executes the request // -// @return FederationGetNextAvailableDelegationResponse -func (a *NextAvailableDelegationAPIService) GetNextAvailableDelegationExecute(r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) (*FederationGetNextAvailableDelegationResponse, *http.Response, error) { +// @return GetNextAvailableDelegationResponse +func (a *NextAvailableDelegationAPIService) GetNextAvailableDelegationExecute(r NextAvailableDelegationAPIGetNextAvailableDelegationRequest) (*GetNextAvailableDelegationResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationGetNextAvailableDelegationResponse + localVarReturnValue *GetNextAvailableDelegationResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableDelegationAPIService.GetNextAvailableDelegation") diff --git a/ipamfederation/api_next_available_federated_block.go b/ipamfederation/api_next_available_federated_block.go index e6fc0d7..bf6a70e 100644 --- a/ipamfederation/api_next_available_federated_block.go +++ b/ipamfederation/api_next_available_federated_block.go @@ -35,8 +35,8 @@ type NextAvailableFederatedBlockAPI interface { CreateNextAvailableFederatedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest // CreateNextAvailableFederatedBlocksExecute executes the request - // @return FederationCreateNextAvailableFederatedBlockResponse - CreateNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) (*FederationCreateNextAvailableFederatedBlockResponse, *http.Response, error) + // @return CreateNextAvailableFederatedBlockResponse + CreateNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) (*CreateNextAvailableFederatedBlockResponse, *http.Response, error) /* CreateNextAvailableOverlappingBlocks Retrieve the next available overlapping block. @@ -50,8 +50,8 @@ type NextAvailableFederatedBlockAPI interface { CreateNextAvailableOverlappingBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest // CreateNextAvailableOverlappingBlocksExecute executes the request - // @return FederationCreateNextAvailableOverlappingBlockResponse - CreateNextAvailableOverlappingBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) (*FederationCreateNextAvailableOverlappingBlockResponse, *http.Response, error) + // @return CreateNextAvailableOverlappingBlockResponse + CreateNextAvailableOverlappingBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) (*CreateNextAvailableOverlappingBlockResponse, *http.Response, error) /* CreateNextAvailableReservedBlocks Retrieve the next available reserved block. @@ -65,8 +65,8 @@ type NextAvailableFederatedBlockAPI interface { CreateNextAvailableReservedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest // CreateNextAvailableReservedBlocksExecute executes the request - // @return FederationCreateNextAvailableReservedBlockResponse - CreateNextAvailableReservedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) (*FederationCreateNextAvailableReservedBlockResponse, *http.Response, error) + // @return CreateNextAvailableReservedBlockResponse + CreateNextAvailableReservedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) (*CreateNextAvailableReservedBlockResponse, *http.Response, error) /* ListNextAvailableFederatedBlocks List the next available federated block. @@ -80,8 +80,8 @@ type NextAvailableFederatedBlockAPI interface { ListNextAvailableFederatedBlocks(ctx context.Context, id string) NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest // ListNextAvailableFederatedBlocksExecute executes the request - // @return FederationListNextAvailableFederatedBlockResponse - ListNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) (*FederationListNextAvailableFederatedBlockResponse, *http.Response, error) + // @return ListNextAvailableFederatedBlockResponse + ListNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) (*ListNextAvailableFederatedBlockResponse, *http.Response, error) } // NextAvailableFederatedBlockAPIService NextAvailableFederatedBlockAPI service @@ -91,15 +91,15 @@ type NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest str ctx context.Context ApiService NextAvailableFederatedBlockAPI id string - body *FederationNextAvailableBlockRequest + body *NextAvailableBlockRequest } -func (r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) Body(body FederationNextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest { +func (r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) Body(body NextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest { r.body = &body return r } -func (r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) Execute() (*FederationCreateNextAvailableFederatedBlockResponse, *http.Response, error) { +func (r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) Execute() (*CreateNextAvailableFederatedBlockResponse, *http.Response, error) { return r.ApiService.CreateNextAvailableFederatedBlocksExecute(r) } @@ -123,13 +123,13 @@ func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableFederatedBloc // Execute executes the request // -// @return FederationCreateNextAvailableFederatedBlockResponse -func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) (*FederationCreateNextAvailableFederatedBlockResponse, *http.Response, error) { +// @return CreateNextAvailableFederatedBlockResponse +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableFederatedBlocksRequest) (*CreateNextAvailableFederatedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateNextAvailableFederatedBlockResponse + localVarReturnValue *CreateNextAvailableFederatedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.CreateNextAvailableFederatedBlocks") @@ -200,15 +200,15 @@ type NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest s ctx context.Context ApiService NextAvailableFederatedBlockAPI id string - body *FederationNextAvailableBlockRequest + body *NextAvailableBlockRequest } -func (r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) Body(body FederationNextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest { +func (r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) Body(body NextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest { r.body = &body return r } -func (r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) Execute() (*FederationCreateNextAvailableOverlappingBlockResponse, *http.Response, error) { +func (r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) Execute() (*CreateNextAvailableOverlappingBlockResponse, *http.Response, error) { return r.ApiService.CreateNextAvailableOverlappingBlocksExecute(r) } @@ -232,13 +232,13 @@ func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableOverlappingBl // Execute executes the request // -// @return FederationCreateNextAvailableOverlappingBlockResponse -func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableOverlappingBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) (*FederationCreateNextAvailableOverlappingBlockResponse, *http.Response, error) { +// @return CreateNextAvailableOverlappingBlockResponse +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableOverlappingBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableOverlappingBlocksRequest) (*CreateNextAvailableOverlappingBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateNextAvailableOverlappingBlockResponse + localVarReturnValue *CreateNextAvailableOverlappingBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.CreateNextAvailableOverlappingBlocks") @@ -309,15 +309,15 @@ type NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest stru ctx context.Context ApiService NextAvailableFederatedBlockAPI id string - body *FederationNextAvailableBlockRequest + body *NextAvailableBlockRequest } -func (r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) Body(body FederationNextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest { +func (r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) Body(body NextAvailableBlockRequest) NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest { r.body = &body return r } -func (r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) Execute() (*FederationCreateNextAvailableReservedBlockResponse, *http.Response, error) { +func (r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) Execute() (*CreateNextAvailableReservedBlockResponse, *http.Response, error) { return r.ApiService.CreateNextAvailableReservedBlocksExecute(r) } @@ -341,13 +341,13 @@ func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableReservedBlock // Execute executes the request // -// @return FederationCreateNextAvailableReservedBlockResponse -func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableReservedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) (*FederationCreateNextAvailableReservedBlockResponse, *http.Response, error) { +// @return CreateNextAvailableReservedBlockResponse +func (a *NextAvailableFederatedBlockAPIService) CreateNextAvailableReservedBlocksExecute(r NextAvailableFederatedBlockAPICreateNextAvailableReservedBlocksRequest) (*CreateNextAvailableReservedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateNextAvailableReservedBlockResponse + localVarReturnValue *CreateNextAvailableReservedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.CreateNextAvailableReservedBlocks") @@ -448,7 +448,7 @@ func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) C return r } -func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) Execute() (*FederationListNextAvailableFederatedBlockResponse, *http.Response, error) { +func (r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) Execute() (*ListNextAvailableFederatedBlockResponse, *http.Response, error) { return r.ApiService.ListNextAvailableFederatedBlocksExecute(r) } @@ -472,13 +472,13 @@ func (a *NextAvailableFederatedBlockAPIService) ListNextAvailableFederatedBlocks // Execute executes the request // -// @return FederationListNextAvailableFederatedBlockResponse -func (a *NextAvailableFederatedBlockAPIService) ListNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) (*FederationListNextAvailableFederatedBlockResponse, *http.Response, error) { +// @return ListNextAvailableFederatedBlockResponse +func (a *NextAvailableFederatedBlockAPIService) ListNextAvailableFederatedBlocksExecute(r NextAvailableFederatedBlockAPIListNextAvailableFederatedBlocksRequest) (*ListNextAvailableFederatedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListNextAvailableFederatedBlockResponse + localVarReturnValue *ListNextAvailableFederatedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableFederatedBlockAPIService.ListNextAvailableFederatedBlocks") diff --git a/ipamfederation/api_next_available_overlapping_block.go b/ipamfederation/api_next_available_overlapping_block.go index f96b7f4..d0d8276 100644 --- a/ipamfederation/api_next_available_overlapping_block.go +++ b/ipamfederation/api_next_available_overlapping_block.go @@ -35,8 +35,8 @@ type NextAvailableOverlappingBlockAPI interface { ListNextAvailableOverlappingBlocks(ctx context.Context, id string) NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest // ListNextAvailableOverlappingBlocksExecute executes the request - // @return FederationListNextAvailableOverlappingBlockResponse - ListNextAvailableOverlappingBlocksExecute(r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) (*FederationListNextAvailableOverlappingBlockResponse, *http.Response, error) + // @return ListNextAvailableOverlappingBlockResponse + ListNextAvailableOverlappingBlocksExecute(r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) (*ListNextAvailableOverlappingBlockResponse, *http.Response, error) } // NextAvailableOverlappingBlockAPIService NextAvailableOverlappingBlockAPI service @@ -76,7 +76,7 @@ func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksReques return r } -func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) Execute() (*FederationListNextAvailableOverlappingBlockResponse, *http.Response, error) { +func (r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) Execute() (*ListNextAvailableOverlappingBlockResponse, *http.Response, error) { return r.ApiService.ListNextAvailableOverlappingBlocksExecute(r) } @@ -100,13 +100,13 @@ func (a *NextAvailableOverlappingBlockAPIService) ListNextAvailableOverlappingBl // Execute executes the request // -// @return FederationListNextAvailableOverlappingBlockResponse -func (a *NextAvailableOverlappingBlockAPIService) ListNextAvailableOverlappingBlocksExecute(r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) (*FederationListNextAvailableOverlappingBlockResponse, *http.Response, error) { +// @return ListNextAvailableOverlappingBlockResponse +func (a *NextAvailableOverlappingBlockAPIService) ListNextAvailableOverlappingBlocksExecute(r NextAvailableOverlappingBlockAPIListNextAvailableOverlappingBlocksRequest) (*ListNextAvailableOverlappingBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListNextAvailableOverlappingBlockResponse + localVarReturnValue *ListNextAvailableOverlappingBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableOverlappingBlockAPIService.ListNextAvailableOverlappingBlocks") diff --git a/ipamfederation/api_next_available_reserved_block.go b/ipamfederation/api_next_available_reserved_block.go index a351ede..1cdc4c6 100644 --- a/ipamfederation/api_next_available_reserved_block.go +++ b/ipamfederation/api_next_available_reserved_block.go @@ -35,8 +35,8 @@ type NextAvailableReservedBlockAPI interface { ListNextAvailableReservedBlocks(ctx context.Context, id string) NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest // ListNextAvailableReservedBlocksExecute executes the request - // @return FederationListNextAvailableReservedBlockResponse - ListNextAvailableReservedBlocksExecute(r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) (*FederationListNextAvailableReservedBlockResponse, *http.Response, error) + // @return ListNextAvailableReservedBlockResponse + ListNextAvailableReservedBlocksExecute(r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) (*ListNextAvailableReservedBlockResponse, *http.Response, error) } // NextAvailableReservedBlockAPIService NextAvailableReservedBlockAPI service @@ -76,7 +76,7 @@ func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Com return r } -func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Execute() (*FederationListNextAvailableReservedBlockResponse, *http.Response, error) { +func (r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) Execute() (*ListNextAvailableReservedBlockResponse, *http.Response, error) { return r.ApiService.ListNextAvailableReservedBlocksExecute(r) } @@ -100,13 +100,13 @@ func (a *NextAvailableReservedBlockAPIService) ListNextAvailableReservedBlocks(c // Execute executes the request // -// @return FederationListNextAvailableReservedBlockResponse -func (a *NextAvailableReservedBlockAPIService) ListNextAvailableReservedBlocksExecute(r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) (*FederationListNextAvailableReservedBlockResponse, *http.Response, error) { +// @return ListNextAvailableReservedBlockResponse +func (a *NextAvailableReservedBlockAPIService) ListNextAvailableReservedBlocksExecute(r NextAvailableReservedBlockAPIListNextAvailableReservedBlocksRequest) (*ListNextAvailableReservedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListNextAvailableReservedBlockResponse + localVarReturnValue *ListNextAvailableReservedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "NextAvailableReservedBlockAPIService.ListNextAvailableReservedBlocks") diff --git a/ipamfederation/api_overlapping_block.go b/ipamfederation/api_overlapping_block.go index 7f9a6bf..6c8bb57 100644 --- a/ipamfederation/api_overlapping_block.go +++ b/ipamfederation/api_overlapping_block.go @@ -34,8 +34,8 @@ type OverlappingBlockAPI interface { Create(ctx context.Context) OverlappingBlockAPICreateRequest // CreateExecute executes the request - // @return FederationCreateOverlappingBlockResponse - CreateExecute(r OverlappingBlockAPICreateRequest) (*FederationCreateOverlappingBlockResponse, *http.Response, error) + // @return CreateOverlappingBlockResponse + CreateExecute(r OverlappingBlockAPICreateRequest) (*CreateOverlappingBlockResponse, *http.Response, error) /* Delete Delete the overlapping block. @@ -62,8 +62,8 @@ type OverlappingBlockAPI interface { List(ctx context.Context) OverlappingBlockAPIListRequest // ListExecute executes the request - // @return FederationListOverlappingBlockResponse - ListExecute(r OverlappingBlockAPIListRequest) (*FederationListOverlappingBlockResponse, *http.Response, error) + // @return ListOverlappingBlockResponse + ListExecute(r OverlappingBlockAPIListRequest) (*ListOverlappingBlockResponse, *http.Response, error) /* Read Retrieve the overlapping block. @@ -77,8 +77,8 @@ type OverlappingBlockAPI interface { Read(ctx context.Context, id string) OverlappingBlockAPIReadRequest // ReadExecute executes the request - // @return FederationReadOverlappingBlockResponse - ReadExecute(r OverlappingBlockAPIReadRequest) (*FederationReadOverlappingBlockResponse, *http.Response, error) + // @return ReadOverlappingBlockResponse + ReadExecute(r OverlappingBlockAPIReadRequest) (*ReadOverlappingBlockResponse, *http.Response, error) /* Update Update the overlapping block. @@ -92,8 +92,8 @@ type OverlappingBlockAPI interface { Update(ctx context.Context, id string) OverlappingBlockAPIUpdateRequest // UpdateExecute executes the request - // @return FederationUpdateOverlappingBlockResponse - UpdateExecute(r OverlappingBlockAPIUpdateRequest) (*FederationUpdateOverlappingBlockResponse, *http.Response, error) + // @return UpdateOverlappingBlockResponse + UpdateExecute(r OverlappingBlockAPIUpdateRequest) (*UpdateOverlappingBlockResponse, *http.Response, error) } // OverlappingBlockAPIService OverlappingBlockAPI service @@ -102,15 +102,15 @@ type OverlappingBlockAPIService internal.Service type OverlappingBlockAPICreateRequest struct { ctx context.Context ApiService OverlappingBlockAPI - body *FederationOverlappingBlock + body *OverlappingBlock } -func (r OverlappingBlockAPICreateRequest) Body(body FederationOverlappingBlock) OverlappingBlockAPICreateRequest { +func (r OverlappingBlockAPICreateRequest) Body(body OverlappingBlock) OverlappingBlockAPICreateRequest { r.body = &body return r } -func (r OverlappingBlockAPICreateRequest) Execute() (*FederationCreateOverlappingBlockResponse, *http.Response, error) { +func (r OverlappingBlockAPICreateRequest) Execute() (*CreateOverlappingBlockResponse, *http.Response, error) { return r.ApiService.CreateExecute(r) } @@ -132,13 +132,13 @@ func (a *OverlappingBlockAPIService) Create(ctx context.Context) OverlappingBloc // Execute executes the request // -// @return FederationCreateOverlappingBlockResponse -func (a *OverlappingBlockAPIService) CreateExecute(r OverlappingBlockAPICreateRequest) (*FederationCreateOverlappingBlockResponse, *http.Response, error) { +// @return CreateOverlappingBlockResponse +func (a *OverlappingBlockAPIService) CreateExecute(r OverlappingBlockAPICreateRequest) (*CreateOverlappingBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateOverlappingBlockResponse + localVarReturnValue *CreateOverlappingBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.Create") @@ -355,7 +355,7 @@ func (r OverlappingBlockAPIListRequest) Tfilter(tfilter string) OverlappingBlock return r } -func (r OverlappingBlockAPIListRequest) Execute() (*FederationListOverlappingBlockResponse, *http.Response, error) { +func (r OverlappingBlockAPIListRequest) Execute() (*ListOverlappingBlockResponse, *http.Response, error) { return r.ApiService.ListExecute(r) } @@ -377,13 +377,13 @@ func (a *OverlappingBlockAPIService) List(ctx context.Context) OverlappingBlockA // Execute executes the request // -// @return FederationListOverlappingBlockResponse -func (a *OverlappingBlockAPIService) ListExecute(r OverlappingBlockAPIListRequest) (*FederationListOverlappingBlockResponse, *http.Response, error) { +// @return ListOverlappingBlockResponse +func (a *OverlappingBlockAPIService) ListExecute(r OverlappingBlockAPIListRequest) (*ListOverlappingBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListOverlappingBlockResponse + localVarReturnValue *ListOverlappingBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.List") @@ -481,7 +481,7 @@ func (r OverlappingBlockAPIReadRequest) Fields(fields string) OverlappingBlockAP return r } -func (r OverlappingBlockAPIReadRequest) Execute() (*FederationReadOverlappingBlockResponse, *http.Response, error) { +func (r OverlappingBlockAPIReadRequest) Execute() (*ReadOverlappingBlockResponse, *http.Response, error) { return r.ApiService.ReadExecute(r) } @@ -505,13 +505,13 @@ func (a *OverlappingBlockAPIService) Read(ctx context.Context, id string) Overla // Execute executes the request // -// @return FederationReadOverlappingBlockResponse -func (a *OverlappingBlockAPIService) ReadExecute(r OverlappingBlockAPIReadRequest) (*FederationReadOverlappingBlockResponse, *http.Response, error) { +// @return ReadOverlappingBlockResponse +func (a *OverlappingBlockAPIService) ReadExecute(r OverlappingBlockAPIReadRequest) (*ReadOverlappingBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationReadOverlappingBlockResponse + localVarReturnValue *ReadOverlappingBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.Read") @@ -580,15 +580,15 @@ type OverlappingBlockAPIUpdateRequest struct { ctx context.Context ApiService OverlappingBlockAPI id string - body *FederationOverlappingBlock + body *OverlappingBlock } -func (r OverlappingBlockAPIUpdateRequest) Body(body FederationOverlappingBlock) OverlappingBlockAPIUpdateRequest { +func (r OverlappingBlockAPIUpdateRequest) Body(body OverlappingBlock) OverlappingBlockAPIUpdateRequest { r.body = &body return r } -func (r OverlappingBlockAPIUpdateRequest) Execute() (*FederationUpdateOverlappingBlockResponse, *http.Response, error) { +func (r OverlappingBlockAPIUpdateRequest) Execute() (*UpdateOverlappingBlockResponse, *http.Response, error) { return r.ApiService.UpdateExecute(r) } @@ -612,13 +612,13 @@ func (a *OverlappingBlockAPIService) Update(ctx context.Context, id string) Over // Execute executes the request // -// @return FederationUpdateOverlappingBlockResponse -func (a *OverlappingBlockAPIService) UpdateExecute(r OverlappingBlockAPIUpdateRequest) (*FederationUpdateOverlappingBlockResponse, *http.Response, error) { +// @return UpdateOverlappingBlockResponse +func (a *OverlappingBlockAPIService) UpdateExecute(r OverlappingBlockAPIUpdateRequest) (*UpdateOverlappingBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationUpdateOverlappingBlockResponse + localVarReturnValue *UpdateOverlappingBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "OverlappingBlockAPIService.Update") diff --git a/ipamfederation/api_reserved_block.go b/ipamfederation/api_reserved_block.go index 795ebe4..ebb012a 100644 --- a/ipamfederation/api_reserved_block.go +++ b/ipamfederation/api_reserved_block.go @@ -34,8 +34,8 @@ type ReservedBlockAPI interface { Create(ctx context.Context) ReservedBlockAPICreateRequest // CreateExecute executes the request - // @return FederationCreateReservedBlockResponse - CreateExecute(r ReservedBlockAPICreateRequest) (*FederationCreateReservedBlockResponse, *http.Response, error) + // @return CreateReservedBlockResponse + CreateExecute(r ReservedBlockAPICreateRequest) (*CreateReservedBlockResponse, *http.Response, error) /* Delete Delete the reserved block. @@ -62,8 +62,8 @@ type ReservedBlockAPI interface { List(ctx context.Context) ReservedBlockAPIListRequest // ListExecute executes the request - // @return FederationListReservedBlockResponse - ListExecute(r ReservedBlockAPIListRequest) (*FederationListReservedBlockResponse, *http.Response, error) + // @return ListReservedBlockResponse + ListExecute(r ReservedBlockAPIListRequest) (*ListReservedBlockResponse, *http.Response, error) /* Read Retrieve the reserved block. @@ -77,8 +77,8 @@ type ReservedBlockAPI interface { Read(ctx context.Context, id string) ReservedBlockAPIReadRequest // ReadExecute executes the request - // @return FederationReadReservedBlockResponse - ReadExecute(r ReservedBlockAPIReadRequest) (*FederationReadReservedBlockResponse, *http.Response, error) + // @return ReadReservedBlockResponse + ReadExecute(r ReservedBlockAPIReadRequest) (*ReadReservedBlockResponse, *http.Response, error) /* Update Update the reserved block. @@ -92,8 +92,8 @@ type ReservedBlockAPI interface { Update(ctx context.Context, id string) ReservedBlockAPIUpdateRequest // UpdateExecute executes the request - // @return FederationUpdateReservedBlockResponse - UpdateExecute(r ReservedBlockAPIUpdateRequest) (*FederationUpdateReservedBlockResponse, *http.Response, error) + // @return UpdateReservedBlockResponse + UpdateExecute(r ReservedBlockAPIUpdateRequest) (*UpdateReservedBlockResponse, *http.Response, error) } // ReservedBlockAPIService ReservedBlockAPI service @@ -102,15 +102,15 @@ type ReservedBlockAPIService internal.Service type ReservedBlockAPICreateRequest struct { ctx context.Context ApiService ReservedBlockAPI - body *FederationReservedBlock + body *ReservedBlock } -func (r ReservedBlockAPICreateRequest) Body(body FederationReservedBlock) ReservedBlockAPICreateRequest { +func (r ReservedBlockAPICreateRequest) Body(body ReservedBlock) ReservedBlockAPICreateRequest { r.body = &body return r } -func (r ReservedBlockAPICreateRequest) Execute() (*FederationCreateReservedBlockResponse, *http.Response, error) { +func (r ReservedBlockAPICreateRequest) Execute() (*CreateReservedBlockResponse, *http.Response, error) { return r.ApiService.CreateExecute(r) } @@ -132,13 +132,13 @@ func (a *ReservedBlockAPIService) Create(ctx context.Context) ReservedBlockAPICr // Execute executes the request // -// @return FederationCreateReservedBlockResponse -func (a *ReservedBlockAPIService) CreateExecute(r ReservedBlockAPICreateRequest) (*FederationCreateReservedBlockResponse, *http.Response, error) { +// @return CreateReservedBlockResponse +func (a *ReservedBlockAPIService) CreateExecute(r ReservedBlockAPICreateRequest) (*CreateReservedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationCreateReservedBlockResponse + localVarReturnValue *CreateReservedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.Create") @@ -355,7 +355,7 @@ func (r ReservedBlockAPIListRequest) Tfilter(tfilter string) ReservedBlockAPILis return r } -func (r ReservedBlockAPIListRequest) Execute() (*FederationListReservedBlockResponse, *http.Response, error) { +func (r ReservedBlockAPIListRequest) Execute() (*ListReservedBlockResponse, *http.Response, error) { return r.ApiService.ListExecute(r) } @@ -377,13 +377,13 @@ func (a *ReservedBlockAPIService) List(ctx context.Context) ReservedBlockAPIList // Execute executes the request // -// @return FederationListReservedBlockResponse -func (a *ReservedBlockAPIService) ListExecute(r ReservedBlockAPIListRequest) (*FederationListReservedBlockResponse, *http.Response, error) { +// @return ListReservedBlockResponse +func (a *ReservedBlockAPIService) ListExecute(r ReservedBlockAPIListRequest) (*ListReservedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationListReservedBlockResponse + localVarReturnValue *ListReservedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.List") @@ -481,7 +481,7 @@ func (r ReservedBlockAPIReadRequest) Fields(fields string) ReservedBlockAPIReadR return r } -func (r ReservedBlockAPIReadRequest) Execute() (*FederationReadReservedBlockResponse, *http.Response, error) { +func (r ReservedBlockAPIReadRequest) Execute() (*ReadReservedBlockResponse, *http.Response, error) { return r.ApiService.ReadExecute(r) } @@ -505,13 +505,13 @@ func (a *ReservedBlockAPIService) Read(ctx context.Context, id string) ReservedB // Execute executes the request // -// @return FederationReadReservedBlockResponse -func (a *ReservedBlockAPIService) ReadExecute(r ReservedBlockAPIReadRequest) (*FederationReadReservedBlockResponse, *http.Response, error) { +// @return ReadReservedBlockResponse +func (a *ReservedBlockAPIService) ReadExecute(r ReservedBlockAPIReadRequest) (*ReadReservedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationReadReservedBlockResponse + localVarReturnValue *ReadReservedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.Read") @@ -580,15 +580,15 @@ type ReservedBlockAPIUpdateRequest struct { ctx context.Context ApiService ReservedBlockAPI id string - body *FederationReservedBlock + body *ReservedBlock } -func (r ReservedBlockAPIUpdateRequest) Body(body FederationReservedBlock) ReservedBlockAPIUpdateRequest { +func (r ReservedBlockAPIUpdateRequest) Body(body ReservedBlock) ReservedBlockAPIUpdateRequest { r.body = &body return r } -func (r ReservedBlockAPIUpdateRequest) Execute() (*FederationUpdateReservedBlockResponse, *http.Response, error) { +func (r ReservedBlockAPIUpdateRequest) Execute() (*UpdateReservedBlockResponse, *http.Response, error) { return r.ApiService.UpdateExecute(r) } @@ -612,13 +612,13 @@ func (a *ReservedBlockAPIService) Update(ctx context.Context, id string) Reserve // Execute executes the request // -// @return FederationUpdateReservedBlockResponse -func (a *ReservedBlockAPIService) UpdateExecute(r ReservedBlockAPIUpdateRequest) (*FederationUpdateReservedBlockResponse, *http.Response, error) { +// @return UpdateReservedBlockResponse +func (a *ReservedBlockAPIService) UpdateExecute(r ReservedBlockAPIUpdateRequest) (*UpdateReservedBlockResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []internal.FormFile - localVarReturnValue *FederationUpdateReservedBlockResponse + localVarReturnValue *UpdateReservedBlockResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "ReservedBlockAPIService.Update") diff --git a/ipamfederation/client.go b/ipamfederation/client.go index 6dfda41..268aee4 100644 --- a/ipamfederation/client.go +++ b/ipamfederation/client.go @@ -23,7 +23,6 @@ type APIClient struct { *internal.APIClient // API Services - BulkAPI BulkAPI ConfigGenAPI ConfigGenAPI DelegationAPI DelegationAPI FederatedBlockAPI FederatedBlockAPI @@ -54,7 +53,6 @@ func NewAPIClient(options ...option.ClientOption) *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) diff --git a/ipamfederation/docs/FederationAllocation.md b/ipamfederation/docs/Allocation.md similarity index 67% rename from ipamfederation/docs/FederationAllocation.md rename to ipamfederation/docs/Allocation.md index 18140ee..b99e298 100644 --- a/ipamfederation/docs/FederationAllocation.md +++ b/ipamfederation/docs/Allocation.md @@ -1,4 +1,4 @@ -# FederationAllocation +# Allocation ## Properties @@ -11,120 +11,120 @@ Name | Type | Description | Notes ## Methods -### NewFederationAllocation +### NewAllocation -`func NewFederationAllocation() *FederationAllocation` +`func NewAllocation() *Allocation` -NewFederationAllocation instantiates a new FederationAllocation object +NewAllocation instantiates a new Allocation 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 +### NewAllocationWithDefaults -`func NewFederationAllocationWithDefaults() *FederationAllocation` +`func NewAllocationWithDefaults() *Allocation` -NewFederationAllocationWithDefaults instantiates a new FederationAllocation object +NewAllocationWithDefaults instantiates a new Allocation 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` +`func (o *Allocation) GetAllocated() int64` GetAllocated returns the Allocated field if non-nil, zero value otherwise. ### GetAllocatedOk -`func (o *FederationAllocation) GetAllocatedOk() (*int64, bool)` +`func (o *Allocation) 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)` +`func (o *Allocation) SetAllocated(v int64)` SetAllocated sets Allocated field to given value. ### HasAllocated -`func (o *FederationAllocation) HasAllocated() bool` +`func (o *Allocation) HasAllocated() bool` HasAllocated returns a boolean if a field has been set. ### GetDelegated -`func (o *FederationAllocation) GetDelegated() int64` +`func (o *Allocation) GetDelegated() int64` GetDelegated returns the Delegated field if non-nil, zero value otherwise. ### GetDelegatedOk -`func (o *FederationAllocation) GetDelegatedOk() (*int64, bool)` +`func (o *Allocation) 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)` +`func (o *Allocation) SetDelegated(v int64)` SetDelegated sets Delegated field to given value. ### HasDelegated -`func (o *FederationAllocation) HasDelegated() bool` +`func (o *Allocation) HasDelegated() bool` HasDelegated returns a boolean if a field has been set. ### GetOverlapping -`func (o *FederationAllocation) GetOverlapping() int64` +`func (o *Allocation) GetOverlapping() int64` GetOverlapping returns the Overlapping field if non-nil, zero value otherwise. ### GetOverlappingOk -`func (o *FederationAllocation) GetOverlappingOk() (*int64, bool)` +`func (o *Allocation) 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)` +`func (o *Allocation) SetOverlapping(v int64)` SetOverlapping sets Overlapping field to given value. ### HasOverlapping -`func (o *FederationAllocation) HasOverlapping() bool` +`func (o *Allocation) HasOverlapping() bool` HasOverlapping returns a boolean if a field has been set. ### GetReserved -`func (o *FederationAllocation) GetReserved() int64` +`func (o *Allocation) GetReserved() int64` GetReserved returns the Reserved field if non-nil, zero value otherwise. ### GetReservedOk -`func (o *FederationAllocation) GetReservedOk() (*int64, bool)` +`func (o *Allocation) 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)` +`func (o *Allocation) SetReserved(v int64)` SetReserved sets Reserved field to given value. ### HasReserved -`func (o *FederationAllocation) HasReserved() bool` +`func (o *Allocation) HasReserved() bool` HasReserved returns a boolean if a field has been set. diff --git a/ipamfederation/docs/BulkAPI.md b/ipamfederation/docs/BulkAPI.md deleted file mode 100644 index 68fb551..0000000 --- a/ipamfederation/docs/BulkAPI.md +++ /dev/null @@ -1,75 +0,0 @@ -# BulkAPI - -All URIs are relative to */api/ddi/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**DelegationBulk**](BulkAPI.md#DelegationBulk) | **Post** /federation/delegation_bulk | Execute multiple operations on delegation objects. - - - -## DelegationBulk - -> FederationDelegationBulkResponse DelegationBulk(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.DelegationBulk(context.Background()).Body(body).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `BulkAPI.DelegationBulk``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DelegationBulk`: FederationDelegationBulkResponse - fmt.Fprintf(os.Stdout, "Response from `BulkAPI.DelegationBulk`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a `BulkAPIDelegationBulkRequest` 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 index b12e320..5e9bafe 100644 --- a/ipamfederation/docs/ConfigGenAPI.md +++ b/ipamfederation/docs/ConfigGenAPI.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## Fetch -> FederationGenerateConfigBundleResponse Fetch(ctx, ophid).Execute() +> GenerateConfigBundleResponse Fetch(ctx, ophid).Execute() @@ -37,7 +37,7 @@ func main() { 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 + // response from `Fetch`: GenerateConfigBundleResponse fmt.Fprintf(os.Stdout, "Response from `ConfigGenAPI.Fetch`: %v\n", resp) } ``` @@ -60,7 +60,7 @@ Name | Type | Description | Notes ### Return type -[**FederationGenerateConfigBundleResponse**](FederationGenerateConfigBundleResponse.md) +[**GenerateConfigBundleResponse**](GenerateConfigBundleResponse.md) ### Authorization @@ -78,7 +78,7 @@ Name | Type | Description | Notes ## UpdateConfigStatus -> FederationHealthCheckConfigResponse UpdateConfigStatus(ctx).Body(body).Execute() +> HealthCheckConfigResponse UpdateConfigStatus(ctx).Body(body).Execute() @@ -96,7 +96,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationHealthConfig() // FederationHealthConfig | + body := *ipamfederation.NewHealthConfig() // HealthConfig | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.ConfigGenAPI.UpdateConfigStatus(context.Background()).Body(body).Execute() @@ -104,7 +104,7 @@ func main() { 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 + // response from `UpdateConfigStatus`: HealthCheckConfigResponse fmt.Fprintf(os.Stdout, "Response from `ConfigGenAPI.UpdateConfigStatus`: %v\n", resp) } ``` @@ -120,11 +120,11 @@ Other parameters are passed through a pointer to a `ConfigGenAPIUpdateConfigStat Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationHealthConfig**](FederationHealthConfig.md) | | +**body** | [**HealthConfig**](HealthConfig.md) | | ### Return type -[**FederationHealthCheckConfigResponse**](FederationHealthCheckConfigResponse.md) +[**HealthCheckConfigResponse**](HealthCheckConfigResponse.md) ### Authorization diff --git a/ipamfederation/docs/FederationConfigObject.md b/ipamfederation/docs/ConfigObject.md similarity index 64% rename from ipamfederation/docs/FederationConfigObject.md rename to ipamfederation/docs/ConfigObject.md index 3d55816..65073be 100644 --- a/ipamfederation/docs/FederationConfigObject.md +++ b/ipamfederation/docs/ConfigObject.md @@ -1,4 +1,4 @@ -# FederationConfigObject +# ConfigObject ## Properties @@ -10,95 +10,95 @@ Name | Type | Description | Notes ## Methods -### NewFederationConfigObject +### NewConfigObject -`func NewFederationConfigObject() *FederationConfigObject` +`func NewConfigObject() *ConfigObject` -NewFederationConfigObject instantiates a new FederationConfigObject object +NewConfigObject instantiates a new ConfigObject 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 +### NewConfigObjectWithDefaults -`func NewFederationConfigObjectWithDefaults() *FederationConfigObject` +`func NewConfigObjectWithDefaults() *ConfigObject` -NewFederationConfigObjectWithDefaults instantiates a new FederationConfigObject object +NewConfigObjectWithDefaults instantiates a new ConfigObject 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` +`func (o *ConfigObject) GetConfigBody() string` GetConfigBody returns the ConfigBody field if non-nil, zero value otherwise. ### GetConfigBodyOk -`func (o *FederationConfigObject) GetConfigBodyOk() (*string, bool)` +`func (o *ConfigObject) 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)` +`func (o *ConfigObject) SetConfigBody(v string)` SetConfigBody sets ConfigBody field to given value. ### HasConfigBody -`func (o *FederationConfigObject) HasConfigBody() bool` +`func (o *ConfigObject) HasConfigBody() bool` HasConfigBody returns a boolean if a field has been set. ### GetOphid -`func (o *FederationConfigObject) GetOphid() string` +`func (o *ConfigObject) GetOphid() string` GetOphid returns the Ophid field if non-nil, zero value otherwise. ### GetOphidOk -`func (o *FederationConfigObject) GetOphidOk() (*string, bool)` +`func (o *ConfigObject) 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)` +`func (o *ConfigObject) SetOphid(v string)` SetOphid sets Ophid field to given value. ### HasOphid -`func (o *FederationConfigObject) HasOphid() bool` +`func (o *ConfigObject) HasOphid() bool` HasOphid returns a boolean if a field has been set. ### GetVersion -`func (o *FederationConfigObject) GetVersion() string` +`func (o *ConfigObject) GetVersion() string` GetVersion returns the Version field if non-nil, zero value otherwise. ### GetVersionOk -`func (o *FederationConfigObject) GetVersionOk() (*string, bool)` +`func (o *ConfigObject) 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)` +`func (o *ConfigObject) SetVersion(v string)` SetVersion sets Version field to given value. ### HasVersion -`func (o *FederationConfigObject) HasVersion() bool` +`func (o *ConfigObject) HasVersion() bool` HasVersion returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationReadDelegationResponse.md b/ipamfederation/docs/CreateDelegationResponse.md similarity index 52% rename from ipamfederation/docs/FederationReadDelegationResponse.md rename to ipamfederation/docs/CreateDelegationResponse.md index d055b3f..4ed7ec3 100644 --- a/ipamfederation/docs/FederationReadDelegationResponse.md +++ b/ipamfederation/docs/CreateDelegationResponse.md @@ -1,52 +1,52 @@ -# FederationReadDelegationResponse +# CreateDelegationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Result** | Pointer to [**FederationDelegation**](FederationDelegation.md) | The Delegation object. | [optional] +**Result** | Pointer to [**Delegation**](Delegation.md) | The created Delegation object. | [optional] ## Methods -### NewFederationReadDelegationResponse +### NewCreateDelegationResponse -`func NewFederationReadDelegationResponse() *FederationReadDelegationResponse` +`func NewCreateDelegationResponse() *CreateDelegationResponse` -NewFederationReadDelegationResponse instantiates a new FederationReadDelegationResponse object +NewCreateDelegationResponse instantiates a new CreateDelegationResponse 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 +### NewCreateDelegationResponseWithDefaults -`func NewFederationReadDelegationResponseWithDefaults() *FederationReadDelegationResponse` +`func NewCreateDelegationResponseWithDefaults() *CreateDelegationResponse` -NewFederationReadDelegationResponseWithDefaults instantiates a new FederationReadDelegationResponse object +NewCreateDelegationResponseWithDefaults instantiates a new CreateDelegationResponse 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` +`func (o *CreateDelegationResponse) GetResult() Delegation` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *FederationReadDelegationResponse) GetResultOk() (*FederationDelegation, bool)` +`func (o *CreateDelegationResponse) GetResultOk() (*Delegation, 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)` +`func (o *CreateDelegationResponse) SetResult(v Delegation)` SetResult sets Result field to given value. ### HasResult -`func (o *FederationReadDelegationResponse) HasResult() bool` +`func (o *CreateDelegationResponse) HasResult() bool` HasResult returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationUpdateDelegationResponse.md b/ipamfederation/docs/CreateFederatedBlockResponse.md similarity index 52% rename from ipamfederation/docs/FederationUpdateDelegationResponse.md rename to ipamfederation/docs/CreateFederatedBlockResponse.md index ea80577..b3e0c8f 100644 --- a/ipamfederation/docs/FederationUpdateDelegationResponse.md +++ b/ipamfederation/docs/CreateFederatedBlockResponse.md @@ -1,52 +1,52 @@ -# FederationUpdateDelegationResponse +# CreateFederatedBlockResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Result** | Pointer to [**FederationDelegation**](FederationDelegation.md) | The Delegation object. | [optional] +**Result** | Pointer to [**FederatedBlock**](FederatedBlock.md) | The created FederatedBlock object. | [optional] ## Methods -### NewFederationUpdateDelegationResponse +### NewCreateFederatedBlockResponse -`func NewFederationUpdateDelegationResponse() *FederationUpdateDelegationResponse` +`func NewCreateFederatedBlockResponse() *CreateFederatedBlockResponse` -NewFederationUpdateDelegationResponse instantiates a new FederationUpdateDelegationResponse object +NewCreateFederatedBlockResponse instantiates a new CreateFederatedBlockResponse 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 +### NewCreateFederatedBlockResponseWithDefaults -`func NewFederationUpdateDelegationResponseWithDefaults() *FederationUpdateDelegationResponse` +`func NewCreateFederatedBlockResponseWithDefaults() *CreateFederatedBlockResponse` -NewFederationUpdateDelegationResponseWithDefaults instantiates a new FederationUpdateDelegationResponse object +NewCreateFederatedBlockResponseWithDefaults instantiates a new CreateFederatedBlockResponse 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` +`func (o *CreateFederatedBlockResponse) GetResult() FederatedBlock` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *FederationUpdateDelegationResponse) GetResultOk() (*FederationDelegation, bool)` +`func (o *CreateFederatedBlockResponse) GetResultOk() (*FederatedBlock, 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)` +`func (o *CreateFederatedBlockResponse) SetResult(v FederatedBlock)` SetResult sets Result field to given value. ### HasResult -`func (o *FederationUpdateDelegationResponse) HasResult() bool` +`func (o *CreateFederatedBlockResponse) HasResult() bool` HasResult returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationCreateDelegationResponse.md b/ipamfederation/docs/CreateFederatedRealmResponse.md similarity index 51% rename from ipamfederation/docs/FederationCreateDelegationResponse.md rename to ipamfederation/docs/CreateFederatedRealmResponse.md index 74be2b3..79f2461 100644 --- a/ipamfederation/docs/FederationCreateDelegationResponse.md +++ b/ipamfederation/docs/CreateFederatedRealmResponse.md @@ -1,52 +1,52 @@ -# FederationCreateDelegationResponse +# CreateFederatedRealmResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Result** | Pointer to [**FederationDelegation**](FederationDelegation.md) | The created Delegation object. | [optional] +**Result** | Pointer to [**FederatedRealm**](FederatedRealm.md) | The created Federated Realm object. | [optional] ## Methods -### NewFederationCreateDelegationResponse +### NewCreateFederatedRealmResponse -`func NewFederationCreateDelegationResponse() *FederationCreateDelegationResponse` +`func NewCreateFederatedRealmResponse() *CreateFederatedRealmResponse` -NewFederationCreateDelegationResponse instantiates a new FederationCreateDelegationResponse object +NewCreateFederatedRealmResponse instantiates a new CreateFederatedRealmResponse 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 +### NewCreateFederatedRealmResponseWithDefaults -`func NewFederationCreateDelegationResponseWithDefaults() *FederationCreateDelegationResponse` +`func NewCreateFederatedRealmResponseWithDefaults() *CreateFederatedRealmResponse` -NewFederationCreateDelegationResponseWithDefaults instantiates a new FederationCreateDelegationResponse object +NewCreateFederatedRealmResponseWithDefaults instantiates a new CreateFederatedRealmResponse 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` +`func (o *CreateFederatedRealmResponse) GetResult() FederatedRealm` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *FederationCreateDelegationResponse) GetResultOk() (*FederationDelegation, bool)` +`func (o *CreateFederatedRealmResponse) GetResultOk() (*FederatedRealm, 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)` +`func (o *CreateFederatedRealmResponse) SetResult(v FederatedRealm)` SetResult sets Result field to given value. ### HasResult -`func (o *FederationCreateDelegationResponse) HasResult() bool` +`func (o *CreateFederatedRealmResponse) HasResult() bool` HasResult returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationListFederatedBlockResponse.md b/ipamfederation/docs/CreateNextAvailableFederatedBlockResponse.md similarity index 50% rename from ipamfederation/docs/FederationListFederatedBlockResponse.md rename to ipamfederation/docs/CreateNextAvailableFederatedBlockResponse.md index fbf5281..49477ba 100644 --- a/ipamfederation/docs/FederationListFederatedBlockResponse.md +++ b/ipamfederation/docs/CreateNextAvailableFederatedBlockResponse.md @@ -1,52 +1,52 @@ -# FederationListFederatedBlockResponse +# CreateNextAvailableFederatedBlockResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Results** | Pointer to [**[]FederationFederatedBlock**](FederationFederatedBlock.md) | A list of FederatedBlock objects. | [optional] +**Results** | Pointer to [**[]FederatedBlock**](FederatedBlock.md) | | [optional] ## Methods -### NewFederationListFederatedBlockResponse +### NewCreateNextAvailableFederatedBlockResponse -`func NewFederationListFederatedBlockResponse() *FederationListFederatedBlockResponse` +`func NewCreateNextAvailableFederatedBlockResponse() *CreateNextAvailableFederatedBlockResponse` -NewFederationListFederatedBlockResponse instantiates a new FederationListFederatedBlockResponse object +NewCreateNextAvailableFederatedBlockResponse instantiates a new CreateNextAvailableFederatedBlockResponse 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 +### NewCreateNextAvailableFederatedBlockResponseWithDefaults -`func NewFederationListFederatedBlockResponseWithDefaults() *FederationListFederatedBlockResponse` +`func NewCreateNextAvailableFederatedBlockResponseWithDefaults() *CreateNextAvailableFederatedBlockResponse` -NewFederationListFederatedBlockResponseWithDefaults instantiates a new FederationListFederatedBlockResponse object +NewCreateNextAvailableFederatedBlockResponseWithDefaults instantiates a new CreateNextAvailableFederatedBlockResponse 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` +`func (o *CreateNextAvailableFederatedBlockResponse) GetResults() []FederatedBlock` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *FederationListFederatedBlockResponse) GetResultsOk() (*[]FederationFederatedBlock, bool)` +`func (o *CreateNextAvailableFederatedBlockResponse) GetResultsOk() (*[]FederatedBlock, 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)` +`func (o *CreateNextAvailableFederatedBlockResponse) SetResults(v []FederatedBlock)` SetResults sets Results field to given value. ### HasResults -`func (o *FederationListFederatedBlockResponse) HasResults() bool` +`func (o *CreateNextAvailableFederatedBlockResponse) HasResults() bool` HasResults returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationListOverlappingBlockResponse.md b/ipamfederation/docs/CreateNextAvailableOverlappingBlockResponse.md similarity index 51% rename from ipamfederation/docs/FederationListOverlappingBlockResponse.md rename to ipamfederation/docs/CreateNextAvailableOverlappingBlockResponse.md index 2c1c49b..13221c1 100644 --- a/ipamfederation/docs/FederationListOverlappingBlockResponse.md +++ b/ipamfederation/docs/CreateNextAvailableOverlappingBlockResponse.md @@ -1,52 +1,52 @@ -# FederationListOverlappingBlockResponse +# CreateNextAvailableOverlappingBlockResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Results** | Pointer to [**[]FederationOverlappingBlock**](FederationOverlappingBlock.md) | A list of OverlappingBlock objects. | [optional] +**Results** | Pointer to [**[]OverlappingBlock**](OverlappingBlock.md) | | [optional] ## Methods -### NewFederationListOverlappingBlockResponse +### NewCreateNextAvailableOverlappingBlockResponse -`func NewFederationListOverlappingBlockResponse() *FederationListOverlappingBlockResponse` +`func NewCreateNextAvailableOverlappingBlockResponse() *CreateNextAvailableOverlappingBlockResponse` -NewFederationListOverlappingBlockResponse instantiates a new FederationListOverlappingBlockResponse object +NewCreateNextAvailableOverlappingBlockResponse instantiates a new CreateNextAvailableOverlappingBlockResponse 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 +### NewCreateNextAvailableOverlappingBlockResponseWithDefaults -`func NewFederationListOverlappingBlockResponseWithDefaults() *FederationListOverlappingBlockResponse` +`func NewCreateNextAvailableOverlappingBlockResponseWithDefaults() *CreateNextAvailableOverlappingBlockResponse` -NewFederationListOverlappingBlockResponseWithDefaults instantiates a new FederationListOverlappingBlockResponse object +NewCreateNextAvailableOverlappingBlockResponseWithDefaults instantiates a new CreateNextAvailableOverlappingBlockResponse 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` +`func (o *CreateNextAvailableOverlappingBlockResponse) GetResults() []OverlappingBlock` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *FederationListOverlappingBlockResponse) GetResultsOk() (*[]FederationOverlappingBlock, bool)` +`func (o *CreateNextAvailableOverlappingBlockResponse) GetResultsOk() (*[]OverlappingBlock, 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)` +`func (o *CreateNextAvailableOverlappingBlockResponse) SetResults(v []OverlappingBlock)` SetResults sets Results field to given value. ### HasResults -`func (o *FederationListOverlappingBlockResponse) HasResults() bool` +`func (o *CreateNextAvailableOverlappingBlockResponse) HasResults() bool` HasResults returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationListReservedBlockResponse.md b/ipamfederation/docs/CreateNextAvailableReservedBlockResponse.md similarity index 50% rename from ipamfederation/docs/FederationListReservedBlockResponse.md rename to ipamfederation/docs/CreateNextAvailableReservedBlockResponse.md index 0099097..548964f 100644 --- a/ipamfederation/docs/FederationListReservedBlockResponse.md +++ b/ipamfederation/docs/CreateNextAvailableReservedBlockResponse.md @@ -1,52 +1,52 @@ -# FederationListReservedBlockResponse +# CreateNextAvailableReservedBlockResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Results** | Pointer to [**[]FederationReservedBlock**](FederationReservedBlock.md) | A list of ReservedBlock objects. | [optional] +**Results** | Pointer to [**[]ReservedBlock**](ReservedBlock.md) | | [optional] ## Methods -### NewFederationListReservedBlockResponse +### NewCreateNextAvailableReservedBlockResponse -`func NewFederationListReservedBlockResponse() *FederationListReservedBlockResponse` +`func NewCreateNextAvailableReservedBlockResponse() *CreateNextAvailableReservedBlockResponse` -NewFederationListReservedBlockResponse instantiates a new FederationListReservedBlockResponse object +NewCreateNextAvailableReservedBlockResponse instantiates a new CreateNextAvailableReservedBlockResponse 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 +### NewCreateNextAvailableReservedBlockResponseWithDefaults -`func NewFederationListReservedBlockResponseWithDefaults() *FederationListReservedBlockResponse` +`func NewCreateNextAvailableReservedBlockResponseWithDefaults() *CreateNextAvailableReservedBlockResponse` -NewFederationListReservedBlockResponseWithDefaults instantiates a new FederationListReservedBlockResponse object +NewCreateNextAvailableReservedBlockResponseWithDefaults instantiates a new CreateNextAvailableReservedBlockResponse 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` +`func (o *CreateNextAvailableReservedBlockResponse) GetResults() []ReservedBlock` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *FederationListReservedBlockResponse) GetResultsOk() (*[]FederationReservedBlock, bool)` +`func (o *CreateNextAvailableReservedBlockResponse) GetResultsOk() (*[]ReservedBlock, 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)` +`func (o *CreateNextAvailableReservedBlockResponse) SetResults(v []ReservedBlock)` SetResults sets Results field to given value. ### HasResults -`func (o *FederationListReservedBlockResponse) HasResults() bool` +`func (o *CreateNextAvailableReservedBlockResponse) HasResults() bool` HasResults returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationUpdateFederatedRealmResponse.md b/ipamfederation/docs/CreateOverlappingBlockResponse.md similarity index 52% rename from ipamfederation/docs/FederationUpdateFederatedRealmResponse.md rename to ipamfederation/docs/CreateOverlappingBlockResponse.md index bf0fe3b..273c07c 100644 --- a/ipamfederation/docs/FederationUpdateFederatedRealmResponse.md +++ b/ipamfederation/docs/CreateOverlappingBlockResponse.md @@ -1,52 +1,52 @@ -# FederationUpdateFederatedRealmResponse +# CreateOverlappingBlockResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Result** | Pointer to [**FederationFederatedRealm**](FederationFederatedRealm.md) | The FederatedRealm object. | [optional] +**Result** | Pointer to [**OverlappingBlock**](OverlappingBlock.md) | The created OverlappingBlock object. | [optional] ## Methods -### NewFederationUpdateFederatedRealmResponse +### NewCreateOverlappingBlockResponse -`func NewFederationUpdateFederatedRealmResponse() *FederationUpdateFederatedRealmResponse` +`func NewCreateOverlappingBlockResponse() *CreateOverlappingBlockResponse` -NewFederationUpdateFederatedRealmResponse instantiates a new FederationUpdateFederatedRealmResponse object +NewCreateOverlappingBlockResponse instantiates a new CreateOverlappingBlockResponse 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 +### NewCreateOverlappingBlockResponseWithDefaults -`func NewFederationUpdateFederatedRealmResponseWithDefaults() *FederationUpdateFederatedRealmResponse` +`func NewCreateOverlappingBlockResponseWithDefaults() *CreateOverlappingBlockResponse` -NewFederationUpdateFederatedRealmResponseWithDefaults instantiates a new FederationUpdateFederatedRealmResponse object +NewCreateOverlappingBlockResponseWithDefaults instantiates a new CreateOverlappingBlockResponse 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` +`func (o *CreateOverlappingBlockResponse) GetResult() OverlappingBlock` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *FederationUpdateFederatedRealmResponse) GetResultOk() (*FederationFederatedRealm, bool)` +`func (o *CreateOverlappingBlockResponse) GetResultOk() (*OverlappingBlock, 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)` +`func (o *CreateOverlappingBlockResponse) SetResult(v OverlappingBlock)` SetResult sets Result field to given value. ### HasResult -`func (o *FederationUpdateFederatedRealmResponse) HasResult() bool` +`func (o *CreateOverlappingBlockResponse) HasResult() bool` HasResult returns a boolean if a field has been set. diff --git a/ipamfederation/docs/CreateReservedBlockResponse.md b/ipamfederation/docs/CreateReservedBlockResponse.md new file mode 100644 index 0000000..0125016 --- /dev/null +++ b/ipamfederation/docs/CreateReservedBlockResponse.md @@ -0,0 +1,56 @@ +# CreateReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**ReservedBlock**](ReservedBlock.md) | The created ReservedBlock object. | [optional] + +## Methods + +### NewCreateReservedBlockResponse + +`func NewCreateReservedBlockResponse() *CreateReservedBlockResponse` + +NewCreateReservedBlockResponse instantiates a new CreateReservedBlockResponse 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 + +### NewCreateReservedBlockResponseWithDefaults + +`func NewCreateReservedBlockResponseWithDefaults() *CreateReservedBlockResponse` + +NewCreateReservedBlockResponseWithDefaults instantiates a new CreateReservedBlockResponse 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 *CreateReservedBlockResponse) GetResult() ReservedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *CreateReservedBlockResponse) GetResultOk() (*ReservedBlock, 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 *CreateReservedBlockResponse) SetResult(v ReservedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *CreateReservedBlockResponse) 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/Delegation.md similarity index 68% rename from ipamfederation/docs/FederationDelegation.md rename to ipamfederation/docs/Delegation.md index affe29a..caa9f89 100644 --- a/ipamfederation/docs/FederationDelegation.md +++ b/ipamfederation/docs/Delegation.md @@ -1,4 +1,4 @@ -# FederationDelegation +# Delegation ## Properties @@ -19,310 +19,310 @@ Name | Type | Description | Notes ## Methods -### NewFederationDelegation +### NewDelegation -`func NewFederationDelegation(address string, federatedRealms []string, ) *FederationDelegation` +`func NewDelegation(address string, federatedRealms []string, ) *Delegation` -NewFederationDelegation instantiates a new FederationDelegation object +NewDelegation instantiates a new Delegation 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 +### NewDelegationWithDefaults -`func NewFederationDelegationWithDefaults() *FederationDelegation` +`func NewDelegationWithDefaults() *Delegation` -NewFederationDelegationWithDefaults instantiates a new FederationDelegation object +NewDelegationWithDefaults instantiates a new Delegation 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` +`func (o *Delegation) GetAddress() string` GetAddress returns the Address field if non-nil, zero value otherwise. ### GetAddressOk -`func (o *FederationDelegation) GetAddressOk() (*string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetAddress(v string)` SetAddress sets Address field to given value. ### GetCidr -`func (o *FederationDelegation) GetCidr() int64` +`func (o *Delegation) GetCidr() int64` GetCidr returns the Cidr field if non-nil, zero value otherwise. ### GetCidrOk -`func (o *FederationDelegation) GetCidrOk() (*int64, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetCidr(v int64)` SetCidr sets Cidr field to given value. ### HasCidr -`func (o *FederationDelegation) HasCidr() bool` +`func (o *Delegation) HasCidr() bool` HasCidr returns a boolean if a field has been set. ### GetComment -`func (o *FederationDelegation) GetComment() string` +`func (o *Delegation) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *FederationDelegation) GetCommentOk() (*string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment -`func (o *FederationDelegation) HasComment() bool` +`func (o *Delegation) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetCreatedAt -`func (o *FederationDelegation) GetCreatedAt() time.Time` +`func (o *Delegation) GetCreatedAt() time.Time` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *FederationDelegation) GetCreatedAtOk() (*time.Time, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetCreatedAt(v time.Time)` SetCreatedAt sets CreatedAt field to given value. ### HasCreatedAt -`func (o *FederationDelegation) HasCreatedAt() bool` +`func (o *Delegation) HasCreatedAt() bool` HasCreatedAt returns a boolean if a field has been set. ### GetDelegatedTo -`func (o *FederationDelegation) GetDelegatedTo() string` +`func (o *Delegation) GetDelegatedTo() string` GetDelegatedTo returns the DelegatedTo field if non-nil, zero value otherwise. ### GetDelegatedToOk -`func (o *FederationDelegation) GetDelegatedToOk() (*string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetDelegatedTo(v string)` SetDelegatedTo sets DelegatedTo field to given value. ### HasDelegatedTo -`func (o *FederationDelegation) HasDelegatedTo() bool` +`func (o *Delegation) HasDelegatedTo() bool` HasDelegatedTo returns a boolean if a field has been set. ### GetFederatedRealms -`func (o *FederationDelegation) GetFederatedRealms() []string` +`func (o *Delegation) GetFederatedRealms() []string` GetFederatedRealms returns the FederatedRealms field if non-nil, zero value otherwise. ### GetFederatedRealmsOk -`func (o *FederationDelegation) GetFederatedRealmsOk() (*[]string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetFederatedRealms(v []string)` SetFederatedRealms sets FederatedRealms field to given value. ### GetId -`func (o *FederationDelegation) GetId() string` +`func (o *Delegation) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *FederationDelegation) GetIdOk() (*string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *FederationDelegation) HasId() bool` +`func (o *Delegation) HasId() bool` HasId returns a boolean if a field has been set. ### GetName -`func (o *FederationDelegation) GetName() string` +`func (o *Delegation) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *FederationDelegation) GetNameOk() (*string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *FederationDelegation) HasName() bool` +`func (o *Delegation) HasName() bool` HasName returns a boolean if a field has been set. ### GetParents -`func (o *FederationDelegation) GetParents() []string` +`func (o *Delegation) GetParents() []string` GetParents returns the Parents field if non-nil, zero value otherwise. ### GetParentsOk -`func (o *FederationDelegation) GetParentsOk() (*[]string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetParents(v []string)` SetParents sets Parents field to given value. ### HasParents -`func (o *FederationDelegation) HasParents() bool` +`func (o *Delegation) HasParents() bool` HasParents returns a boolean if a field has been set. ### GetProtocol -`func (o *FederationDelegation) GetProtocol() string` +`func (o *Delegation) GetProtocol() string` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FederationDelegation) GetProtocolOk() (*string, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetProtocol(v string)` SetProtocol sets Protocol field to given value. ### HasProtocol -`func (o *FederationDelegation) HasProtocol() bool` +`func (o *Delegation) HasProtocol() bool` HasProtocol returns a boolean if a field has been set. ### GetTags -`func (o *FederationDelegation) GetTags() map[string]interface{}` +`func (o *Delegation) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *FederationDelegation) GetTagsOk() (*map[string]interface{}, bool)` +`func (o *Delegation) 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{})` +`func (o *Delegation) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. ### HasTags -`func (o *FederationDelegation) HasTags() bool` +`func (o *Delegation) HasTags() bool` HasTags returns a boolean if a field has been set. ### GetUpdatedAt -`func (o *FederationDelegation) GetUpdatedAt() time.Time` +`func (o *Delegation) GetUpdatedAt() time.Time` GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. ### GetUpdatedAtOk -`func (o *FederationDelegation) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *Delegation) 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)` +`func (o *Delegation) SetUpdatedAt(v time.Time)` SetUpdatedAt sets UpdatedAt field to given value. ### HasUpdatedAt -`func (o *FederationDelegation) HasUpdatedAt() bool` +`func (o *Delegation) HasUpdatedAt() bool` HasUpdatedAt returns a boolean if a field has been set. diff --git a/ipamfederation/docs/DelegationAPI.md b/ipamfederation/docs/DelegationAPI.md index 052196a..0e9cdff 100644 --- a/ipamfederation/docs/DelegationAPI.md +++ b/ipamfederation/docs/DelegationAPI.md @@ -16,7 +16,7 @@ Method | HTTP request | Description ## Bulk -> FederationDelegationBulkResponse Bulk(ctx).Body(body).Execute() +> DelegationBulkResponse Bulk(ctx).Body(body).Execute() Execute multiple operations on delegation objects. @@ -36,7 +36,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationDelegationBulkRequest() // FederationDelegationBulkRequest | + body := *ipamfederation.NewDelegationBulkRequest() // DelegationBulkRequest | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.DelegationAPI.Bulk(context.Background()).Body(body).Execute() @@ -44,7 +44,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `DelegationAPI.Bulk``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `Bulk`: FederationDelegationBulkResponse + // response from `Bulk`: DelegationBulkResponse fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Bulk`: %v\n", resp) } ``` @@ -60,11 +60,11 @@ Other parameters are passed through a pointer to a `DelegationAPIBulkRequest` st Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationDelegationBulkRequest**](FederationDelegationBulkRequest.md) | | +**body** | [**DelegationBulkRequest**](DelegationBulkRequest.md) | | ### Return type -[**FederationDelegationBulkResponse**](FederationDelegationBulkResponse.md) +[**DelegationBulkResponse**](DelegationBulkResponse.md) ### Authorization @@ -82,7 +82,7 @@ Name | Type | Description | Notes ## Create -> FederationCreateDelegationResponse Create(ctx).Body(body).Execute() +> CreateDelegationResponse Create(ctx).Body(body).Execute() Create the delegation. @@ -102,7 +102,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationDelegation("Address_example", []string{"FederatedRealms_example"}) // FederationDelegation | + body := *ipamfederation.NewDelegation("Address_example", []string{"FederatedRealms_example"}) // Delegation | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.DelegationAPI.Create(context.Background()).Body(body).Execute() @@ -110,7 +110,7 @@ func main() { 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 + // response from `Create`: CreateDelegationResponse fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Create`: %v\n", resp) } ``` @@ -126,11 +126,11 @@ Other parameters are passed through a pointer to a `DelegationAPICreateRequest` Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationDelegation**](FederationDelegation.md) | | +**body** | [**Delegation**](Delegation.md) | | ### Return type -[**FederationCreateDelegationResponse**](FederationCreateDelegationResponse.md) +[**CreateDelegationResponse**](CreateDelegationResponse.md) ### Authorization @@ -274,7 +274,7 @@ Other parameters are passed through a pointer to a `DelegationAPIDeleteWithoutId ## List -> FederationListDelegationResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() +> ListDelegationResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() Retrieve the delegation. @@ -301,7 +301,7 @@ func main() { 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 + // response from `List`: ListDelegationResponse fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.List`: %v\n", resp) } ``` @@ -328,7 +328,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListDelegationResponse**](FederationListDelegationResponse.md) +[**ListDelegationResponse**](ListDelegationResponse.md) ### Authorization @@ -346,7 +346,7 @@ Name | Type | Description | Notes ## Read -> FederationReadDelegationResponse Read(ctx, id).Fields(fields).Execute() +> ReadDelegationResponse Read(ctx, id).Fields(fields).Execute() Retrieve the delegation. @@ -374,7 +374,7 @@ func main() { 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 + // response from `Read`: ReadDelegationResponse fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Read`: %v\n", resp) } ``` @@ -398,7 +398,7 @@ Name | Type | Description | Notes ### Return type -[**FederationReadDelegationResponse**](FederationReadDelegationResponse.md) +[**ReadDelegationResponse**](ReadDelegationResponse.md) ### Authorization @@ -416,7 +416,7 @@ Name | Type | Description | Notes ## Update -> FederationUpdateDelegationResponse Update(ctx, id).Body(body).Execute() +> UpdateDelegationResponse Update(ctx, id).Body(body).Execute() Update the delegation. @@ -437,7 +437,7 @@ import ( 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 | + body := *ipamfederation.NewDelegation("Address_example", []string{"FederatedRealms_example"}) // Delegation | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.DelegationAPI.Update(context.Background(), id).Body(body).Execute() @@ -445,7 +445,7 @@ func main() { 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 + // response from `Update`: UpdateDelegationResponse fmt.Fprintf(os.Stdout, "Response from `DelegationAPI.Update`: %v\n", resp) } ``` @@ -465,11 +465,11 @@ Other parameters are passed through a pointer to a `DelegationAPIUpdateRequest` Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationDelegation**](FederationDelegation.md) | | +**body** | [**Delegation**](Delegation.md) | | ### Return type -[**FederationUpdateDelegationResponse**](FederationUpdateDelegationResponse.md) +[**UpdateDelegationResponse**](UpdateDelegationResponse.md) ### Authorization diff --git a/ipamfederation/docs/FederationDelegationBulkItem.md b/ipamfederation/docs/DelegationBulkItem.md similarity index 58% rename from ipamfederation/docs/FederationDelegationBulkItem.md rename to ipamfederation/docs/DelegationBulkItem.md index 0d1c67d..253115a 100644 --- a/ipamfederation/docs/FederationDelegationBulkItem.md +++ b/ipamfederation/docs/DelegationBulkItem.md @@ -1,78 +1,78 @@ -# FederationDelegationBulkItem +# DelegationBulkItem ## 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] +**Delegation** | Pointer to [**Delegation**](Delegation.md) | The Delegation object to execute the action on. | [optional] ## Methods -### NewFederationDelegationBulkItem +### NewDelegationBulkItem -`func NewFederationDelegationBulkItem() *FederationDelegationBulkItem` +`func NewDelegationBulkItem() *DelegationBulkItem` -NewFederationDelegationBulkItem instantiates a new FederationDelegationBulkItem object +NewDelegationBulkItem instantiates a new DelegationBulkItem 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 +### NewDelegationBulkItemWithDefaults -`func NewFederationDelegationBulkItemWithDefaults() *FederationDelegationBulkItem` +`func NewDelegationBulkItemWithDefaults() *DelegationBulkItem` -NewFederationDelegationBulkItemWithDefaults instantiates a new FederationDelegationBulkItem object +NewDelegationBulkItemWithDefaults instantiates a new DelegationBulkItem 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` +`func (o *DelegationBulkItem) GetAction() string` GetAction returns the Action field if non-nil, zero value otherwise. ### GetActionOk -`func (o *FederationDelegationBulkItem) GetActionOk() (*string, bool)` +`func (o *DelegationBulkItem) 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)` +`func (o *DelegationBulkItem) SetAction(v string)` SetAction sets Action field to given value. ### HasAction -`func (o *FederationDelegationBulkItem) HasAction() bool` +`func (o *DelegationBulkItem) HasAction() bool` HasAction returns a boolean if a field has been set. ### GetDelegation -`func (o *FederationDelegationBulkItem) GetDelegation() FederationDelegation` +`func (o *DelegationBulkItem) GetDelegation() Delegation` GetDelegation returns the Delegation field if non-nil, zero value otherwise. ### GetDelegationOk -`func (o *FederationDelegationBulkItem) GetDelegationOk() (*FederationDelegation, bool)` +`func (o *DelegationBulkItem) GetDelegationOk() (*Delegation, 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)` +`func (o *DelegationBulkItem) SetDelegation(v Delegation)` SetDelegation sets Delegation field to given value. ### HasDelegation -`func (o *FederationDelegationBulkItem) HasDelegation() bool` +`func (o *DelegationBulkItem) HasDelegation() bool` HasDelegation returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationDelegationBulkRequest.md b/ipamfederation/docs/DelegationBulkRequest.md similarity index 54% rename from ipamfederation/docs/FederationDelegationBulkRequest.md rename to ipamfederation/docs/DelegationBulkRequest.md index d77d759..b15a072 100644 --- a/ipamfederation/docs/FederationDelegationBulkRequest.md +++ b/ipamfederation/docs/DelegationBulkRequest.md @@ -1,78 +1,78 @@ -# FederationDelegationBulkRequest +# DelegationBulkRequest ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Delegations** | Pointer to [**[]FederationDelegationBulkItem**](FederationDelegationBulkItem.md) | list of action/delegation requests to execute. | [optional] +**Delegations** | Pointer to [**[]DelegationBulkItem**](DelegationBulkItem.md) | list of action/delegation requests to execute. | [optional] **Fields** | Pointer to [**ProtobufFieldMask**](ProtobufFieldMask.md) | | [optional] ## Methods -### NewFederationDelegationBulkRequest +### NewDelegationBulkRequest -`func NewFederationDelegationBulkRequest() *FederationDelegationBulkRequest` +`func NewDelegationBulkRequest() *DelegationBulkRequest` -NewFederationDelegationBulkRequest instantiates a new FederationDelegationBulkRequest object +NewDelegationBulkRequest instantiates a new DelegationBulkRequest 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 +### NewDelegationBulkRequestWithDefaults -`func NewFederationDelegationBulkRequestWithDefaults() *FederationDelegationBulkRequest` +`func NewDelegationBulkRequestWithDefaults() *DelegationBulkRequest` -NewFederationDelegationBulkRequestWithDefaults instantiates a new FederationDelegationBulkRequest object +NewDelegationBulkRequestWithDefaults instantiates a new DelegationBulkRequest 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` +`func (o *DelegationBulkRequest) GetDelegations() []DelegationBulkItem` GetDelegations returns the Delegations field if non-nil, zero value otherwise. ### GetDelegationsOk -`func (o *FederationDelegationBulkRequest) GetDelegationsOk() (*[]FederationDelegationBulkItem, bool)` +`func (o *DelegationBulkRequest) GetDelegationsOk() (*[]DelegationBulkItem, 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)` +`func (o *DelegationBulkRequest) SetDelegations(v []DelegationBulkItem)` SetDelegations sets Delegations field to given value. ### HasDelegations -`func (o *FederationDelegationBulkRequest) HasDelegations() bool` +`func (o *DelegationBulkRequest) HasDelegations() bool` HasDelegations returns a boolean if a field has been set. ### GetFields -`func (o *FederationDelegationBulkRequest) GetFields() ProtobufFieldMask` +`func (o *DelegationBulkRequest) GetFields() ProtobufFieldMask` GetFields returns the Fields field if non-nil, zero value otherwise. ### GetFieldsOk -`func (o *FederationDelegationBulkRequest) GetFieldsOk() (*ProtobufFieldMask, bool)` +`func (o *DelegationBulkRequest) 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)` +`func (o *DelegationBulkRequest) SetFields(v ProtobufFieldMask)` SetFields sets Fields field to given value. ### HasFields -`func (o *FederationDelegationBulkRequest) HasFields() bool` +`func (o *DelegationBulkRequest) HasFields() bool` HasFields returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationDelegationBulkResponse.md b/ipamfederation/docs/DelegationBulkResponse.md similarity index 52% rename from ipamfederation/docs/FederationDelegationBulkResponse.md rename to ipamfederation/docs/DelegationBulkResponse.md index c45625f..985f452 100644 --- a/ipamfederation/docs/FederationDelegationBulkResponse.md +++ b/ipamfederation/docs/DelegationBulkResponse.md @@ -1,52 +1,52 @@ -# FederationDelegationBulkResponse +# DelegationBulkResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Results** | Pointer to [**[]FederationDelegation**](FederationDelegation.md) | A list of Delegation objects. | [optional] +**Results** | Pointer to [**[]Delegation**](Delegation.md) | A list of Delegation objects. | [optional] ## Methods -### NewFederationDelegationBulkResponse +### NewDelegationBulkResponse -`func NewFederationDelegationBulkResponse() *FederationDelegationBulkResponse` +`func NewDelegationBulkResponse() *DelegationBulkResponse` -NewFederationDelegationBulkResponse instantiates a new FederationDelegationBulkResponse object +NewDelegationBulkResponse instantiates a new DelegationBulkResponse 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 +### NewDelegationBulkResponseWithDefaults -`func NewFederationDelegationBulkResponseWithDefaults() *FederationDelegationBulkResponse` +`func NewDelegationBulkResponseWithDefaults() *DelegationBulkResponse` -NewFederationDelegationBulkResponseWithDefaults instantiates a new FederationDelegationBulkResponse object +NewDelegationBulkResponseWithDefaults instantiates a new DelegationBulkResponse 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` +`func (o *DelegationBulkResponse) GetResults() []Delegation` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *FederationDelegationBulkResponse) GetResultsOk() (*[]FederationDelegation, bool)` +`func (o *DelegationBulkResponse) GetResultsOk() (*[]Delegation, 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)` +`func (o *DelegationBulkResponse) SetResults(v []Delegation)` SetResults sets Results field to given value. ### HasResults -`func (o *FederationDelegationBulkResponse) HasResults() bool` +`func (o *DelegationBulkResponse) HasResults() bool` HasResults returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationFederatedBlock.md b/ipamfederation/docs/FederatedBlock.md similarity index 65% rename from ipamfederation/docs/FederationFederatedBlock.md rename to ipamfederation/docs/FederatedBlock.md index 3d82f4a..95d6683 100644 --- a/ipamfederation/docs/FederationFederatedBlock.md +++ b/ipamfederation/docs/FederatedBlock.md @@ -1,11 +1,11 @@ -# FederationFederatedBlock +# FederatedBlock ## 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] +**AllocationV4** | Pointer to [**Allocation**](Allocation.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] @@ -19,310 +19,310 @@ Name | Type | Description | Notes ## Methods -### NewFederationFederatedBlock +### NewFederatedBlock -`func NewFederationFederatedBlock(address string, federatedRealm string, ) *FederationFederatedBlock` +`func NewFederatedBlock(address string, federatedRealm string, ) *FederatedBlock` -NewFederationFederatedBlock instantiates a new FederationFederatedBlock object +NewFederatedBlock instantiates a new FederatedBlock 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 +### NewFederatedBlockWithDefaults -`func NewFederationFederatedBlockWithDefaults() *FederationFederatedBlock` +`func NewFederatedBlockWithDefaults() *FederatedBlock` -NewFederationFederatedBlockWithDefaults instantiates a new FederationFederatedBlock object +NewFederatedBlockWithDefaults instantiates a new FederatedBlock 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` +`func (o *FederatedBlock) GetAddress() string` GetAddress returns the Address field if non-nil, zero value otherwise. ### GetAddressOk -`func (o *FederationFederatedBlock) GetAddressOk() (*string, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetAddress(v string)` SetAddress sets Address field to given value. ### GetAllocationV4 -`func (o *FederationFederatedBlock) GetAllocationV4() FederationAllocation` +`func (o *FederatedBlock) GetAllocationV4() Allocation` GetAllocationV4 returns the AllocationV4 field if non-nil, zero value otherwise. ### GetAllocationV4Ok -`func (o *FederationFederatedBlock) GetAllocationV4Ok() (*FederationAllocation, bool)` +`func (o *FederatedBlock) GetAllocationV4Ok() (*Allocation, 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)` +`func (o *FederatedBlock) SetAllocationV4(v Allocation)` SetAllocationV4 sets AllocationV4 field to given value. ### HasAllocationV4 -`func (o *FederationFederatedBlock) HasAllocationV4() bool` +`func (o *FederatedBlock) HasAllocationV4() bool` HasAllocationV4 returns a boolean if a field has been set. ### GetCidr -`func (o *FederationFederatedBlock) GetCidr() int64` +`func (o *FederatedBlock) GetCidr() int64` GetCidr returns the Cidr field if non-nil, zero value otherwise. ### GetCidrOk -`func (o *FederationFederatedBlock) GetCidrOk() (*int64, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetCidr(v int64)` SetCidr sets Cidr field to given value. ### HasCidr -`func (o *FederationFederatedBlock) HasCidr() bool` +`func (o *FederatedBlock) HasCidr() bool` HasCidr returns a boolean if a field has been set. ### GetComment -`func (o *FederationFederatedBlock) GetComment() string` +`func (o *FederatedBlock) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *FederationFederatedBlock) GetCommentOk() (*string, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment -`func (o *FederationFederatedBlock) HasComment() bool` +`func (o *FederatedBlock) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetCreatedAt -`func (o *FederationFederatedBlock) GetCreatedAt() time.Time` +`func (o *FederatedBlock) GetCreatedAt() time.Time` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *FederationFederatedBlock) GetCreatedAtOk() (*time.Time, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetCreatedAt(v time.Time)` SetCreatedAt sets CreatedAt field to given value. ### HasCreatedAt -`func (o *FederationFederatedBlock) HasCreatedAt() bool` +`func (o *FederatedBlock) HasCreatedAt() bool` HasCreatedAt returns a boolean if a field has been set. ### GetFederatedRealm -`func (o *FederationFederatedBlock) GetFederatedRealm() string` +`func (o *FederatedBlock) GetFederatedRealm() string` GetFederatedRealm returns the FederatedRealm field if non-nil, zero value otherwise. ### GetFederatedRealmOk -`func (o *FederationFederatedBlock) GetFederatedRealmOk() (*string, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetFederatedRealm(v string)` SetFederatedRealm sets FederatedRealm field to given value. ### GetId -`func (o *FederationFederatedBlock) GetId() string` +`func (o *FederatedBlock) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *FederationFederatedBlock) GetIdOk() (*string, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *FederationFederatedBlock) HasId() bool` +`func (o *FederatedBlock) HasId() bool` HasId returns a boolean if a field has been set. ### GetName -`func (o *FederationFederatedBlock) GetName() string` +`func (o *FederatedBlock) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *FederationFederatedBlock) GetNameOk() (*string, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *FederationFederatedBlock) HasName() bool` +`func (o *FederatedBlock) HasName() bool` HasName returns a boolean if a field has been set. ### GetParent -`func (o *FederationFederatedBlock) GetParent() string` +`func (o *FederatedBlock) GetParent() string` GetParent returns the Parent field if non-nil, zero value otherwise. ### GetParentOk -`func (o *FederationFederatedBlock) GetParentOk() (*string, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetParent(v string)` SetParent sets Parent field to given value. ### HasParent -`func (o *FederationFederatedBlock) HasParent() bool` +`func (o *FederatedBlock) HasParent() bool` HasParent returns a boolean if a field has been set. ### GetProtocol -`func (o *FederationFederatedBlock) GetProtocol() string` +`func (o *FederatedBlock) GetProtocol() string` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FederationFederatedBlock) GetProtocolOk() (*string, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetProtocol(v string)` SetProtocol sets Protocol field to given value. ### HasProtocol -`func (o *FederationFederatedBlock) HasProtocol() bool` +`func (o *FederatedBlock) HasProtocol() bool` HasProtocol returns a boolean if a field has been set. ### GetTags -`func (o *FederationFederatedBlock) GetTags() map[string]interface{}` +`func (o *FederatedBlock) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *FederationFederatedBlock) GetTagsOk() (*map[string]interface{}, bool)` +`func (o *FederatedBlock) 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{})` +`func (o *FederatedBlock) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. ### HasTags -`func (o *FederationFederatedBlock) HasTags() bool` +`func (o *FederatedBlock) HasTags() bool` HasTags returns a boolean if a field has been set. ### GetUpdatedAt -`func (o *FederationFederatedBlock) GetUpdatedAt() time.Time` +`func (o *FederatedBlock) GetUpdatedAt() time.Time` GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. ### GetUpdatedAtOk -`func (o *FederationFederatedBlock) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *FederatedBlock) 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)` +`func (o *FederatedBlock) SetUpdatedAt(v time.Time)` SetUpdatedAt sets UpdatedAt field to given value. ### HasUpdatedAt -`func (o *FederationFederatedBlock) HasUpdatedAt() bool` +`func (o *FederatedBlock) HasUpdatedAt() bool` HasUpdatedAt returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederatedBlockAPI.md b/ipamfederation/docs/FederatedBlockAPI.md index a5ed65a..719b865 100644 --- a/ipamfederation/docs/FederatedBlockAPI.md +++ b/ipamfederation/docs/FederatedBlockAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## Create -> FederationCreateFederatedBlockResponse Create(ctx).Body(body).Execute() +> CreateFederatedBlockResponse Create(ctx).Body(body).Execute() Create the federated block. @@ -34,7 +34,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationFederatedBlock("Address_example", "FederatedRealm_example") // FederationFederatedBlock | + body := *ipamfederation.NewFederatedBlock("Address_example", "FederatedRealm_example") // FederatedBlock | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.FederatedBlockAPI.Create(context.Background()).Body(body).Execute() @@ -42,7 +42,7 @@ func main() { 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 + // response from `Create`: CreateFederatedBlockResponse fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.Create`: %v\n", resp) } ``` @@ -58,11 +58,11 @@ Other parameters are passed through a pointer to a `FederatedBlockAPICreateReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationFederatedBlock**](FederationFederatedBlock.md) | | +**body** | [**FederatedBlock**](FederatedBlock.md) | | ### Return type -[**FederationCreateFederatedBlockResponse**](FederationCreateFederatedBlockResponse.md) +[**CreateFederatedBlockResponse**](CreateFederatedBlockResponse.md) ### Authorization @@ -147,7 +147,7 @@ Name | Type | Description | Notes ## List -> FederationListFederatedBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() +> ListFederatedBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() Retrieve the federated blocks. @@ -174,7 +174,7 @@ func main() { 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 + // response from `List`: ListFederatedBlockResponse fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.List`: %v\n", resp) } ``` @@ -201,7 +201,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListFederatedBlockResponse**](FederationListFederatedBlockResponse.md) +[**ListFederatedBlockResponse**](ListFederatedBlockResponse.md) ### Authorization @@ -219,7 +219,7 @@ Name | Type | Description | Notes ## Read -> FederationReadFederatedBlockResponse Read(ctx, id).Fields(fields).Execute() +> ReadFederatedBlockResponse Read(ctx, id).Fields(fields).Execute() Retrieve the federated block. @@ -247,7 +247,7 @@ func main() { 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 + // response from `Read`: ReadFederatedBlockResponse fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.Read`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ Name | Type | Description | Notes ### Return type -[**FederationReadFederatedBlockResponse**](FederationReadFederatedBlockResponse.md) +[**ReadFederatedBlockResponse**](ReadFederatedBlockResponse.md) ### Authorization @@ -289,7 +289,7 @@ Name | Type | Description | Notes ## Update -> FederationUpdateFederatedBlockResponse Update(ctx, id).Body(body).Execute() +> UpdateFederatedBlockResponse Update(ctx, id).Body(body).Execute() Update the federated block. @@ -310,7 +310,7 @@ import ( 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 | + body := *ipamfederation.NewFederatedBlock("Address_example", "FederatedRealm_example") // FederatedBlock | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.FederatedBlockAPI.Update(context.Background(), id).Body(body).Execute() @@ -318,7 +318,7 @@ func main() { 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 + // response from `Update`: UpdateFederatedBlockResponse fmt.Fprintf(os.Stdout, "Response from `FederatedBlockAPI.Update`: %v\n", resp) } ``` @@ -338,11 +338,11 @@ Other parameters are passed through a pointer to a `FederatedBlockAPIUpdateReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationFederatedBlock**](FederationFederatedBlock.md) | | +**body** | [**FederatedBlock**](FederatedBlock.md) | | ### Return type -[**FederationUpdateFederatedBlockResponse**](FederationUpdateFederatedBlockResponse.md) +[**UpdateFederatedBlockResponse**](UpdateFederatedBlockResponse.md) ### Authorization diff --git a/ipamfederation/docs/FederationFederatedRealm.md b/ipamfederation/docs/FederatedRealm.md similarity index 63% rename from ipamfederation/docs/FederationFederatedRealm.md rename to ipamfederation/docs/FederatedRealm.md index f45f9c8..ec53da1 100644 --- a/ipamfederation/docs/FederationFederatedRealm.md +++ b/ipamfederation/docs/FederatedRealm.md @@ -1,10 +1,10 @@ -# FederationFederatedRealm +# FederatedRealm ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AllocationV4** | Pointer to [**FederationAllocation**](FederationAllocation.md) | The aggregate of all Federated Blocks within the Realm. | [optional] +**AllocationV4** | Pointer to [**Allocation**](Allocation.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] @@ -14,190 +14,190 @@ Name | Type | Description | Notes ## Methods -### NewFederationFederatedRealm +### NewFederatedRealm -`func NewFederationFederatedRealm(name string, ) *FederationFederatedRealm` +`func NewFederatedRealm(name string, ) *FederatedRealm` -NewFederationFederatedRealm instantiates a new FederationFederatedRealm object +NewFederatedRealm instantiates a new FederatedRealm 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 +### NewFederatedRealmWithDefaults -`func NewFederationFederatedRealmWithDefaults() *FederationFederatedRealm` +`func NewFederatedRealmWithDefaults() *FederatedRealm` -NewFederationFederatedRealmWithDefaults instantiates a new FederationFederatedRealm object +NewFederatedRealmWithDefaults instantiates a new FederatedRealm 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` +`func (o *FederatedRealm) GetAllocationV4() Allocation` GetAllocationV4 returns the AllocationV4 field if non-nil, zero value otherwise. ### GetAllocationV4Ok -`func (o *FederationFederatedRealm) GetAllocationV4Ok() (*FederationAllocation, bool)` +`func (o *FederatedRealm) GetAllocationV4Ok() (*Allocation, 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)` +`func (o *FederatedRealm) SetAllocationV4(v Allocation)` SetAllocationV4 sets AllocationV4 field to given value. ### HasAllocationV4 -`func (o *FederationFederatedRealm) HasAllocationV4() bool` +`func (o *FederatedRealm) HasAllocationV4() bool` HasAllocationV4 returns a boolean if a field has been set. ### GetComment -`func (o *FederationFederatedRealm) GetComment() string` +`func (o *FederatedRealm) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *FederationFederatedRealm) GetCommentOk() (*string, bool)` +`func (o *FederatedRealm) 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)` +`func (o *FederatedRealm) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment -`func (o *FederationFederatedRealm) HasComment() bool` +`func (o *FederatedRealm) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetCreatedAt -`func (o *FederationFederatedRealm) GetCreatedAt() time.Time` +`func (o *FederatedRealm) GetCreatedAt() time.Time` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *FederationFederatedRealm) GetCreatedAtOk() (*time.Time, bool)` +`func (o *FederatedRealm) 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)` +`func (o *FederatedRealm) SetCreatedAt(v time.Time)` SetCreatedAt sets CreatedAt field to given value. ### HasCreatedAt -`func (o *FederationFederatedRealm) HasCreatedAt() bool` +`func (o *FederatedRealm) HasCreatedAt() bool` HasCreatedAt returns a boolean if a field has been set. ### GetId -`func (o *FederationFederatedRealm) GetId() string` +`func (o *FederatedRealm) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *FederationFederatedRealm) GetIdOk() (*string, bool)` +`func (o *FederatedRealm) 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)` +`func (o *FederatedRealm) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *FederationFederatedRealm) HasId() bool` +`func (o *FederatedRealm) HasId() bool` HasId returns a boolean if a field has been set. ### GetName -`func (o *FederationFederatedRealm) GetName() string` +`func (o *FederatedRealm) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *FederationFederatedRealm) GetNameOk() (*string, bool)` +`func (o *FederatedRealm) 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)` +`func (o *FederatedRealm) SetName(v string)` SetName sets Name field to given value. ### GetTags -`func (o *FederationFederatedRealm) GetTags() map[string]interface{}` +`func (o *FederatedRealm) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *FederationFederatedRealm) GetTagsOk() (*map[string]interface{}, bool)` +`func (o *FederatedRealm) 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{})` +`func (o *FederatedRealm) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. ### HasTags -`func (o *FederationFederatedRealm) HasTags() bool` +`func (o *FederatedRealm) HasTags() bool` HasTags returns a boolean if a field has been set. ### GetUpdatedAt -`func (o *FederationFederatedRealm) GetUpdatedAt() time.Time` +`func (o *FederatedRealm) GetUpdatedAt() time.Time` GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. ### GetUpdatedAtOk -`func (o *FederationFederatedRealm) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *FederatedRealm) 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)` +`func (o *FederatedRealm) SetUpdatedAt(v time.Time)` SetUpdatedAt sets UpdatedAt field to given value. ### HasUpdatedAt -`func (o *FederationFederatedRealm) HasUpdatedAt() bool` +`func (o *FederatedRealm) HasUpdatedAt() bool` HasUpdatedAt returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederatedRealmAPI.md b/ipamfederation/docs/FederatedRealmAPI.md index 2dbb126..51db6f5 100644 --- a/ipamfederation/docs/FederatedRealmAPI.md +++ b/ipamfederation/docs/FederatedRealmAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## Create -> FederationCreateFederatedRealmResponse Create(ctx).Body(body).Execute() +> CreateFederatedRealmResponse Create(ctx).Body(body).Execute() Create the federated realm. @@ -34,7 +34,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationFederatedRealm("Name_example") // FederationFederatedRealm | + body := *ipamfederation.NewFederatedRealm("Name_example") // FederatedRealm | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.FederatedRealmAPI.Create(context.Background()).Body(body).Execute() @@ -42,7 +42,7 @@ func main() { 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 + // response from `Create`: CreateFederatedRealmResponse fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.Create`: %v\n", resp) } ``` @@ -58,11 +58,11 @@ Other parameters are passed through a pointer to a `FederatedRealmAPICreateReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationFederatedRealm**](FederationFederatedRealm.md) | | +**body** | [**FederatedRealm**](FederatedRealm.md) | | ### Return type -[**FederationCreateFederatedRealmResponse**](FederationCreateFederatedRealmResponse.md) +[**CreateFederatedRealmResponse**](CreateFederatedRealmResponse.md) ### Authorization @@ -147,7 +147,7 @@ Name | Type | Description | Notes ## List -> FederationListFederatedRealmResponse List(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() +> ListFederatedRealmResponse List(ctx).Filter(filter).OrderBy(orderBy).Fields(fields).Offset(offset).Limit(limit).PageToken(pageToken).TorderBy(torderBy).Tfilter(tfilter).Execute() Retrieve federated realms. @@ -174,7 +174,7 @@ func main() { 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 + // response from `List`: ListFederatedRealmResponse fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.List`: %v\n", resp) } ``` @@ -201,7 +201,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListFederatedRealmResponse**](FederationListFederatedRealmResponse.md) +[**ListFederatedRealmResponse**](ListFederatedRealmResponse.md) ### Authorization @@ -219,7 +219,7 @@ Name | Type | Description | Notes ## Read -> FederationReadFederatedRealmResponse Read(ctx, id).Fields(fields).Execute() +> ReadFederatedRealmResponse Read(ctx, id).Fields(fields).Execute() Retrieve the federated realm. @@ -247,7 +247,7 @@ func main() { 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 + // response from `Read`: ReadFederatedRealmResponse fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.Read`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ Name | Type | Description | Notes ### Return type -[**FederationReadFederatedRealmResponse**](FederationReadFederatedRealmResponse.md) +[**ReadFederatedRealmResponse**](ReadFederatedRealmResponse.md) ### Authorization @@ -289,7 +289,7 @@ Name | Type | Description | Notes ## Update -> FederationUpdateFederatedRealmResponse Update(ctx, id).Body(body).Execute() +> UpdateFederatedRealmResponse Update(ctx, id).Body(body).Execute() Update the federated realm. @@ -310,7 +310,7 @@ import ( func main() { id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource - body := *ipamfederation.NewFederationFederatedRealm("Name_example") // FederationFederatedRealm | + body := *ipamfederation.NewFederatedRealm("Name_example") // FederatedRealm | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.FederatedRealmAPI.Update(context.Background(), id).Body(body).Execute() @@ -318,7 +318,7 @@ func main() { 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 + // response from `Update`: UpdateFederatedRealmResponse fmt.Fprintf(os.Stdout, "Response from `FederatedRealmAPI.Update`: %v\n", resp) } ``` @@ -338,11 +338,11 @@ Other parameters are passed through a pointer to a `FederatedRealmAPIUpdateReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationFederatedRealm**](FederationFederatedRealm.md) | | +**body** | [**FederatedRealm**](FederatedRealm.md) | | ### Return type -[**FederationUpdateFederatedRealmResponse**](FederationUpdateFederatedRealmResponse.md) +[**UpdateFederatedRealmResponse**](UpdateFederatedRealmResponse.md) ### Authorization diff --git a/ipamfederation/docs/FederationCreateFederatedRealmResponse.md b/ipamfederation/docs/FederationCreateFederatedRealmResponse.md deleted file mode 100644 index 5896393..0000000 --- a/ipamfederation/docs/FederationCreateFederatedRealmResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index 1bffd7a..0000000 --- a/ipamfederation/docs/FederationCreateNextAvailableFederatedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index 25411f8..0000000 --- a/ipamfederation/docs/FederationCreateNextAvailableOverlappingBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index 3dc22f3..0000000 --- a/ipamfederation/docs/FederationCreateNextAvailableReservedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index c835439..0000000 --- a/ipamfederation/docs/FederationCreateOverlappingBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index b7820b6..0000000 --- a/ipamfederation/docs/FederationCreateReservedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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/FederationGetNextAvailableDelegationRequest.md b/ipamfederation/docs/FederationGetNextAvailableDelegationRequest.md deleted file mode 100644 index fda7673..0000000 --- a/ipamfederation/docs/FederationGetNextAvailableDelegationRequest.md +++ /dev/null @@ -1,82 +0,0 @@ -# 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 deleted file mode 100644 index 001991a..0000000 --- a/ipamfederation/docs/FederationGetNextAvailableDelegationResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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/FederationListNextAvailableFederatedBlockResponse.md b/ipamfederation/docs/FederationListNextAvailableFederatedBlockResponse.md deleted file mode 100644 index d418037..0000000 --- a/ipamfederation/docs/FederationListNextAvailableFederatedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index 813e2ca..0000000 --- a/ipamfederation/docs/FederationListNextAvailableOverlappingBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index b0d43d3..0000000 --- a/ipamfederation/docs/FederationListNextAvailableReservedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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/FederationReadFederatedBlockResponse.md b/ipamfederation/docs/FederationReadFederatedBlockResponse.md deleted file mode 100644 index db71ec1..0000000 --- a/ipamfederation/docs/FederationReadFederatedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index 08ee028..0000000 --- a/ipamfederation/docs/FederationReadFederatedRealmResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index 72b44c6..0000000 --- a/ipamfederation/docs/FederationReadOverlappingBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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/FederationUpdateFederatedBlockResponse.md b/ipamfederation/docs/FederationUpdateFederatedBlockResponse.md deleted file mode 100644 index 54d2220..0000000 --- a/ipamfederation/docs/FederationUpdateFederatedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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/FederationUpdateOverlappingBlockResponse.md b/ipamfederation/docs/FederationUpdateOverlappingBlockResponse.md deleted file mode 100644 index 5b1687d..0000000 --- a/ipamfederation/docs/FederationUpdateOverlappingBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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 deleted file mode 100644 index 0dc68c8..0000000 --- a/ipamfederation/docs/FederationUpdateReservedBlockResponse.md +++ /dev/null @@ -1,56 +0,0 @@ -# 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/FederationGenerateConfigBundleResponse.md b/ipamfederation/docs/GenerateConfigBundleResponse.md similarity index 50% rename from ipamfederation/docs/FederationGenerateConfigBundleResponse.md rename to ipamfederation/docs/GenerateConfigBundleResponse.md index 822f3b2..50f3539 100644 --- a/ipamfederation/docs/FederationGenerateConfigBundleResponse.md +++ b/ipamfederation/docs/GenerateConfigBundleResponse.md @@ -1,52 +1,52 @@ -# FederationGenerateConfigBundleResponse +# GenerateConfigBundleResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Config** | Pointer to [**FederationConfigObject**](FederationConfigObject.md) | | [optional] +**Config** | Pointer to [**ConfigObject**](ConfigObject.md) | | [optional] ## Methods -### NewFederationGenerateConfigBundleResponse +### NewGenerateConfigBundleResponse -`func NewFederationGenerateConfigBundleResponse() *FederationGenerateConfigBundleResponse` +`func NewGenerateConfigBundleResponse() *GenerateConfigBundleResponse` -NewFederationGenerateConfigBundleResponse instantiates a new FederationGenerateConfigBundleResponse object +NewGenerateConfigBundleResponse instantiates a new GenerateConfigBundleResponse 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 +### NewGenerateConfigBundleResponseWithDefaults -`func NewFederationGenerateConfigBundleResponseWithDefaults() *FederationGenerateConfigBundleResponse` +`func NewGenerateConfigBundleResponseWithDefaults() *GenerateConfigBundleResponse` -NewFederationGenerateConfigBundleResponseWithDefaults instantiates a new FederationGenerateConfigBundleResponse object +NewGenerateConfigBundleResponseWithDefaults instantiates a new GenerateConfigBundleResponse 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` +`func (o *GenerateConfigBundleResponse) GetConfig() ConfigObject` GetConfig returns the Config field if non-nil, zero value otherwise. ### GetConfigOk -`func (o *FederationGenerateConfigBundleResponse) GetConfigOk() (*FederationConfigObject, bool)` +`func (o *GenerateConfigBundleResponse) GetConfigOk() (*ConfigObject, 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)` +`func (o *GenerateConfigBundleResponse) SetConfig(v ConfigObject)` SetConfig sets Config field to given value. ### HasConfig -`func (o *FederationGenerateConfigBundleResponse) HasConfig() bool` +`func (o *GenerateConfigBundleResponse) HasConfig() bool` HasConfig returns a boolean if a field has been set. diff --git a/ipamfederation/docs/GetNextAvailableDelegationRequest.md b/ipamfederation/docs/GetNextAvailableDelegationRequest.md new file mode 100644 index 0000000..d2325c6 --- /dev/null +++ b/ipamfederation/docs/GetNextAvailableDelegationRequest.md @@ -0,0 +1,82 @@ +# GetNextAvailableDelegationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Arguments** | Pointer to [**NextAvailableDelegationArguments**](NextAvailableDelegationArguments.md) | The arguments which will be used as parameters while creating __Delegation__ object. | [optional] +**Properties** | Pointer to [**NextAvailableDelegationProperties**](NextAvailableDelegationProperties.md) | The properties, which will be used to fill the created __Delegation__ object. | [optional] + +## Methods + +### NewGetNextAvailableDelegationRequest + +`func NewGetNextAvailableDelegationRequest() *GetNextAvailableDelegationRequest` + +NewGetNextAvailableDelegationRequest instantiates a new GetNextAvailableDelegationRequest 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 + +### NewGetNextAvailableDelegationRequestWithDefaults + +`func NewGetNextAvailableDelegationRequestWithDefaults() *GetNextAvailableDelegationRequest` + +NewGetNextAvailableDelegationRequestWithDefaults instantiates a new GetNextAvailableDelegationRequest 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 *GetNextAvailableDelegationRequest) GetArguments() NextAvailableDelegationArguments` + +GetArguments returns the Arguments field if non-nil, zero value otherwise. + +### GetArgumentsOk + +`func (o *GetNextAvailableDelegationRequest) GetArgumentsOk() (*NextAvailableDelegationArguments, 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 *GetNextAvailableDelegationRequest) SetArguments(v NextAvailableDelegationArguments)` + +SetArguments sets Arguments field to given value. + +### HasArguments + +`func (o *GetNextAvailableDelegationRequest) HasArguments() bool` + +HasArguments returns a boolean if a field has been set. + +### GetProperties + +`func (o *GetNextAvailableDelegationRequest) GetProperties() NextAvailableDelegationProperties` + +GetProperties returns the Properties field if non-nil, zero value otherwise. + +### GetPropertiesOk + +`func (o *GetNextAvailableDelegationRequest) GetPropertiesOk() (*NextAvailableDelegationProperties, 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 *GetNextAvailableDelegationRequest) SetProperties(v NextAvailableDelegationProperties)` + +SetProperties sets Properties field to given value. + +### HasProperties + +`func (o *GetNextAvailableDelegationRequest) 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/FederationListDelegationResponse.md b/ipamfederation/docs/GetNextAvailableDelegationResponse.md similarity index 52% rename from ipamfederation/docs/FederationListDelegationResponse.md rename to ipamfederation/docs/GetNextAvailableDelegationResponse.md index 4a0fc41..44fef77 100644 --- a/ipamfederation/docs/FederationListDelegationResponse.md +++ b/ipamfederation/docs/GetNextAvailableDelegationResponse.md @@ -1,52 +1,52 @@ -# FederationListDelegationResponse +# GetNextAvailableDelegationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Results** | Pointer to [**[]FederationDelegation**](FederationDelegation.md) | A list of Delegation objects. | [optional] +**Results** | Pointer to [**[]Delegation**](Delegation.md) | | [optional] ## Methods -### NewFederationListDelegationResponse +### NewGetNextAvailableDelegationResponse -`func NewFederationListDelegationResponse() *FederationListDelegationResponse` +`func NewGetNextAvailableDelegationResponse() *GetNextAvailableDelegationResponse` -NewFederationListDelegationResponse instantiates a new FederationListDelegationResponse object +NewGetNextAvailableDelegationResponse instantiates a new GetNextAvailableDelegationResponse 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 +### NewGetNextAvailableDelegationResponseWithDefaults -`func NewFederationListDelegationResponseWithDefaults() *FederationListDelegationResponse` +`func NewGetNextAvailableDelegationResponseWithDefaults() *GetNextAvailableDelegationResponse` -NewFederationListDelegationResponseWithDefaults instantiates a new FederationListDelegationResponse object +NewGetNextAvailableDelegationResponseWithDefaults instantiates a new GetNextAvailableDelegationResponse 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` +`func (o *GetNextAvailableDelegationResponse) GetResults() []Delegation` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *FederationListDelegationResponse) GetResultsOk() (*[]FederationDelegation, bool)` +`func (o *GetNextAvailableDelegationResponse) GetResultsOk() (*[]Delegation, 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)` +`func (o *GetNextAvailableDelegationResponse) SetResults(v []Delegation)` SetResults sets Results field to given value. ### HasResults -`func (o *FederationListDelegationResponse) HasResults() bool` +`func (o *GetNextAvailableDelegationResponse) HasResults() bool` HasResults returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationHealthCheckConfigResponse.md b/ipamfederation/docs/HealthCheckConfigResponse.md similarity index 57% rename from ipamfederation/docs/FederationHealthCheckConfigResponse.md rename to ipamfederation/docs/HealthCheckConfigResponse.md index 0de2a70..640e770 100644 --- a/ipamfederation/docs/FederationHealthCheckConfigResponse.md +++ b/ipamfederation/docs/HealthCheckConfigResponse.md @@ -1,4 +1,4 @@ -# FederationHealthCheckConfigResponse +# HealthCheckConfigResponse ## Properties @@ -8,45 +8,45 @@ Name | Type | Description | Notes ## Methods -### NewFederationHealthCheckConfigResponse +### NewHealthCheckConfigResponse -`func NewFederationHealthCheckConfigResponse() *FederationHealthCheckConfigResponse` +`func NewHealthCheckConfigResponse() *HealthCheckConfigResponse` -NewFederationHealthCheckConfigResponse instantiates a new FederationHealthCheckConfigResponse object +NewHealthCheckConfigResponse instantiates a new HealthCheckConfigResponse 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 +### NewHealthCheckConfigResponseWithDefaults -`func NewFederationHealthCheckConfigResponseWithDefaults() *FederationHealthCheckConfigResponse` +`func NewHealthCheckConfigResponseWithDefaults() *HealthCheckConfigResponse` -NewFederationHealthCheckConfigResponseWithDefaults instantiates a new FederationHealthCheckConfigResponse object +NewHealthCheckConfigResponseWithDefaults instantiates a new HealthCheckConfigResponse 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` +`func (o *HealthCheckConfigResponse) GetMessage() string` GetMessage returns the Message field if non-nil, zero value otherwise. ### GetMessageOk -`func (o *FederationHealthCheckConfigResponse) GetMessageOk() (*string, bool)` +`func (o *HealthCheckConfigResponse) 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)` +`func (o *HealthCheckConfigResponse) SetMessage(v string)` SetMessage sets Message field to given value. ### HasMessage -`func (o *FederationHealthCheckConfigResponse) HasMessage() bool` +`func (o *HealthCheckConfigResponse) HasMessage() bool` HasMessage returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationHealthConfig.md b/ipamfederation/docs/HealthConfig.md similarity index 64% rename from ipamfederation/docs/FederationHealthConfig.md rename to ipamfederation/docs/HealthConfig.md index 1cdaaf5..50aa358 100644 --- a/ipamfederation/docs/FederationHealthConfig.md +++ b/ipamfederation/docs/HealthConfig.md @@ -1,4 +1,4 @@ -# FederationHealthConfig +# HealthConfig ## Properties @@ -12,145 +12,145 @@ Name | Type | Description | Notes ## Methods -### NewFederationHealthConfig +### NewHealthConfig -`func NewFederationHealthConfig() *FederationHealthConfig` +`func NewHealthConfig() *HealthConfig` -NewFederationHealthConfig instantiates a new FederationHealthConfig object +NewHealthConfig instantiates a new HealthConfig 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 +### NewHealthConfigWithDefaults -`func NewFederationHealthConfigWithDefaults() *FederationHealthConfig` +`func NewHealthConfigWithDefaults() *HealthConfig` -NewFederationHealthConfigWithDefaults instantiates a new FederationHealthConfig object +NewHealthConfigWithDefaults instantiates a new HealthConfig 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` +`func (o *HealthConfig) GetAppName() string` GetAppName returns the AppName field if non-nil, zero value otherwise. ### GetAppNameOk -`func (o *FederationHealthConfig) GetAppNameOk() (*string, bool)` +`func (o *HealthConfig) 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)` +`func (o *HealthConfig) SetAppName(v string)` SetAppName sets AppName field to given value. ### HasAppName -`func (o *FederationHealthConfig) HasAppName() bool` +`func (o *HealthConfig) HasAppName() bool` HasAppName returns a boolean if a field has been set. ### GetMessage -`func (o *FederationHealthConfig) GetMessage() string` +`func (o *HealthConfig) GetMessage() string` GetMessage returns the Message field if non-nil, zero value otherwise. ### GetMessageOk -`func (o *FederationHealthConfig) GetMessageOk() (*string, bool)` +`func (o *HealthConfig) 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)` +`func (o *HealthConfig) SetMessage(v string)` SetMessage sets Message field to given value. ### HasMessage -`func (o *FederationHealthConfig) HasMessage() bool` +`func (o *HealthConfig) HasMessage() bool` HasMessage returns a boolean if a field has been set. ### GetOphid -`func (o *FederationHealthConfig) GetOphid() string` +`func (o *HealthConfig) GetOphid() string` GetOphid returns the Ophid field if non-nil, zero value otherwise. ### GetOphidOk -`func (o *FederationHealthConfig) GetOphidOk() (*string, bool)` +`func (o *HealthConfig) 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)` +`func (o *HealthConfig) SetOphid(v string)` SetOphid sets Ophid field to given value. ### HasOphid -`func (o *FederationHealthConfig) HasOphid() bool` +`func (o *HealthConfig) HasOphid() bool` HasOphid returns a boolean if a field has been set. ### GetStatusCode -`func (o *FederationHealthConfig) GetStatusCode() HealthConfigStatusCode` +`func (o *HealthConfig) GetStatusCode() HealthConfigStatusCode` GetStatusCode returns the StatusCode field if non-nil, zero value otherwise. ### GetStatusCodeOk -`func (o *FederationHealthConfig) GetStatusCodeOk() (*HealthConfigStatusCode, bool)` +`func (o *HealthConfig) 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)` +`func (o *HealthConfig) SetStatusCode(v HealthConfigStatusCode)` SetStatusCode sets StatusCode field to given value. ### HasStatusCode -`func (o *FederationHealthConfig) HasStatusCode() bool` +`func (o *HealthConfig) HasStatusCode() bool` HasStatusCode returns a boolean if a field has been set. ### GetVersion -`func (o *FederationHealthConfig) GetVersion() string` +`func (o *HealthConfig) GetVersion() string` GetVersion returns the Version field if non-nil, zero value otherwise. ### GetVersionOk -`func (o *FederationHealthConfig) GetVersionOk() (*string, bool)` +`func (o *HealthConfig) 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)` +`func (o *HealthConfig) SetVersion(v string)` SetVersion sets Version field to given value. ### HasVersion -`func (o *FederationHealthConfig) HasVersion() bool` +`func (o *HealthConfig) HasVersion() bool` HasVersion returns a boolean if a field has been set. diff --git a/ipamfederation/docs/ListDelegationResponse.md b/ipamfederation/docs/ListDelegationResponse.md new file mode 100644 index 0000000..7e8a2bc --- /dev/null +++ b/ipamfederation/docs/ListDelegationResponse.md @@ -0,0 +1,56 @@ +# ListDelegationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]Delegation**](Delegation.md) | A list of Delegation objects. | [optional] + +## Methods + +### NewListDelegationResponse + +`func NewListDelegationResponse() *ListDelegationResponse` + +NewListDelegationResponse instantiates a new ListDelegationResponse 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 + +### NewListDelegationResponseWithDefaults + +`func NewListDelegationResponseWithDefaults() *ListDelegationResponse` + +NewListDelegationResponseWithDefaults instantiates a new ListDelegationResponse 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 *ListDelegationResponse) GetResults() []Delegation` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ListDelegationResponse) GetResultsOk() (*[]Delegation, 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 *ListDelegationResponse) SetResults(v []Delegation)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ListDelegationResponse) 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/ListFederatedBlockResponse.md b/ipamfederation/docs/ListFederatedBlockResponse.md new file mode 100644 index 0000000..a1fe75d --- /dev/null +++ b/ipamfederation/docs/ListFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# ListFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederatedBlock**](FederatedBlock.md) | A list of FederatedBlock objects. | [optional] + +## Methods + +### NewListFederatedBlockResponse + +`func NewListFederatedBlockResponse() *ListFederatedBlockResponse` + +NewListFederatedBlockResponse instantiates a new ListFederatedBlockResponse 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 + +### NewListFederatedBlockResponseWithDefaults + +`func NewListFederatedBlockResponseWithDefaults() *ListFederatedBlockResponse` + +NewListFederatedBlockResponseWithDefaults instantiates a new ListFederatedBlockResponse 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 *ListFederatedBlockResponse) GetResults() []FederatedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ListFederatedBlockResponse) GetResultsOk() (*[]FederatedBlock, 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 *ListFederatedBlockResponse) SetResults(v []FederatedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ListFederatedBlockResponse) 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/ListFederatedRealmResponse.md b/ipamfederation/docs/ListFederatedRealmResponse.md new file mode 100644 index 0000000..7f3ef25 --- /dev/null +++ b/ipamfederation/docs/ListFederatedRealmResponse.md @@ -0,0 +1,56 @@ +# ListFederatedRealmResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederatedRealm**](FederatedRealm.md) | The list of FederatedRealm objects. | [optional] + +## Methods + +### NewListFederatedRealmResponse + +`func NewListFederatedRealmResponse() *ListFederatedRealmResponse` + +NewListFederatedRealmResponse instantiates a new ListFederatedRealmResponse 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 + +### NewListFederatedRealmResponseWithDefaults + +`func NewListFederatedRealmResponseWithDefaults() *ListFederatedRealmResponse` + +NewListFederatedRealmResponseWithDefaults instantiates a new ListFederatedRealmResponse 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 *ListFederatedRealmResponse) GetResults() []FederatedRealm` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ListFederatedRealmResponse) GetResultsOk() (*[]FederatedRealm, 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 *ListFederatedRealmResponse) SetResults(v []FederatedRealm)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ListFederatedRealmResponse) 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/ListNextAvailableFederatedBlockResponse.md b/ipamfederation/docs/ListNextAvailableFederatedBlockResponse.md new file mode 100644 index 0000000..1d74bef --- /dev/null +++ b/ipamfederation/docs/ListNextAvailableFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# ListNextAvailableFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]FederatedBlock**](FederatedBlock.md) | | [optional] + +## Methods + +### NewListNextAvailableFederatedBlockResponse + +`func NewListNextAvailableFederatedBlockResponse() *ListNextAvailableFederatedBlockResponse` + +NewListNextAvailableFederatedBlockResponse instantiates a new ListNextAvailableFederatedBlockResponse 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 + +### NewListNextAvailableFederatedBlockResponseWithDefaults + +`func NewListNextAvailableFederatedBlockResponseWithDefaults() *ListNextAvailableFederatedBlockResponse` + +NewListNextAvailableFederatedBlockResponseWithDefaults instantiates a new ListNextAvailableFederatedBlockResponse 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 *ListNextAvailableFederatedBlockResponse) GetResults() []FederatedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ListNextAvailableFederatedBlockResponse) GetResultsOk() (*[]FederatedBlock, 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 *ListNextAvailableFederatedBlockResponse) SetResults(v []FederatedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ListNextAvailableFederatedBlockResponse) 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/ListNextAvailableOverlappingBlockResponse.md similarity index 50% rename from ipamfederation/docs/FederationListFederatedRealmResponse.md rename to ipamfederation/docs/ListNextAvailableOverlappingBlockResponse.md index a460b8b..09ab182 100644 --- a/ipamfederation/docs/FederationListFederatedRealmResponse.md +++ b/ipamfederation/docs/ListNextAvailableOverlappingBlockResponse.md @@ -1,52 +1,52 @@ -# FederationListFederatedRealmResponse +# ListNextAvailableOverlappingBlockResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Results** | Pointer to [**[]FederationFederatedRealm**](FederationFederatedRealm.md) | The list of FederatedRealm objects. | [optional] +**Results** | Pointer to [**[]OverlappingBlock**](OverlappingBlock.md) | | [optional] ## Methods -### NewFederationListFederatedRealmResponse +### NewListNextAvailableOverlappingBlockResponse -`func NewFederationListFederatedRealmResponse() *FederationListFederatedRealmResponse` +`func NewListNextAvailableOverlappingBlockResponse() *ListNextAvailableOverlappingBlockResponse` -NewFederationListFederatedRealmResponse instantiates a new FederationListFederatedRealmResponse object +NewListNextAvailableOverlappingBlockResponse instantiates a new ListNextAvailableOverlappingBlockResponse 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 +### NewListNextAvailableOverlappingBlockResponseWithDefaults -`func NewFederationListFederatedRealmResponseWithDefaults() *FederationListFederatedRealmResponse` +`func NewListNextAvailableOverlappingBlockResponseWithDefaults() *ListNextAvailableOverlappingBlockResponse` -NewFederationListFederatedRealmResponseWithDefaults instantiates a new FederationListFederatedRealmResponse object +NewListNextAvailableOverlappingBlockResponseWithDefaults instantiates a new ListNextAvailableOverlappingBlockResponse 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` +`func (o *ListNextAvailableOverlappingBlockResponse) GetResults() []OverlappingBlock` GetResults returns the Results field if non-nil, zero value otherwise. ### GetResultsOk -`func (o *FederationListFederatedRealmResponse) GetResultsOk() (*[]FederationFederatedRealm, bool)` +`func (o *ListNextAvailableOverlappingBlockResponse) GetResultsOk() (*[]OverlappingBlock, 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)` +`func (o *ListNextAvailableOverlappingBlockResponse) SetResults(v []OverlappingBlock)` SetResults sets Results field to given value. ### HasResults -`func (o *FederationListFederatedRealmResponse) HasResults() bool` +`func (o *ListNextAvailableOverlappingBlockResponse) HasResults() bool` HasResults returns a boolean if a field has been set. diff --git a/ipamfederation/docs/ListNextAvailableReservedBlockResponse.md b/ipamfederation/docs/ListNextAvailableReservedBlockResponse.md new file mode 100644 index 0000000..918a18c --- /dev/null +++ b/ipamfederation/docs/ListNextAvailableReservedBlockResponse.md @@ -0,0 +1,56 @@ +# ListNextAvailableReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]ReservedBlock**](ReservedBlock.md) | | [optional] + +## Methods + +### NewListNextAvailableReservedBlockResponse + +`func NewListNextAvailableReservedBlockResponse() *ListNextAvailableReservedBlockResponse` + +NewListNextAvailableReservedBlockResponse instantiates a new ListNextAvailableReservedBlockResponse 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 + +### NewListNextAvailableReservedBlockResponseWithDefaults + +`func NewListNextAvailableReservedBlockResponseWithDefaults() *ListNextAvailableReservedBlockResponse` + +NewListNextAvailableReservedBlockResponseWithDefaults instantiates a new ListNextAvailableReservedBlockResponse 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 *ListNextAvailableReservedBlockResponse) GetResults() []ReservedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ListNextAvailableReservedBlockResponse) GetResultsOk() (*[]ReservedBlock, 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 *ListNextAvailableReservedBlockResponse) SetResults(v []ReservedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ListNextAvailableReservedBlockResponse) 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/ListOverlappingBlockResponse.md b/ipamfederation/docs/ListOverlappingBlockResponse.md new file mode 100644 index 0000000..1872ba4 --- /dev/null +++ b/ipamfederation/docs/ListOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# ListOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]OverlappingBlock**](OverlappingBlock.md) | A list of OverlappingBlock objects. | [optional] + +## Methods + +### NewListOverlappingBlockResponse + +`func NewListOverlappingBlockResponse() *ListOverlappingBlockResponse` + +NewListOverlappingBlockResponse instantiates a new ListOverlappingBlockResponse 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 + +### NewListOverlappingBlockResponseWithDefaults + +`func NewListOverlappingBlockResponseWithDefaults() *ListOverlappingBlockResponse` + +NewListOverlappingBlockResponseWithDefaults instantiates a new ListOverlappingBlockResponse 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 *ListOverlappingBlockResponse) GetResults() []OverlappingBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ListOverlappingBlockResponse) GetResultsOk() (*[]OverlappingBlock, 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 *ListOverlappingBlockResponse) SetResults(v []OverlappingBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ListOverlappingBlockResponse) 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/ListReservedBlockResponse.md b/ipamfederation/docs/ListReservedBlockResponse.md new file mode 100644 index 0000000..c357c49 --- /dev/null +++ b/ipamfederation/docs/ListReservedBlockResponse.md @@ -0,0 +1,56 @@ +# ListReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Results** | Pointer to [**[]ReservedBlock**](ReservedBlock.md) | A list of ReservedBlock objects. | [optional] + +## Methods + +### NewListReservedBlockResponse + +`func NewListReservedBlockResponse() *ListReservedBlockResponse` + +NewListReservedBlockResponse instantiates a new ListReservedBlockResponse 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 + +### NewListReservedBlockResponseWithDefaults + +`func NewListReservedBlockResponseWithDefaults() *ListReservedBlockResponse` + +NewListReservedBlockResponseWithDefaults instantiates a new ListReservedBlockResponse 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 *ListReservedBlockResponse) GetResults() []ReservedBlock` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *ListReservedBlockResponse) GetResultsOk() (*[]ReservedBlock, 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 *ListReservedBlockResponse) SetResults(v []ReservedBlock)` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *ListReservedBlockResponse) 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/NextAvailableBlockRequest.md similarity index 61% rename from ipamfederation/docs/FederationNextAvailableBlockRequest.md rename to ipamfederation/docs/NextAvailableBlockRequest.md index 41dd473..582ec4d 100644 --- a/ipamfederation/docs/FederationNextAvailableBlockRequest.md +++ b/ipamfederation/docs/NextAvailableBlockRequest.md @@ -1,4 +1,4 @@ -# FederationNextAvailableBlockRequest +# NextAvailableBlockRequest ## Properties @@ -13,170 +13,170 @@ Name | Type | Description | Notes ## Methods -### NewFederationNextAvailableBlockRequest +### NewNextAvailableBlockRequest -`func NewFederationNextAvailableBlockRequest() *FederationNextAvailableBlockRequest` +`func NewNextAvailableBlockRequest() *NextAvailableBlockRequest` -NewFederationNextAvailableBlockRequest instantiates a new FederationNextAvailableBlockRequest object +NewNextAvailableBlockRequest instantiates a new NextAvailableBlockRequest 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 +### NewNextAvailableBlockRequestWithDefaults -`func NewFederationNextAvailableBlockRequestWithDefaults() *FederationNextAvailableBlockRequest` +`func NewNextAvailableBlockRequestWithDefaults() *NextAvailableBlockRequest` -NewFederationNextAvailableBlockRequestWithDefaults instantiates a new FederationNextAvailableBlockRequest object +NewNextAvailableBlockRequestWithDefaults instantiates a new NextAvailableBlockRequest 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` +`func (o *NextAvailableBlockRequest) GetCidr() int64` GetCidr returns the Cidr field if non-nil, zero value otherwise. ### GetCidrOk -`func (o *FederationNextAvailableBlockRequest) GetCidrOk() (*int64, bool)` +`func (o *NextAvailableBlockRequest) 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)` +`func (o *NextAvailableBlockRequest) SetCidr(v int64)` SetCidr sets Cidr field to given value. ### HasCidr -`func (o *FederationNextAvailableBlockRequest) HasCidr() bool` +`func (o *NextAvailableBlockRequest) HasCidr() bool` HasCidr returns a boolean if a field has been set. ### GetComment -`func (o *FederationNextAvailableBlockRequest) GetComment() string` +`func (o *NextAvailableBlockRequest) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *FederationNextAvailableBlockRequest) GetCommentOk() (*string, bool)` +`func (o *NextAvailableBlockRequest) 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)` +`func (o *NextAvailableBlockRequest) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment -`func (o *FederationNextAvailableBlockRequest) HasComment() bool` +`func (o *NextAvailableBlockRequest) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetCount -`func (o *FederationNextAvailableBlockRequest) GetCount() int64` +`func (o *NextAvailableBlockRequest) GetCount() int64` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *FederationNextAvailableBlockRequest) GetCountOk() (*int64, bool)` +`func (o *NextAvailableBlockRequest) 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)` +`func (o *NextAvailableBlockRequest) SetCount(v int64)` SetCount sets Count field to given value. ### HasCount -`func (o *FederationNextAvailableBlockRequest) HasCount() bool` +`func (o *NextAvailableBlockRequest) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetId -`func (o *FederationNextAvailableBlockRequest) GetId() string` +`func (o *NextAvailableBlockRequest) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *FederationNextAvailableBlockRequest) GetIdOk() (*string, bool)` +`func (o *NextAvailableBlockRequest) 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)` +`func (o *NextAvailableBlockRequest) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *FederationNextAvailableBlockRequest) HasId() bool` +`func (o *NextAvailableBlockRequest) HasId() bool` HasId returns a boolean if a field has been set. ### GetName -`func (o *FederationNextAvailableBlockRequest) GetName() string` +`func (o *NextAvailableBlockRequest) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *FederationNextAvailableBlockRequest) GetNameOk() (*string, bool)` +`func (o *NextAvailableBlockRequest) 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)` +`func (o *NextAvailableBlockRequest) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *FederationNextAvailableBlockRequest) HasName() bool` +`func (o *NextAvailableBlockRequest) HasName() bool` HasName returns a boolean if a field has been set. ### GetTags -`func (o *FederationNextAvailableBlockRequest) GetTags() map[string]interface{}` +`func (o *NextAvailableBlockRequest) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *FederationNextAvailableBlockRequest) GetTagsOk() (*map[string]interface{}, bool)` +`func (o *NextAvailableBlockRequest) 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{})` +`func (o *NextAvailableBlockRequest) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. ### HasTags -`func (o *FederationNextAvailableBlockRequest) HasTags() bool` +`func (o *NextAvailableBlockRequest) HasTags() bool` HasTags returns a boolean if a field has been set. diff --git a/ipamfederation/docs/NextAvailableDelegationAPI.md b/ipamfederation/docs/NextAvailableDelegationAPI.md index 2d4904c..410c774 100644 --- a/ipamfederation/docs/NextAvailableDelegationAPI.md +++ b/ipamfederation/docs/NextAvailableDelegationAPI.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## GetNextAvailableDelegation -> FederationGetNextAvailableDelegationResponse GetNextAvailableDelegation(ctx).Body(body).Execute() +> GetNextAvailableDelegationResponse GetNextAvailableDelegation(ctx).Body(body).Execute() Retrieve the next available delegation. @@ -30,7 +30,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationGetNextAvailableDelegationRequest() // FederationGetNextAvailableDelegationRequest | + body := *ipamfederation.NewGetNextAvailableDelegationRequest() // GetNextAvailableDelegationRequest | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.NextAvailableDelegationAPI.GetNextAvailableDelegation(context.Background()).Body(body).Execute() @@ -38,7 +38,7 @@ func main() { 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 + // response from `GetNextAvailableDelegation`: GetNextAvailableDelegationResponse fmt.Fprintf(os.Stdout, "Response from `NextAvailableDelegationAPI.GetNextAvailableDelegation`: %v\n", resp) } ``` @@ -54,11 +54,11 @@ Other parameters are passed through a pointer to a `NextAvailableDelegationAPIGe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationGetNextAvailableDelegationRequest**](FederationGetNextAvailableDelegationRequest.md) | | +**body** | [**GetNextAvailableDelegationRequest**](GetNextAvailableDelegationRequest.md) | | ### Return type -[**FederationGetNextAvailableDelegationResponse**](FederationGetNextAvailableDelegationResponse.md) +[**GetNextAvailableDelegationResponse**](GetNextAvailableDelegationResponse.md) ### Authorization diff --git a/ipamfederation/docs/FederationNextAvailableDelegationArguments.md b/ipamfederation/docs/NextAvailableDelegationArguments.md similarity index 59% rename from ipamfederation/docs/FederationNextAvailableDelegationArguments.md rename to ipamfederation/docs/NextAvailableDelegationArguments.md index 5c61147..ec738ea 100644 --- a/ipamfederation/docs/FederationNextAvailableDelegationArguments.md +++ b/ipamfederation/docs/NextAvailableDelegationArguments.md @@ -1,4 +1,4 @@ -# FederationNextAvailableDelegationArguments +# NextAvailableDelegationArguments ## Properties @@ -12,145 +12,145 @@ Name | Type | Description | Notes ## Methods -### NewFederationNextAvailableDelegationArguments +### NewNextAvailableDelegationArguments -`func NewFederationNextAvailableDelegationArguments() *FederationNextAvailableDelegationArguments` +`func NewNextAvailableDelegationArguments() *NextAvailableDelegationArguments` -NewFederationNextAvailableDelegationArguments instantiates a new FederationNextAvailableDelegationArguments object +NewNextAvailableDelegationArguments instantiates a new NextAvailableDelegationArguments 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 +### NewNextAvailableDelegationArgumentsWithDefaults -`func NewFederationNextAvailableDelegationArgumentsWithDefaults() *FederationNextAvailableDelegationArguments` +`func NewNextAvailableDelegationArgumentsWithDefaults() *NextAvailableDelegationArguments` -NewFederationNextAvailableDelegationArgumentsWithDefaults instantiates a new FederationNextAvailableDelegationArguments object +NewNextAvailableDelegationArgumentsWithDefaults instantiates a new NextAvailableDelegationArguments 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` +`func (o *NextAvailableDelegationArguments) GetCidr() int64` GetCidr returns the Cidr field if non-nil, zero value otherwise. ### GetCidrOk -`func (o *FederationNextAvailableDelegationArguments) GetCidrOk() (*int64, bool)` +`func (o *NextAvailableDelegationArguments) 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)` +`func (o *NextAvailableDelegationArguments) SetCidr(v int64)` SetCidr sets Cidr field to given value. ### HasCidr -`func (o *FederationNextAvailableDelegationArguments) HasCidr() bool` +`func (o *NextAvailableDelegationArguments) HasCidr() bool` HasCidr returns a boolean if a field has been set. ### GetCount -`func (o *FederationNextAvailableDelegationArguments) GetCount() int64` +`func (o *NextAvailableDelegationArguments) GetCount() int64` GetCount returns the Count field if non-nil, zero value otherwise. ### GetCountOk -`func (o *FederationNextAvailableDelegationArguments) GetCountOk() (*int64, bool)` +`func (o *NextAvailableDelegationArguments) 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)` +`func (o *NextAvailableDelegationArguments) SetCount(v int64)` SetCount sets Count field to given value. ### HasCount -`func (o *FederationNextAvailableDelegationArguments) HasCount() bool` +`func (o *NextAvailableDelegationArguments) HasCount() bool` HasCount returns a boolean if a field has been set. ### GetFederatedRealms -`func (o *FederationNextAvailableDelegationArguments) GetFederatedRealms() []string` +`func (o *NextAvailableDelegationArguments) GetFederatedRealms() []string` GetFederatedRealms returns the FederatedRealms field if non-nil, zero value otherwise. ### GetFederatedRealmsOk -`func (o *FederationNextAvailableDelegationArguments) GetFederatedRealmsOk() (*[]string, bool)` +`func (o *NextAvailableDelegationArguments) 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)` +`func (o *NextAvailableDelegationArguments) SetFederatedRealms(v []string)` SetFederatedRealms sets FederatedRealms field to given value. ### HasFederatedRealms -`func (o *FederationNextAvailableDelegationArguments) HasFederatedRealms() bool` +`func (o *NextAvailableDelegationArguments) HasFederatedRealms() bool` HasFederatedRealms returns a boolean if a field has been set. ### GetPredicates -`func (o *FederationNextAvailableDelegationArguments) GetPredicates() map[string]interface{}` +`func (o *NextAvailableDelegationArguments) GetPredicates() map[string]interface{}` GetPredicates returns the Predicates field if non-nil, zero value otherwise. ### GetPredicatesOk -`func (o *FederationNextAvailableDelegationArguments) GetPredicatesOk() (*map[string]interface{}, bool)` +`func (o *NextAvailableDelegationArguments) 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{})` +`func (o *NextAvailableDelegationArguments) SetPredicates(v map[string]interface{})` SetPredicates sets Predicates field to given value. ### HasPredicates -`func (o *FederationNextAvailableDelegationArguments) HasPredicates() bool` +`func (o *NextAvailableDelegationArguments) HasPredicates() bool` HasPredicates returns a boolean if a field has been set. ### GetReadOnly -`func (o *FederationNextAvailableDelegationArguments) GetReadOnly() bool` +`func (o *NextAvailableDelegationArguments) GetReadOnly() bool` GetReadOnly returns the ReadOnly field if non-nil, zero value otherwise. ### GetReadOnlyOk -`func (o *FederationNextAvailableDelegationArguments) GetReadOnlyOk() (*bool, bool)` +`func (o *NextAvailableDelegationArguments) 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)` +`func (o *NextAvailableDelegationArguments) SetReadOnly(v bool)` SetReadOnly sets ReadOnly field to given value. ### HasReadOnly -`func (o *FederationNextAvailableDelegationArguments) HasReadOnly() bool` +`func (o *NextAvailableDelegationArguments) HasReadOnly() bool` HasReadOnly returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationNextAvailableDelegationProperties.md b/ipamfederation/docs/NextAvailableDelegationProperties.md similarity index 58% rename from ipamfederation/docs/FederationNextAvailableDelegationProperties.md rename to ipamfederation/docs/NextAvailableDelegationProperties.md index a420d6e..3883cc4 100644 --- a/ipamfederation/docs/FederationNextAvailableDelegationProperties.md +++ b/ipamfederation/docs/NextAvailableDelegationProperties.md @@ -1,4 +1,4 @@ -# FederationNextAvailableDelegationProperties +# NextAvailableDelegationProperties ## Properties @@ -10,95 +10,95 @@ Name | Type | Description | Notes ## Methods -### NewFederationNextAvailableDelegationProperties +### NewNextAvailableDelegationProperties -`func NewFederationNextAvailableDelegationProperties() *FederationNextAvailableDelegationProperties` +`func NewNextAvailableDelegationProperties() *NextAvailableDelegationProperties` -NewFederationNextAvailableDelegationProperties instantiates a new FederationNextAvailableDelegationProperties object +NewNextAvailableDelegationProperties instantiates a new NextAvailableDelegationProperties 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 +### NewNextAvailableDelegationPropertiesWithDefaults -`func NewFederationNextAvailableDelegationPropertiesWithDefaults() *FederationNextAvailableDelegationProperties` +`func NewNextAvailableDelegationPropertiesWithDefaults() *NextAvailableDelegationProperties` -NewFederationNextAvailableDelegationPropertiesWithDefaults instantiates a new FederationNextAvailableDelegationProperties object +NewNextAvailableDelegationPropertiesWithDefaults instantiates a new NextAvailableDelegationProperties 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` +`func (o *NextAvailableDelegationProperties) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *FederationNextAvailableDelegationProperties) GetCommentOk() (*string, bool)` +`func (o *NextAvailableDelegationProperties) 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)` +`func (o *NextAvailableDelegationProperties) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment -`func (o *FederationNextAvailableDelegationProperties) HasComment() bool` +`func (o *NextAvailableDelegationProperties) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetDelegatedTo -`func (o *FederationNextAvailableDelegationProperties) GetDelegatedTo() string` +`func (o *NextAvailableDelegationProperties) GetDelegatedTo() string` GetDelegatedTo returns the DelegatedTo field if non-nil, zero value otherwise. ### GetDelegatedToOk -`func (o *FederationNextAvailableDelegationProperties) GetDelegatedToOk() (*string, bool)` +`func (o *NextAvailableDelegationProperties) 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)` +`func (o *NextAvailableDelegationProperties) SetDelegatedTo(v string)` SetDelegatedTo sets DelegatedTo field to given value. ### HasDelegatedTo -`func (o *FederationNextAvailableDelegationProperties) HasDelegatedTo() bool` +`func (o *NextAvailableDelegationProperties) HasDelegatedTo() bool` HasDelegatedTo returns a boolean if a field has been set. ### GetName -`func (o *FederationNextAvailableDelegationProperties) GetName() string` +`func (o *NextAvailableDelegationProperties) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *FederationNextAvailableDelegationProperties) GetNameOk() (*string, bool)` +`func (o *NextAvailableDelegationProperties) 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)` +`func (o *NextAvailableDelegationProperties) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *FederationNextAvailableDelegationProperties) HasName() bool` +`func (o *NextAvailableDelegationProperties) HasName() bool` HasName returns a boolean if a field has been set. diff --git a/ipamfederation/docs/NextAvailableFederatedBlockAPI.md b/ipamfederation/docs/NextAvailableFederatedBlockAPI.md index a69d4c1..e2fbe39 100644 --- a/ipamfederation/docs/NextAvailableFederatedBlockAPI.md +++ b/ipamfederation/docs/NextAvailableFederatedBlockAPI.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## CreateNextAvailableFederatedBlocks -> FederationCreateNextAvailableFederatedBlockResponse CreateNextAvailableFederatedBlocks(ctx, id).Body(body).Execute() +> CreateNextAvailableFederatedBlockResponse CreateNextAvailableFederatedBlocks(ctx, id).Body(body).Execute() Retrieve the next available federated block. @@ -34,7 +34,7 @@ import ( func main() { id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource - body := *ipamfederation.NewFederationNextAvailableBlockRequest() // FederationNextAvailableBlockRequest | + body := *ipamfederation.NewNextAvailableBlockRequest() // NextAvailableBlockRequest | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableFederatedBlocks(context.Background(), id).Body(body).Execute() @@ -42,7 +42,7 @@ func main() { 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 + // response from `CreateNextAvailableFederatedBlocks`: CreateNextAvailableFederatedBlockResponse fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.CreateNextAvailableFederatedBlocks`: %v\n", resp) } ``` @@ -62,11 +62,11 @@ Other parameters are passed through a pointer to a `NextAvailableFederatedBlockA Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationNextAvailableBlockRequest**](FederationNextAvailableBlockRequest.md) | | +**body** | [**NextAvailableBlockRequest**](NextAvailableBlockRequest.md) | | ### Return type -[**FederationCreateNextAvailableFederatedBlockResponse**](FederationCreateNextAvailableFederatedBlockResponse.md) +[**CreateNextAvailableFederatedBlockResponse**](CreateNextAvailableFederatedBlockResponse.md) ### Authorization @@ -84,7 +84,7 @@ Name | Type | Description | Notes ## CreateNextAvailableOverlappingBlocks -> FederationCreateNextAvailableOverlappingBlockResponse CreateNextAvailableOverlappingBlocks(ctx, id).Body(body).Execute() +> CreateNextAvailableOverlappingBlockResponse CreateNextAvailableOverlappingBlocks(ctx, id).Body(body).Execute() Retrieve the next available overlapping block. @@ -105,7 +105,7 @@ import ( func main() { id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource - body := *ipamfederation.NewFederationNextAvailableBlockRequest() // FederationNextAvailableBlockRequest | + body := *ipamfederation.NewNextAvailableBlockRequest() // NextAvailableBlockRequest | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableOverlappingBlocks(context.Background(), id).Body(body).Execute() @@ -113,7 +113,7 @@ func main() { 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 + // response from `CreateNextAvailableOverlappingBlocks`: CreateNextAvailableOverlappingBlockResponse fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.CreateNextAvailableOverlappingBlocks`: %v\n", resp) } ``` @@ -133,11 +133,11 @@ Other parameters are passed through a pointer to a `NextAvailableFederatedBlockA Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationNextAvailableBlockRequest**](FederationNextAvailableBlockRequest.md) | | +**body** | [**NextAvailableBlockRequest**](NextAvailableBlockRequest.md) | | ### Return type -[**FederationCreateNextAvailableOverlappingBlockResponse**](FederationCreateNextAvailableOverlappingBlockResponse.md) +[**CreateNextAvailableOverlappingBlockResponse**](CreateNextAvailableOverlappingBlockResponse.md) ### Authorization @@ -155,7 +155,7 @@ Name | Type | Description | Notes ## CreateNextAvailableReservedBlocks -> FederationCreateNextAvailableReservedBlockResponse CreateNextAvailableReservedBlocks(ctx, id).Body(body).Execute() +> CreateNextAvailableReservedBlockResponse CreateNextAvailableReservedBlocks(ctx, id).Body(body).Execute() Retrieve the next available reserved block. @@ -176,7 +176,7 @@ import ( func main() { id := "a5183192-1e00-475f-b334-38e1f0bb1bc7" // string | An application specific resource identity of a resource - body := *ipamfederation.NewFederationNextAvailableBlockRequest() // FederationNextAvailableBlockRequest | + body := *ipamfederation.NewNextAvailableBlockRequest() // NextAvailableBlockRequest | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.NextAvailableFederatedBlockAPI.CreateNextAvailableReservedBlocks(context.Background(), id).Body(body).Execute() @@ -184,7 +184,7 @@ func main() { 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 + // response from `CreateNextAvailableReservedBlocks`: CreateNextAvailableReservedBlockResponse fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.CreateNextAvailableReservedBlocks`: %v\n", resp) } ``` @@ -204,11 +204,11 @@ Other parameters are passed through a pointer to a `NextAvailableFederatedBlockA Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationNextAvailableBlockRequest**](FederationNextAvailableBlockRequest.md) | | +**body** | [**NextAvailableBlockRequest**](NextAvailableBlockRequest.md) | | ### Return type -[**FederationCreateNextAvailableReservedBlockResponse**](FederationCreateNextAvailableReservedBlockResponse.md) +[**CreateNextAvailableReservedBlockResponse**](CreateNextAvailableReservedBlockResponse.md) ### Authorization @@ -226,7 +226,7 @@ Name | Type | Description | Notes ## ListNextAvailableFederatedBlocks -> FederationListNextAvailableFederatedBlockResponse ListNextAvailableFederatedBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() +> ListNextAvailableFederatedBlockResponse ListNextAvailableFederatedBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() List the next available federated block. @@ -254,7 +254,7 @@ func main() { 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 + // response from `ListNextAvailableFederatedBlocks`: ListNextAvailableFederatedBlockResponse fmt.Fprintf(os.Stdout, "Response from `NextAvailableFederatedBlockAPI.ListNextAvailableFederatedBlocks`: %v\n", resp) } ``` @@ -281,7 +281,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListNextAvailableFederatedBlockResponse**](FederationListNextAvailableFederatedBlockResponse.md) +[**ListNextAvailableFederatedBlockResponse**](ListNextAvailableFederatedBlockResponse.md) ### Authorization diff --git a/ipamfederation/docs/NextAvailableOverlappingBlockAPI.md b/ipamfederation/docs/NextAvailableOverlappingBlockAPI.md index e231c20..520e821 100644 --- a/ipamfederation/docs/NextAvailableOverlappingBlockAPI.md +++ b/ipamfederation/docs/NextAvailableOverlappingBlockAPI.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## ListNextAvailableOverlappingBlocks -> FederationListNextAvailableOverlappingBlockResponse ListNextAvailableOverlappingBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() +> ListNextAvailableOverlappingBlockResponse ListNextAvailableOverlappingBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() List the next available overlapping block. @@ -38,7 +38,7 @@ func main() { 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 + // response from `ListNextAvailableOverlappingBlocks`: ListNextAvailableOverlappingBlockResponse fmt.Fprintf(os.Stdout, "Response from `NextAvailableOverlappingBlockAPI.ListNextAvailableOverlappingBlocks`: %v\n", resp) } ``` @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListNextAvailableOverlappingBlockResponse**](FederationListNextAvailableOverlappingBlockResponse.md) +[**ListNextAvailableOverlappingBlockResponse**](ListNextAvailableOverlappingBlockResponse.md) ### Authorization diff --git a/ipamfederation/docs/NextAvailableReservedBlockAPI.md b/ipamfederation/docs/NextAvailableReservedBlockAPI.md index ca3d00d..0a57a41 100644 --- a/ipamfederation/docs/NextAvailableReservedBlockAPI.md +++ b/ipamfederation/docs/NextAvailableReservedBlockAPI.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## ListNextAvailableReservedBlocks -> FederationListNextAvailableReservedBlockResponse ListNextAvailableReservedBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() +> ListNextAvailableReservedBlockResponse ListNextAvailableReservedBlocks(ctx, id).Cidr(cidr).Count(count).Name(name).Comment(comment).Execute() List the next available reserved block. @@ -38,7 +38,7 @@ func main() { 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 + // response from `ListNextAvailableReservedBlocks`: ListNextAvailableReservedBlockResponse fmt.Fprintf(os.Stdout, "Response from `NextAvailableReservedBlockAPI.ListNextAvailableReservedBlocks`: %v\n", resp) } ``` @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListNextAvailableReservedBlockResponse**](FederationListNextAvailableReservedBlockResponse.md) +[**ListNextAvailableReservedBlockResponse**](ListNextAvailableReservedBlockResponse.md) ### Authorization diff --git a/ipamfederation/docs/FederationOverlappingBlock.md b/ipamfederation/docs/OverlappingBlock.md similarity index 66% rename from ipamfederation/docs/FederationOverlappingBlock.md rename to ipamfederation/docs/OverlappingBlock.md index 4b9130d..6e49ad4 100644 --- a/ipamfederation/docs/FederationOverlappingBlock.md +++ b/ipamfederation/docs/OverlappingBlock.md @@ -1,4 +1,4 @@ -# FederationOverlappingBlock +# OverlappingBlock ## Properties @@ -18,285 +18,285 @@ Name | Type | Description | Notes ## Methods -### NewFederationOverlappingBlock +### NewOverlappingBlock -`func NewFederationOverlappingBlock(address string, federatedRealm string, ) *FederationOverlappingBlock` +`func NewOverlappingBlock(address string, federatedRealm string, ) *OverlappingBlock` -NewFederationOverlappingBlock instantiates a new FederationOverlappingBlock object +NewOverlappingBlock instantiates a new OverlappingBlock 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 +### NewOverlappingBlockWithDefaults -`func NewFederationOverlappingBlockWithDefaults() *FederationOverlappingBlock` +`func NewOverlappingBlockWithDefaults() *OverlappingBlock` -NewFederationOverlappingBlockWithDefaults instantiates a new FederationOverlappingBlock object +NewOverlappingBlockWithDefaults instantiates a new OverlappingBlock 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` +`func (o *OverlappingBlock) GetAddress() string` GetAddress returns the Address field if non-nil, zero value otherwise. ### GetAddressOk -`func (o *FederationOverlappingBlock) GetAddressOk() (*string, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetAddress(v string)` SetAddress sets Address field to given value. ### GetCidr -`func (o *FederationOverlappingBlock) GetCidr() int64` +`func (o *OverlappingBlock) GetCidr() int64` GetCidr returns the Cidr field if non-nil, zero value otherwise. ### GetCidrOk -`func (o *FederationOverlappingBlock) GetCidrOk() (*int64, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetCidr(v int64)` SetCidr sets Cidr field to given value. ### HasCidr -`func (o *FederationOverlappingBlock) HasCidr() bool` +`func (o *OverlappingBlock) HasCidr() bool` HasCidr returns a boolean if a field has been set. ### GetComment -`func (o *FederationOverlappingBlock) GetComment() string` +`func (o *OverlappingBlock) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *FederationOverlappingBlock) GetCommentOk() (*string, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment -`func (o *FederationOverlappingBlock) HasComment() bool` +`func (o *OverlappingBlock) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetCreatedAt -`func (o *FederationOverlappingBlock) GetCreatedAt() time.Time` +`func (o *OverlappingBlock) GetCreatedAt() time.Time` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *FederationOverlappingBlock) GetCreatedAtOk() (*time.Time, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetCreatedAt(v time.Time)` SetCreatedAt sets CreatedAt field to given value. ### HasCreatedAt -`func (o *FederationOverlappingBlock) HasCreatedAt() bool` +`func (o *OverlappingBlock) HasCreatedAt() bool` HasCreatedAt returns a boolean if a field has been set. ### GetFederatedRealm -`func (o *FederationOverlappingBlock) GetFederatedRealm() string` +`func (o *OverlappingBlock) GetFederatedRealm() string` GetFederatedRealm returns the FederatedRealm field if non-nil, zero value otherwise. ### GetFederatedRealmOk -`func (o *FederationOverlappingBlock) GetFederatedRealmOk() (*string, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetFederatedRealm(v string)` SetFederatedRealm sets FederatedRealm field to given value. ### GetId -`func (o *FederationOverlappingBlock) GetId() string` +`func (o *OverlappingBlock) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *FederationOverlappingBlock) GetIdOk() (*string, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *FederationOverlappingBlock) HasId() bool` +`func (o *OverlappingBlock) HasId() bool` HasId returns a boolean if a field has been set. ### GetName -`func (o *FederationOverlappingBlock) GetName() string` +`func (o *OverlappingBlock) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *FederationOverlappingBlock) GetNameOk() (*string, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *FederationOverlappingBlock) HasName() bool` +`func (o *OverlappingBlock) HasName() bool` HasName returns a boolean if a field has been set. ### GetParent -`func (o *FederationOverlappingBlock) GetParent() string` +`func (o *OverlappingBlock) GetParent() string` GetParent returns the Parent field if non-nil, zero value otherwise. ### GetParentOk -`func (o *FederationOverlappingBlock) GetParentOk() (*string, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetParent(v string)` SetParent sets Parent field to given value. ### HasParent -`func (o *FederationOverlappingBlock) HasParent() bool` +`func (o *OverlappingBlock) HasParent() bool` HasParent returns a boolean if a field has been set. ### GetProtocol -`func (o *FederationOverlappingBlock) GetProtocol() string` +`func (o *OverlappingBlock) GetProtocol() string` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FederationOverlappingBlock) GetProtocolOk() (*string, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetProtocol(v string)` SetProtocol sets Protocol field to given value. ### HasProtocol -`func (o *FederationOverlappingBlock) HasProtocol() bool` +`func (o *OverlappingBlock) HasProtocol() bool` HasProtocol returns a boolean if a field has been set. ### GetTags -`func (o *FederationOverlappingBlock) GetTags() map[string]interface{}` +`func (o *OverlappingBlock) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *FederationOverlappingBlock) GetTagsOk() (*map[string]interface{}, bool)` +`func (o *OverlappingBlock) 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{})` +`func (o *OverlappingBlock) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. ### HasTags -`func (o *FederationOverlappingBlock) HasTags() bool` +`func (o *OverlappingBlock) HasTags() bool` HasTags returns a boolean if a field has been set. ### GetUpdatedAt -`func (o *FederationOverlappingBlock) GetUpdatedAt() time.Time` +`func (o *OverlappingBlock) GetUpdatedAt() time.Time` GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. ### GetUpdatedAtOk -`func (o *FederationOverlappingBlock) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *OverlappingBlock) 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)` +`func (o *OverlappingBlock) SetUpdatedAt(v time.Time)` SetUpdatedAt sets UpdatedAt field to given value. ### HasUpdatedAt -`func (o *FederationOverlappingBlock) HasUpdatedAt() bool` +`func (o *OverlappingBlock) HasUpdatedAt() bool` HasUpdatedAt returns a boolean if a field has been set. diff --git a/ipamfederation/docs/OverlappingBlockAPI.md b/ipamfederation/docs/OverlappingBlockAPI.md index 667d3f4..6091404 100644 --- a/ipamfederation/docs/OverlappingBlockAPI.md +++ b/ipamfederation/docs/OverlappingBlockAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## Create -> FederationCreateOverlappingBlockResponse Create(ctx).Body(body).Execute() +> CreateOverlappingBlockResponse Create(ctx).Body(body).Execute() Create the overlapping block. @@ -34,7 +34,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationOverlappingBlock("Address_example", "FederatedRealm_example") // FederationOverlappingBlock | + body := *ipamfederation.NewOverlappingBlock("Address_example", "FederatedRealm_example") // OverlappingBlock | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.OverlappingBlockAPI.Create(context.Background()).Body(body).Execute() @@ -42,7 +42,7 @@ func main() { 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 + // response from `Create`: CreateOverlappingBlockResponse fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.Create`: %v\n", resp) } ``` @@ -58,11 +58,11 @@ Other parameters are passed through a pointer to a `OverlappingBlockAPICreateReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationOverlappingBlock**](FederationOverlappingBlock.md) | | +**body** | [**OverlappingBlock**](OverlappingBlock.md) | | ### Return type -[**FederationCreateOverlappingBlockResponse**](FederationCreateOverlappingBlockResponse.md) +[**CreateOverlappingBlockResponse**](CreateOverlappingBlockResponse.md) ### Authorization @@ -147,7 +147,7 @@ Name | Type | Description | Notes ## List -> FederationListOverlappingBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() +> ListOverlappingBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() Retrieve the overlapping block. @@ -174,7 +174,7 @@ func main() { 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 + // response from `List`: ListOverlappingBlockResponse fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.List`: %v\n", resp) } ``` @@ -201,7 +201,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListOverlappingBlockResponse**](FederationListOverlappingBlockResponse.md) +[**ListOverlappingBlockResponse**](ListOverlappingBlockResponse.md) ### Authorization @@ -219,7 +219,7 @@ Name | Type | Description | Notes ## Read -> FederationReadOverlappingBlockResponse Read(ctx, id).Fields(fields).Execute() +> ReadOverlappingBlockResponse Read(ctx, id).Fields(fields).Execute() Retrieve the overlapping block. @@ -247,7 +247,7 @@ func main() { 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 + // response from `Read`: ReadOverlappingBlockResponse fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.Read`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ Name | Type | Description | Notes ### Return type -[**FederationReadOverlappingBlockResponse**](FederationReadOverlappingBlockResponse.md) +[**ReadOverlappingBlockResponse**](ReadOverlappingBlockResponse.md) ### Authorization @@ -289,7 +289,7 @@ Name | Type | Description | Notes ## Update -> FederationUpdateOverlappingBlockResponse Update(ctx, id).Body(body).Execute() +> UpdateOverlappingBlockResponse Update(ctx, id).Body(body).Execute() Update the overlapping block. @@ -310,7 +310,7 @@ import ( 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 | + body := *ipamfederation.NewOverlappingBlock("Address_example", "FederatedRealm_example") // OverlappingBlock | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.OverlappingBlockAPI.Update(context.Background(), id).Body(body).Execute() @@ -318,7 +318,7 @@ func main() { 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 + // response from `Update`: UpdateOverlappingBlockResponse fmt.Fprintf(os.Stdout, "Response from `OverlappingBlockAPI.Update`: %v\n", resp) } ``` @@ -338,11 +338,11 @@ Other parameters are passed through a pointer to a `OverlappingBlockAPIUpdateReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationOverlappingBlock**](FederationOverlappingBlock.md) | | +**body** | [**OverlappingBlock**](OverlappingBlock.md) | | ### Return type -[**FederationUpdateOverlappingBlockResponse**](FederationUpdateOverlappingBlockResponse.md) +[**UpdateOverlappingBlockResponse**](UpdateOverlappingBlockResponse.md) ### Authorization diff --git a/ipamfederation/docs/ReadDelegationResponse.md b/ipamfederation/docs/ReadDelegationResponse.md new file mode 100644 index 0000000..ea74f1e --- /dev/null +++ b/ipamfederation/docs/ReadDelegationResponse.md @@ -0,0 +1,56 @@ +# ReadDelegationResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**Delegation**](Delegation.md) | The Delegation object. | [optional] + +## Methods + +### NewReadDelegationResponse + +`func NewReadDelegationResponse() *ReadDelegationResponse` + +NewReadDelegationResponse instantiates a new ReadDelegationResponse 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 + +### NewReadDelegationResponseWithDefaults + +`func NewReadDelegationResponseWithDefaults() *ReadDelegationResponse` + +NewReadDelegationResponseWithDefaults instantiates a new ReadDelegationResponse 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 *ReadDelegationResponse) GetResult() Delegation` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *ReadDelegationResponse) GetResultOk() (*Delegation, 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 *ReadDelegationResponse) SetResult(v Delegation)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *ReadDelegationResponse) 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/ReadFederatedBlockResponse.md b/ipamfederation/docs/ReadFederatedBlockResponse.md new file mode 100644 index 0000000..91f446a --- /dev/null +++ b/ipamfederation/docs/ReadFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# ReadFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederatedBlock**](FederatedBlock.md) | The FederatedBlock object. | [optional] + +## Methods + +### NewReadFederatedBlockResponse + +`func NewReadFederatedBlockResponse() *ReadFederatedBlockResponse` + +NewReadFederatedBlockResponse instantiates a new ReadFederatedBlockResponse 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 + +### NewReadFederatedBlockResponseWithDefaults + +`func NewReadFederatedBlockResponseWithDefaults() *ReadFederatedBlockResponse` + +NewReadFederatedBlockResponseWithDefaults instantiates a new ReadFederatedBlockResponse 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 *ReadFederatedBlockResponse) GetResult() FederatedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *ReadFederatedBlockResponse) GetResultOk() (*FederatedBlock, 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 *ReadFederatedBlockResponse) SetResult(v FederatedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *ReadFederatedBlockResponse) 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/ReadFederatedRealmResponse.md b/ipamfederation/docs/ReadFederatedRealmResponse.md new file mode 100644 index 0000000..b66b2bc --- /dev/null +++ b/ipamfederation/docs/ReadFederatedRealmResponse.md @@ -0,0 +1,56 @@ +# ReadFederatedRealmResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederatedRealm**](FederatedRealm.md) | The FederatedRealm object. | [optional] + +## Methods + +### NewReadFederatedRealmResponse + +`func NewReadFederatedRealmResponse() *ReadFederatedRealmResponse` + +NewReadFederatedRealmResponse instantiates a new ReadFederatedRealmResponse 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 + +### NewReadFederatedRealmResponseWithDefaults + +`func NewReadFederatedRealmResponseWithDefaults() *ReadFederatedRealmResponse` + +NewReadFederatedRealmResponseWithDefaults instantiates a new ReadFederatedRealmResponse 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 *ReadFederatedRealmResponse) GetResult() FederatedRealm` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *ReadFederatedRealmResponse) GetResultOk() (*FederatedRealm, 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 *ReadFederatedRealmResponse) SetResult(v FederatedRealm)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *ReadFederatedRealmResponse) 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/ReadOverlappingBlockResponse.md b/ipamfederation/docs/ReadOverlappingBlockResponse.md new file mode 100644 index 0000000..5f8ba40 --- /dev/null +++ b/ipamfederation/docs/ReadOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# ReadOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**OverlappingBlock**](OverlappingBlock.md) | The OverlappingBlock object. | [optional] + +## Methods + +### NewReadOverlappingBlockResponse + +`func NewReadOverlappingBlockResponse() *ReadOverlappingBlockResponse` + +NewReadOverlappingBlockResponse instantiates a new ReadOverlappingBlockResponse 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 + +### NewReadOverlappingBlockResponseWithDefaults + +`func NewReadOverlappingBlockResponseWithDefaults() *ReadOverlappingBlockResponse` + +NewReadOverlappingBlockResponseWithDefaults instantiates a new ReadOverlappingBlockResponse 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 *ReadOverlappingBlockResponse) GetResult() OverlappingBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *ReadOverlappingBlockResponse) GetResultOk() (*OverlappingBlock, 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 *ReadOverlappingBlockResponse) SetResult(v OverlappingBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *ReadOverlappingBlockResponse) 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/ReadReservedBlockResponse.md similarity index 51% rename from ipamfederation/docs/FederationReadReservedBlockResponse.md rename to ipamfederation/docs/ReadReservedBlockResponse.md index 7d0c781..4d46ba1 100644 --- a/ipamfederation/docs/FederationReadReservedBlockResponse.md +++ b/ipamfederation/docs/ReadReservedBlockResponse.md @@ -1,52 +1,52 @@ -# FederationReadReservedBlockResponse +# ReadReservedBlockResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Result** | Pointer to [**FederationReservedBlock**](FederationReservedBlock.md) | The ReservedBlock object. | [optional] +**Result** | Pointer to [**ReservedBlock**](ReservedBlock.md) | The ReservedBlock object. | [optional] ## Methods -### NewFederationReadReservedBlockResponse +### NewReadReservedBlockResponse -`func NewFederationReadReservedBlockResponse() *FederationReadReservedBlockResponse` +`func NewReadReservedBlockResponse() *ReadReservedBlockResponse` -NewFederationReadReservedBlockResponse instantiates a new FederationReadReservedBlockResponse object +NewReadReservedBlockResponse instantiates a new ReadReservedBlockResponse 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 +### NewReadReservedBlockResponseWithDefaults -`func NewFederationReadReservedBlockResponseWithDefaults() *FederationReadReservedBlockResponse` +`func NewReadReservedBlockResponseWithDefaults() *ReadReservedBlockResponse` -NewFederationReadReservedBlockResponseWithDefaults instantiates a new FederationReadReservedBlockResponse object +NewReadReservedBlockResponseWithDefaults instantiates a new ReadReservedBlockResponse 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` +`func (o *ReadReservedBlockResponse) GetResult() ReservedBlock` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *FederationReadReservedBlockResponse) GetResultOk() (*FederationReservedBlock, bool)` +`func (o *ReadReservedBlockResponse) GetResultOk() (*ReservedBlock, 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)` +`func (o *ReadReservedBlockResponse) SetResult(v ReservedBlock)` SetResult sets Result field to given value. ### HasResult -`func (o *FederationReadReservedBlockResponse) HasResult() bool` +`func (o *ReadReservedBlockResponse) HasResult() bool` HasResult returns a boolean if a field has been set. diff --git a/ipamfederation/docs/FederationReservedBlock.md b/ipamfederation/docs/ReservedBlock.md similarity index 67% rename from ipamfederation/docs/FederationReservedBlock.md rename to ipamfederation/docs/ReservedBlock.md index 3ed456a..44100f4 100644 --- a/ipamfederation/docs/FederationReservedBlock.md +++ b/ipamfederation/docs/ReservedBlock.md @@ -1,4 +1,4 @@ -# FederationReservedBlock +# ReservedBlock ## Properties @@ -18,285 +18,285 @@ Name | Type | Description | Notes ## Methods -### NewFederationReservedBlock +### NewReservedBlock -`func NewFederationReservedBlock(address string, federatedRealm string, ) *FederationReservedBlock` +`func NewReservedBlock(address string, federatedRealm string, ) *ReservedBlock` -NewFederationReservedBlock instantiates a new FederationReservedBlock object +NewReservedBlock instantiates a new ReservedBlock 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 +### NewReservedBlockWithDefaults -`func NewFederationReservedBlockWithDefaults() *FederationReservedBlock` +`func NewReservedBlockWithDefaults() *ReservedBlock` -NewFederationReservedBlockWithDefaults instantiates a new FederationReservedBlock object +NewReservedBlockWithDefaults instantiates a new ReservedBlock 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` +`func (o *ReservedBlock) GetAddress() string` GetAddress returns the Address field if non-nil, zero value otherwise. ### GetAddressOk -`func (o *FederationReservedBlock) GetAddressOk() (*string, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetAddress(v string)` SetAddress sets Address field to given value. ### GetCidr -`func (o *FederationReservedBlock) GetCidr() int64` +`func (o *ReservedBlock) GetCidr() int64` GetCidr returns the Cidr field if non-nil, zero value otherwise. ### GetCidrOk -`func (o *FederationReservedBlock) GetCidrOk() (*int64, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetCidr(v int64)` SetCidr sets Cidr field to given value. ### HasCidr -`func (o *FederationReservedBlock) HasCidr() bool` +`func (o *ReservedBlock) HasCidr() bool` HasCidr returns a boolean if a field has been set. ### GetComment -`func (o *FederationReservedBlock) GetComment() string` +`func (o *ReservedBlock) GetComment() string` GetComment returns the Comment field if non-nil, zero value otherwise. ### GetCommentOk -`func (o *FederationReservedBlock) GetCommentOk() (*string, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetComment(v string)` SetComment sets Comment field to given value. ### HasComment -`func (o *FederationReservedBlock) HasComment() bool` +`func (o *ReservedBlock) HasComment() bool` HasComment returns a boolean if a field has been set. ### GetCreatedAt -`func (o *FederationReservedBlock) GetCreatedAt() time.Time` +`func (o *ReservedBlock) GetCreatedAt() time.Time` GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. ### GetCreatedAtOk -`func (o *FederationReservedBlock) GetCreatedAtOk() (*time.Time, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetCreatedAt(v time.Time)` SetCreatedAt sets CreatedAt field to given value. ### HasCreatedAt -`func (o *FederationReservedBlock) HasCreatedAt() bool` +`func (o *ReservedBlock) HasCreatedAt() bool` HasCreatedAt returns a boolean if a field has been set. ### GetFederatedRealm -`func (o *FederationReservedBlock) GetFederatedRealm() string` +`func (o *ReservedBlock) GetFederatedRealm() string` GetFederatedRealm returns the FederatedRealm field if non-nil, zero value otherwise. ### GetFederatedRealmOk -`func (o *FederationReservedBlock) GetFederatedRealmOk() (*string, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetFederatedRealm(v string)` SetFederatedRealm sets FederatedRealm field to given value. ### GetId -`func (o *FederationReservedBlock) GetId() string` +`func (o *ReservedBlock) GetId() string` GetId returns the Id field if non-nil, zero value otherwise. ### GetIdOk -`func (o *FederationReservedBlock) GetIdOk() (*string, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetId(v string)` SetId sets Id field to given value. ### HasId -`func (o *FederationReservedBlock) HasId() bool` +`func (o *ReservedBlock) HasId() bool` HasId returns a boolean if a field has been set. ### GetName -`func (o *FederationReservedBlock) GetName() string` +`func (o *ReservedBlock) GetName() string` GetName returns the Name field if non-nil, zero value otherwise. ### GetNameOk -`func (o *FederationReservedBlock) GetNameOk() (*string, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetName(v string)` SetName sets Name field to given value. ### HasName -`func (o *FederationReservedBlock) HasName() bool` +`func (o *ReservedBlock) HasName() bool` HasName returns a boolean if a field has been set. ### GetParent -`func (o *FederationReservedBlock) GetParent() string` +`func (o *ReservedBlock) GetParent() string` GetParent returns the Parent field if non-nil, zero value otherwise. ### GetParentOk -`func (o *FederationReservedBlock) GetParentOk() (*string, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetParent(v string)` SetParent sets Parent field to given value. ### HasParent -`func (o *FederationReservedBlock) HasParent() bool` +`func (o *ReservedBlock) HasParent() bool` HasParent returns a boolean if a field has been set. ### GetProtocol -`func (o *FederationReservedBlock) GetProtocol() string` +`func (o *ReservedBlock) GetProtocol() string` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FederationReservedBlock) GetProtocolOk() (*string, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetProtocol(v string)` SetProtocol sets Protocol field to given value. ### HasProtocol -`func (o *FederationReservedBlock) HasProtocol() bool` +`func (o *ReservedBlock) HasProtocol() bool` HasProtocol returns a boolean if a field has been set. ### GetTags -`func (o *FederationReservedBlock) GetTags() map[string]interface{}` +`func (o *ReservedBlock) GetTags() map[string]interface{}` GetTags returns the Tags field if non-nil, zero value otherwise. ### GetTagsOk -`func (o *FederationReservedBlock) GetTagsOk() (*map[string]interface{}, bool)` +`func (o *ReservedBlock) 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{})` +`func (o *ReservedBlock) SetTags(v map[string]interface{})` SetTags sets Tags field to given value. ### HasTags -`func (o *FederationReservedBlock) HasTags() bool` +`func (o *ReservedBlock) HasTags() bool` HasTags returns a boolean if a field has been set. ### GetUpdatedAt -`func (o *FederationReservedBlock) GetUpdatedAt() time.Time` +`func (o *ReservedBlock) GetUpdatedAt() time.Time` GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. ### GetUpdatedAtOk -`func (o *FederationReservedBlock) GetUpdatedAtOk() (*time.Time, bool)` +`func (o *ReservedBlock) 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)` +`func (o *ReservedBlock) SetUpdatedAt(v time.Time)` SetUpdatedAt sets UpdatedAt field to given value. ### HasUpdatedAt -`func (o *FederationReservedBlock) HasUpdatedAt() bool` +`func (o *ReservedBlock) HasUpdatedAt() bool` HasUpdatedAt returns a boolean if a field has been set. diff --git a/ipamfederation/docs/ReservedBlockAPI.md b/ipamfederation/docs/ReservedBlockAPI.md index fcb7a0f..0f46a42 100644 --- a/ipamfederation/docs/ReservedBlockAPI.md +++ b/ipamfederation/docs/ReservedBlockAPI.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## Create -> FederationCreateReservedBlockResponse Create(ctx).Body(body).Execute() +> CreateReservedBlockResponse Create(ctx).Body(body).Execute() Create the reserved block. @@ -34,7 +34,7 @@ import ( ) func main() { - body := *ipamfederation.NewFederationReservedBlock("Address_example", "FederatedRealm_example") // FederationReservedBlock | + body := *ipamfederation.NewReservedBlock("Address_example", "FederatedRealm_example") // ReservedBlock | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.ReservedBlockAPI.Create(context.Background()).Body(body).Execute() @@ -42,7 +42,7 @@ func main() { 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 + // response from `Create`: CreateReservedBlockResponse fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.Create`: %v\n", resp) } ``` @@ -58,11 +58,11 @@ Other parameters are passed through a pointer to a `ReservedBlockAPICreateReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationReservedBlock**](FederationReservedBlock.md) | | +**body** | [**ReservedBlock**](ReservedBlock.md) | | ### Return type -[**FederationCreateReservedBlockResponse**](FederationCreateReservedBlockResponse.md) +[**CreateReservedBlockResponse**](CreateReservedBlockResponse.md) ### Authorization @@ -147,7 +147,7 @@ Name | Type | Description | Notes ## List -> FederationListReservedBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() +> ListReservedBlockResponse List(ctx).Fields(fields).Filter(filter).Offset(offset).Limit(limit).PageToken(pageToken).OrderBy(orderBy).TorderBy(torderBy).Tfilter(tfilter).Execute() Retrieve the reserved block. @@ -174,7 +174,7 @@ func main() { 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 + // response from `List`: ListReservedBlockResponse fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.List`: %v\n", resp) } ``` @@ -201,7 +201,7 @@ Name | Type | Description | Notes ### Return type -[**FederationListReservedBlockResponse**](FederationListReservedBlockResponse.md) +[**ListReservedBlockResponse**](ListReservedBlockResponse.md) ### Authorization @@ -219,7 +219,7 @@ Name | Type | Description | Notes ## Read -> FederationReadReservedBlockResponse Read(ctx, id).Fields(fields).Execute() +> ReadReservedBlockResponse Read(ctx, id).Fields(fields).Execute() Retrieve the reserved block. @@ -247,7 +247,7 @@ func main() { 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 + // response from `Read`: ReadReservedBlockResponse fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.Read`: %v\n", resp) } ``` @@ -271,7 +271,7 @@ Name | Type | Description | Notes ### Return type -[**FederationReadReservedBlockResponse**](FederationReadReservedBlockResponse.md) +[**ReadReservedBlockResponse**](ReadReservedBlockResponse.md) ### Authorization @@ -289,7 +289,7 @@ Name | Type | Description | Notes ## Update -> FederationUpdateReservedBlockResponse Update(ctx, id).Body(body).Execute() +> UpdateReservedBlockResponse Update(ctx, id).Body(body).Execute() Update the reserved block. @@ -310,7 +310,7 @@ import ( 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 | + body := *ipamfederation.NewReservedBlock("Address_example", "FederatedRealm_example") // ReservedBlock | apiClient := ipamfederation.NewAPIClient() resp, r, err := apiClient.ReservedBlockAPI.Update(context.Background(), id).Body(body).Execute() @@ -318,7 +318,7 @@ func main() { 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 + // response from `Update`: UpdateReservedBlockResponse fmt.Fprintf(os.Stdout, "Response from `ReservedBlockAPI.Update`: %v\n", resp) } ``` @@ -338,11 +338,11 @@ Other parameters are passed through a pointer to a `ReservedBlockAPIUpdateReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | [**FederationReservedBlock**](FederationReservedBlock.md) | | +**body** | [**ReservedBlock**](ReservedBlock.md) | | ### Return type -[**FederationUpdateReservedBlockResponse**](FederationUpdateReservedBlockResponse.md) +[**UpdateReservedBlockResponse**](UpdateReservedBlockResponse.md) ### Authorization diff --git a/ipamfederation/docs/FederationCreateFederatedBlockResponse.md b/ipamfederation/docs/UpdateDelegationResponse.md similarity index 52% rename from ipamfederation/docs/FederationCreateFederatedBlockResponse.md rename to ipamfederation/docs/UpdateDelegationResponse.md index 9532c41..b57d47b 100644 --- a/ipamfederation/docs/FederationCreateFederatedBlockResponse.md +++ b/ipamfederation/docs/UpdateDelegationResponse.md @@ -1,52 +1,52 @@ -# FederationCreateFederatedBlockResponse +# UpdateDelegationResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Result** | Pointer to [**FederationFederatedBlock**](FederationFederatedBlock.md) | The created FederatedBlock object. | [optional] +**Result** | Pointer to [**Delegation**](Delegation.md) | The Delegation object. | [optional] ## Methods -### NewFederationCreateFederatedBlockResponse +### NewUpdateDelegationResponse -`func NewFederationCreateFederatedBlockResponse() *FederationCreateFederatedBlockResponse` +`func NewUpdateDelegationResponse() *UpdateDelegationResponse` -NewFederationCreateFederatedBlockResponse instantiates a new FederationCreateFederatedBlockResponse object +NewUpdateDelegationResponse instantiates a new UpdateDelegationResponse 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 +### NewUpdateDelegationResponseWithDefaults -`func NewFederationCreateFederatedBlockResponseWithDefaults() *FederationCreateFederatedBlockResponse` +`func NewUpdateDelegationResponseWithDefaults() *UpdateDelegationResponse` -NewFederationCreateFederatedBlockResponseWithDefaults instantiates a new FederationCreateFederatedBlockResponse object +NewUpdateDelegationResponseWithDefaults instantiates a new UpdateDelegationResponse 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` +`func (o *UpdateDelegationResponse) GetResult() Delegation` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *FederationCreateFederatedBlockResponse) GetResultOk() (*FederationFederatedBlock, bool)` +`func (o *UpdateDelegationResponse) GetResultOk() (*Delegation, 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)` +`func (o *UpdateDelegationResponse) SetResult(v Delegation)` SetResult sets Result field to given value. ### HasResult -`func (o *FederationCreateFederatedBlockResponse) HasResult() bool` +`func (o *UpdateDelegationResponse) HasResult() bool` HasResult returns a boolean if a field has been set. diff --git a/ipamfederation/docs/UpdateFederatedBlockResponse.md b/ipamfederation/docs/UpdateFederatedBlockResponse.md new file mode 100644 index 0000000..3ac2a1a --- /dev/null +++ b/ipamfederation/docs/UpdateFederatedBlockResponse.md @@ -0,0 +1,56 @@ +# UpdateFederatedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederatedBlock**](FederatedBlock.md) | The FederatedBlock object. | [optional] + +## Methods + +### NewUpdateFederatedBlockResponse + +`func NewUpdateFederatedBlockResponse() *UpdateFederatedBlockResponse` + +NewUpdateFederatedBlockResponse instantiates a new UpdateFederatedBlockResponse 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 + +### NewUpdateFederatedBlockResponseWithDefaults + +`func NewUpdateFederatedBlockResponseWithDefaults() *UpdateFederatedBlockResponse` + +NewUpdateFederatedBlockResponseWithDefaults instantiates a new UpdateFederatedBlockResponse 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 *UpdateFederatedBlockResponse) GetResult() FederatedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *UpdateFederatedBlockResponse) GetResultOk() (*FederatedBlock, 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 *UpdateFederatedBlockResponse) SetResult(v FederatedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *UpdateFederatedBlockResponse) 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/UpdateFederatedRealmResponse.md b/ipamfederation/docs/UpdateFederatedRealmResponse.md new file mode 100644 index 0000000..7eac987 --- /dev/null +++ b/ipamfederation/docs/UpdateFederatedRealmResponse.md @@ -0,0 +1,56 @@ +# UpdateFederatedRealmResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**FederatedRealm**](FederatedRealm.md) | The FederatedRealm object. | [optional] + +## Methods + +### NewUpdateFederatedRealmResponse + +`func NewUpdateFederatedRealmResponse() *UpdateFederatedRealmResponse` + +NewUpdateFederatedRealmResponse instantiates a new UpdateFederatedRealmResponse 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 + +### NewUpdateFederatedRealmResponseWithDefaults + +`func NewUpdateFederatedRealmResponseWithDefaults() *UpdateFederatedRealmResponse` + +NewUpdateFederatedRealmResponseWithDefaults instantiates a new UpdateFederatedRealmResponse 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 *UpdateFederatedRealmResponse) GetResult() FederatedRealm` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *UpdateFederatedRealmResponse) GetResultOk() (*FederatedRealm, 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 *UpdateFederatedRealmResponse) SetResult(v FederatedRealm)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *UpdateFederatedRealmResponse) 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/UpdateOverlappingBlockResponse.md b/ipamfederation/docs/UpdateOverlappingBlockResponse.md new file mode 100644 index 0000000..dfdce2f --- /dev/null +++ b/ipamfederation/docs/UpdateOverlappingBlockResponse.md @@ -0,0 +1,56 @@ +# UpdateOverlappingBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**OverlappingBlock**](OverlappingBlock.md) | The OverlappingBlock object. | [optional] + +## Methods + +### NewUpdateOverlappingBlockResponse + +`func NewUpdateOverlappingBlockResponse() *UpdateOverlappingBlockResponse` + +NewUpdateOverlappingBlockResponse instantiates a new UpdateOverlappingBlockResponse 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 + +### NewUpdateOverlappingBlockResponseWithDefaults + +`func NewUpdateOverlappingBlockResponseWithDefaults() *UpdateOverlappingBlockResponse` + +NewUpdateOverlappingBlockResponseWithDefaults instantiates a new UpdateOverlappingBlockResponse 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 *UpdateOverlappingBlockResponse) GetResult() OverlappingBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *UpdateOverlappingBlockResponse) GetResultOk() (*OverlappingBlock, 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 *UpdateOverlappingBlockResponse) SetResult(v OverlappingBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *UpdateOverlappingBlockResponse) 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/UpdateReservedBlockResponse.md b/ipamfederation/docs/UpdateReservedBlockResponse.md new file mode 100644 index 0000000..1cabfb9 --- /dev/null +++ b/ipamfederation/docs/UpdateReservedBlockResponse.md @@ -0,0 +1,56 @@ +# UpdateReservedBlockResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Result** | Pointer to [**ReservedBlock**](ReservedBlock.md) | The ReservedBlock object. | [optional] + +## Methods + +### NewUpdateReservedBlockResponse + +`func NewUpdateReservedBlockResponse() *UpdateReservedBlockResponse` + +NewUpdateReservedBlockResponse instantiates a new UpdateReservedBlockResponse 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 + +### NewUpdateReservedBlockResponseWithDefaults + +`func NewUpdateReservedBlockResponseWithDefaults() *UpdateReservedBlockResponse` + +NewUpdateReservedBlockResponseWithDefaults instantiates a new UpdateReservedBlockResponse 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 *UpdateReservedBlockResponse) GetResult() ReservedBlock` + +GetResult returns the Result field if non-nil, zero value otherwise. + +### GetResultOk + +`func (o *UpdateReservedBlockResponse) GetResultOk() (*ReservedBlock, 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 *UpdateReservedBlockResponse) SetResult(v ReservedBlock)` + +SetResult sets Result field to given value. + +### HasResult + +`func (o *UpdateReservedBlockResponse) 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/model_federation_allocation.go b/ipamfederation/model_allocation.go similarity index 65% rename from ipamfederation/model_federation_allocation.go rename to ipamfederation/model_allocation.go index 16a291d..84096dd 100644 --- a/ipamfederation/model_federation_allocation.go +++ b/ipamfederation/model_allocation.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the FederationAllocation type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationAllocation{} +// checks if the Allocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Allocation{} -// FederationAllocation The __Allocation__ tracks the distribution of Federated Blocks within each of the supported objects. -type FederationAllocation struct { +// Allocation The __Allocation__ tracks the distribution of Federated Blocks within each of the supported objects. +type Allocation struct { // Percent of total space allocated. Allocated *int64 `json:"allocated,omitempty"` // Percent of total space delegated. @@ -30,27 +30,27 @@ type FederationAllocation struct { AdditionalProperties map[string]interface{} } -type _FederationAllocation FederationAllocation +type _Allocation Allocation -// NewFederationAllocation instantiates a new FederationAllocation object +// NewAllocation instantiates a new Allocation 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{} +func NewAllocation() *Allocation { + this := Allocation{} return &this } -// NewFederationAllocationWithDefaults instantiates a new FederationAllocation object +// NewAllocationWithDefaults instantiates a new Allocation 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{} +func NewAllocationWithDefaults() *Allocation { + this := Allocation{} return &this } // GetAllocated returns the Allocated field value if set, zero value otherwise. -func (o *FederationAllocation) GetAllocated() int64 { +func (o *Allocation) GetAllocated() int64 { if o == nil || IsNil(o.Allocated) { var ret int64 return ret @@ -60,7 +60,7 @@ func (o *FederationAllocation) GetAllocated() int64 { // 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) { +func (o *Allocation) GetAllocatedOk() (*int64, bool) { if o == nil || IsNil(o.Allocated) { return nil, false } @@ -68,7 +68,7 @@ func (o *FederationAllocation) GetAllocatedOk() (*int64, bool) { } // HasAllocated returns a boolean if a field has been set. -func (o *FederationAllocation) HasAllocated() bool { +func (o *Allocation) HasAllocated() bool { if o != nil && !IsNil(o.Allocated) { return true } @@ -77,12 +77,12 @@ func (o *FederationAllocation) HasAllocated() bool { } // SetAllocated gets a reference to the given int64 and assigns it to the Allocated field. -func (o *FederationAllocation) SetAllocated(v int64) { +func (o *Allocation) SetAllocated(v int64) { o.Allocated = &v } // GetDelegated returns the Delegated field value if set, zero value otherwise. -func (o *FederationAllocation) GetDelegated() int64 { +func (o *Allocation) GetDelegated() int64 { if o == nil || IsNil(o.Delegated) { var ret int64 return ret @@ -92,7 +92,7 @@ func (o *FederationAllocation) GetDelegated() int64 { // 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) { +func (o *Allocation) GetDelegatedOk() (*int64, bool) { if o == nil || IsNil(o.Delegated) { return nil, false } @@ -100,7 +100,7 @@ func (o *FederationAllocation) GetDelegatedOk() (*int64, bool) { } // HasDelegated returns a boolean if a field has been set. -func (o *FederationAllocation) HasDelegated() bool { +func (o *Allocation) HasDelegated() bool { if o != nil && !IsNil(o.Delegated) { return true } @@ -109,12 +109,12 @@ func (o *FederationAllocation) HasDelegated() bool { } // SetDelegated gets a reference to the given int64 and assigns it to the Delegated field. -func (o *FederationAllocation) SetDelegated(v int64) { +func (o *Allocation) SetDelegated(v int64) { o.Delegated = &v } // GetOverlapping returns the Overlapping field value if set, zero value otherwise. -func (o *FederationAllocation) GetOverlapping() int64 { +func (o *Allocation) GetOverlapping() int64 { if o == nil || IsNil(o.Overlapping) { var ret int64 return ret @@ -124,7 +124,7 @@ func (o *FederationAllocation) GetOverlapping() int64 { // 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) { +func (o *Allocation) GetOverlappingOk() (*int64, bool) { if o == nil || IsNil(o.Overlapping) { return nil, false } @@ -132,7 +132,7 @@ func (o *FederationAllocation) GetOverlappingOk() (*int64, bool) { } // HasOverlapping returns a boolean if a field has been set. -func (o *FederationAllocation) HasOverlapping() bool { +func (o *Allocation) HasOverlapping() bool { if o != nil && !IsNil(o.Overlapping) { return true } @@ -141,12 +141,12 @@ func (o *FederationAllocation) HasOverlapping() bool { } // SetOverlapping gets a reference to the given int64 and assigns it to the Overlapping field. -func (o *FederationAllocation) SetOverlapping(v int64) { +func (o *Allocation) SetOverlapping(v int64) { o.Overlapping = &v } // GetReserved returns the Reserved field value if set, zero value otherwise. -func (o *FederationAllocation) GetReserved() int64 { +func (o *Allocation) GetReserved() int64 { if o == nil || IsNil(o.Reserved) { var ret int64 return ret @@ -156,7 +156,7 @@ func (o *FederationAllocation) GetReserved() int64 { // 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) { +func (o *Allocation) GetReservedOk() (*int64, bool) { if o == nil || IsNil(o.Reserved) { return nil, false } @@ -164,7 +164,7 @@ func (o *FederationAllocation) GetReservedOk() (*int64, bool) { } // HasReserved returns a boolean if a field has been set. -func (o *FederationAllocation) HasReserved() bool { +func (o *Allocation) HasReserved() bool { if o != nil && !IsNil(o.Reserved) { return true } @@ -173,11 +173,11 @@ func (o *FederationAllocation) HasReserved() bool { } // SetReserved gets a reference to the given int64 and assigns it to the Reserved field. -func (o *FederationAllocation) SetReserved(v int64) { +func (o *Allocation) SetReserved(v int64) { o.Reserved = &v } -func (o FederationAllocation) MarshalJSON() ([]byte, error) { +func (o Allocation) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -185,7 +185,7 @@ func (o FederationAllocation) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationAllocation) ToMap() (map[string]interface{}, error) { +func (o Allocation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Allocated) { toSerialize["allocated"] = o.Allocated @@ -207,16 +207,16 @@ func (o FederationAllocation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationAllocation) UnmarshalJSON(data []byte) (err error) { - varFederationAllocation := _FederationAllocation{} +func (o *Allocation) UnmarshalJSON(data []byte) (err error) { + varAllocation := _Allocation{} - err = json.Unmarshal(data, &varFederationAllocation) + err = json.Unmarshal(data, &varAllocation) if err != nil { return err } - *o = FederationAllocation(varFederationAllocation) + *o = Allocation(varAllocation) additionalProperties := make(map[string]interface{}) @@ -231,38 +231,38 @@ func (o *FederationAllocation) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationAllocation struct { - value *FederationAllocation +type NullableAllocation struct { + value *Allocation isSet bool } -func (v NullableFederationAllocation) Get() *FederationAllocation { +func (v NullableAllocation) Get() *Allocation { return v.value } -func (v *NullableFederationAllocation) Set(val *FederationAllocation) { +func (v *NullableAllocation) Set(val *Allocation) { v.value = val v.isSet = true } -func (v NullableFederationAllocation) IsSet() bool { +func (v NullableAllocation) IsSet() bool { return v.isSet } -func (v *NullableFederationAllocation) Unset() { +func (v *NullableAllocation) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationAllocation(val *FederationAllocation) *NullableFederationAllocation { - return &NullableFederationAllocation{value: val, isSet: true} +func NewNullableAllocation(val *Allocation) *NullableAllocation { + return &NullableAllocation{value: val, isSet: true} } -func (v NullableFederationAllocation) MarshalJSON() ([]byte, error) { +func (v NullableAllocation) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationAllocation) UnmarshalJSON(src []byte) error { +func (v *NullableAllocation) 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_config_object.go similarity index 61% rename from ipamfederation/model_federation_config_object.go rename to ipamfederation/model_config_object.go index 8ade892..6985645 100644 --- a/ipamfederation/model_federation_config_object.go +++ b/ipamfederation/model_config_object.go @@ -14,38 +14,38 @@ import ( "encoding/json" ) -// checks if the FederationConfigObject type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationConfigObject{} +// checks if the ConfigObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ConfigObject{} -// FederationConfigObject struct for FederationConfigObject -type FederationConfigObject struct { +// ConfigObject struct for ConfigObject +type ConfigObject struct { ConfigBody *string `json:"configBody,omitempty"` Ophid *string `json:"ophid,omitempty"` Version *string `json:"version,omitempty"` AdditionalProperties map[string]interface{} } -type _FederationConfigObject FederationConfigObject +type _ConfigObject ConfigObject -// NewFederationConfigObject instantiates a new FederationConfigObject object +// NewConfigObject instantiates a new ConfigObject 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{} +func NewConfigObject() *ConfigObject { + this := ConfigObject{} return &this } -// NewFederationConfigObjectWithDefaults instantiates a new FederationConfigObject object +// NewConfigObjectWithDefaults instantiates a new ConfigObject 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{} +func NewConfigObjectWithDefaults() *ConfigObject { + this := ConfigObject{} return &this } // GetConfigBody returns the ConfigBody field value if set, zero value otherwise. -func (o *FederationConfigObject) GetConfigBody() string { +func (o *ConfigObject) GetConfigBody() string { if o == nil || IsNil(o.ConfigBody) { var ret string return ret @@ -55,7 +55,7 @@ func (o *FederationConfigObject) GetConfigBody() string { // 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) { +func (o *ConfigObject) GetConfigBodyOk() (*string, bool) { if o == nil || IsNil(o.ConfigBody) { return nil, false } @@ -63,7 +63,7 @@ func (o *FederationConfigObject) GetConfigBodyOk() (*string, bool) { } // HasConfigBody returns a boolean if a field has been set. -func (o *FederationConfigObject) HasConfigBody() bool { +func (o *ConfigObject) HasConfigBody() bool { if o != nil && !IsNil(o.ConfigBody) { return true } @@ -72,12 +72,12 @@ func (o *FederationConfigObject) HasConfigBody() bool { } // SetConfigBody gets a reference to the given string and assigns it to the ConfigBody field. -func (o *FederationConfigObject) SetConfigBody(v string) { +func (o *ConfigObject) SetConfigBody(v string) { o.ConfigBody = &v } // GetOphid returns the Ophid field value if set, zero value otherwise. -func (o *FederationConfigObject) GetOphid() string { +func (o *ConfigObject) GetOphid() string { if o == nil || IsNil(o.Ophid) { var ret string return ret @@ -87,7 +87,7 @@ func (o *FederationConfigObject) GetOphid() string { // 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) { +func (o *ConfigObject) GetOphidOk() (*string, bool) { if o == nil || IsNil(o.Ophid) { return nil, false } @@ -95,7 +95,7 @@ func (o *FederationConfigObject) GetOphidOk() (*string, bool) { } // HasOphid returns a boolean if a field has been set. -func (o *FederationConfigObject) HasOphid() bool { +func (o *ConfigObject) HasOphid() bool { if o != nil && !IsNil(o.Ophid) { return true } @@ -104,12 +104,12 @@ func (o *FederationConfigObject) HasOphid() bool { } // SetOphid gets a reference to the given string and assigns it to the Ophid field. -func (o *FederationConfigObject) SetOphid(v string) { +func (o *ConfigObject) SetOphid(v string) { o.Ophid = &v } // GetVersion returns the Version field value if set, zero value otherwise. -func (o *FederationConfigObject) GetVersion() string { +func (o *ConfigObject) GetVersion() string { if o == nil || IsNil(o.Version) { var ret string return ret @@ -119,7 +119,7 @@ func (o *FederationConfigObject) GetVersion() string { // 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) { +func (o *ConfigObject) GetVersionOk() (*string, bool) { if o == nil || IsNil(o.Version) { return nil, false } @@ -127,7 +127,7 @@ func (o *FederationConfigObject) GetVersionOk() (*string, bool) { } // HasVersion returns a boolean if a field has been set. -func (o *FederationConfigObject) HasVersion() bool { +func (o *ConfigObject) HasVersion() bool { if o != nil && !IsNil(o.Version) { return true } @@ -136,11 +136,11 @@ func (o *FederationConfigObject) HasVersion() bool { } // SetVersion gets a reference to the given string and assigns it to the Version field. -func (o *FederationConfigObject) SetVersion(v string) { +func (o *ConfigObject) SetVersion(v string) { o.Version = &v } -func (o FederationConfigObject) MarshalJSON() ([]byte, error) { +func (o ConfigObject) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -148,7 +148,7 @@ func (o FederationConfigObject) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationConfigObject) ToMap() (map[string]interface{}, error) { +func (o ConfigObject) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.ConfigBody) { toSerialize["configBody"] = o.ConfigBody @@ -167,16 +167,16 @@ func (o FederationConfigObject) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationConfigObject) UnmarshalJSON(data []byte) (err error) { - varFederationConfigObject := _FederationConfigObject{} +func (o *ConfigObject) UnmarshalJSON(data []byte) (err error) { + varConfigObject := _ConfigObject{} - err = json.Unmarshal(data, &varFederationConfigObject) + err = json.Unmarshal(data, &varConfigObject) if err != nil { return err } - *o = FederationConfigObject(varFederationConfigObject) + *o = ConfigObject(varConfigObject) additionalProperties := make(map[string]interface{}) @@ -190,38 +190,38 @@ func (o *FederationConfigObject) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationConfigObject struct { - value *FederationConfigObject +type NullableConfigObject struct { + value *ConfigObject isSet bool } -func (v NullableFederationConfigObject) Get() *FederationConfigObject { +func (v NullableConfigObject) Get() *ConfigObject { return v.value } -func (v *NullableFederationConfigObject) Set(val *FederationConfigObject) { +func (v *NullableConfigObject) Set(val *ConfigObject) { v.value = val v.isSet = true } -func (v NullableFederationConfigObject) IsSet() bool { +func (v NullableConfigObject) IsSet() bool { return v.isSet } -func (v *NullableFederationConfigObject) Unset() { +func (v *NullableConfigObject) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationConfigObject(val *FederationConfigObject) *NullableFederationConfigObject { - return &NullableFederationConfigObject{value: val, isSet: true} +func NewNullableConfigObject(val *ConfigObject) *NullableConfigObject { + return &NullableConfigObject{value: val, isSet: true} } -func (v NullableFederationConfigObject) MarshalJSON() ([]byte, error) { +func (v NullableConfigObject) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationConfigObject) UnmarshalJSON(src []byte) error { +func (v *NullableConfigObject) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/ipamfederation/model_create_delegation_response.go b/ipamfederation/model_create_delegation_response.go new file mode 100644 index 0000000..207f36a --- /dev/null +++ b/ipamfederation/model_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 CreateDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateDelegationResponse{} + +// CreateDelegationResponse The response format to create the __Delegation__ object. +type CreateDelegationResponse struct { + // The created Delegation object. + Result *Delegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateDelegationResponse CreateDelegationResponse + +// NewCreateDelegationResponse instantiates a new CreateDelegationResponse 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 NewCreateDelegationResponse() *CreateDelegationResponse { + this := CreateDelegationResponse{} + return &this +} + +// NewCreateDelegationResponseWithDefaults instantiates a new CreateDelegationResponse 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 NewCreateDelegationResponseWithDefaults() *CreateDelegationResponse { + this := CreateDelegationResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *CreateDelegationResponse) GetResult() Delegation { + if o == nil || IsNil(o.Result) { + var ret Delegation + 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 *CreateDelegationResponse) GetResultOk() (*Delegation, 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 *CreateDelegationResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given Delegation and assigns it to the Result field. +func (o *CreateDelegationResponse) SetResult(v Delegation) { + o.Result = &v +} + +func (o CreateDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateDelegationResponse) 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 *CreateDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varCreateDelegationResponse := _CreateDelegationResponse{} + + err = json.Unmarshal(data, &varCreateDelegationResponse) + + if err != nil { + return err + } + + *o = CreateDelegationResponse(varCreateDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateDelegationResponse struct { + value *CreateDelegationResponse + isSet bool +} + +func (v NullableCreateDelegationResponse) Get() *CreateDelegationResponse { + return v.value +} + +func (v *NullableCreateDelegationResponse) Set(val *CreateDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateDelegationResponse(val *CreateDelegationResponse) *NullableCreateDelegationResponse { + return &NullableCreateDelegationResponse{value: val, isSet: true} +} + +func (v NullableCreateDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_create_federated_block_response.go b/ipamfederation/model_create_federated_block_response.go new file mode 100644 index 0000000..dfc9c69 --- /dev/null +++ b/ipamfederation/model_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 CreateFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateFederatedBlockResponse{} + +// CreateFederatedBlockResponse The response format to create the __FederatedBlock__ object. +type CreateFederatedBlockResponse struct { + // The created FederatedBlock object. + Result *FederatedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateFederatedBlockResponse CreateFederatedBlockResponse + +// NewCreateFederatedBlockResponse instantiates a new CreateFederatedBlockResponse 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 NewCreateFederatedBlockResponse() *CreateFederatedBlockResponse { + this := CreateFederatedBlockResponse{} + return &this +} + +// NewCreateFederatedBlockResponseWithDefaults instantiates a new CreateFederatedBlockResponse 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 NewCreateFederatedBlockResponseWithDefaults() *CreateFederatedBlockResponse { + this := CreateFederatedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *CreateFederatedBlockResponse) GetResult() FederatedBlock { + if o == nil || IsNil(o.Result) { + var ret FederatedBlock + 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 *CreateFederatedBlockResponse) GetResultOk() (*FederatedBlock, 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 *CreateFederatedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederatedBlock and assigns it to the Result field. +func (o *CreateFederatedBlockResponse) SetResult(v FederatedBlock) { + o.Result = &v +} + +func (o CreateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateFederatedBlockResponse) 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 *CreateFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCreateFederatedBlockResponse := _CreateFederatedBlockResponse{} + + err = json.Unmarshal(data, &varCreateFederatedBlockResponse) + + if err != nil { + return err + } + + *o = CreateFederatedBlockResponse(varCreateFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateFederatedBlockResponse struct { + value *CreateFederatedBlockResponse + isSet bool +} + +func (v NullableCreateFederatedBlockResponse) Get() *CreateFederatedBlockResponse { + return v.value +} + +func (v *NullableCreateFederatedBlockResponse) Set(val *CreateFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateFederatedBlockResponse(val *CreateFederatedBlockResponse) *NullableCreateFederatedBlockResponse { + return &NullableCreateFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableCreateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_create_federated_realm_response.go b/ipamfederation/model_create_federated_realm_response.go new file mode 100644 index 0000000..3a1f789 --- /dev/null +++ b/ipamfederation/model_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 CreateFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateFederatedRealmResponse{} + +// CreateFederatedRealmResponse The response format to create the __FederatedRealm__ object. +type CreateFederatedRealmResponse struct { + // The created Federated Realm object. + Result *FederatedRealm `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateFederatedRealmResponse CreateFederatedRealmResponse + +// NewCreateFederatedRealmResponse instantiates a new CreateFederatedRealmResponse 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 NewCreateFederatedRealmResponse() *CreateFederatedRealmResponse { + this := CreateFederatedRealmResponse{} + return &this +} + +// NewCreateFederatedRealmResponseWithDefaults instantiates a new CreateFederatedRealmResponse 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 NewCreateFederatedRealmResponseWithDefaults() *CreateFederatedRealmResponse { + this := CreateFederatedRealmResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *CreateFederatedRealmResponse) GetResult() FederatedRealm { + if o == nil || IsNil(o.Result) { + var ret FederatedRealm + 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 *CreateFederatedRealmResponse) GetResultOk() (*FederatedRealm, 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 *CreateFederatedRealmResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederatedRealm and assigns it to the Result field. +func (o *CreateFederatedRealmResponse) SetResult(v FederatedRealm) { + o.Result = &v +} + +func (o CreateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateFederatedRealmResponse) 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 *CreateFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varCreateFederatedRealmResponse := _CreateFederatedRealmResponse{} + + err = json.Unmarshal(data, &varCreateFederatedRealmResponse) + + if err != nil { + return err + } + + *o = CreateFederatedRealmResponse(varCreateFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateFederatedRealmResponse struct { + value *CreateFederatedRealmResponse + isSet bool +} + +func (v NullableCreateFederatedRealmResponse) Get() *CreateFederatedRealmResponse { + return v.value +} + +func (v *NullableCreateFederatedRealmResponse) Set(val *CreateFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateFederatedRealmResponse(val *CreateFederatedRealmResponse) *NullableCreateFederatedRealmResponse { + return &NullableCreateFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableCreateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_create_next_available_federated_block_response.go b/ipamfederation/model_create_next_available_federated_block_response.go new file mode 100644 index 0000000..1f8ee99 --- /dev/null +++ b/ipamfederation/model_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 CreateNextAvailableFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateNextAvailableFederatedBlockResponse{} + +// CreateNextAvailableFederatedBlockResponse The response format to allocate next available __FederatedBlock__ objects. +type CreateNextAvailableFederatedBlockResponse struct { + Results []FederatedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateNextAvailableFederatedBlockResponse CreateNextAvailableFederatedBlockResponse + +// NewCreateNextAvailableFederatedBlockResponse instantiates a new CreateNextAvailableFederatedBlockResponse 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 NewCreateNextAvailableFederatedBlockResponse() *CreateNextAvailableFederatedBlockResponse { + this := CreateNextAvailableFederatedBlockResponse{} + return &this +} + +// NewCreateNextAvailableFederatedBlockResponseWithDefaults instantiates a new CreateNextAvailableFederatedBlockResponse 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 NewCreateNextAvailableFederatedBlockResponseWithDefaults() *CreateNextAvailableFederatedBlockResponse { + this := CreateNextAvailableFederatedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *CreateNextAvailableFederatedBlockResponse) GetResults() []FederatedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederatedBlock + 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 *CreateNextAvailableFederatedBlockResponse) GetResultsOk() ([]FederatedBlock, 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 *CreateNextAvailableFederatedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederatedBlock and assigns it to the Results field. +func (o *CreateNextAvailableFederatedBlockResponse) SetResults(v []FederatedBlock) { + o.Results = v +} + +func (o CreateNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateNextAvailableFederatedBlockResponse) 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 *CreateNextAvailableFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCreateNextAvailableFederatedBlockResponse := _CreateNextAvailableFederatedBlockResponse{} + + err = json.Unmarshal(data, &varCreateNextAvailableFederatedBlockResponse) + + if err != nil { + return err + } + + *o = CreateNextAvailableFederatedBlockResponse(varCreateNextAvailableFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateNextAvailableFederatedBlockResponse struct { + value *CreateNextAvailableFederatedBlockResponse + isSet bool +} + +func (v NullableCreateNextAvailableFederatedBlockResponse) Get() *CreateNextAvailableFederatedBlockResponse { + return v.value +} + +func (v *NullableCreateNextAvailableFederatedBlockResponse) Set(val *CreateNextAvailableFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateNextAvailableFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateNextAvailableFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateNextAvailableFederatedBlockResponse(val *CreateNextAvailableFederatedBlockResponse) *NullableCreateNextAvailableFederatedBlockResponse { + return &NullableCreateNextAvailableFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableCreateNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateNextAvailableFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_create_next_available_overlapping_block_response.go b/ipamfederation/model_create_next_available_overlapping_block_response.go new file mode 100644 index 0000000..1c37687 --- /dev/null +++ b/ipamfederation/model_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 CreateNextAvailableOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateNextAvailableOverlappingBlockResponse{} + +// CreateNextAvailableOverlappingBlockResponse The response format to allocate next available __OverlappingBlock__ objects. +type CreateNextAvailableOverlappingBlockResponse struct { + Results []OverlappingBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateNextAvailableOverlappingBlockResponse CreateNextAvailableOverlappingBlockResponse + +// NewCreateNextAvailableOverlappingBlockResponse instantiates a new CreateNextAvailableOverlappingBlockResponse 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 NewCreateNextAvailableOverlappingBlockResponse() *CreateNextAvailableOverlappingBlockResponse { + this := CreateNextAvailableOverlappingBlockResponse{} + return &this +} + +// NewCreateNextAvailableOverlappingBlockResponseWithDefaults instantiates a new CreateNextAvailableOverlappingBlockResponse 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 NewCreateNextAvailableOverlappingBlockResponseWithDefaults() *CreateNextAvailableOverlappingBlockResponse { + this := CreateNextAvailableOverlappingBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *CreateNextAvailableOverlappingBlockResponse) GetResults() []OverlappingBlock { + if o == nil || IsNil(o.Results) { + var ret []OverlappingBlock + 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 *CreateNextAvailableOverlappingBlockResponse) GetResultsOk() ([]OverlappingBlock, 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 *CreateNextAvailableOverlappingBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []OverlappingBlock and assigns it to the Results field. +func (o *CreateNextAvailableOverlappingBlockResponse) SetResults(v []OverlappingBlock) { + o.Results = v +} + +func (o CreateNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateNextAvailableOverlappingBlockResponse) 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 *CreateNextAvailableOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCreateNextAvailableOverlappingBlockResponse := _CreateNextAvailableOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varCreateNextAvailableOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = CreateNextAvailableOverlappingBlockResponse(varCreateNextAvailableOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateNextAvailableOverlappingBlockResponse struct { + value *CreateNextAvailableOverlappingBlockResponse + isSet bool +} + +func (v NullableCreateNextAvailableOverlappingBlockResponse) Get() *CreateNextAvailableOverlappingBlockResponse { + return v.value +} + +func (v *NullableCreateNextAvailableOverlappingBlockResponse) Set(val *CreateNextAvailableOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateNextAvailableOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateNextAvailableOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateNextAvailableOverlappingBlockResponse(val *CreateNextAvailableOverlappingBlockResponse) *NullableCreateNextAvailableOverlappingBlockResponse { + return &NullableCreateNextAvailableOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableCreateNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateNextAvailableOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_create_next_available_reserved_block_response.go b/ipamfederation/model_create_next_available_reserved_block_response.go new file mode 100644 index 0000000..4bb1412 --- /dev/null +++ b/ipamfederation/model_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 CreateNextAvailableReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateNextAvailableReservedBlockResponse{} + +// CreateNextAvailableReservedBlockResponse The response format to allocate next available __ReservedBlock__ objects. +type CreateNextAvailableReservedBlockResponse struct { + Results []ReservedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateNextAvailableReservedBlockResponse CreateNextAvailableReservedBlockResponse + +// NewCreateNextAvailableReservedBlockResponse instantiates a new CreateNextAvailableReservedBlockResponse 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 NewCreateNextAvailableReservedBlockResponse() *CreateNextAvailableReservedBlockResponse { + this := CreateNextAvailableReservedBlockResponse{} + return &this +} + +// NewCreateNextAvailableReservedBlockResponseWithDefaults instantiates a new CreateNextAvailableReservedBlockResponse 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 NewCreateNextAvailableReservedBlockResponseWithDefaults() *CreateNextAvailableReservedBlockResponse { + this := CreateNextAvailableReservedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *CreateNextAvailableReservedBlockResponse) GetResults() []ReservedBlock { + if o == nil || IsNil(o.Results) { + var ret []ReservedBlock + 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 *CreateNextAvailableReservedBlockResponse) GetResultsOk() ([]ReservedBlock, 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 *CreateNextAvailableReservedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []ReservedBlock and assigns it to the Results field. +func (o *CreateNextAvailableReservedBlockResponse) SetResults(v []ReservedBlock) { + o.Results = v +} + +func (o CreateNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateNextAvailableReservedBlockResponse) 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 *CreateNextAvailableReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCreateNextAvailableReservedBlockResponse := _CreateNextAvailableReservedBlockResponse{} + + err = json.Unmarshal(data, &varCreateNextAvailableReservedBlockResponse) + + if err != nil { + return err + } + + *o = CreateNextAvailableReservedBlockResponse(varCreateNextAvailableReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateNextAvailableReservedBlockResponse struct { + value *CreateNextAvailableReservedBlockResponse + isSet bool +} + +func (v NullableCreateNextAvailableReservedBlockResponse) Get() *CreateNextAvailableReservedBlockResponse { + return v.value +} + +func (v *NullableCreateNextAvailableReservedBlockResponse) Set(val *CreateNextAvailableReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateNextAvailableReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateNextAvailableReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateNextAvailableReservedBlockResponse(val *CreateNextAvailableReservedBlockResponse) *NullableCreateNextAvailableReservedBlockResponse { + return &NullableCreateNextAvailableReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableCreateNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateNextAvailableReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_create_overlapping_block_response.go b/ipamfederation/model_create_overlapping_block_response.go new file mode 100644 index 0000000..d96201e --- /dev/null +++ b/ipamfederation/model_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 CreateOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateOverlappingBlockResponse{} + +// CreateOverlappingBlockResponse The response format to create the __OverlappingBlock__ object. +type CreateOverlappingBlockResponse struct { + // The created OverlappingBlock object. + Result *OverlappingBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateOverlappingBlockResponse CreateOverlappingBlockResponse + +// NewCreateOverlappingBlockResponse instantiates a new CreateOverlappingBlockResponse 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 NewCreateOverlappingBlockResponse() *CreateOverlappingBlockResponse { + this := CreateOverlappingBlockResponse{} + return &this +} + +// NewCreateOverlappingBlockResponseWithDefaults instantiates a new CreateOverlappingBlockResponse 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 NewCreateOverlappingBlockResponseWithDefaults() *CreateOverlappingBlockResponse { + this := CreateOverlappingBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *CreateOverlappingBlockResponse) GetResult() OverlappingBlock { + if o == nil || IsNil(o.Result) { + var ret OverlappingBlock + 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 *CreateOverlappingBlockResponse) GetResultOk() (*OverlappingBlock, 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 *CreateOverlappingBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given OverlappingBlock and assigns it to the Result field. +func (o *CreateOverlappingBlockResponse) SetResult(v OverlappingBlock) { + o.Result = &v +} + +func (o CreateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateOverlappingBlockResponse) 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 *CreateOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCreateOverlappingBlockResponse := _CreateOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varCreateOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = CreateOverlappingBlockResponse(varCreateOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateOverlappingBlockResponse struct { + value *CreateOverlappingBlockResponse + isSet bool +} + +func (v NullableCreateOverlappingBlockResponse) Get() *CreateOverlappingBlockResponse { + return v.value +} + +func (v *NullableCreateOverlappingBlockResponse) Set(val *CreateOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateOverlappingBlockResponse(val *CreateOverlappingBlockResponse) *NullableCreateOverlappingBlockResponse { + return &NullableCreateOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableCreateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_create_reserved_block_response.go b/ipamfederation/model_create_reserved_block_response.go new file mode 100644 index 0000000..e465768 --- /dev/null +++ b/ipamfederation/model_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 CreateReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateReservedBlockResponse{} + +// CreateReservedBlockResponse The response format to create the __ReservedBlock__ object. +type CreateReservedBlockResponse struct { + // The created ReservedBlock object. + Result *ReservedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateReservedBlockResponse CreateReservedBlockResponse + +// NewCreateReservedBlockResponse instantiates a new CreateReservedBlockResponse 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 NewCreateReservedBlockResponse() *CreateReservedBlockResponse { + this := CreateReservedBlockResponse{} + return &this +} + +// NewCreateReservedBlockResponseWithDefaults instantiates a new CreateReservedBlockResponse 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 NewCreateReservedBlockResponseWithDefaults() *CreateReservedBlockResponse { + this := CreateReservedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *CreateReservedBlockResponse) GetResult() ReservedBlock { + if o == nil || IsNil(o.Result) { + var ret ReservedBlock + 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 *CreateReservedBlockResponse) GetResultOk() (*ReservedBlock, 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 *CreateReservedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given ReservedBlock and assigns it to the Result field. +func (o *CreateReservedBlockResponse) SetResult(v ReservedBlock) { + o.Result = &v +} + +func (o CreateReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateReservedBlockResponse) 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 *CreateReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varCreateReservedBlockResponse := _CreateReservedBlockResponse{} + + err = json.Unmarshal(data, &varCreateReservedBlockResponse) + + if err != nil { + return err + } + + *o = CreateReservedBlockResponse(varCreateReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateReservedBlockResponse struct { + value *CreateReservedBlockResponse + isSet bool +} + +func (v NullableCreateReservedBlockResponse) Get() *CreateReservedBlockResponse { + return v.value +} + +func (v *NullableCreateReservedBlockResponse) Set(val *CreateReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateReservedBlockResponse(val *CreateReservedBlockResponse) *NullableCreateReservedBlockResponse { + return &NullableCreateReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableCreateReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_federation_delegation.go b/ipamfederation/model_delegation.go similarity index 72% rename from ipamfederation/model_federation_delegation.go rename to ipamfederation/model_delegation.go index da7cfad..83fb14c 100644 --- a/ipamfederation/model_federation_delegation.go +++ b/ipamfederation/model_delegation.go @@ -16,11 +16,11 @@ import ( "time" ) -// checks if the FederationDelegation type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationDelegation{} +// checks if the Delegation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Delegation{} -// 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 { +// Delegation 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 Delegation 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. @@ -48,29 +48,29 @@ type FederationDelegation struct { AdditionalProperties map[string]interface{} } -type _FederationDelegation FederationDelegation +type _Delegation Delegation -// NewFederationDelegation instantiates a new FederationDelegation object +// NewDelegation instantiates a new Delegation 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{} +func NewDelegation(address string, federatedRealms []string) *Delegation { + this := Delegation{} this.Address = address this.FederatedRealms = federatedRealms return &this } -// NewFederationDelegationWithDefaults instantiates a new FederationDelegation object +// NewDelegationWithDefaults instantiates a new Delegation 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{} +func NewDelegationWithDefaults() *Delegation { + this := Delegation{} return &this } // GetAddress returns the Address field value -func (o *FederationDelegation) GetAddress() string { +func (o *Delegation) GetAddress() string { if o == nil { var ret string return ret @@ -81,7 +81,7 @@ func (o *FederationDelegation) GetAddress() string { // 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) { +func (o *Delegation) GetAddressOk() (*string, bool) { if o == nil { return nil, false } @@ -89,12 +89,12 @@ func (o *FederationDelegation) GetAddressOk() (*string, bool) { } // SetAddress sets field value -func (o *FederationDelegation) SetAddress(v string) { +func (o *Delegation) SetAddress(v string) { o.Address = v } // GetCidr returns the Cidr field value if set, zero value otherwise. -func (o *FederationDelegation) GetCidr() int64 { +func (o *Delegation) GetCidr() int64 { if o == nil || IsNil(o.Cidr) { var ret int64 return ret @@ -104,7 +104,7 @@ func (o *FederationDelegation) GetCidr() int64 { // 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) { +func (o *Delegation) GetCidrOk() (*int64, bool) { if o == nil || IsNil(o.Cidr) { return nil, false } @@ -112,7 +112,7 @@ func (o *FederationDelegation) GetCidrOk() (*int64, bool) { } // HasCidr returns a boolean if a field has been set. -func (o *FederationDelegation) HasCidr() bool { +func (o *Delegation) HasCidr() bool { if o != nil && !IsNil(o.Cidr) { return true } @@ -121,12 +121,12 @@ func (o *FederationDelegation) HasCidr() bool { } // SetCidr gets a reference to the given int64 and assigns it to the Cidr field. -func (o *FederationDelegation) SetCidr(v int64) { +func (o *Delegation) SetCidr(v int64) { o.Cidr = &v } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *FederationDelegation) GetComment() string { +func (o *Delegation) GetComment() string { if o == nil || IsNil(o.Comment) { var ret string return ret @@ -136,7 +136,7 @@ func (o *FederationDelegation) GetComment() string { // 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) { +func (o *Delegation) GetCommentOk() (*string, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -144,7 +144,7 @@ func (o *FederationDelegation) GetCommentOk() (*string, bool) { } // HasComment returns a boolean if a field has been set. -func (o *FederationDelegation) HasComment() bool { +func (o *Delegation) HasComment() bool { if o != nil && !IsNil(o.Comment) { return true } @@ -153,12 +153,12 @@ func (o *FederationDelegation) HasComment() bool { } // SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *FederationDelegation) SetComment(v string) { +func (o *Delegation) SetComment(v string) { o.Comment = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *FederationDelegation) GetCreatedAt() time.Time { +func (o *Delegation) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret @@ -168,7 +168,7 @@ func (o *FederationDelegation) GetCreatedAt() time.Time { // 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) { +func (o *Delegation) GetCreatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } @@ -176,7 +176,7 @@ func (o *FederationDelegation) GetCreatedAtOk() (*time.Time, bool) { } // HasCreatedAt returns a boolean if a field has been set. -func (o *FederationDelegation) HasCreatedAt() bool { +func (o *Delegation) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } @@ -185,12 +185,12 @@ func (o *FederationDelegation) HasCreatedAt() bool { } // SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *FederationDelegation) SetCreatedAt(v time.Time) { +func (o *Delegation) SetCreatedAt(v time.Time) { o.CreatedAt = &v } // GetDelegatedTo returns the DelegatedTo field value if set, zero value otherwise. -func (o *FederationDelegation) GetDelegatedTo() string { +func (o *Delegation) GetDelegatedTo() string { if o == nil || IsNil(o.DelegatedTo) { var ret string return ret @@ -200,7 +200,7 @@ func (o *FederationDelegation) GetDelegatedTo() string { // 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) { +func (o *Delegation) GetDelegatedToOk() (*string, bool) { if o == nil || IsNil(o.DelegatedTo) { return nil, false } @@ -208,7 +208,7 @@ func (o *FederationDelegation) GetDelegatedToOk() (*string, bool) { } // HasDelegatedTo returns a boolean if a field has been set. -func (o *FederationDelegation) HasDelegatedTo() bool { +func (o *Delegation) HasDelegatedTo() bool { if o != nil && !IsNil(o.DelegatedTo) { return true } @@ -217,12 +217,12 @@ func (o *FederationDelegation) HasDelegatedTo() bool { } // SetDelegatedTo gets a reference to the given string and assigns it to the DelegatedTo field. -func (o *FederationDelegation) SetDelegatedTo(v string) { +func (o *Delegation) SetDelegatedTo(v string) { o.DelegatedTo = &v } // GetFederatedRealms returns the FederatedRealms field value -func (o *FederationDelegation) GetFederatedRealms() []string { +func (o *Delegation) GetFederatedRealms() []string { if o == nil { var ret []string return ret @@ -233,7 +233,7 @@ func (o *FederationDelegation) GetFederatedRealms() []string { // 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) { +func (o *Delegation) GetFederatedRealmsOk() ([]string, bool) { if o == nil { return nil, false } @@ -241,12 +241,12 @@ func (o *FederationDelegation) GetFederatedRealmsOk() ([]string, bool) { } // SetFederatedRealms sets field value -func (o *FederationDelegation) SetFederatedRealms(v []string) { +func (o *Delegation) SetFederatedRealms(v []string) { o.FederatedRealms = v } // GetId returns the Id field value if set, zero value otherwise. -func (o *FederationDelegation) GetId() string { +func (o *Delegation) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -256,7 +256,7 @@ func (o *FederationDelegation) GetId() string { // 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) { +func (o *Delegation) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -264,7 +264,7 @@ func (o *FederationDelegation) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *FederationDelegation) HasId() bool { +func (o *Delegation) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -273,12 +273,12 @@ func (o *FederationDelegation) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *FederationDelegation) SetId(v string) { +func (o *Delegation) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *FederationDelegation) GetName() string { +func (o *Delegation) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -288,7 +288,7 @@ func (o *FederationDelegation) GetName() string { // 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) { +func (o *Delegation) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -296,7 +296,7 @@ func (o *FederationDelegation) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *FederationDelegation) HasName() bool { +func (o *Delegation) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -305,12 +305,12 @@ func (o *FederationDelegation) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *FederationDelegation) SetName(v string) { +func (o *Delegation) SetName(v string) { o.Name = &v } // GetParents returns the Parents field value if set, zero value otherwise. -func (o *FederationDelegation) GetParents() []string { +func (o *Delegation) GetParents() []string { if o == nil || IsNil(o.Parents) { var ret []string return ret @@ -320,7 +320,7 @@ func (o *FederationDelegation) GetParents() []string { // 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) { +func (o *Delegation) GetParentsOk() ([]string, bool) { if o == nil || IsNil(o.Parents) { return nil, false } @@ -328,7 +328,7 @@ func (o *FederationDelegation) GetParentsOk() ([]string, bool) { } // HasParents returns a boolean if a field has been set. -func (o *FederationDelegation) HasParents() bool { +func (o *Delegation) HasParents() bool { if o != nil && !IsNil(o.Parents) { return true } @@ -337,12 +337,12 @@ func (o *FederationDelegation) HasParents() bool { } // SetParents gets a reference to the given []string and assigns it to the Parents field. -func (o *FederationDelegation) SetParents(v []string) { +func (o *Delegation) SetParents(v []string) { o.Parents = v } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *FederationDelegation) GetProtocol() string { +func (o *Delegation) GetProtocol() string { if o == nil || IsNil(o.Protocol) { var ret string return ret @@ -352,7 +352,7 @@ func (o *FederationDelegation) GetProtocol() string { // 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) { +func (o *Delegation) GetProtocolOk() (*string, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -360,7 +360,7 @@ func (o *FederationDelegation) GetProtocolOk() (*string, bool) { } // HasProtocol returns a boolean if a field has been set. -func (o *FederationDelegation) HasProtocol() bool { +func (o *Delegation) HasProtocol() bool { if o != nil && !IsNil(o.Protocol) { return true } @@ -369,12 +369,12 @@ func (o *FederationDelegation) HasProtocol() bool { } // SetProtocol gets a reference to the given string and assigns it to the Protocol field. -func (o *FederationDelegation) SetProtocol(v string) { +func (o *Delegation) SetProtocol(v string) { o.Protocol = &v } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *FederationDelegation) GetTags() map[string]interface{} { +func (o *Delegation) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { var ret map[string]interface{} return ret @@ -384,7 +384,7 @@ func (o *FederationDelegation) GetTags() map[string]interface{} { // 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) { +func (o *Delegation) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { return map[string]interface{}{}, false } @@ -392,7 +392,7 @@ func (o *FederationDelegation) GetTagsOk() (map[string]interface{}, bool) { } // HasTags returns a boolean if a field has been set. -func (o *FederationDelegation) HasTags() bool { +func (o *Delegation) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -401,12 +401,12 @@ func (o *FederationDelegation) HasTags() bool { } // 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{}) { +func (o *Delegation) 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 { +func (o *Delegation) GetUpdatedAt() time.Time { if o == nil || IsNil(o.UpdatedAt) { var ret time.Time return ret @@ -416,7 +416,7 @@ func (o *FederationDelegation) GetUpdatedAt() time.Time { // 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) { +func (o *Delegation) GetUpdatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.UpdatedAt) { return nil, false } @@ -424,7 +424,7 @@ func (o *FederationDelegation) GetUpdatedAtOk() (*time.Time, bool) { } // HasUpdatedAt returns a boolean if a field has been set. -func (o *FederationDelegation) HasUpdatedAt() bool { +func (o *Delegation) HasUpdatedAt() bool { if o != nil && !IsNil(o.UpdatedAt) { return true } @@ -433,11 +433,11 @@ func (o *FederationDelegation) HasUpdatedAt() bool { } // SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *FederationDelegation) SetUpdatedAt(v time.Time) { +func (o *Delegation) SetUpdatedAt(v time.Time) { o.UpdatedAt = &v } -func (o FederationDelegation) MarshalJSON() ([]byte, error) { +func (o Delegation) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -445,7 +445,7 @@ func (o FederationDelegation) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationDelegation) ToMap() (map[string]interface{}, error) { +func (o Delegation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address if !IsNil(o.Cidr) { @@ -487,7 +487,7 @@ func (o FederationDelegation) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationDelegation) UnmarshalJSON(data []byte) (err error) { +func (o *Delegation) 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. @@ -510,15 +510,15 @@ func (o *FederationDelegation) UnmarshalJSON(data []byte) (err error) { } } - varFederationDelegation := _FederationDelegation{} + varDelegation := _Delegation{} - err = json.Unmarshal(data, &varFederationDelegation) + err = json.Unmarshal(data, &varDelegation) if err != nil { return err } - *o = FederationDelegation(varFederationDelegation) + *o = Delegation(varDelegation) additionalProperties := make(map[string]interface{}) @@ -541,38 +541,38 @@ func (o *FederationDelegation) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationDelegation struct { - value *FederationDelegation +type NullableDelegation struct { + value *Delegation isSet bool } -func (v NullableFederationDelegation) Get() *FederationDelegation { +func (v NullableDelegation) Get() *Delegation { return v.value } -func (v *NullableFederationDelegation) Set(val *FederationDelegation) { +func (v *NullableDelegation) Set(val *Delegation) { v.value = val v.isSet = true } -func (v NullableFederationDelegation) IsSet() bool { +func (v NullableDelegation) IsSet() bool { return v.isSet } -func (v *NullableFederationDelegation) Unset() { +func (v *NullableDelegation) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationDelegation(val *FederationDelegation) *NullableFederationDelegation { - return &NullableFederationDelegation{value: val, isSet: true} +func NewNullableDelegation(val *Delegation) *NullableDelegation { + return &NullableDelegation{value: val, isSet: true} } -func (v NullableFederationDelegation) MarshalJSON() ([]byte, error) { +func (v NullableDelegation) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationDelegation) UnmarshalJSON(src []byte) error { +func (v *NullableDelegation) 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_delegation_bulk_item.go similarity index 53% rename from ipamfederation/model_federation_delegation_bulk_item.go rename to ipamfederation/model_delegation_bulk_item.go index dd813c6..675bfbf 100644 --- a/ipamfederation/model_federation_delegation_bulk_item.go +++ b/ipamfederation/model_delegation_bulk_item.go @@ -14,39 +14,39 @@ import ( "encoding/json" ) -// checks if the FederationDelegationBulkItem type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationDelegationBulkItem{} +// checks if the DelegationBulkItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DelegationBulkItem{} -// FederationDelegationBulkItem DelegationBulkItem object. -type FederationDelegationBulkItem struct { +// DelegationBulkItem DelegationBulkItem object. +type DelegationBulkItem 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"` + Delegation *Delegation `json:"delegation,omitempty"` AdditionalProperties map[string]interface{} } -type _FederationDelegationBulkItem FederationDelegationBulkItem +type _DelegationBulkItem DelegationBulkItem -// NewFederationDelegationBulkItem instantiates a new FederationDelegationBulkItem object +// NewDelegationBulkItem instantiates a new DelegationBulkItem 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{} +func NewDelegationBulkItem() *DelegationBulkItem { + this := DelegationBulkItem{} return &this } -// NewFederationDelegationBulkItemWithDefaults instantiates a new FederationDelegationBulkItem object +// NewDelegationBulkItemWithDefaults instantiates a new DelegationBulkItem 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{} +func NewDelegationBulkItemWithDefaults() *DelegationBulkItem { + this := DelegationBulkItem{} return &this } // GetAction returns the Action field value if set, zero value otherwise. -func (o *FederationDelegationBulkItem) GetAction() string { +func (o *DelegationBulkItem) GetAction() string { if o == nil || IsNil(o.Action) { var ret string return ret @@ -56,7 +56,7 @@ func (o *FederationDelegationBulkItem) GetAction() string { // 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) { +func (o *DelegationBulkItem) GetActionOk() (*string, bool) { if o == nil || IsNil(o.Action) { return nil, false } @@ -64,7 +64,7 @@ func (o *FederationDelegationBulkItem) GetActionOk() (*string, bool) { } // HasAction returns a boolean if a field has been set. -func (o *FederationDelegationBulkItem) HasAction() bool { +func (o *DelegationBulkItem) HasAction() bool { if o != nil && !IsNil(o.Action) { return true } @@ -73,14 +73,14 @@ func (o *FederationDelegationBulkItem) HasAction() bool { } // SetAction gets a reference to the given string and assigns it to the Action field. -func (o *FederationDelegationBulkItem) SetAction(v string) { +func (o *DelegationBulkItem) SetAction(v string) { o.Action = &v } // GetDelegation returns the Delegation field value if set, zero value otherwise. -func (o *FederationDelegationBulkItem) GetDelegation() FederationDelegation { +func (o *DelegationBulkItem) GetDelegation() Delegation { if o == nil || IsNil(o.Delegation) { - var ret FederationDelegation + var ret Delegation return ret } return *o.Delegation @@ -88,7 +88,7 @@ func (o *FederationDelegationBulkItem) GetDelegation() FederationDelegation { // 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) { +func (o *DelegationBulkItem) GetDelegationOk() (*Delegation, bool) { if o == nil || IsNil(o.Delegation) { return nil, false } @@ -96,7 +96,7 @@ func (o *FederationDelegationBulkItem) GetDelegationOk() (*FederationDelegation, } // HasDelegation returns a boolean if a field has been set. -func (o *FederationDelegationBulkItem) HasDelegation() bool { +func (o *DelegationBulkItem) HasDelegation() bool { if o != nil && !IsNil(o.Delegation) { return true } @@ -104,12 +104,12 @@ func (o *FederationDelegationBulkItem) HasDelegation() bool { return false } -// SetDelegation gets a reference to the given FederationDelegation and assigns it to the Delegation field. -func (o *FederationDelegationBulkItem) SetDelegation(v FederationDelegation) { +// SetDelegation gets a reference to the given Delegation and assigns it to the Delegation field. +func (o *DelegationBulkItem) SetDelegation(v Delegation) { o.Delegation = &v } -func (o FederationDelegationBulkItem) MarshalJSON() ([]byte, error) { +func (o DelegationBulkItem) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -117,7 +117,7 @@ func (o FederationDelegationBulkItem) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationDelegationBulkItem) ToMap() (map[string]interface{}, error) { +func (o DelegationBulkItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Action) { toSerialize["action"] = o.Action @@ -133,16 +133,16 @@ func (o FederationDelegationBulkItem) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationDelegationBulkItem) UnmarshalJSON(data []byte) (err error) { - varFederationDelegationBulkItem := _FederationDelegationBulkItem{} +func (o *DelegationBulkItem) UnmarshalJSON(data []byte) (err error) { + varDelegationBulkItem := _DelegationBulkItem{} - err = json.Unmarshal(data, &varFederationDelegationBulkItem) + err = json.Unmarshal(data, &varDelegationBulkItem) if err != nil { return err } - *o = FederationDelegationBulkItem(varFederationDelegationBulkItem) + *o = DelegationBulkItem(varDelegationBulkItem) additionalProperties := make(map[string]interface{}) @@ -155,38 +155,38 @@ func (o *FederationDelegationBulkItem) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationDelegationBulkItem struct { - value *FederationDelegationBulkItem +type NullableDelegationBulkItem struct { + value *DelegationBulkItem isSet bool } -func (v NullableFederationDelegationBulkItem) Get() *FederationDelegationBulkItem { +func (v NullableDelegationBulkItem) Get() *DelegationBulkItem { return v.value } -func (v *NullableFederationDelegationBulkItem) Set(val *FederationDelegationBulkItem) { +func (v *NullableDelegationBulkItem) Set(val *DelegationBulkItem) { v.value = val v.isSet = true } -func (v NullableFederationDelegationBulkItem) IsSet() bool { +func (v NullableDelegationBulkItem) IsSet() bool { return v.isSet } -func (v *NullableFederationDelegationBulkItem) Unset() { +func (v *NullableDelegationBulkItem) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationDelegationBulkItem(val *FederationDelegationBulkItem) *NullableFederationDelegationBulkItem { - return &NullableFederationDelegationBulkItem{value: val, isSet: true} +func NewNullableDelegationBulkItem(val *DelegationBulkItem) *NullableDelegationBulkItem { + return &NullableDelegationBulkItem{value: val, isSet: true} } -func (v NullableFederationDelegationBulkItem) MarshalJSON() ([]byte, error) { +func (v NullableDelegationBulkItem) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationDelegationBulkItem) UnmarshalJSON(src []byte) error { +func (v *NullableDelegationBulkItem) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/ipamfederation/model_delegation_bulk_request.go b/ipamfederation/model_delegation_bulk_request.go new file mode 100644 index 0000000..89c8b59 --- /dev/null +++ b/ipamfederation/model_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 DelegationBulkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DelegationBulkRequest{} + +// DelegationBulkRequest DelegationBulk request object. +type DelegationBulkRequest struct { + // list of action/delegation requests to execute. + Delegations []DelegationBulkItem `json:"delegations,omitempty"` + Fields *ProtobufFieldMask `json:"fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DelegationBulkRequest DelegationBulkRequest + +// NewDelegationBulkRequest instantiates a new DelegationBulkRequest 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 NewDelegationBulkRequest() *DelegationBulkRequest { + this := DelegationBulkRequest{} + return &this +} + +// NewDelegationBulkRequestWithDefaults instantiates a new DelegationBulkRequest 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 NewDelegationBulkRequestWithDefaults() *DelegationBulkRequest { + this := DelegationBulkRequest{} + return &this +} + +// GetDelegations returns the Delegations field value if set, zero value otherwise. +func (o *DelegationBulkRequest) GetDelegations() []DelegationBulkItem { + if o == nil || IsNil(o.Delegations) { + var ret []DelegationBulkItem + 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 *DelegationBulkRequest) GetDelegationsOk() ([]DelegationBulkItem, 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 *DelegationBulkRequest) HasDelegations() bool { + if o != nil && !IsNil(o.Delegations) { + return true + } + + return false +} + +// SetDelegations gets a reference to the given []DelegationBulkItem and assigns it to the Delegations field. +func (o *DelegationBulkRequest) SetDelegations(v []DelegationBulkItem) { + o.Delegations = v +} + +// GetFields returns the Fields field value if set, zero value otherwise. +func (o *DelegationBulkRequest) 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 *DelegationBulkRequest) 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 *DelegationBulkRequest) 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 *DelegationBulkRequest) SetFields(v ProtobufFieldMask) { + o.Fields = &v +} + +func (o DelegationBulkRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DelegationBulkRequest) 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 *DelegationBulkRequest) UnmarshalJSON(data []byte) (err error) { + varDelegationBulkRequest := _DelegationBulkRequest{} + + err = json.Unmarshal(data, &varDelegationBulkRequest) + + if err != nil { + return err + } + + *o = DelegationBulkRequest(varDelegationBulkRequest) + + 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 NullableDelegationBulkRequest struct { + value *DelegationBulkRequest + isSet bool +} + +func (v NullableDelegationBulkRequest) Get() *DelegationBulkRequest { + return v.value +} + +func (v *NullableDelegationBulkRequest) Set(val *DelegationBulkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableDelegationBulkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableDelegationBulkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDelegationBulkRequest(val *DelegationBulkRequest) *NullableDelegationBulkRequest { + return &NullableDelegationBulkRequest{value: val, isSet: true} +} + +func (v NullableDelegationBulkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDelegationBulkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_delegation_bulk_response.go b/ipamfederation/model_delegation_bulk_response.go new file mode 100644 index 0000000..adfb56f --- /dev/null +++ b/ipamfederation/model_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 DelegationBulkResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DelegationBulkResponse{} + +// DelegationBulkResponse The DelegationBulk response object. +type DelegationBulkResponse struct { + // A list of Delegation objects. + Results []Delegation `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DelegationBulkResponse DelegationBulkResponse + +// NewDelegationBulkResponse instantiates a new DelegationBulkResponse 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 NewDelegationBulkResponse() *DelegationBulkResponse { + this := DelegationBulkResponse{} + return &this +} + +// NewDelegationBulkResponseWithDefaults instantiates a new DelegationBulkResponse 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 NewDelegationBulkResponseWithDefaults() *DelegationBulkResponse { + this := DelegationBulkResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *DelegationBulkResponse) GetResults() []Delegation { + if o == nil || IsNil(o.Results) { + var ret []Delegation + 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 *DelegationBulkResponse) GetResultsOk() ([]Delegation, 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 *DelegationBulkResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []Delegation and assigns it to the Results field. +func (o *DelegationBulkResponse) SetResults(v []Delegation) { + o.Results = v +} + +func (o DelegationBulkResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DelegationBulkResponse) 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 *DelegationBulkResponse) UnmarshalJSON(data []byte) (err error) { + varDelegationBulkResponse := _DelegationBulkResponse{} + + err = json.Unmarshal(data, &varDelegationBulkResponse) + + if err != nil { + return err + } + + *o = DelegationBulkResponse(varDelegationBulkResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDelegationBulkResponse struct { + value *DelegationBulkResponse + isSet bool +} + +func (v NullableDelegationBulkResponse) Get() *DelegationBulkResponse { + return v.value +} + +func (v *NullableDelegationBulkResponse) Set(val *DelegationBulkResponse) { + v.value = val + v.isSet = true +} + +func (v NullableDelegationBulkResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableDelegationBulkResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDelegationBulkResponse(val *DelegationBulkResponse) *NullableDelegationBulkResponse { + return &NullableDelegationBulkResponse{value: val, isSet: true} +} + +func (v NullableDelegationBulkResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDelegationBulkResponse) 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_federated_block.go similarity index 69% rename from ipamfederation/model_federation_federated_block.go rename to ipamfederation/model_federated_block.go index bbe17e5..c09ecb0 100644 --- a/ipamfederation/model_federation_federated_block.go +++ b/ipamfederation/model_federated_block.go @@ -16,15 +16,15 @@ import ( "time" ) -// checks if the FederationFederatedBlock type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationFederatedBlock{} +// checks if the FederatedBlock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederatedBlock{} -// 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 { +// FederatedBlock 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 FederatedBlock 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"` + AllocationV4 *Allocation `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. @@ -48,29 +48,29 @@ type FederationFederatedBlock struct { AdditionalProperties map[string]interface{} } -type _FederationFederatedBlock FederationFederatedBlock +type _FederatedBlock FederatedBlock -// NewFederationFederatedBlock instantiates a new FederationFederatedBlock object +// NewFederatedBlock instantiates a new FederatedBlock 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{} +func NewFederatedBlock(address string, federatedRealm string) *FederatedBlock { + this := FederatedBlock{} this.Address = address this.FederatedRealm = federatedRealm return &this } -// NewFederationFederatedBlockWithDefaults instantiates a new FederationFederatedBlock object +// NewFederatedBlockWithDefaults instantiates a new FederatedBlock 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{} +func NewFederatedBlockWithDefaults() *FederatedBlock { + this := FederatedBlock{} return &this } // GetAddress returns the Address field value -func (o *FederationFederatedBlock) GetAddress() string { +func (o *FederatedBlock) GetAddress() string { if o == nil { var ret string return ret @@ -81,7 +81,7 @@ func (o *FederationFederatedBlock) GetAddress() string { // 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) { +func (o *FederatedBlock) GetAddressOk() (*string, bool) { if o == nil { return nil, false } @@ -89,14 +89,14 @@ func (o *FederationFederatedBlock) GetAddressOk() (*string, bool) { } // SetAddress sets field value -func (o *FederationFederatedBlock) SetAddress(v string) { +func (o *FederatedBlock) SetAddress(v string) { o.Address = v } // GetAllocationV4 returns the AllocationV4 field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetAllocationV4() FederationAllocation { +func (o *FederatedBlock) GetAllocationV4() Allocation { if o == nil || IsNil(o.AllocationV4) { - var ret FederationAllocation + var ret Allocation return ret } return *o.AllocationV4 @@ -104,7 +104,7 @@ func (o *FederationFederatedBlock) GetAllocationV4() FederationAllocation { // 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) { +func (o *FederatedBlock) GetAllocationV4Ok() (*Allocation, bool) { if o == nil || IsNil(o.AllocationV4) { return nil, false } @@ -112,7 +112,7 @@ func (o *FederationFederatedBlock) GetAllocationV4Ok() (*FederationAllocation, b } // HasAllocationV4 returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasAllocationV4() bool { +func (o *FederatedBlock) HasAllocationV4() bool { if o != nil && !IsNil(o.AllocationV4) { return true } @@ -120,13 +120,13 @@ func (o *FederationFederatedBlock) HasAllocationV4() bool { return false } -// SetAllocationV4 gets a reference to the given FederationAllocation and assigns it to the AllocationV4 field. -func (o *FederationFederatedBlock) SetAllocationV4(v FederationAllocation) { +// SetAllocationV4 gets a reference to the given Allocation and assigns it to the AllocationV4 field. +func (o *FederatedBlock) SetAllocationV4(v Allocation) { o.AllocationV4 = &v } // GetCidr returns the Cidr field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetCidr() int64 { +func (o *FederatedBlock) GetCidr() int64 { if o == nil || IsNil(o.Cidr) { var ret int64 return ret @@ -136,7 +136,7 @@ func (o *FederationFederatedBlock) GetCidr() int64 { // 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) { +func (o *FederatedBlock) GetCidrOk() (*int64, bool) { if o == nil || IsNil(o.Cidr) { return nil, false } @@ -144,7 +144,7 @@ func (o *FederationFederatedBlock) GetCidrOk() (*int64, bool) { } // HasCidr returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasCidr() bool { +func (o *FederatedBlock) HasCidr() bool { if o != nil && !IsNil(o.Cidr) { return true } @@ -153,12 +153,12 @@ func (o *FederationFederatedBlock) HasCidr() bool { } // SetCidr gets a reference to the given int64 and assigns it to the Cidr field. -func (o *FederationFederatedBlock) SetCidr(v int64) { +func (o *FederatedBlock) SetCidr(v int64) { o.Cidr = &v } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetComment() string { +func (o *FederatedBlock) GetComment() string { if o == nil || IsNil(o.Comment) { var ret string return ret @@ -168,7 +168,7 @@ func (o *FederationFederatedBlock) GetComment() string { // 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) { +func (o *FederatedBlock) GetCommentOk() (*string, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -176,7 +176,7 @@ func (o *FederationFederatedBlock) GetCommentOk() (*string, bool) { } // HasComment returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasComment() bool { +func (o *FederatedBlock) HasComment() bool { if o != nil && !IsNil(o.Comment) { return true } @@ -185,12 +185,12 @@ func (o *FederationFederatedBlock) HasComment() bool { } // SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *FederationFederatedBlock) SetComment(v string) { +func (o *FederatedBlock) SetComment(v string) { o.Comment = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetCreatedAt() time.Time { +func (o *FederatedBlock) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret @@ -200,7 +200,7 @@ func (o *FederationFederatedBlock) GetCreatedAt() time.Time { // 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) { +func (o *FederatedBlock) GetCreatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } @@ -208,7 +208,7 @@ func (o *FederationFederatedBlock) GetCreatedAtOk() (*time.Time, bool) { } // HasCreatedAt returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasCreatedAt() bool { +func (o *FederatedBlock) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } @@ -217,12 +217,12 @@ func (o *FederationFederatedBlock) HasCreatedAt() bool { } // SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *FederationFederatedBlock) SetCreatedAt(v time.Time) { +func (o *FederatedBlock) SetCreatedAt(v time.Time) { o.CreatedAt = &v } // GetFederatedRealm returns the FederatedRealm field value -func (o *FederationFederatedBlock) GetFederatedRealm() string { +func (o *FederatedBlock) GetFederatedRealm() string { if o == nil { var ret string return ret @@ -233,7 +233,7 @@ func (o *FederationFederatedBlock) GetFederatedRealm() string { // 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) { +func (o *FederatedBlock) GetFederatedRealmOk() (*string, bool) { if o == nil { return nil, false } @@ -241,12 +241,12 @@ func (o *FederationFederatedBlock) GetFederatedRealmOk() (*string, bool) { } // SetFederatedRealm sets field value -func (o *FederationFederatedBlock) SetFederatedRealm(v string) { +func (o *FederatedBlock) SetFederatedRealm(v string) { o.FederatedRealm = v } // GetId returns the Id field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetId() string { +func (o *FederatedBlock) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -256,7 +256,7 @@ func (o *FederationFederatedBlock) GetId() string { // 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) { +func (o *FederatedBlock) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -264,7 +264,7 @@ func (o *FederationFederatedBlock) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasId() bool { +func (o *FederatedBlock) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -273,12 +273,12 @@ func (o *FederationFederatedBlock) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *FederationFederatedBlock) SetId(v string) { +func (o *FederatedBlock) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetName() string { +func (o *FederatedBlock) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -288,7 +288,7 @@ func (o *FederationFederatedBlock) GetName() string { // 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) { +func (o *FederatedBlock) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -296,7 +296,7 @@ func (o *FederationFederatedBlock) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasName() bool { +func (o *FederatedBlock) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -305,12 +305,12 @@ func (o *FederationFederatedBlock) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *FederationFederatedBlock) SetName(v string) { +func (o *FederatedBlock) SetName(v string) { o.Name = &v } // GetParent returns the Parent field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetParent() string { +func (o *FederatedBlock) GetParent() string { if o == nil || IsNil(o.Parent) { var ret string return ret @@ -320,7 +320,7 @@ func (o *FederationFederatedBlock) GetParent() string { // 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) { +func (o *FederatedBlock) GetParentOk() (*string, bool) { if o == nil || IsNil(o.Parent) { return nil, false } @@ -328,7 +328,7 @@ func (o *FederationFederatedBlock) GetParentOk() (*string, bool) { } // HasParent returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasParent() bool { +func (o *FederatedBlock) HasParent() bool { if o != nil && !IsNil(o.Parent) { return true } @@ -337,12 +337,12 @@ func (o *FederationFederatedBlock) HasParent() bool { } // SetParent gets a reference to the given string and assigns it to the Parent field. -func (o *FederationFederatedBlock) SetParent(v string) { +func (o *FederatedBlock) SetParent(v string) { o.Parent = &v } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetProtocol() string { +func (o *FederatedBlock) GetProtocol() string { if o == nil || IsNil(o.Protocol) { var ret string return ret @@ -352,7 +352,7 @@ func (o *FederationFederatedBlock) GetProtocol() string { // 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) { +func (o *FederatedBlock) GetProtocolOk() (*string, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -360,7 +360,7 @@ func (o *FederationFederatedBlock) GetProtocolOk() (*string, bool) { } // HasProtocol returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasProtocol() bool { +func (o *FederatedBlock) HasProtocol() bool { if o != nil && !IsNil(o.Protocol) { return true } @@ -369,12 +369,12 @@ func (o *FederationFederatedBlock) HasProtocol() bool { } // SetProtocol gets a reference to the given string and assigns it to the Protocol field. -func (o *FederationFederatedBlock) SetProtocol(v string) { +func (o *FederatedBlock) SetProtocol(v string) { o.Protocol = &v } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *FederationFederatedBlock) GetTags() map[string]interface{} { +func (o *FederatedBlock) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { var ret map[string]interface{} return ret @@ -384,7 +384,7 @@ func (o *FederationFederatedBlock) GetTags() map[string]interface{} { // 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) { +func (o *FederatedBlock) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { return map[string]interface{}{}, false } @@ -392,7 +392,7 @@ func (o *FederationFederatedBlock) GetTagsOk() (map[string]interface{}, bool) { } // HasTags returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasTags() bool { +func (o *FederatedBlock) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -401,12 +401,12 @@ func (o *FederationFederatedBlock) HasTags() bool { } // 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{}) { +func (o *FederatedBlock) 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 { +func (o *FederatedBlock) GetUpdatedAt() time.Time { if o == nil || IsNil(o.UpdatedAt) { var ret time.Time return ret @@ -416,7 +416,7 @@ func (o *FederationFederatedBlock) GetUpdatedAt() time.Time { // 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) { +func (o *FederatedBlock) GetUpdatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.UpdatedAt) { return nil, false } @@ -424,7 +424,7 @@ func (o *FederationFederatedBlock) GetUpdatedAtOk() (*time.Time, bool) { } // HasUpdatedAt returns a boolean if a field has been set. -func (o *FederationFederatedBlock) HasUpdatedAt() bool { +func (o *FederatedBlock) HasUpdatedAt() bool { if o != nil && !IsNil(o.UpdatedAt) { return true } @@ -433,11 +433,11 @@ func (o *FederationFederatedBlock) HasUpdatedAt() bool { } // SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *FederationFederatedBlock) SetUpdatedAt(v time.Time) { +func (o *FederatedBlock) SetUpdatedAt(v time.Time) { o.UpdatedAt = &v } -func (o FederationFederatedBlock) MarshalJSON() ([]byte, error) { +func (o FederatedBlock) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -445,7 +445,7 @@ func (o FederationFederatedBlock) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationFederatedBlock) ToMap() (map[string]interface{}, error) { +func (o FederatedBlock) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address if !IsNil(o.AllocationV4) { @@ -487,7 +487,7 @@ func (o FederationFederatedBlock) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationFederatedBlock) UnmarshalJSON(data []byte) (err error) { +func (o *FederatedBlock) 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. @@ -510,15 +510,15 @@ func (o *FederationFederatedBlock) UnmarshalJSON(data []byte) (err error) { } } - varFederationFederatedBlock := _FederationFederatedBlock{} + varFederatedBlock := _FederatedBlock{} - err = json.Unmarshal(data, &varFederationFederatedBlock) + err = json.Unmarshal(data, &varFederatedBlock) if err != nil { return err } - *o = FederationFederatedBlock(varFederationFederatedBlock) + *o = FederatedBlock(varFederatedBlock) additionalProperties := make(map[string]interface{}) @@ -541,38 +541,38 @@ func (o *FederationFederatedBlock) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationFederatedBlock struct { - value *FederationFederatedBlock +type NullableFederatedBlock struct { + value *FederatedBlock isSet bool } -func (v NullableFederationFederatedBlock) Get() *FederationFederatedBlock { +func (v NullableFederatedBlock) Get() *FederatedBlock { return v.value } -func (v *NullableFederationFederatedBlock) Set(val *FederationFederatedBlock) { +func (v *NullableFederatedBlock) Set(val *FederatedBlock) { v.value = val v.isSet = true } -func (v NullableFederationFederatedBlock) IsSet() bool { +func (v NullableFederatedBlock) IsSet() bool { return v.isSet } -func (v *NullableFederationFederatedBlock) Unset() { +func (v *NullableFederatedBlock) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationFederatedBlock(val *FederationFederatedBlock) *NullableFederationFederatedBlock { - return &NullableFederationFederatedBlock{value: val, isSet: true} +func NewNullableFederatedBlock(val *FederatedBlock) *NullableFederatedBlock { + return &NullableFederatedBlock{value: val, isSet: true} } -func (v NullableFederationFederatedBlock) MarshalJSON() ([]byte, error) { +func (v NullableFederatedBlock) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationFederatedBlock) UnmarshalJSON(src []byte) error { +func (v *NullableFederatedBlock) 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_federated_realm.go similarity index 67% rename from ipamfederation/model_federation_federated_realm.go rename to ipamfederation/model_federated_realm.go index 4385738..d4e594e 100644 --- a/ipamfederation/model_federation_federated_realm.go +++ b/ipamfederation/model_federated_realm.go @@ -16,13 +16,13 @@ import ( "time" ) -// checks if the FederationFederatedRealm type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationFederatedRealm{} +// checks if the FederatedRealm type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &FederatedRealm{} -// FederationFederatedRealm A __FederatedRealm__ object is a unique set of federated blocks per realm. -type FederationFederatedRealm struct { +// FederatedRealm A __FederatedRealm__ object is a unique set of federated blocks per realm. +type FederatedRealm struct { // The aggregate of all Federated Blocks within the Realm. - AllocationV4 *FederationAllocation `json:"allocation_v4,omitempty"` + AllocationV4 *Allocation `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. @@ -38,30 +38,30 @@ type FederationFederatedRealm struct { AdditionalProperties map[string]interface{} } -type _FederationFederatedRealm FederationFederatedRealm +type _FederatedRealm FederatedRealm -// NewFederationFederatedRealm instantiates a new FederationFederatedRealm object +// NewFederatedRealm instantiates a new FederatedRealm 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{} +func NewFederatedRealm(name string) *FederatedRealm { + this := FederatedRealm{} this.Name = name return &this } -// NewFederationFederatedRealmWithDefaults instantiates a new FederationFederatedRealm object +// NewFederatedRealmWithDefaults instantiates a new FederatedRealm 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{} +func NewFederatedRealmWithDefaults() *FederatedRealm { + this := FederatedRealm{} return &this } // GetAllocationV4 returns the AllocationV4 field value if set, zero value otherwise. -func (o *FederationFederatedRealm) GetAllocationV4() FederationAllocation { +func (o *FederatedRealm) GetAllocationV4() Allocation { if o == nil || IsNil(o.AllocationV4) { - var ret FederationAllocation + var ret Allocation return ret } return *o.AllocationV4 @@ -69,7 +69,7 @@ func (o *FederationFederatedRealm) GetAllocationV4() FederationAllocation { // 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) { +func (o *FederatedRealm) GetAllocationV4Ok() (*Allocation, bool) { if o == nil || IsNil(o.AllocationV4) { return nil, false } @@ -77,7 +77,7 @@ func (o *FederationFederatedRealm) GetAllocationV4Ok() (*FederationAllocation, b } // HasAllocationV4 returns a boolean if a field has been set. -func (o *FederationFederatedRealm) HasAllocationV4() bool { +func (o *FederatedRealm) HasAllocationV4() bool { if o != nil && !IsNil(o.AllocationV4) { return true } @@ -85,13 +85,13 @@ func (o *FederationFederatedRealm) HasAllocationV4() bool { return false } -// SetAllocationV4 gets a reference to the given FederationAllocation and assigns it to the AllocationV4 field. -func (o *FederationFederatedRealm) SetAllocationV4(v FederationAllocation) { +// SetAllocationV4 gets a reference to the given Allocation and assigns it to the AllocationV4 field. +func (o *FederatedRealm) SetAllocationV4(v Allocation) { o.AllocationV4 = &v } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *FederationFederatedRealm) GetComment() string { +func (o *FederatedRealm) GetComment() string { if o == nil || IsNil(o.Comment) { var ret string return ret @@ -101,7 +101,7 @@ func (o *FederationFederatedRealm) GetComment() string { // 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) { +func (o *FederatedRealm) GetCommentOk() (*string, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -109,7 +109,7 @@ func (o *FederationFederatedRealm) GetCommentOk() (*string, bool) { } // HasComment returns a boolean if a field has been set. -func (o *FederationFederatedRealm) HasComment() bool { +func (o *FederatedRealm) HasComment() bool { if o != nil && !IsNil(o.Comment) { return true } @@ -118,12 +118,12 @@ func (o *FederationFederatedRealm) HasComment() bool { } // SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *FederationFederatedRealm) SetComment(v string) { +func (o *FederatedRealm) SetComment(v string) { o.Comment = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *FederationFederatedRealm) GetCreatedAt() time.Time { +func (o *FederatedRealm) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret @@ -133,7 +133,7 @@ func (o *FederationFederatedRealm) GetCreatedAt() time.Time { // 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) { +func (o *FederatedRealm) GetCreatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } @@ -141,7 +141,7 @@ func (o *FederationFederatedRealm) GetCreatedAtOk() (*time.Time, bool) { } // HasCreatedAt returns a boolean if a field has been set. -func (o *FederationFederatedRealm) HasCreatedAt() bool { +func (o *FederatedRealm) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } @@ -150,12 +150,12 @@ func (o *FederationFederatedRealm) HasCreatedAt() bool { } // SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *FederationFederatedRealm) SetCreatedAt(v time.Time) { +func (o *FederatedRealm) SetCreatedAt(v time.Time) { o.CreatedAt = &v } // GetId returns the Id field value if set, zero value otherwise. -func (o *FederationFederatedRealm) GetId() string { +func (o *FederatedRealm) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -165,7 +165,7 @@ func (o *FederationFederatedRealm) GetId() string { // 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) { +func (o *FederatedRealm) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -173,7 +173,7 @@ func (o *FederationFederatedRealm) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *FederationFederatedRealm) HasId() bool { +func (o *FederatedRealm) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -182,12 +182,12 @@ func (o *FederationFederatedRealm) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *FederationFederatedRealm) SetId(v string) { +func (o *FederatedRealm) SetId(v string) { o.Id = &v } // GetName returns the Name field value -func (o *FederationFederatedRealm) GetName() string { +func (o *FederatedRealm) GetName() string { if o == nil { var ret string return ret @@ -198,7 +198,7 @@ func (o *FederationFederatedRealm) GetName() string { // 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) { +func (o *FederatedRealm) GetNameOk() (*string, bool) { if o == nil { return nil, false } @@ -206,12 +206,12 @@ func (o *FederationFederatedRealm) GetNameOk() (*string, bool) { } // SetName sets field value -func (o *FederationFederatedRealm) SetName(v string) { +func (o *FederatedRealm) SetName(v string) { o.Name = v } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *FederationFederatedRealm) GetTags() map[string]interface{} { +func (o *FederatedRealm) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { var ret map[string]interface{} return ret @@ -221,7 +221,7 @@ func (o *FederationFederatedRealm) GetTags() map[string]interface{} { // 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) { +func (o *FederatedRealm) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { return map[string]interface{}{}, false } @@ -229,7 +229,7 @@ func (o *FederationFederatedRealm) GetTagsOk() (map[string]interface{}, bool) { } // HasTags returns a boolean if a field has been set. -func (o *FederationFederatedRealm) HasTags() bool { +func (o *FederatedRealm) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -238,12 +238,12 @@ func (o *FederationFederatedRealm) HasTags() bool { } // 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{}) { +func (o *FederatedRealm) 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 { +func (o *FederatedRealm) GetUpdatedAt() time.Time { if o == nil || IsNil(o.UpdatedAt) { var ret time.Time return ret @@ -253,7 +253,7 @@ func (o *FederationFederatedRealm) GetUpdatedAt() time.Time { // 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) { +func (o *FederatedRealm) GetUpdatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.UpdatedAt) { return nil, false } @@ -261,7 +261,7 @@ func (o *FederationFederatedRealm) GetUpdatedAtOk() (*time.Time, bool) { } // HasUpdatedAt returns a boolean if a field has been set. -func (o *FederationFederatedRealm) HasUpdatedAt() bool { +func (o *FederatedRealm) HasUpdatedAt() bool { if o != nil && !IsNil(o.UpdatedAt) { return true } @@ -270,11 +270,11 @@ func (o *FederationFederatedRealm) HasUpdatedAt() bool { } // SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *FederationFederatedRealm) SetUpdatedAt(v time.Time) { +func (o *FederatedRealm) SetUpdatedAt(v time.Time) { o.UpdatedAt = &v } -func (o FederationFederatedRealm) MarshalJSON() ([]byte, error) { +func (o FederatedRealm) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -282,7 +282,7 @@ func (o FederationFederatedRealm) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationFederatedRealm) ToMap() (map[string]interface{}, error) { +func (o FederatedRealm) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.AllocationV4) { toSerialize["allocation_v4"] = o.AllocationV4 @@ -311,7 +311,7 @@ func (o FederationFederatedRealm) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationFederatedRealm) UnmarshalJSON(data []byte) (err error) { +func (o *FederatedRealm) 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. @@ -333,15 +333,15 @@ func (o *FederationFederatedRealm) UnmarshalJSON(data []byte) (err error) { } } - varFederationFederatedRealm := _FederationFederatedRealm{} + varFederatedRealm := _FederatedRealm{} - err = json.Unmarshal(data, &varFederationFederatedRealm) + err = json.Unmarshal(data, &varFederatedRealm) if err != nil { return err } - *o = FederationFederatedRealm(varFederationFederatedRealm) + *o = FederatedRealm(varFederatedRealm) additionalProperties := make(map[string]interface{}) @@ -359,38 +359,38 @@ func (o *FederationFederatedRealm) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationFederatedRealm struct { - value *FederationFederatedRealm +type NullableFederatedRealm struct { + value *FederatedRealm isSet bool } -func (v NullableFederationFederatedRealm) Get() *FederationFederatedRealm { +func (v NullableFederatedRealm) Get() *FederatedRealm { return v.value } -func (v *NullableFederationFederatedRealm) Set(val *FederationFederatedRealm) { +func (v *NullableFederatedRealm) Set(val *FederatedRealm) { v.value = val v.isSet = true } -func (v NullableFederationFederatedRealm) IsSet() bool { +func (v NullableFederatedRealm) IsSet() bool { return v.isSet } -func (v *NullableFederationFederatedRealm) Unset() { +func (v *NullableFederatedRealm) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationFederatedRealm(val *FederationFederatedRealm) *NullableFederationFederatedRealm { - return &NullableFederationFederatedRealm{value: val, isSet: true} +func NewNullableFederatedRealm(val *FederatedRealm) *NullableFederatedRealm { + return &NullableFederatedRealm{value: val, isSet: true} } -func (v NullableFederationFederatedRealm) MarshalJSON() ([]byte, error) { +func (v NullableFederatedRealm) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationFederatedRealm) UnmarshalJSON(src []byte) error { +func (v *NullableFederatedRealm) 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 deleted file mode 100644 index c4b805c..0000000 --- a/ipamfederation/model_federation_create_delegation_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index de7c125..0000000 --- a/ipamfederation/model_federation_create_federated_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index 1d13472..0000000 --- a/ipamfederation/model_federation_create_federated_realm_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index f4f203f..0000000 --- a/ipamfederation/model_federation_create_next_available_federated_block_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 2ca9b4b..0000000 --- a/ipamfederation/model_federation_create_next_available_overlapping_block_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 34c449c..0000000 --- a/ipamfederation/model_federation_create_next_available_reserved_block_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 3e19939..0000000 --- a/ipamfederation/model_federation_create_overlapping_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index c1809bf..0000000 --- a/ipamfederation/model_federation_create_reserved_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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_bulk_request.go b/ipamfederation/model_federation_delegation_bulk_request.go deleted file mode 100644 index 44bba5c..0000000 --- a/ipamfederation/model_federation_delegation_bulk_request.go +++ /dev/null @@ -1,191 +0,0 @@ -/* -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 deleted file mode 100644 index fbbda1d..0000000 --- a/ipamfederation/model_federation_delegation_bulk_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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_generate_config_bundle_response.go b/ipamfederation/model_federation_generate_config_bundle_response.go deleted file mode 100644 index 19a115d..0000000 --- a/ipamfederation/model_federation_generate_config_bundle_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 76acacc..0000000 --- a/ipamfederation/model_federation_get_next_available_delegation_request.go +++ /dev/null @@ -1,192 +0,0 @@ -/* -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 deleted file mode 100644 index 1cac959..0000000 --- a/ipamfederation/model_federation_get_next_available_delegation_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 5a4b0d8..0000000 --- a/ipamfederation/model_federation_health_check_config_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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_list_delegation_response.go b/ipamfederation/model_federation_list_delegation_response.go deleted file mode 100644 index d35e815..0000000 --- a/ipamfederation/model_federation_list_delegation_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index ec6f827..0000000 --- a/ipamfederation/model_federation_list_federated_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index dd6dafc..0000000 --- a/ipamfederation/model_federation_list_federated_realm_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index c37e910..0000000 --- a/ipamfederation/model_federation_list_next_available_federated_block_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 21a5d05..0000000 --- a/ipamfederation/model_federation_list_next_available_overlapping_block_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 9394d35..0000000 --- a/ipamfederation/model_federation_list_next_available_reserved_block_response.go +++ /dev/null @@ -1,153 +0,0 @@ -/* -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 deleted file mode 100644 index 4028eb3..0000000 --- a/ipamfederation/model_federation_list_overlapping_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index d80ff0c..0000000 --- a/ipamfederation/model_federation_list_reserved_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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_read_delegation_response.go b/ipamfederation/model_federation_read_delegation_response.go deleted file mode 100644 index 5eac3fd..0000000 --- a/ipamfederation/model_federation_read_delegation_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index ec935a3..0000000 --- a/ipamfederation/model_federation_read_federated_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index bc3d6ff..0000000 --- a/ipamfederation/model_federation_read_federated_realm_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index 99ad73f..0000000 --- a/ipamfederation/model_federation_read_overlapping_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index 28b5d13..0000000 --- a/ipamfederation/model_federation_read_reserved_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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_update_delegation_response.go b/ipamfederation/model_federation_update_delegation_response.go deleted file mode 100644 index b7fe022..0000000 --- a/ipamfederation/model_federation_update_delegation_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index 5acf2ed..0000000 --- a/ipamfederation/model_federation_update_federated_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index 54ff057..0000000 --- a/ipamfederation/model_federation_update_federated_realm_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index d240bda..0000000 --- a/ipamfederation/model_federation_update_overlapping_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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 deleted file mode 100644 index 28dd23b..0000000 --- a/ipamfederation/model_federation_update_reserved_block_response.go +++ /dev/null @@ -1,154 +0,0 @@ -/* -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_generate_config_bundle_response.go b/ipamfederation/model_generate_config_bundle_response.go new file mode 100644 index 0000000..fa5aa90 --- /dev/null +++ b/ipamfederation/model_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 GenerateConfigBundleResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GenerateConfigBundleResponse{} + +// GenerateConfigBundleResponse The response format to retrieve __ConfigBundle__ objects. +type GenerateConfigBundleResponse struct { + Config *ConfigObject `json:"config,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GenerateConfigBundleResponse GenerateConfigBundleResponse + +// NewGenerateConfigBundleResponse instantiates a new GenerateConfigBundleResponse 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 NewGenerateConfigBundleResponse() *GenerateConfigBundleResponse { + this := GenerateConfigBundleResponse{} + return &this +} + +// NewGenerateConfigBundleResponseWithDefaults instantiates a new GenerateConfigBundleResponse 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 NewGenerateConfigBundleResponseWithDefaults() *GenerateConfigBundleResponse { + this := GenerateConfigBundleResponse{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *GenerateConfigBundleResponse) GetConfig() ConfigObject { + if o == nil || IsNil(o.Config) { + var ret ConfigObject + 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 *GenerateConfigBundleResponse) GetConfigOk() (*ConfigObject, 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 *GenerateConfigBundleResponse) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given ConfigObject and assigns it to the Config field. +func (o *GenerateConfigBundleResponse) SetConfig(v ConfigObject) { + o.Config = &v +} + +func (o GenerateConfigBundleResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenerateConfigBundleResponse) 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 *GenerateConfigBundleResponse) UnmarshalJSON(data []byte) (err error) { + varGenerateConfigBundleResponse := _GenerateConfigBundleResponse{} + + err = json.Unmarshal(data, &varGenerateConfigBundleResponse) + + if err != nil { + return err + } + + *o = GenerateConfigBundleResponse(varGenerateConfigBundleResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "config") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGenerateConfigBundleResponse struct { + value *GenerateConfigBundleResponse + isSet bool +} + +func (v NullableGenerateConfigBundleResponse) Get() *GenerateConfigBundleResponse { + return v.value +} + +func (v *NullableGenerateConfigBundleResponse) Set(val *GenerateConfigBundleResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGenerateConfigBundleResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGenerateConfigBundleResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenerateConfigBundleResponse(val *GenerateConfigBundleResponse) *NullableGenerateConfigBundleResponse { + return &NullableGenerateConfigBundleResponse{value: val, isSet: true} +} + +func (v NullableGenerateConfigBundleResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenerateConfigBundleResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_get_next_available_delegation_request.go b/ipamfederation/model_get_next_available_delegation_request.go new file mode 100644 index 0000000..9f2836c --- /dev/null +++ b/ipamfederation/model_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 GetNextAvailableDelegationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetNextAvailableDelegationRequest{} + +// GetNextAvailableDelegationRequest struct for GetNextAvailableDelegationRequest +type GetNextAvailableDelegationRequest struct { + // The arguments which will be used as parameters while creating __Delegation__ object. + Arguments *NextAvailableDelegationArguments `json:"arguments,omitempty"` + // The properties, which will be used to fill the created __Delegation__ object. + Properties *NextAvailableDelegationProperties `json:"properties,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetNextAvailableDelegationRequest GetNextAvailableDelegationRequest + +// NewGetNextAvailableDelegationRequest instantiates a new GetNextAvailableDelegationRequest 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 NewGetNextAvailableDelegationRequest() *GetNextAvailableDelegationRequest { + this := GetNextAvailableDelegationRequest{} + return &this +} + +// NewGetNextAvailableDelegationRequestWithDefaults instantiates a new GetNextAvailableDelegationRequest 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 NewGetNextAvailableDelegationRequestWithDefaults() *GetNextAvailableDelegationRequest { + this := GetNextAvailableDelegationRequest{} + return &this +} + +// GetArguments returns the Arguments field value if set, zero value otherwise. +func (o *GetNextAvailableDelegationRequest) GetArguments() NextAvailableDelegationArguments { + if o == nil || IsNil(o.Arguments) { + var ret NextAvailableDelegationArguments + 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 *GetNextAvailableDelegationRequest) GetArgumentsOk() (*NextAvailableDelegationArguments, 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 *GetNextAvailableDelegationRequest) HasArguments() bool { + if o != nil && !IsNil(o.Arguments) { + return true + } + + return false +} + +// SetArguments gets a reference to the given NextAvailableDelegationArguments and assigns it to the Arguments field. +func (o *GetNextAvailableDelegationRequest) SetArguments(v NextAvailableDelegationArguments) { + o.Arguments = &v +} + +// GetProperties returns the Properties field value if set, zero value otherwise. +func (o *GetNextAvailableDelegationRequest) GetProperties() NextAvailableDelegationProperties { + if o == nil || IsNil(o.Properties) { + var ret NextAvailableDelegationProperties + 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 *GetNextAvailableDelegationRequest) GetPropertiesOk() (*NextAvailableDelegationProperties, 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 *GetNextAvailableDelegationRequest) HasProperties() bool { + if o != nil && !IsNil(o.Properties) { + return true + } + + return false +} + +// SetProperties gets a reference to the given NextAvailableDelegationProperties and assigns it to the Properties field. +func (o *GetNextAvailableDelegationRequest) SetProperties(v NextAvailableDelegationProperties) { + o.Properties = &v +} + +func (o GetNextAvailableDelegationRequest) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetNextAvailableDelegationRequest) 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 *GetNextAvailableDelegationRequest) UnmarshalJSON(data []byte) (err error) { + varGetNextAvailableDelegationRequest := _GetNextAvailableDelegationRequest{} + + err = json.Unmarshal(data, &varGetNextAvailableDelegationRequest) + + if err != nil { + return err + } + + *o = GetNextAvailableDelegationRequest(varGetNextAvailableDelegationRequest) + + 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 NullableGetNextAvailableDelegationRequest struct { + value *GetNextAvailableDelegationRequest + isSet bool +} + +func (v NullableGetNextAvailableDelegationRequest) Get() *GetNextAvailableDelegationRequest { + return v.value +} + +func (v *NullableGetNextAvailableDelegationRequest) Set(val *GetNextAvailableDelegationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableGetNextAvailableDelegationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableGetNextAvailableDelegationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetNextAvailableDelegationRequest(val *GetNextAvailableDelegationRequest) *NullableGetNextAvailableDelegationRequest { + return &NullableGetNextAvailableDelegationRequest{value: val, isSet: true} +} + +func (v NullableGetNextAvailableDelegationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetNextAvailableDelegationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_get_next_available_delegation_response.go b/ipamfederation/model_get_next_available_delegation_response.go new file mode 100644 index 0000000..538d90e --- /dev/null +++ b/ipamfederation/model_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 GetNextAvailableDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetNextAvailableDelegationResponse{} + +// GetNextAvailableDelegationResponse The response format to get next available __Delegation__ objects. +type GetNextAvailableDelegationResponse struct { + Results []Delegation `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _GetNextAvailableDelegationResponse GetNextAvailableDelegationResponse + +// NewGetNextAvailableDelegationResponse instantiates a new GetNextAvailableDelegationResponse 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 NewGetNextAvailableDelegationResponse() *GetNextAvailableDelegationResponse { + this := GetNextAvailableDelegationResponse{} + return &this +} + +// NewGetNextAvailableDelegationResponseWithDefaults instantiates a new GetNextAvailableDelegationResponse 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 NewGetNextAvailableDelegationResponseWithDefaults() *GetNextAvailableDelegationResponse { + this := GetNextAvailableDelegationResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *GetNextAvailableDelegationResponse) GetResults() []Delegation { + if o == nil || IsNil(o.Results) { + var ret []Delegation + 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 *GetNextAvailableDelegationResponse) GetResultsOk() ([]Delegation, 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 *GetNextAvailableDelegationResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []Delegation and assigns it to the Results field. +func (o *GetNextAvailableDelegationResponse) SetResults(v []Delegation) { + o.Results = v +} + +func (o GetNextAvailableDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetNextAvailableDelegationResponse) 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 *GetNextAvailableDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varGetNextAvailableDelegationResponse := _GetNextAvailableDelegationResponse{} + + err = json.Unmarshal(data, &varGetNextAvailableDelegationResponse) + + if err != nil { + return err + } + + *o = GetNextAvailableDelegationResponse(varGetNextAvailableDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGetNextAvailableDelegationResponse struct { + value *GetNextAvailableDelegationResponse + isSet bool +} + +func (v NullableGetNextAvailableDelegationResponse) Get() *GetNextAvailableDelegationResponse { + return v.value +} + +func (v *NullableGetNextAvailableDelegationResponse) Set(val *GetNextAvailableDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetNextAvailableDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetNextAvailableDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetNextAvailableDelegationResponse(val *GetNextAvailableDelegationResponse) *NullableGetNextAvailableDelegationResponse { + return &NullableGetNextAvailableDelegationResponse{value: val, isSet: true} +} + +func (v NullableGetNextAvailableDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetNextAvailableDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_health_check_config_response.go b/ipamfederation/model_health_check_config_response.go new file mode 100644 index 0000000..83d6d98 --- /dev/null +++ b/ipamfederation/model_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 HealthCheckConfigResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HealthCheckConfigResponse{} + +// HealthCheckConfigResponse struct for HealthCheckConfigResponse +type HealthCheckConfigResponse struct { + Message *string `json:"message,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _HealthCheckConfigResponse HealthCheckConfigResponse + +// NewHealthCheckConfigResponse instantiates a new HealthCheckConfigResponse 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 NewHealthCheckConfigResponse() *HealthCheckConfigResponse { + this := HealthCheckConfigResponse{} + return &this +} + +// NewHealthCheckConfigResponseWithDefaults instantiates a new HealthCheckConfigResponse 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 NewHealthCheckConfigResponseWithDefaults() *HealthCheckConfigResponse { + this := HealthCheckConfigResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *HealthCheckConfigResponse) 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 *HealthCheckConfigResponse) 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 *HealthCheckConfigResponse) 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 *HealthCheckConfigResponse) SetMessage(v string) { + o.Message = &v +} + +func (o HealthCheckConfigResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o HealthCheckConfigResponse) 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 *HealthCheckConfigResponse) UnmarshalJSON(data []byte) (err error) { + varHealthCheckConfigResponse := _HealthCheckConfigResponse{} + + err = json.Unmarshal(data, &varHealthCheckConfigResponse) + + if err != nil { + return err + } + + *o = HealthCheckConfigResponse(varHealthCheckConfigResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "message") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableHealthCheckConfigResponse struct { + value *HealthCheckConfigResponse + isSet bool +} + +func (v NullableHealthCheckConfigResponse) Get() *HealthCheckConfigResponse { + return v.value +} + +func (v *NullableHealthCheckConfigResponse) Set(val *HealthCheckConfigResponse) { + v.value = val + v.isSet = true +} + +func (v NullableHealthCheckConfigResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableHealthCheckConfigResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableHealthCheckConfigResponse(val *HealthCheckConfigResponse) *NullableHealthCheckConfigResponse { + return &NullableHealthCheckConfigResponse{value: val, isSet: true} +} + +func (v NullableHealthCheckConfigResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableHealthCheckConfigResponse) 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_health_config.go similarity index 66% rename from ipamfederation/model_federation_health_config.go rename to ipamfederation/model_health_config.go index 43da731..8b6eb88 100644 --- a/ipamfederation/model_federation_health_config.go +++ b/ipamfederation/model_health_config.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the FederationHealthConfig type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationHealthConfig{} +// checks if the HealthConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &HealthConfig{} -// FederationHealthConfig struct for FederationHealthConfig -type FederationHealthConfig struct { +// HealthConfig struct for HealthConfig +type HealthConfig struct { AppName *string `json:"appName,omitempty"` Message *string `json:"message,omitempty"` Ophid *string `json:"ophid,omitempty"` @@ -27,31 +27,31 @@ type FederationHealthConfig struct { AdditionalProperties map[string]interface{} } -type _FederationHealthConfig FederationHealthConfig +type _HealthConfig HealthConfig -// NewFederationHealthConfig instantiates a new FederationHealthConfig object +// NewHealthConfig instantiates a new HealthConfig 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{} +func NewHealthConfig() *HealthConfig { + this := HealthConfig{} var statusCode HealthConfigStatusCode = HEALTHCONFIGSTATUSCODE_SUCCESS this.StatusCode = &statusCode return &this } -// NewFederationHealthConfigWithDefaults instantiates a new FederationHealthConfig object +// NewHealthConfigWithDefaults instantiates a new HealthConfig 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{} +func NewHealthConfigWithDefaults() *HealthConfig { + this := HealthConfig{} 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 { +func (o *HealthConfig) GetAppName() string { if o == nil || IsNil(o.AppName) { var ret string return ret @@ -61,7 +61,7 @@ func (o *FederationHealthConfig) GetAppName() string { // 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) { +func (o *HealthConfig) GetAppNameOk() (*string, bool) { if o == nil || IsNil(o.AppName) { return nil, false } @@ -69,7 +69,7 @@ func (o *FederationHealthConfig) GetAppNameOk() (*string, bool) { } // HasAppName returns a boolean if a field has been set. -func (o *FederationHealthConfig) HasAppName() bool { +func (o *HealthConfig) HasAppName() bool { if o != nil && !IsNil(o.AppName) { return true } @@ -78,12 +78,12 @@ func (o *FederationHealthConfig) HasAppName() bool { } // SetAppName gets a reference to the given string and assigns it to the AppName field. -func (o *FederationHealthConfig) SetAppName(v string) { +func (o *HealthConfig) SetAppName(v string) { o.AppName = &v } // GetMessage returns the Message field value if set, zero value otherwise. -func (o *FederationHealthConfig) GetMessage() string { +func (o *HealthConfig) GetMessage() string { if o == nil || IsNil(o.Message) { var ret string return ret @@ -93,7 +93,7 @@ func (o *FederationHealthConfig) GetMessage() string { // 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) { +func (o *HealthConfig) GetMessageOk() (*string, bool) { if o == nil || IsNil(o.Message) { return nil, false } @@ -101,7 +101,7 @@ func (o *FederationHealthConfig) GetMessageOk() (*string, bool) { } // HasMessage returns a boolean if a field has been set. -func (o *FederationHealthConfig) HasMessage() bool { +func (o *HealthConfig) HasMessage() bool { if o != nil && !IsNil(o.Message) { return true } @@ -110,12 +110,12 @@ func (o *FederationHealthConfig) HasMessage() bool { } // SetMessage gets a reference to the given string and assigns it to the Message field. -func (o *FederationHealthConfig) SetMessage(v string) { +func (o *HealthConfig) SetMessage(v string) { o.Message = &v } // GetOphid returns the Ophid field value if set, zero value otherwise. -func (o *FederationHealthConfig) GetOphid() string { +func (o *HealthConfig) GetOphid() string { if o == nil || IsNil(o.Ophid) { var ret string return ret @@ -125,7 +125,7 @@ func (o *FederationHealthConfig) GetOphid() string { // 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) { +func (o *HealthConfig) GetOphidOk() (*string, bool) { if o == nil || IsNil(o.Ophid) { return nil, false } @@ -133,7 +133,7 @@ func (o *FederationHealthConfig) GetOphidOk() (*string, bool) { } // HasOphid returns a boolean if a field has been set. -func (o *FederationHealthConfig) HasOphid() bool { +func (o *HealthConfig) HasOphid() bool { if o != nil && !IsNil(o.Ophid) { return true } @@ -142,12 +142,12 @@ func (o *FederationHealthConfig) HasOphid() bool { } // SetOphid gets a reference to the given string and assigns it to the Ophid field. -func (o *FederationHealthConfig) SetOphid(v string) { +func (o *HealthConfig) SetOphid(v string) { o.Ophid = &v } // GetStatusCode returns the StatusCode field value if set, zero value otherwise. -func (o *FederationHealthConfig) GetStatusCode() HealthConfigStatusCode { +func (o *HealthConfig) GetStatusCode() HealthConfigStatusCode { if o == nil || IsNil(o.StatusCode) { var ret HealthConfigStatusCode return ret @@ -157,7 +157,7 @@ func (o *FederationHealthConfig) GetStatusCode() HealthConfigStatusCode { // 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) { +func (o *HealthConfig) GetStatusCodeOk() (*HealthConfigStatusCode, bool) { if o == nil || IsNil(o.StatusCode) { return nil, false } @@ -165,7 +165,7 @@ func (o *FederationHealthConfig) GetStatusCodeOk() (*HealthConfigStatusCode, boo } // HasStatusCode returns a boolean if a field has been set. -func (o *FederationHealthConfig) HasStatusCode() bool { +func (o *HealthConfig) HasStatusCode() bool { if o != nil && !IsNil(o.StatusCode) { return true } @@ -174,12 +174,12 @@ func (o *FederationHealthConfig) HasStatusCode() bool { } // SetStatusCode gets a reference to the given HealthConfigStatusCode and assigns it to the StatusCode field. -func (o *FederationHealthConfig) SetStatusCode(v HealthConfigStatusCode) { +func (o *HealthConfig) SetStatusCode(v HealthConfigStatusCode) { o.StatusCode = &v } // GetVersion returns the Version field value if set, zero value otherwise. -func (o *FederationHealthConfig) GetVersion() string { +func (o *HealthConfig) GetVersion() string { if o == nil || IsNil(o.Version) { var ret string return ret @@ -189,7 +189,7 @@ func (o *FederationHealthConfig) GetVersion() string { // 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) { +func (o *HealthConfig) GetVersionOk() (*string, bool) { if o == nil || IsNil(o.Version) { return nil, false } @@ -197,7 +197,7 @@ func (o *FederationHealthConfig) GetVersionOk() (*string, bool) { } // HasVersion returns a boolean if a field has been set. -func (o *FederationHealthConfig) HasVersion() bool { +func (o *HealthConfig) HasVersion() bool { if o != nil && !IsNil(o.Version) { return true } @@ -206,11 +206,11 @@ func (o *FederationHealthConfig) HasVersion() bool { } // SetVersion gets a reference to the given string and assigns it to the Version field. -func (o *FederationHealthConfig) SetVersion(v string) { +func (o *HealthConfig) SetVersion(v string) { o.Version = &v } -func (o FederationHealthConfig) MarshalJSON() ([]byte, error) { +func (o HealthConfig) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -218,7 +218,7 @@ func (o FederationHealthConfig) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationHealthConfig) ToMap() (map[string]interface{}, error) { +func (o HealthConfig) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.AppName) { toSerialize["appName"] = o.AppName @@ -243,16 +243,16 @@ func (o FederationHealthConfig) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationHealthConfig) UnmarshalJSON(data []byte) (err error) { - varFederationHealthConfig := _FederationHealthConfig{} +func (o *HealthConfig) UnmarshalJSON(data []byte) (err error) { + varHealthConfig := _HealthConfig{} - err = json.Unmarshal(data, &varFederationHealthConfig) + err = json.Unmarshal(data, &varHealthConfig) if err != nil { return err } - *o = FederationHealthConfig(varFederationHealthConfig) + *o = HealthConfig(varHealthConfig) additionalProperties := make(map[string]interface{}) @@ -268,38 +268,38 @@ func (o *FederationHealthConfig) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationHealthConfig struct { - value *FederationHealthConfig +type NullableHealthConfig struct { + value *HealthConfig isSet bool } -func (v NullableFederationHealthConfig) Get() *FederationHealthConfig { +func (v NullableHealthConfig) Get() *HealthConfig { return v.value } -func (v *NullableFederationHealthConfig) Set(val *FederationHealthConfig) { +func (v *NullableHealthConfig) Set(val *HealthConfig) { v.value = val v.isSet = true } -func (v NullableFederationHealthConfig) IsSet() bool { +func (v NullableHealthConfig) IsSet() bool { return v.isSet } -func (v *NullableFederationHealthConfig) Unset() { +func (v *NullableHealthConfig) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationHealthConfig(val *FederationHealthConfig) *NullableFederationHealthConfig { - return &NullableFederationHealthConfig{value: val, isSet: true} +func NewNullableHealthConfig(val *HealthConfig) *NullableHealthConfig { + return &NullableHealthConfig{value: val, isSet: true} } -func (v NullableFederationHealthConfig) MarshalJSON() ([]byte, error) { +func (v NullableHealthConfig) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationHealthConfig) UnmarshalJSON(src []byte) error { +func (v *NullableHealthConfig) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/ipamfederation/model_list_delegation_response.go b/ipamfederation/model_list_delegation_response.go new file mode 100644 index 0000000..cf5b830 --- /dev/null +++ b/ipamfederation/model_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 ListDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListDelegationResponse{} + +// ListDelegationResponse The response format to retrieve __Delegation__ objects. +type ListDelegationResponse struct { + // A list of Delegation objects. + Results []Delegation `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListDelegationResponse ListDelegationResponse + +// NewListDelegationResponse instantiates a new ListDelegationResponse 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 NewListDelegationResponse() *ListDelegationResponse { + this := ListDelegationResponse{} + return &this +} + +// NewListDelegationResponseWithDefaults instantiates a new ListDelegationResponse 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 NewListDelegationResponseWithDefaults() *ListDelegationResponse { + this := ListDelegationResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListDelegationResponse) GetResults() []Delegation { + if o == nil || IsNil(o.Results) { + var ret []Delegation + 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 *ListDelegationResponse) GetResultsOk() ([]Delegation, 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 *ListDelegationResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []Delegation and assigns it to the Results field. +func (o *ListDelegationResponse) SetResults(v []Delegation) { + o.Results = v +} + +func (o ListDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListDelegationResponse) 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 *ListDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varListDelegationResponse := _ListDelegationResponse{} + + err = json.Unmarshal(data, &varListDelegationResponse) + + if err != nil { + return err + } + + *o = ListDelegationResponse(varListDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListDelegationResponse struct { + value *ListDelegationResponse + isSet bool +} + +func (v NullableListDelegationResponse) Get() *ListDelegationResponse { + return v.value +} + +func (v *NullableListDelegationResponse) Set(val *ListDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListDelegationResponse(val *ListDelegationResponse) *NullableListDelegationResponse { + return &NullableListDelegationResponse{value: val, isSet: true} +} + +func (v NullableListDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_list_federated_block_response.go b/ipamfederation/model_list_federated_block_response.go new file mode 100644 index 0000000..ab44c83 --- /dev/null +++ b/ipamfederation/model_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 ListFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListFederatedBlockResponse{} + +// ListFederatedBlockResponse The response format to retrieve __FederatedBlock__ objects. +type ListFederatedBlockResponse struct { + // A list of FederatedBlock objects. + Results []FederatedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListFederatedBlockResponse ListFederatedBlockResponse + +// NewListFederatedBlockResponse instantiates a new ListFederatedBlockResponse 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 NewListFederatedBlockResponse() *ListFederatedBlockResponse { + this := ListFederatedBlockResponse{} + return &this +} + +// NewListFederatedBlockResponseWithDefaults instantiates a new ListFederatedBlockResponse 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 NewListFederatedBlockResponseWithDefaults() *ListFederatedBlockResponse { + this := ListFederatedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListFederatedBlockResponse) GetResults() []FederatedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederatedBlock + 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 *ListFederatedBlockResponse) GetResultsOk() ([]FederatedBlock, 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 *ListFederatedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederatedBlock and assigns it to the Results field. +func (o *ListFederatedBlockResponse) SetResults(v []FederatedBlock) { + o.Results = v +} + +func (o ListFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListFederatedBlockResponse) 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 *ListFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varListFederatedBlockResponse := _ListFederatedBlockResponse{} + + err = json.Unmarshal(data, &varListFederatedBlockResponse) + + if err != nil { + return err + } + + *o = ListFederatedBlockResponse(varListFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListFederatedBlockResponse struct { + value *ListFederatedBlockResponse + isSet bool +} + +func (v NullableListFederatedBlockResponse) Get() *ListFederatedBlockResponse { + return v.value +} + +func (v *NullableListFederatedBlockResponse) Set(val *ListFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListFederatedBlockResponse(val *ListFederatedBlockResponse) *NullableListFederatedBlockResponse { + return &NullableListFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableListFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_list_federated_realm_response.go b/ipamfederation/model_list_federated_realm_response.go new file mode 100644 index 0000000..b8c4b75 --- /dev/null +++ b/ipamfederation/model_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 ListFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListFederatedRealmResponse{} + +// ListFederatedRealmResponse The response format to retrieve __FederatedRealm__ objects. +type ListFederatedRealmResponse struct { + // The list of FederatedRealm objects. + Results []FederatedRealm `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListFederatedRealmResponse ListFederatedRealmResponse + +// NewListFederatedRealmResponse instantiates a new ListFederatedRealmResponse 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 NewListFederatedRealmResponse() *ListFederatedRealmResponse { + this := ListFederatedRealmResponse{} + return &this +} + +// NewListFederatedRealmResponseWithDefaults instantiates a new ListFederatedRealmResponse 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 NewListFederatedRealmResponseWithDefaults() *ListFederatedRealmResponse { + this := ListFederatedRealmResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListFederatedRealmResponse) GetResults() []FederatedRealm { + if o == nil || IsNil(o.Results) { + var ret []FederatedRealm + 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 *ListFederatedRealmResponse) GetResultsOk() ([]FederatedRealm, 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 *ListFederatedRealmResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederatedRealm and assigns it to the Results field. +func (o *ListFederatedRealmResponse) SetResults(v []FederatedRealm) { + o.Results = v +} + +func (o ListFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListFederatedRealmResponse) 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 *ListFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varListFederatedRealmResponse := _ListFederatedRealmResponse{} + + err = json.Unmarshal(data, &varListFederatedRealmResponse) + + if err != nil { + return err + } + + *o = ListFederatedRealmResponse(varListFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListFederatedRealmResponse struct { + value *ListFederatedRealmResponse + isSet bool +} + +func (v NullableListFederatedRealmResponse) Get() *ListFederatedRealmResponse { + return v.value +} + +func (v *NullableListFederatedRealmResponse) Set(val *ListFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListFederatedRealmResponse(val *ListFederatedRealmResponse) *NullableListFederatedRealmResponse { + return &NullableListFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableListFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_list_next_available_federated_block_response.go b/ipamfederation/model_list_next_available_federated_block_response.go new file mode 100644 index 0000000..bd5a767 --- /dev/null +++ b/ipamfederation/model_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 ListNextAvailableFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListNextAvailableFederatedBlockResponse{} + +// ListNextAvailableFederatedBlockResponse The response format to list next available __FederatedBlock__ objects. +type ListNextAvailableFederatedBlockResponse struct { + Results []FederatedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListNextAvailableFederatedBlockResponse ListNextAvailableFederatedBlockResponse + +// NewListNextAvailableFederatedBlockResponse instantiates a new ListNextAvailableFederatedBlockResponse 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 NewListNextAvailableFederatedBlockResponse() *ListNextAvailableFederatedBlockResponse { + this := ListNextAvailableFederatedBlockResponse{} + return &this +} + +// NewListNextAvailableFederatedBlockResponseWithDefaults instantiates a new ListNextAvailableFederatedBlockResponse 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 NewListNextAvailableFederatedBlockResponseWithDefaults() *ListNextAvailableFederatedBlockResponse { + this := ListNextAvailableFederatedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListNextAvailableFederatedBlockResponse) GetResults() []FederatedBlock { + if o == nil || IsNil(o.Results) { + var ret []FederatedBlock + 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 *ListNextAvailableFederatedBlockResponse) GetResultsOk() ([]FederatedBlock, 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 *ListNextAvailableFederatedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []FederatedBlock and assigns it to the Results field. +func (o *ListNextAvailableFederatedBlockResponse) SetResults(v []FederatedBlock) { + o.Results = v +} + +func (o ListNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListNextAvailableFederatedBlockResponse) 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 *ListNextAvailableFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varListNextAvailableFederatedBlockResponse := _ListNextAvailableFederatedBlockResponse{} + + err = json.Unmarshal(data, &varListNextAvailableFederatedBlockResponse) + + if err != nil { + return err + } + + *o = ListNextAvailableFederatedBlockResponse(varListNextAvailableFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListNextAvailableFederatedBlockResponse struct { + value *ListNextAvailableFederatedBlockResponse + isSet bool +} + +func (v NullableListNextAvailableFederatedBlockResponse) Get() *ListNextAvailableFederatedBlockResponse { + return v.value +} + +func (v *NullableListNextAvailableFederatedBlockResponse) Set(val *ListNextAvailableFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListNextAvailableFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListNextAvailableFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListNextAvailableFederatedBlockResponse(val *ListNextAvailableFederatedBlockResponse) *NullableListNextAvailableFederatedBlockResponse { + return &NullableListNextAvailableFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableListNextAvailableFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListNextAvailableFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_list_next_available_overlapping_block_response.go b/ipamfederation/model_list_next_available_overlapping_block_response.go new file mode 100644 index 0000000..3a782e6 --- /dev/null +++ b/ipamfederation/model_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 ListNextAvailableOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListNextAvailableOverlappingBlockResponse{} + +// ListNextAvailableOverlappingBlockResponse The response format to list next available __OverlappingBlock__ objects. +type ListNextAvailableOverlappingBlockResponse struct { + Results []OverlappingBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListNextAvailableOverlappingBlockResponse ListNextAvailableOverlappingBlockResponse + +// NewListNextAvailableOverlappingBlockResponse instantiates a new ListNextAvailableOverlappingBlockResponse 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 NewListNextAvailableOverlappingBlockResponse() *ListNextAvailableOverlappingBlockResponse { + this := ListNextAvailableOverlappingBlockResponse{} + return &this +} + +// NewListNextAvailableOverlappingBlockResponseWithDefaults instantiates a new ListNextAvailableOverlappingBlockResponse 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 NewListNextAvailableOverlappingBlockResponseWithDefaults() *ListNextAvailableOverlappingBlockResponse { + this := ListNextAvailableOverlappingBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListNextAvailableOverlappingBlockResponse) GetResults() []OverlappingBlock { + if o == nil || IsNil(o.Results) { + var ret []OverlappingBlock + 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 *ListNextAvailableOverlappingBlockResponse) GetResultsOk() ([]OverlappingBlock, 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 *ListNextAvailableOverlappingBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []OverlappingBlock and assigns it to the Results field. +func (o *ListNextAvailableOverlappingBlockResponse) SetResults(v []OverlappingBlock) { + o.Results = v +} + +func (o ListNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListNextAvailableOverlappingBlockResponse) 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 *ListNextAvailableOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varListNextAvailableOverlappingBlockResponse := _ListNextAvailableOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varListNextAvailableOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = ListNextAvailableOverlappingBlockResponse(varListNextAvailableOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListNextAvailableOverlappingBlockResponse struct { + value *ListNextAvailableOverlappingBlockResponse + isSet bool +} + +func (v NullableListNextAvailableOverlappingBlockResponse) Get() *ListNextAvailableOverlappingBlockResponse { + return v.value +} + +func (v *NullableListNextAvailableOverlappingBlockResponse) Set(val *ListNextAvailableOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListNextAvailableOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListNextAvailableOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListNextAvailableOverlappingBlockResponse(val *ListNextAvailableOverlappingBlockResponse) *NullableListNextAvailableOverlappingBlockResponse { + return &NullableListNextAvailableOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableListNextAvailableOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListNextAvailableOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_list_next_available_reserved_block_response.go b/ipamfederation/model_list_next_available_reserved_block_response.go new file mode 100644 index 0000000..5a124e6 --- /dev/null +++ b/ipamfederation/model_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 ListNextAvailableReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListNextAvailableReservedBlockResponse{} + +// ListNextAvailableReservedBlockResponse The response format to list next available __ReservedBlock__ objects. +type ListNextAvailableReservedBlockResponse struct { + Results []ReservedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListNextAvailableReservedBlockResponse ListNextAvailableReservedBlockResponse + +// NewListNextAvailableReservedBlockResponse instantiates a new ListNextAvailableReservedBlockResponse 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 NewListNextAvailableReservedBlockResponse() *ListNextAvailableReservedBlockResponse { + this := ListNextAvailableReservedBlockResponse{} + return &this +} + +// NewListNextAvailableReservedBlockResponseWithDefaults instantiates a new ListNextAvailableReservedBlockResponse 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 NewListNextAvailableReservedBlockResponseWithDefaults() *ListNextAvailableReservedBlockResponse { + this := ListNextAvailableReservedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListNextAvailableReservedBlockResponse) GetResults() []ReservedBlock { + if o == nil || IsNil(o.Results) { + var ret []ReservedBlock + 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 *ListNextAvailableReservedBlockResponse) GetResultsOk() ([]ReservedBlock, 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 *ListNextAvailableReservedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []ReservedBlock and assigns it to the Results field. +func (o *ListNextAvailableReservedBlockResponse) SetResults(v []ReservedBlock) { + o.Results = v +} + +func (o ListNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListNextAvailableReservedBlockResponse) 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 *ListNextAvailableReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varListNextAvailableReservedBlockResponse := _ListNextAvailableReservedBlockResponse{} + + err = json.Unmarshal(data, &varListNextAvailableReservedBlockResponse) + + if err != nil { + return err + } + + *o = ListNextAvailableReservedBlockResponse(varListNextAvailableReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListNextAvailableReservedBlockResponse struct { + value *ListNextAvailableReservedBlockResponse + isSet bool +} + +func (v NullableListNextAvailableReservedBlockResponse) Get() *ListNextAvailableReservedBlockResponse { + return v.value +} + +func (v *NullableListNextAvailableReservedBlockResponse) Set(val *ListNextAvailableReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListNextAvailableReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListNextAvailableReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListNextAvailableReservedBlockResponse(val *ListNextAvailableReservedBlockResponse) *NullableListNextAvailableReservedBlockResponse { + return &NullableListNextAvailableReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableListNextAvailableReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListNextAvailableReservedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_list_overlapping_block_response.go b/ipamfederation/model_list_overlapping_block_response.go new file mode 100644 index 0000000..e3ac483 --- /dev/null +++ b/ipamfederation/model_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 ListOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListOverlappingBlockResponse{} + +// ListOverlappingBlockResponse The response format to retrieve __OverlappingBlock__ objects. +type ListOverlappingBlockResponse struct { + // A list of OverlappingBlock objects. + Results []OverlappingBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListOverlappingBlockResponse ListOverlappingBlockResponse + +// NewListOverlappingBlockResponse instantiates a new ListOverlappingBlockResponse 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 NewListOverlappingBlockResponse() *ListOverlappingBlockResponse { + this := ListOverlappingBlockResponse{} + return &this +} + +// NewListOverlappingBlockResponseWithDefaults instantiates a new ListOverlappingBlockResponse 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 NewListOverlappingBlockResponseWithDefaults() *ListOverlappingBlockResponse { + this := ListOverlappingBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListOverlappingBlockResponse) GetResults() []OverlappingBlock { + if o == nil || IsNil(o.Results) { + var ret []OverlappingBlock + 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 *ListOverlappingBlockResponse) GetResultsOk() ([]OverlappingBlock, 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 *ListOverlappingBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []OverlappingBlock and assigns it to the Results field. +func (o *ListOverlappingBlockResponse) SetResults(v []OverlappingBlock) { + o.Results = v +} + +func (o ListOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListOverlappingBlockResponse) 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 *ListOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varListOverlappingBlockResponse := _ListOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varListOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = ListOverlappingBlockResponse(varListOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListOverlappingBlockResponse struct { + value *ListOverlappingBlockResponse + isSet bool +} + +func (v NullableListOverlappingBlockResponse) Get() *ListOverlappingBlockResponse { + return v.value +} + +func (v *NullableListOverlappingBlockResponse) Set(val *ListOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListOverlappingBlockResponse(val *ListOverlappingBlockResponse) *NullableListOverlappingBlockResponse { + return &NullableListOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableListOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_list_reserved_block_response.go b/ipamfederation/model_list_reserved_block_response.go new file mode 100644 index 0000000..e9ca872 --- /dev/null +++ b/ipamfederation/model_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 ListReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListReservedBlockResponse{} + +// ListReservedBlockResponse The response format to retrieve __ReservedBlock__ objects. +type ListReservedBlockResponse struct { + // A list of ReservedBlock objects. + Results []ReservedBlock `json:"results,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ListReservedBlockResponse ListReservedBlockResponse + +// NewListReservedBlockResponse instantiates a new ListReservedBlockResponse 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 NewListReservedBlockResponse() *ListReservedBlockResponse { + this := ListReservedBlockResponse{} + return &this +} + +// NewListReservedBlockResponseWithDefaults instantiates a new ListReservedBlockResponse 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 NewListReservedBlockResponseWithDefaults() *ListReservedBlockResponse { + this := ListReservedBlockResponse{} + return &this +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *ListReservedBlockResponse) GetResults() []ReservedBlock { + if o == nil || IsNil(o.Results) { + var ret []ReservedBlock + 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 *ListReservedBlockResponse) GetResultsOk() ([]ReservedBlock, 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 *ListReservedBlockResponse) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given []ReservedBlock and assigns it to the Results field. +func (o *ListReservedBlockResponse) SetResults(v []ReservedBlock) { + o.Results = v +} + +func (o ListReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListReservedBlockResponse) 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 *ListReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varListReservedBlockResponse := _ListReservedBlockResponse{} + + err = json.Unmarshal(data, &varListReservedBlockResponse) + + if err != nil { + return err + } + + *o = ListReservedBlockResponse(varListReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListReservedBlockResponse struct { + value *ListReservedBlockResponse + isSet bool +} + +func (v NullableListReservedBlockResponse) Get() *ListReservedBlockResponse { + return v.value +} + +func (v *NullableListReservedBlockResponse) Set(val *ListReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListReservedBlockResponse(val *ListReservedBlockResponse) *NullableListReservedBlockResponse { + return &NullableListReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableListReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListReservedBlockResponse) 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_next_available_block_request.go similarity index 62% rename from ipamfederation/model_federation_next_available_block_request.go rename to ipamfederation/model_next_available_block_request.go index 76da3f4..77e7564 100644 --- a/ipamfederation/model_federation_next_available_block_request.go +++ b/ipamfederation/model_next_available_block_request.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the FederationNextAvailableBlockRequest type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationNextAvailableBlockRequest{} +// checks if the NextAvailableBlockRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NextAvailableBlockRequest{} -// FederationNextAvailableBlockRequest struct for FederationNextAvailableBlockRequest -type FederationNextAvailableBlockRequest struct { +// NextAvailableBlockRequest struct for NextAvailableBlockRequest +type NextAvailableBlockRequest 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. @@ -34,27 +34,27 @@ type FederationNextAvailableBlockRequest struct { AdditionalProperties map[string]interface{} } -type _FederationNextAvailableBlockRequest FederationNextAvailableBlockRequest +type _NextAvailableBlockRequest NextAvailableBlockRequest -// NewFederationNextAvailableBlockRequest instantiates a new FederationNextAvailableBlockRequest object +// NewNextAvailableBlockRequest instantiates a new NextAvailableBlockRequest 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{} +func NewNextAvailableBlockRequest() *NextAvailableBlockRequest { + this := NextAvailableBlockRequest{} return &this } -// NewFederationNextAvailableBlockRequestWithDefaults instantiates a new FederationNextAvailableBlockRequest object +// NewNextAvailableBlockRequestWithDefaults instantiates a new NextAvailableBlockRequest 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{} +func NewNextAvailableBlockRequestWithDefaults() *NextAvailableBlockRequest { + this := NextAvailableBlockRequest{} return &this } // GetCidr returns the Cidr field value if set, zero value otherwise. -func (o *FederationNextAvailableBlockRequest) GetCidr() int64 { +func (o *NextAvailableBlockRequest) GetCidr() int64 { if o == nil || IsNil(o.Cidr) { var ret int64 return ret @@ -64,7 +64,7 @@ func (o *FederationNextAvailableBlockRequest) GetCidr() int64 { // 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) { +func (o *NextAvailableBlockRequest) GetCidrOk() (*int64, bool) { if o == nil || IsNil(o.Cidr) { return nil, false } @@ -72,7 +72,7 @@ func (o *FederationNextAvailableBlockRequest) GetCidrOk() (*int64, bool) { } // HasCidr returns a boolean if a field has been set. -func (o *FederationNextAvailableBlockRequest) HasCidr() bool { +func (o *NextAvailableBlockRequest) HasCidr() bool { if o != nil && !IsNil(o.Cidr) { return true } @@ -81,12 +81,12 @@ func (o *FederationNextAvailableBlockRequest) HasCidr() bool { } // SetCidr gets a reference to the given int64 and assigns it to the Cidr field. -func (o *FederationNextAvailableBlockRequest) SetCidr(v int64) { +func (o *NextAvailableBlockRequest) SetCidr(v int64) { o.Cidr = &v } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *FederationNextAvailableBlockRequest) GetComment() string { +func (o *NextAvailableBlockRequest) GetComment() string { if o == nil || IsNil(o.Comment) { var ret string return ret @@ -96,7 +96,7 @@ func (o *FederationNextAvailableBlockRequest) GetComment() string { // 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) { +func (o *NextAvailableBlockRequest) GetCommentOk() (*string, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -104,7 +104,7 @@ func (o *FederationNextAvailableBlockRequest) GetCommentOk() (*string, bool) { } // HasComment returns a boolean if a field has been set. -func (o *FederationNextAvailableBlockRequest) HasComment() bool { +func (o *NextAvailableBlockRequest) HasComment() bool { if o != nil && !IsNil(o.Comment) { return true } @@ -113,12 +113,12 @@ func (o *FederationNextAvailableBlockRequest) HasComment() bool { } // SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *FederationNextAvailableBlockRequest) SetComment(v string) { +func (o *NextAvailableBlockRequest) SetComment(v string) { o.Comment = &v } // GetCount returns the Count field value if set, zero value otherwise. -func (o *FederationNextAvailableBlockRequest) GetCount() int64 { +func (o *NextAvailableBlockRequest) GetCount() int64 { if o == nil || IsNil(o.Count) { var ret int64 return ret @@ -128,7 +128,7 @@ func (o *FederationNextAvailableBlockRequest) GetCount() int64 { // 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) { +func (o *NextAvailableBlockRequest) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -136,7 +136,7 @@ func (o *FederationNextAvailableBlockRequest) GetCountOk() (*int64, bool) { } // HasCount returns a boolean if a field has been set. -func (o *FederationNextAvailableBlockRequest) HasCount() bool { +func (o *NextAvailableBlockRequest) HasCount() bool { if o != nil && !IsNil(o.Count) { return true } @@ -145,12 +145,12 @@ func (o *FederationNextAvailableBlockRequest) HasCount() bool { } // SetCount gets a reference to the given int64 and assigns it to the Count field. -func (o *FederationNextAvailableBlockRequest) SetCount(v int64) { +func (o *NextAvailableBlockRequest) SetCount(v int64) { o.Count = &v } // GetId returns the Id field value if set, zero value otherwise. -func (o *FederationNextAvailableBlockRequest) GetId() string { +func (o *NextAvailableBlockRequest) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -160,7 +160,7 @@ func (o *FederationNextAvailableBlockRequest) GetId() string { // 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) { +func (o *NextAvailableBlockRequest) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -168,7 +168,7 @@ func (o *FederationNextAvailableBlockRequest) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *FederationNextAvailableBlockRequest) HasId() bool { +func (o *NextAvailableBlockRequest) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -177,12 +177,12 @@ func (o *FederationNextAvailableBlockRequest) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *FederationNextAvailableBlockRequest) SetId(v string) { +func (o *NextAvailableBlockRequest) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *FederationNextAvailableBlockRequest) GetName() string { +func (o *NextAvailableBlockRequest) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -192,7 +192,7 @@ func (o *FederationNextAvailableBlockRequest) GetName() string { // 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) { +func (o *NextAvailableBlockRequest) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -200,7 +200,7 @@ func (o *FederationNextAvailableBlockRequest) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *FederationNextAvailableBlockRequest) HasName() bool { +func (o *NextAvailableBlockRequest) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -209,12 +209,12 @@ func (o *FederationNextAvailableBlockRequest) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *FederationNextAvailableBlockRequest) SetName(v string) { +func (o *NextAvailableBlockRequest) SetName(v string) { o.Name = &v } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *FederationNextAvailableBlockRequest) GetTags() map[string]interface{} { +func (o *NextAvailableBlockRequest) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { var ret map[string]interface{} return ret @@ -224,7 +224,7 @@ func (o *FederationNextAvailableBlockRequest) GetTags() map[string]interface{} { // 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) { +func (o *NextAvailableBlockRequest) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { return map[string]interface{}{}, false } @@ -232,7 +232,7 @@ func (o *FederationNextAvailableBlockRequest) GetTagsOk() (map[string]interface{ } // HasTags returns a boolean if a field has been set. -func (o *FederationNextAvailableBlockRequest) HasTags() bool { +func (o *NextAvailableBlockRequest) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -241,11 +241,11 @@ func (o *FederationNextAvailableBlockRequest) HasTags() bool { } // 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{}) { +func (o *NextAvailableBlockRequest) SetTags(v map[string]interface{}) { o.Tags = v } -func (o FederationNextAvailableBlockRequest) MarshalJSON() ([]byte, error) { +func (o NextAvailableBlockRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -253,7 +253,7 @@ func (o FederationNextAvailableBlockRequest) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationNextAvailableBlockRequest) ToMap() (map[string]interface{}, error) { +func (o NextAvailableBlockRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Cidr) { toSerialize["cidr"] = o.Cidr @@ -281,16 +281,16 @@ func (o FederationNextAvailableBlockRequest) ToMap() (map[string]interface{}, er return toSerialize, nil } -func (o *FederationNextAvailableBlockRequest) UnmarshalJSON(data []byte) (err error) { - varFederationNextAvailableBlockRequest := _FederationNextAvailableBlockRequest{} +func (o *NextAvailableBlockRequest) UnmarshalJSON(data []byte) (err error) { + varNextAvailableBlockRequest := _NextAvailableBlockRequest{} - err = json.Unmarshal(data, &varFederationNextAvailableBlockRequest) + err = json.Unmarshal(data, &varNextAvailableBlockRequest) if err != nil { return err } - *o = FederationNextAvailableBlockRequest(varFederationNextAvailableBlockRequest) + *o = NextAvailableBlockRequest(varNextAvailableBlockRequest) additionalProperties := make(map[string]interface{}) @@ -307,38 +307,38 @@ func (o *FederationNextAvailableBlockRequest) UnmarshalJSON(data []byte) (err er return err } -type NullableFederationNextAvailableBlockRequest struct { - value *FederationNextAvailableBlockRequest +type NullableNextAvailableBlockRequest struct { + value *NextAvailableBlockRequest isSet bool } -func (v NullableFederationNextAvailableBlockRequest) Get() *FederationNextAvailableBlockRequest { +func (v NullableNextAvailableBlockRequest) Get() *NextAvailableBlockRequest { return v.value } -func (v *NullableFederationNextAvailableBlockRequest) Set(val *FederationNextAvailableBlockRequest) { +func (v *NullableNextAvailableBlockRequest) Set(val *NextAvailableBlockRequest) { v.value = val v.isSet = true } -func (v NullableFederationNextAvailableBlockRequest) IsSet() bool { +func (v NullableNextAvailableBlockRequest) IsSet() bool { return v.isSet } -func (v *NullableFederationNextAvailableBlockRequest) Unset() { +func (v *NullableNextAvailableBlockRequest) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationNextAvailableBlockRequest(val *FederationNextAvailableBlockRequest) *NullableFederationNextAvailableBlockRequest { - return &NullableFederationNextAvailableBlockRequest{value: val, isSet: true} +func NewNullableNextAvailableBlockRequest(val *NextAvailableBlockRequest) *NullableNextAvailableBlockRequest { + return &NullableNextAvailableBlockRequest{value: val, isSet: true} } -func (v NullableFederationNextAvailableBlockRequest) MarshalJSON() ([]byte, error) { +func (v NullableNextAvailableBlockRequest) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationNextAvailableBlockRequest) UnmarshalJSON(src []byte) error { +func (v *NullableNextAvailableBlockRequest) 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_next_available_delegation_arguments.go similarity index 59% rename from ipamfederation/model_federation_next_available_delegation_arguments.go rename to ipamfederation/model_next_available_delegation_arguments.go index cba1173..9f5eebc 100644 --- a/ipamfederation/model_federation_next_available_delegation_arguments.go +++ b/ipamfederation/model_next_available_delegation_arguments.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the FederationNextAvailableDelegationArguments type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationNextAvailableDelegationArguments{} +// checks if the NextAvailableDelegationArguments type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NextAvailableDelegationArguments{} -// FederationNextAvailableDelegationArguments struct for FederationNextAvailableDelegationArguments -type FederationNextAvailableDelegationArguments struct { +// NextAvailableDelegationArguments struct for NextAvailableDelegationArguments +type NextAvailableDelegationArguments 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. @@ -32,27 +32,27 @@ type FederationNextAvailableDelegationArguments struct { AdditionalProperties map[string]interface{} } -type _FederationNextAvailableDelegationArguments FederationNextAvailableDelegationArguments +type _NextAvailableDelegationArguments NextAvailableDelegationArguments -// NewFederationNextAvailableDelegationArguments instantiates a new FederationNextAvailableDelegationArguments object +// NewNextAvailableDelegationArguments instantiates a new NextAvailableDelegationArguments 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{} +func NewNextAvailableDelegationArguments() *NextAvailableDelegationArguments { + this := NextAvailableDelegationArguments{} return &this } -// NewFederationNextAvailableDelegationArgumentsWithDefaults instantiates a new FederationNextAvailableDelegationArguments object +// NewNextAvailableDelegationArgumentsWithDefaults instantiates a new NextAvailableDelegationArguments 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{} +func NewNextAvailableDelegationArgumentsWithDefaults() *NextAvailableDelegationArguments { + this := NextAvailableDelegationArguments{} return &this } // GetCidr returns the Cidr field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationArguments) GetCidr() int64 { +func (o *NextAvailableDelegationArguments) GetCidr() int64 { if o == nil || IsNil(o.Cidr) { var ret int64 return ret @@ -62,7 +62,7 @@ func (o *FederationNextAvailableDelegationArguments) GetCidr() int64 { // 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) { +func (o *NextAvailableDelegationArguments) GetCidrOk() (*int64, bool) { if o == nil || IsNil(o.Cidr) { return nil, false } @@ -70,7 +70,7 @@ func (o *FederationNextAvailableDelegationArguments) GetCidrOk() (*int64, bool) } // HasCidr returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationArguments) HasCidr() bool { +func (o *NextAvailableDelegationArguments) HasCidr() bool { if o != nil && !IsNil(o.Cidr) { return true } @@ -79,12 +79,12 @@ func (o *FederationNextAvailableDelegationArguments) HasCidr() bool { } // SetCidr gets a reference to the given int64 and assigns it to the Cidr field. -func (o *FederationNextAvailableDelegationArguments) SetCidr(v int64) { +func (o *NextAvailableDelegationArguments) SetCidr(v int64) { o.Cidr = &v } // GetCount returns the Count field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationArguments) GetCount() int64 { +func (o *NextAvailableDelegationArguments) GetCount() int64 { if o == nil || IsNil(o.Count) { var ret int64 return ret @@ -94,7 +94,7 @@ func (o *FederationNextAvailableDelegationArguments) GetCount() int64 { // 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) { +func (o *NextAvailableDelegationArguments) GetCountOk() (*int64, bool) { if o == nil || IsNil(o.Count) { return nil, false } @@ -102,7 +102,7 @@ func (o *FederationNextAvailableDelegationArguments) GetCountOk() (*int64, bool) } // HasCount returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationArguments) HasCount() bool { +func (o *NextAvailableDelegationArguments) HasCount() bool { if o != nil && !IsNil(o.Count) { return true } @@ -111,12 +111,12 @@ func (o *FederationNextAvailableDelegationArguments) HasCount() bool { } // SetCount gets a reference to the given int64 and assigns it to the Count field. -func (o *FederationNextAvailableDelegationArguments) SetCount(v int64) { +func (o *NextAvailableDelegationArguments) SetCount(v int64) { o.Count = &v } // GetFederatedRealms returns the FederatedRealms field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationArguments) GetFederatedRealms() []string { +func (o *NextAvailableDelegationArguments) GetFederatedRealms() []string { if o == nil || IsNil(o.FederatedRealms) { var ret []string return ret @@ -126,7 +126,7 @@ func (o *FederationNextAvailableDelegationArguments) GetFederatedRealms() []stri // 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) { +func (o *NextAvailableDelegationArguments) GetFederatedRealmsOk() ([]string, bool) { if o == nil || IsNil(o.FederatedRealms) { return nil, false } @@ -134,7 +134,7 @@ func (o *FederationNextAvailableDelegationArguments) GetFederatedRealmsOk() ([]s } // HasFederatedRealms returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationArguments) HasFederatedRealms() bool { +func (o *NextAvailableDelegationArguments) HasFederatedRealms() bool { if o != nil && !IsNil(o.FederatedRealms) { return true } @@ -143,12 +143,12 @@ func (o *FederationNextAvailableDelegationArguments) HasFederatedRealms() bool { } // SetFederatedRealms gets a reference to the given []string and assigns it to the FederatedRealms field. -func (o *FederationNextAvailableDelegationArguments) SetFederatedRealms(v []string) { +func (o *NextAvailableDelegationArguments) SetFederatedRealms(v []string) { o.FederatedRealms = v } // GetPredicates returns the Predicates field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationArguments) GetPredicates() map[string]interface{} { +func (o *NextAvailableDelegationArguments) GetPredicates() map[string]interface{} { if o == nil || IsNil(o.Predicates) { var ret map[string]interface{} return ret @@ -158,7 +158,7 @@ func (o *FederationNextAvailableDelegationArguments) GetPredicates() map[string] // 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) { +func (o *NextAvailableDelegationArguments) GetPredicatesOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Predicates) { return map[string]interface{}{}, false } @@ -166,7 +166,7 @@ func (o *FederationNextAvailableDelegationArguments) GetPredicatesOk() (map[stri } // HasPredicates returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationArguments) HasPredicates() bool { +func (o *NextAvailableDelegationArguments) HasPredicates() bool { if o != nil && !IsNil(o.Predicates) { return true } @@ -175,12 +175,12 @@ func (o *FederationNextAvailableDelegationArguments) HasPredicates() bool { } // 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{}) { +func (o *NextAvailableDelegationArguments) SetPredicates(v map[string]interface{}) { o.Predicates = v } // GetReadOnly returns the ReadOnly field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationArguments) GetReadOnly() bool { +func (o *NextAvailableDelegationArguments) GetReadOnly() bool { if o == nil || IsNil(o.ReadOnly) { var ret bool return ret @@ -190,7 +190,7 @@ func (o *FederationNextAvailableDelegationArguments) GetReadOnly() bool { // 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) { +func (o *NextAvailableDelegationArguments) GetReadOnlyOk() (*bool, bool) { if o == nil || IsNil(o.ReadOnly) { return nil, false } @@ -198,7 +198,7 @@ func (o *FederationNextAvailableDelegationArguments) GetReadOnlyOk() (*bool, boo } // HasReadOnly returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationArguments) HasReadOnly() bool { +func (o *NextAvailableDelegationArguments) HasReadOnly() bool { if o != nil && !IsNil(o.ReadOnly) { return true } @@ -207,11 +207,11 @@ func (o *FederationNextAvailableDelegationArguments) HasReadOnly() bool { } // SetReadOnly gets a reference to the given bool and assigns it to the ReadOnly field. -func (o *FederationNextAvailableDelegationArguments) SetReadOnly(v bool) { +func (o *NextAvailableDelegationArguments) SetReadOnly(v bool) { o.ReadOnly = &v } -func (o FederationNextAvailableDelegationArguments) MarshalJSON() ([]byte, error) { +func (o NextAvailableDelegationArguments) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -219,7 +219,7 @@ func (o FederationNextAvailableDelegationArguments) MarshalJSON() ([]byte, error return json.Marshal(toSerialize) } -func (o FederationNextAvailableDelegationArguments) ToMap() (map[string]interface{}, error) { +func (o NextAvailableDelegationArguments) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Cidr) { toSerialize["cidr"] = o.Cidr @@ -244,16 +244,16 @@ func (o FederationNextAvailableDelegationArguments) ToMap() (map[string]interfac return toSerialize, nil } -func (o *FederationNextAvailableDelegationArguments) UnmarshalJSON(data []byte) (err error) { - varFederationNextAvailableDelegationArguments := _FederationNextAvailableDelegationArguments{} +func (o *NextAvailableDelegationArguments) UnmarshalJSON(data []byte) (err error) { + varNextAvailableDelegationArguments := _NextAvailableDelegationArguments{} - err = json.Unmarshal(data, &varFederationNextAvailableDelegationArguments) + err = json.Unmarshal(data, &varNextAvailableDelegationArguments) if err != nil { return err } - *o = FederationNextAvailableDelegationArguments(varFederationNextAvailableDelegationArguments) + *o = NextAvailableDelegationArguments(varNextAvailableDelegationArguments) additionalProperties := make(map[string]interface{}) @@ -269,38 +269,38 @@ func (o *FederationNextAvailableDelegationArguments) UnmarshalJSON(data []byte) return err } -type NullableFederationNextAvailableDelegationArguments struct { - value *FederationNextAvailableDelegationArguments +type NullableNextAvailableDelegationArguments struct { + value *NextAvailableDelegationArguments isSet bool } -func (v NullableFederationNextAvailableDelegationArguments) Get() *FederationNextAvailableDelegationArguments { +func (v NullableNextAvailableDelegationArguments) Get() *NextAvailableDelegationArguments { return v.value } -func (v *NullableFederationNextAvailableDelegationArguments) Set(val *FederationNextAvailableDelegationArguments) { +func (v *NullableNextAvailableDelegationArguments) Set(val *NextAvailableDelegationArguments) { v.value = val v.isSet = true } -func (v NullableFederationNextAvailableDelegationArguments) IsSet() bool { +func (v NullableNextAvailableDelegationArguments) IsSet() bool { return v.isSet } -func (v *NullableFederationNextAvailableDelegationArguments) Unset() { +func (v *NullableNextAvailableDelegationArguments) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationNextAvailableDelegationArguments(val *FederationNextAvailableDelegationArguments) *NullableFederationNextAvailableDelegationArguments { - return &NullableFederationNextAvailableDelegationArguments{value: val, isSet: true} +func NewNullableNextAvailableDelegationArguments(val *NextAvailableDelegationArguments) *NullableNextAvailableDelegationArguments { + return &NullableNextAvailableDelegationArguments{value: val, isSet: true} } -func (v NullableFederationNextAvailableDelegationArguments) MarshalJSON() ([]byte, error) { +func (v NullableNextAvailableDelegationArguments) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationNextAvailableDelegationArguments) UnmarshalJSON(src []byte) error { +func (v *NullableNextAvailableDelegationArguments) 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_next_available_delegation_properties.go similarity index 54% rename from ipamfederation/model_federation_next_available_delegation_properties.go rename to ipamfederation/model_next_available_delegation_properties.go index ae8704c..3b4bf55 100644 --- a/ipamfederation/model_federation_next_available_delegation_properties.go +++ b/ipamfederation/model_next_available_delegation_properties.go @@ -14,11 +14,11 @@ import ( "encoding/json" ) -// checks if the FederationNextAvailableDelegationProperties type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationNextAvailableDelegationProperties{} +// checks if the NextAvailableDelegationProperties type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NextAvailableDelegationProperties{} -// FederationNextAvailableDelegationProperties struct for FederationNextAvailableDelegationProperties -type FederationNextAvailableDelegationProperties struct { +// NextAvailableDelegationProperties struct for NextAvailableDelegationProperties +type NextAvailableDelegationProperties 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. @@ -28,27 +28,27 @@ type FederationNextAvailableDelegationProperties struct { AdditionalProperties map[string]interface{} } -type _FederationNextAvailableDelegationProperties FederationNextAvailableDelegationProperties +type _NextAvailableDelegationProperties NextAvailableDelegationProperties -// NewFederationNextAvailableDelegationProperties instantiates a new FederationNextAvailableDelegationProperties object +// NewNextAvailableDelegationProperties instantiates a new NextAvailableDelegationProperties 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{} +func NewNextAvailableDelegationProperties() *NextAvailableDelegationProperties { + this := NextAvailableDelegationProperties{} return &this } -// NewFederationNextAvailableDelegationPropertiesWithDefaults instantiates a new FederationNextAvailableDelegationProperties object +// NewNextAvailableDelegationPropertiesWithDefaults instantiates a new NextAvailableDelegationProperties 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{} +func NewNextAvailableDelegationPropertiesWithDefaults() *NextAvailableDelegationProperties { + this := NextAvailableDelegationProperties{} return &this } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationProperties) GetComment() string { +func (o *NextAvailableDelegationProperties) GetComment() string { if o == nil || IsNil(o.Comment) { var ret string return ret @@ -58,7 +58,7 @@ func (o *FederationNextAvailableDelegationProperties) GetComment() string { // 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) { +func (o *NextAvailableDelegationProperties) GetCommentOk() (*string, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -66,7 +66,7 @@ func (o *FederationNextAvailableDelegationProperties) GetCommentOk() (*string, b } // HasComment returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationProperties) HasComment() bool { +func (o *NextAvailableDelegationProperties) HasComment() bool { if o != nil && !IsNil(o.Comment) { return true } @@ -75,12 +75,12 @@ func (o *FederationNextAvailableDelegationProperties) HasComment() bool { } // SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *FederationNextAvailableDelegationProperties) SetComment(v string) { +func (o *NextAvailableDelegationProperties) SetComment(v string) { o.Comment = &v } // GetDelegatedTo returns the DelegatedTo field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationProperties) GetDelegatedTo() string { +func (o *NextAvailableDelegationProperties) GetDelegatedTo() string { if o == nil || IsNil(o.DelegatedTo) { var ret string return ret @@ -90,7 +90,7 @@ func (o *FederationNextAvailableDelegationProperties) GetDelegatedTo() string { // 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) { +func (o *NextAvailableDelegationProperties) GetDelegatedToOk() (*string, bool) { if o == nil || IsNil(o.DelegatedTo) { return nil, false } @@ -98,7 +98,7 @@ func (o *FederationNextAvailableDelegationProperties) GetDelegatedToOk() (*strin } // HasDelegatedTo returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationProperties) HasDelegatedTo() bool { +func (o *NextAvailableDelegationProperties) HasDelegatedTo() bool { if o != nil && !IsNil(o.DelegatedTo) { return true } @@ -107,12 +107,12 @@ func (o *FederationNextAvailableDelegationProperties) HasDelegatedTo() bool { } // SetDelegatedTo gets a reference to the given string and assigns it to the DelegatedTo field. -func (o *FederationNextAvailableDelegationProperties) SetDelegatedTo(v string) { +func (o *NextAvailableDelegationProperties) SetDelegatedTo(v string) { o.DelegatedTo = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *FederationNextAvailableDelegationProperties) GetName() string { +func (o *NextAvailableDelegationProperties) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -122,7 +122,7 @@ func (o *FederationNextAvailableDelegationProperties) GetName() string { // 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) { +func (o *NextAvailableDelegationProperties) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -130,7 +130,7 @@ func (o *FederationNextAvailableDelegationProperties) GetNameOk() (*string, bool } // HasName returns a boolean if a field has been set. -func (o *FederationNextAvailableDelegationProperties) HasName() bool { +func (o *NextAvailableDelegationProperties) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -139,11 +139,11 @@ func (o *FederationNextAvailableDelegationProperties) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *FederationNextAvailableDelegationProperties) SetName(v string) { +func (o *NextAvailableDelegationProperties) SetName(v string) { o.Name = &v } -func (o FederationNextAvailableDelegationProperties) MarshalJSON() ([]byte, error) { +func (o NextAvailableDelegationProperties) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -151,7 +151,7 @@ func (o FederationNextAvailableDelegationProperties) MarshalJSON() ([]byte, erro return json.Marshal(toSerialize) } -func (o FederationNextAvailableDelegationProperties) ToMap() (map[string]interface{}, error) { +func (o NextAvailableDelegationProperties) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if !IsNil(o.Comment) { toSerialize["comment"] = o.Comment @@ -170,16 +170,16 @@ func (o FederationNextAvailableDelegationProperties) ToMap() (map[string]interfa return toSerialize, nil } -func (o *FederationNextAvailableDelegationProperties) UnmarshalJSON(data []byte) (err error) { - varFederationNextAvailableDelegationProperties := _FederationNextAvailableDelegationProperties{} +func (o *NextAvailableDelegationProperties) UnmarshalJSON(data []byte) (err error) { + varNextAvailableDelegationProperties := _NextAvailableDelegationProperties{} - err = json.Unmarshal(data, &varFederationNextAvailableDelegationProperties) + err = json.Unmarshal(data, &varNextAvailableDelegationProperties) if err != nil { return err } - *o = FederationNextAvailableDelegationProperties(varFederationNextAvailableDelegationProperties) + *o = NextAvailableDelegationProperties(varNextAvailableDelegationProperties) additionalProperties := make(map[string]interface{}) @@ -193,38 +193,38 @@ func (o *FederationNextAvailableDelegationProperties) UnmarshalJSON(data []byte) return err } -type NullableFederationNextAvailableDelegationProperties struct { - value *FederationNextAvailableDelegationProperties +type NullableNextAvailableDelegationProperties struct { + value *NextAvailableDelegationProperties isSet bool } -func (v NullableFederationNextAvailableDelegationProperties) Get() *FederationNextAvailableDelegationProperties { +func (v NullableNextAvailableDelegationProperties) Get() *NextAvailableDelegationProperties { return v.value } -func (v *NullableFederationNextAvailableDelegationProperties) Set(val *FederationNextAvailableDelegationProperties) { +func (v *NullableNextAvailableDelegationProperties) Set(val *NextAvailableDelegationProperties) { v.value = val v.isSet = true } -func (v NullableFederationNextAvailableDelegationProperties) IsSet() bool { +func (v NullableNextAvailableDelegationProperties) IsSet() bool { return v.isSet } -func (v *NullableFederationNextAvailableDelegationProperties) Unset() { +func (v *NullableNextAvailableDelegationProperties) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationNextAvailableDelegationProperties(val *FederationNextAvailableDelegationProperties) *NullableFederationNextAvailableDelegationProperties { - return &NullableFederationNextAvailableDelegationProperties{value: val, isSet: true} +func NewNullableNextAvailableDelegationProperties(val *NextAvailableDelegationProperties) *NullableNextAvailableDelegationProperties { + return &NullableNextAvailableDelegationProperties{value: val, isSet: true} } -func (v NullableFederationNextAvailableDelegationProperties) MarshalJSON() ([]byte, error) { +func (v NullableNextAvailableDelegationProperties) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationNextAvailableDelegationProperties) UnmarshalJSON(src []byte) error { +func (v *NullableNextAvailableDelegationProperties) 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_overlapping_block.go similarity index 68% rename from ipamfederation/model_federation_overlapping_block.go rename to ipamfederation/model_overlapping_block.go index 899de43..785cf72 100644 --- a/ipamfederation/model_federation_overlapping_block.go +++ b/ipamfederation/model_overlapping_block.go @@ -16,11 +16,11 @@ import ( "time" ) -// checks if the FederationOverlappingBlock type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationOverlappingBlock{} +// checks if the OverlappingBlock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OverlappingBlock{} -// 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 { +// OverlappingBlock 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 OverlappingBlock 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. @@ -46,29 +46,29 @@ type FederationOverlappingBlock struct { AdditionalProperties map[string]interface{} } -type _FederationOverlappingBlock FederationOverlappingBlock +type _OverlappingBlock OverlappingBlock -// NewFederationOverlappingBlock instantiates a new FederationOverlappingBlock object +// NewOverlappingBlock instantiates a new OverlappingBlock 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{} +func NewOverlappingBlock(address string, federatedRealm string) *OverlappingBlock { + this := OverlappingBlock{} this.Address = address this.FederatedRealm = federatedRealm return &this } -// NewFederationOverlappingBlockWithDefaults instantiates a new FederationOverlappingBlock object +// NewOverlappingBlockWithDefaults instantiates a new OverlappingBlock 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{} +func NewOverlappingBlockWithDefaults() *OverlappingBlock { + this := OverlappingBlock{} return &this } // GetAddress returns the Address field value -func (o *FederationOverlappingBlock) GetAddress() string { +func (o *OverlappingBlock) GetAddress() string { if o == nil { var ret string return ret @@ -79,7 +79,7 @@ func (o *FederationOverlappingBlock) GetAddress() string { // 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) { +func (o *OverlappingBlock) GetAddressOk() (*string, bool) { if o == nil { return nil, false } @@ -87,12 +87,12 @@ func (o *FederationOverlappingBlock) GetAddressOk() (*string, bool) { } // SetAddress sets field value -func (o *FederationOverlappingBlock) SetAddress(v string) { +func (o *OverlappingBlock) SetAddress(v string) { o.Address = v } // GetCidr returns the Cidr field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetCidr() int64 { +func (o *OverlappingBlock) GetCidr() int64 { if o == nil || IsNil(o.Cidr) { var ret int64 return ret @@ -102,7 +102,7 @@ func (o *FederationOverlappingBlock) GetCidr() int64 { // 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) { +func (o *OverlappingBlock) GetCidrOk() (*int64, bool) { if o == nil || IsNil(o.Cidr) { return nil, false } @@ -110,7 +110,7 @@ func (o *FederationOverlappingBlock) GetCidrOk() (*int64, bool) { } // HasCidr returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasCidr() bool { +func (o *OverlappingBlock) HasCidr() bool { if o != nil && !IsNil(o.Cidr) { return true } @@ -119,12 +119,12 @@ func (o *FederationOverlappingBlock) HasCidr() bool { } // SetCidr gets a reference to the given int64 and assigns it to the Cidr field. -func (o *FederationOverlappingBlock) SetCidr(v int64) { +func (o *OverlappingBlock) SetCidr(v int64) { o.Cidr = &v } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetComment() string { +func (o *OverlappingBlock) GetComment() string { if o == nil || IsNil(o.Comment) { var ret string return ret @@ -134,7 +134,7 @@ func (o *FederationOverlappingBlock) GetComment() string { // 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) { +func (o *OverlappingBlock) GetCommentOk() (*string, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -142,7 +142,7 @@ func (o *FederationOverlappingBlock) GetCommentOk() (*string, bool) { } // HasComment returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasComment() bool { +func (o *OverlappingBlock) HasComment() bool { if o != nil && !IsNil(o.Comment) { return true } @@ -151,12 +151,12 @@ func (o *FederationOverlappingBlock) HasComment() bool { } // SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *FederationOverlappingBlock) SetComment(v string) { +func (o *OverlappingBlock) SetComment(v string) { o.Comment = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetCreatedAt() time.Time { +func (o *OverlappingBlock) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret @@ -166,7 +166,7 @@ func (o *FederationOverlappingBlock) GetCreatedAt() time.Time { // 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) { +func (o *OverlappingBlock) GetCreatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } @@ -174,7 +174,7 @@ func (o *FederationOverlappingBlock) GetCreatedAtOk() (*time.Time, bool) { } // HasCreatedAt returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasCreatedAt() bool { +func (o *OverlappingBlock) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } @@ -183,12 +183,12 @@ func (o *FederationOverlappingBlock) HasCreatedAt() bool { } // SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *FederationOverlappingBlock) SetCreatedAt(v time.Time) { +func (o *OverlappingBlock) SetCreatedAt(v time.Time) { o.CreatedAt = &v } // GetFederatedRealm returns the FederatedRealm field value -func (o *FederationOverlappingBlock) GetFederatedRealm() string { +func (o *OverlappingBlock) GetFederatedRealm() string { if o == nil { var ret string return ret @@ -199,7 +199,7 @@ func (o *FederationOverlappingBlock) GetFederatedRealm() string { // 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) { +func (o *OverlappingBlock) GetFederatedRealmOk() (*string, bool) { if o == nil { return nil, false } @@ -207,12 +207,12 @@ func (o *FederationOverlappingBlock) GetFederatedRealmOk() (*string, bool) { } // SetFederatedRealm sets field value -func (o *FederationOverlappingBlock) SetFederatedRealm(v string) { +func (o *OverlappingBlock) SetFederatedRealm(v string) { o.FederatedRealm = v } // GetId returns the Id field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetId() string { +func (o *OverlappingBlock) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -222,7 +222,7 @@ func (o *FederationOverlappingBlock) GetId() string { // 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) { +func (o *OverlappingBlock) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -230,7 +230,7 @@ func (o *FederationOverlappingBlock) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasId() bool { +func (o *OverlappingBlock) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -239,12 +239,12 @@ func (o *FederationOverlappingBlock) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *FederationOverlappingBlock) SetId(v string) { +func (o *OverlappingBlock) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetName() string { +func (o *OverlappingBlock) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -254,7 +254,7 @@ func (o *FederationOverlappingBlock) GetName() string { // 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) { +func (o *OverlappingBlock) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -262,7 +262,7 @@ func (o *FederationOverlappingBlock) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasName() bool { +func (o *OverlappingBlock) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -271,12 +271,12 @@ func (o *FederationOverlappingBlock) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *FederationOverlappingBlock) SetName(v string) { +func (o *OverlappingBlock) SetName(v string) { o.Name = &v } // GetParent returns the Parent field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetParent() string { +func (o *OverlappingBlock) GetParent() string { if o == nil || IsNil(o.Parent) { var ret string return ret @@ -286,7 +286,7 @@ func (o *FederationOverlappingBlock) GetParent() string { // 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) { +func (o *OverlappingBlock) GetParentOk() (*string, bool) { if o == nil || IsNil(o.Parent) { return nil, false } @@ -294,7 +294,7 @@ func (o *FederationOverlappingBlock) GetParentOk() (*string, bool) { } // HasParent returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasParent() bool { +func (o *OverlappingBlock) HasParent() bool { if o != nil && !IsNil(o.Parent) { return true } @@ -303,12 +303,12 @@ func (o *FederationOverlappingBlock) HasParent() bool { } // SetParent gets a reference to the given string and assigns it to the Parent field. -func (o *FederationOverlappingBlock) SetParent(v string) { +func (o *OverlappingBlock) SetParent(v string) { o.Parent = &v } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetProtocol() string { +func (o *OverlappingBlock) GetProtocol() string { if o == nil || IsNil(o.Protocol) { var ret string return ret @@ -318,7 +318,7 @@ func (o *FederationOverlappingBlock) GetProtocol() string { // 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) { +func (o *OverlappingBlock) GetProtocolOk() (*string, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -326,7 +326,7 @@ func (o *FederationOverlappingBlock) GetProtocolOk() (*string, bool) { } // HasProtocol returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasProtocol() bool { +func (o *OverlappingBlock) HasProtocol() bool { if o != nil && !IsNil(o.Protocol) { return true } @@ -335,12 +335,12 @@ func (o *FederationOverlappingBlock) HasProtocol() bool { } // SetProtocol gets a reference to the given string and assigns it to the Protocol field. -func (o *FederationOverlappingBlock) SetProtocol(v string) { +func (o *OverlappingBlock) SetProtocol(v string) { o.Protocol = &v } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *FederationOverlappingBlock) GetTags() map[string]interface{} { +func (o *OverlappingBlock) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { var ret map[string]interface{} return ret @@ -350,7 +350,7 @@ func (o *FederationOverlappingBlock) GetTags() map[string]interface{} { // 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) { +func (o *OverlappingBlock) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { return map[string]interface{}{}, false } @@ -358,7 +358,7 @@ func (o *FederationOverlappingBlock) GetTagsOk() (map[string]interface{}, bool) } // HasTags returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasTags() bool { +func (o *OverlappingBlock) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -367,12 +367,12 @@ func (o *FederationOverlappingBlock) HasTags() bool { } // 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{}) { +func (o *OverlappingBlock) 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 { +func (o *OverlappingBlock) GetUpdatedAt() time.Time { if o == nil || IsNil(o.UpdatedAt) { var ret time.Time return ret @@ -382,7 +382,7 @@ func (o *FederationOverlappingBlock) GetUpdatedAt() time.Time { // 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) { +func (o *OverlappingBlock) GetUpdatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.UpdatedAt) { return nil, false } @@ -390,7 +390,7 @@ func (o *FederationOverlappingBlock) GetUpdatedAtOk() (*time.Time, bool) { } // HasUpdatedAt returns a boolean if a field has been set. -func (o *FederationOverlappingBlock) HasUpdatedAt() bool { +func (o *OverlappingBlock) HasUpdatedAt() bool { if o != nil && !IsNil(o.UpdatedAt) { return true } @@ -399,11 +399,11 @@ func (o *FederationOverlappingBlock) HasUpdatedAt() bool { } // SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *FederationOverlappingBlock) SetUpdatedAt(v time.Time) { +func (o *OverlappingBlock) SetUpdatedAt(v time.Time) { o.UpdatedAt = &v } -func (o FederationOverlappingBlock) MarshalJSON() ([]byte, error) { +func (o OverlappingBlock) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -411,7 +411,7 @@ func (o FederationOverlappingBlock) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationOverlappingBlock) ToMap() (map[string]interface{}, error) { +func (o OverlappingBlock) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address if !IsNil(o.Cidr) { @@ -450,7 +450,7 @@ func (o FederationOverlappingBlock) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationOverlappingBlock) UnmarshalJSON(data []byte) (err error) { +func (o *OverlappingBlock) 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. @@ -473,15 +473,15 @@ func (o *FederationOverlappingBlock) UnmarshalJSON(data []byte) (err error) { } } - varFederationOverlappingBlock := _FederationOverlappingBlock{} + varOverlappingBlock := _OverlappingBlock{} - err = json.Unmarshal(data, &varFederationOverlappingBlock) + err = json.Unmarshal(data, &varOverlappingBlock) if err != nil { return err } - *o = FederationOverlappingBlock(varFederationOverlappingBlock) + *o = OverlappingBlock(varOverlappingBlock) additionalProperties := make(map[string]interface{}) @@ -503,38 +503,38 @@ func (o *FederationOverlappingBlock) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationOverlappingBlock struct { - value *FederationOverlappingBlock +type NullableOverlappingBlock struct { + value *OverlappingBlock isSet bool } -func (v NullableFederationOverlappingBlock) Get() *FederationOverlappingBlock { +func (v NullableOverlappingBlock) Get() *OverlappingBlock { return v.value } -func (v *NullableFederationOverlappingBlock) Set(val *FederationOverlappingBlock) { +func (v *NullableOverlappingBlock) Set(val *OverlappingBlock) { v.value = val v.isSet = true } -func (v NullableFederationOverlappingBlock) IsSet() bool { +func (v NullableOverlappingBlock) IsSet() bool { return v.isSet } -func (v *NullableFederationOverlappingBlock) Unset() { +func (v *NullableOverlappingBlock) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationOverlappingBlock(val *FederationOverlappingBlock) *NullableFederationOverlappingBlock { - return &NullableFederationOverlappingBlock{value: val, isSet: true} +func NewNullableOverlappingBlock(val *OverlappingBlock) *NullableOverlappingBlock { + return &NullableOverlappingBlock{value: val, isSet: true} } -func (v NullableFederationOverlappingBlock) MarshalJSON() ([]byte, error) { +func (v NullableOverlappingBlock) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationOverlappingBlock) UnmarshalJSON(src []byte) error { +func (v *NullableOverlappingBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/ipamfederation/model_read_delegation_response.go b/ipamfederation/model_read_delegation_response.go new file mode 100644 index 0000000..da293b7 --- /dev/null +++ b/ipamfederation/model_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 ReadDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReadDelegationResponse{} + +// ReadDelegationResponse The response format to retrieve the __Delegation__ object. +type ReadDelegationResponse struct { + // The Delegation object. + Result *Delegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ReadDelegationResponse ReadDelegationResponse + +// NewReadDelegationResponse instantiates a new ReadDelegationResponse 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 NewReadDelegationResponse() *ReadDelegationResponse { + this := ReadDelegationResponse{} + return &this +} + +// NewReadDelegationResponseWithDefaults instantiates a new ReadDelegationResponse 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 NewReadDelegationResponseWithDefaults() *ReadDelegationResponse { + this := ReadDelegationResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *ReadDelegationResponse) GetResult() Delegation { + if o == nil || IsNil(o.Result) { + var ret Delegation + 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 *ReadDelegationResponse) GetResultOk() (*Delegation, 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 *ReadDelegationResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given Delegation and assigns it to the Result field. +func (o *ReadDelegationResponse) SetResult(v Delegation) { + o.Result = &v +} + +func (o ReadDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReadDelegationResponse) 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 *ReadDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varReadDelegationResponse := _ReadDelegationResponse{} + + err = json.Unmarshal(data, &varReadDelegationResponse) + + if err != nil { + return err + } + + *o = ReadDelegationResponse(varReadDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableReadDelegationResponse struct { + value *ReadDelegationResponse + isSet bool +} + +func (v NullableReadDelegationResponse) Get() *ReadDelegationResponse { + return v.value +} + +func (v *NullableReadDelegationResponse) Set(val *ReadDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReadDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReadDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadDelegationResponse(val *ReadDelegationResponse) *NullableReadDelegationResponse { + return &NullableReadDelegationResponse{value: val, isSet: true} +} + +func (v NullableReadDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_read_federated_block_response.go b/ipamfederation/model_read_federated_block_response.go new file mode 100644 index 0000000..9791812 --- /dev/null +++ b/ipamfederation/model_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 ReadFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReadFederatedBlockResponse{} + +// ReadFederatedBlockResponse The response format to retrieve the __FederatedBlock__ object. +type ReadFederatedBlockResponse struct { + // The FederatedBlock object. + Result *FederatedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ReadFederatedBlockResponse ReadFederatedBlockResponse + +// NewReadFederatedBlockResponse instantiates a new ReadFederatedBlockResponse 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 NewReadFederatedBlockResponse() *ReadFederatedBlockResponse { + this := ReadFederatedBlockResponse{} + return &this +} + +// NewReadFederatedBlockResponseWithDefaults instantiates a new ReadFederatedBlockResponse 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 NewReadFederatedBlockResponseWithDefaults() *ReadFederatedBlockResponse { + this := ReadFederatedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *ReadFederatedBlockResponse) GetResult() FederatedBlock { + if o == nil || IsNil(o.Result) { + var ret FederatedBlock + 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 *ReadFederatedBlockResponse) GetResultOk() (*FederatedBlock, 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 *ReadFederatedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederatedBlock and assigns it to the Result field. +func (o *ReadFederatedBlockResponse) SetResult(v FederatedBlock) { + o.Result = &v +} + +func (o ReadFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReadFederatedBlockResponse) 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 *ReadFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varReadFederatedBlockResponse := _ReadFederatedBlockResponse{} + + err = json.Unmarshal(data, &varReadFederatedBlockResponse) + + if err != nil { + return err + } + + *o = ReadFederatedBlockResponse(varReadFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableReadFederatedBlockResponse struct { + value *ReadFederatedBlockResponse + isSet bool +} + +func (v NullableReadFederatedBlockResponse) Get() *ReadFederatedBlockResponse { + return v.value +} + +func (v *NullableReadFederatedBlockResponse) Set(val *ReadFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReadFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReadFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadFederatedBlockResponse(val *ReadFederatedBlockResponse) *NullableReadFederatedBlockResponse { + return &NullableReadFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableReadFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_read_federated_realm_response.go b/ipamfederation/model_read_federated_realm_response.go new file mode 100644 index 0000000..7d3f181 --- /dev/null +++ b/ipamfederation/model_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 ReadFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReadFederatedRealmResponse{} + +// ReadFederatedRealmResponse The response format to retrieve the __FederatedRealm__ object. +type ReadFederatedRealmResponse struct { + // The FederatedRealm object. + Result *FederatedRealm `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ReadFederatedRealmResponse ReadFederatedRealmResponse + +// NewReadFederatedRealmResponse instantiates a new ReadFederatedRealmResponse 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 NewReadFederatedRealmResponse() *ReadFederatedRealmResponse { + this := ReadFederatedRealmResponse{} + return &this +} + +// NewReadFederatedRealmResponseWithDefaults instantiates a new ReadFederatedRealmResponse 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 NewReadFederatedRealmResponseWithDefaults() *ReadFederatedRealmResponse { + this := ReadFederatedRealmResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *ReadFederatedRealmResponse) GetResult() FederatedRealm { + if o == nil || IsNil(o.Result) { + var ret FederatedRealm + 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 *ReadFederatedRealmResponse) GetResultOk() (*FederatedRealm, 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 *ReadFederatedRealmResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederatedRealm and assigns it to the Result field. +func (o *ReadFederatedRealmResponse) SetResult(v FederatedRealm) { + o.Result = &v +} + +func (o ReadFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReadFederatedRealmResponse) 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 *ReadFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varReadFederatedRealmResponse := _ReadFederatedRealmResponse{} + + err = json.Unmarshal(data, &varReadFederatedRealmResponse) + + if err != nil { + return err + } + + *o = ReadFederatedRealmResponse(varReadFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableReadFederatedRealmResponse struct { + value *ReadFederatedRealmResponse + isSet bool +} + +func (v NullableReadFederatedRealmResponse) Get() *ReadFederatedRealmResponse { + return v.value +} + +func (v *NullableReadFederatedRealmResponse) Set(val *ReadFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReadFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReadFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadFederatedRealmResponse(val *ReadFederatedRealmResponse) *NullableReadFederatedRealmResponse { + return &NullableReadFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableReadFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_read_overlapping_block_response.go b/ipamfederation/model_read_overlapping_block_response.go new file mode 100644 index 0000000..f7af23e --- /dev/null +++ b/ipamfederation/model_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 ReadOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReadOverlappingBlockResponse{} + +// ReadOverlappingBlockResponse The response format to retrieve the __OverlappingBlock__ object. +type ReadOverlappingBlockResponse struct { + // The OverlappingBlock object. + Result *OverlappingBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ReadOverlappingBlockResponse ReadOverlappingBlockResponse + +// NewReadOverlappingBlockResponse instantiates a new ReadOverlappingBlockResponse 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 NewReadOverlappingBlockResponse() *ReadOverlappingBlockResponse { + this := ReadOverlappingBlockResponse{} + return &this +} + +// NewReadOverlappingBlockResponseWithDefaults instantiates a new ReadOverlappingBlockResponse 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 NewReadOverlappingBlockResponseWithDefaults() *ReadOverlappingBlockResponse { + this := ReadOverlappingBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *ReadOverlappingBlockResponse) GetResult() OverlappingBlock { + if o == nil || IsNil(o.Result) { + var ret OverlappingBlock + 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 *ReadOverlappingBlockResponse) GetResultOk() (*OverlappingBlock, 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 *ReadOverlappingBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given OverlappingBlock and assigns it to the Result field. +func (o *ReadOverlappingBlockResponse) SetResult(v OverlappingBlock) { + o.Result = &v +} + +func (o ReadOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReadOverlappingBlockResponse) 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 *ReadOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varReadOverlappingBlockResponse := _ReadOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varReadOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = ReadOverlappingBlockResponse(varReadOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableReadOverlappingBlockResponse struct { + value *ReadOverlappingBlockResponse + isSet bool +} + +func (v NullableReadOverlappingBlockResponse) Get() *ReadOverlappingBlockResponse { + return v.value +} + +func (v *NullableReadOverlappingBlockResponse) Set(val *ReadOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReadOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReadOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadOverlappingBlockResponse(val *ReadOverlappingBlockResponse) *NullableReadOverlappingBlockResponse { + return &NullableReadOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableReadOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_read_reserved_block_response.go b/ipamfederation/model_read_reserved_block_response.go new file mode 100644 index 0000000..f63dd37 --- /dev/null +++ b/ipamfederation/model_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 ReadReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReadReservedBlockResponse{} + +// ReadReservedBlockResponse The response format to retrieve the __ReservedBlock__ object. +type ReadReservedBlockResponse struct { + // The ReservedBlock object. + Result *ReservedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ReadReservedBlockResponse ReadReservedBlockResponse + +// NewReadReservedBlockResponse instantiates a new ReadReservedBlockResponse 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 NewReadReservedBlockResponse() *ReadReservedBlockResponse { + this := ReadReservedBlockResponse{} + return &this +} + +// NewReadReservedBlockResponseWithDefaults instantiates a new ReadReservedBlockResponse 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 NewReadReservedBlockResponseWithDefaults() *ReadReservedBlockResponse { + this := ReadReservedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *ReadReservedBlockResponse) GetResult() ReservedBlock { + if o == nil || IsNil(o.Result) { + var ret ReservedBlock + 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 *ReadReservedBlockResponse) GetResultOk() (*ReservedBlock, 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 *ReadReservedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given ReservedBlock and assigns it to the Result field. +func (o *ReadReservedBlockResponse) SetResult(v ReservedBlock) { + o.Result = &v +} + +func (o ReadReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ReadReservedBlockResponse) 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 *ReadReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varReadReservedBlockResponse := _ReadReservedBlockResponse{} + + err = json.Unmarshal(data, &varReadReservedBlockResponse) + + if err != nil { + return err + } + + *o = ReadReservedBlockResponse(varReadReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableReadReservedBlockResponse struct { + value *ReadReservedBlockResponse + isSet bool +} + +func (v NullableReadReservedBlockResponse) Get() *ReadReservedBlockResponse { + return v.value +} + +func (v *NullableReadReservedBlockResponse) Set(val *ReadReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableReadReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableReadReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableReadReservedBlockResponse(val *ReadReservedBlockResponse) *NullableReadReservedBlockResponse { + return &NullableReadReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableReadReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableReadReservedBlockResponse) 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_reserved_block.go similarity index 70% rename from ipamfederation/model_federation_reserved_block.go rename to ipamfederation/model_reserved_block.go index 515a914..4aba659 100644 --- a/ipamfederation/model_federation_reserved_block.go +++ b/ipamfederation/model_reserved_block.go @@ -16,11 +16,11 @@ import ( "time" ) -// checks if the FederationReservedBlock type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &FederationReservedBlock{} +// checks if the ReservedBlock type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ReservedBlock{} -// 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 { +// ReservedBlock 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 ReservedBlock 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. @@ -46,29 +46,29 @@ type FederationReservedBlock struct { AdditionalProperties map[string]interface{} } -type _FederationReservedBlock FederationReservedBlock +type _ReservedBlock ReservedBlock -// NewFederationReservedBlock instantiates a new FederationReservedBlock object +// NewReservedBlock instantiates a new ReservedBlock 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{} +func NewReservedBlock(address string, federatedRealm string) *ReservedBlock { + this := ReservedBlock{} this.Address = address this.FederatedRealm = federatedRealm return &this } -// NewFederationReservedBlockWithDefaults instantiates a new FederationReservedBlock object +// NewReservedBlockWithDefaults instantiates a new ReservedBlock 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{} +func NewReservedBlockWithDefaults() *ReservedBlock { + this := ReservedBlock{} return &this } // GetAddress returns the Address field value -func (o *FederationReservedBlock) GetAddress() string { +func (o *ReservedBlock) GetAddress() string { if o == nil { var ret string return ret @@ -79,7 +79,7 @@ func (o *FederationReservedBlock) GetAddress() string { // 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) { +func (o *ReservedBlock) GetAddressOk() (*string, bool) { if o == nil { return nil, false } @@ -87,12 +87,12 @@ func (o *FederationReservedBlock) GetAddressOk() (*string, bool) { } // SetAddress sets field value -func (o *FederationReservedBlock) SetAddress(v string) { +func (o *ReservedBlock) SetAddress(v string) { o.Address = v } // GetCidr returns the Cidr field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetCidr() int64 { +func (o *ReservedBlock) GetCidr() int64 { if o == nil || IsNil(o.Cidr) { var ret int64 return ret @@ -102,7 +102,7 @@ func (o *FederationReservedBlock) GetCidr() int64 { // 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) { +func (o *ReservedBlock) GetCidrOk() (*int64, bool) { if o == nil || IsNil(o.Cidr) { return nil, false } @@ -110,7 +110,7 @@ func (o *FederationReservedBlock) GetCidrOk() (*int64, bool) { } // HasCidr returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasCidr() bool { +func (o *ReservedBlock) HasCidr() bool { if o != nil && !IsNil(o.Cidr) { return true } @@ -119,12 +119,12 @@ func (o *FederationReservedBlock) HasCidr() bool { } // SetCidr gets a reference to the given int64 and assigns it to the Cidr field. -func (o *FederationReservedBlock) SetCidr(v int64) { +func (o *ReservedBlock) SetCidr(v int64) { o.Cidr = &v } // GetComment returns the Comment field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetComment() string { +func (o *ReservedBlock) GetComment() string { if o == nil || IsNil(o.Comment) { var ret string return ret @@ -134,7 +134,7 @@ func (o *FederationReservedBlock) GetComment() string { // 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) { +func (o *ReservedBlock) GetCommentOk() (*string, bool) { if o == nil || IsNil(o.Comment) { return nil, false } @@ -142,7 +142,7 @@ func (o *FederationReservedBlock) GetCommentOk() (*string, bool) { } // HasComment returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasComment() bool { +func (o *ReservedBlock) HasComment() bool { if o != nil && !IsNil(o.Comment) { return true } @@ -151,12 +151,12 @@ func (o *FederationReservedBlock) HasComment() bool { } // SetComment gets a reference to the given string and assigns it to the Comment field. -func (o *FederationReservedBlock) SetComment(v string) { +func (o *ReservedBlock) SetComment(v string) { o.Comment = &v } // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetCreatedAt() time.Time { +func (o *ReservedBlock) GetCreatedAt() time.Time { if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret @@ -166,7 +166,7 @@ func (o *FederationReservedBlock) GetCreatedAt() time.Time { // 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) { +func (o *ReservedBlock) GetCreatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.CreatedAt) { return nil, false } @@ -174,7 +174,7 @@ func (o *FederationReservedBlock) GetCreatedAtOk() (*time.Time, bool) { } // HasCreatedAt returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasCreatedAt() bool { +func (o *ReservedBlock) HasCreatedAt() bool { if o != nil && !IsNil(o.CreatedAt) { return true } @@ -183,12 +183,12 @@ func (o *FederationReservedBlock) HasCreatedAt() bool { } // SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. -func (o *FederationReservedBlock) SetCreatedAt(v time.Time) { +func (o *ReservedBlock) SetCreatedAt(v time.Time) { o.CreatedAt = &v } // GetFederatedRealm returns the FederatedRealm field value -func (o *FederationReservedBlock) GetFederatedRealm() string { +func (o *ReservedBlock) GetFederatedRealm() string { if o == nil { var ret string return ret @@ -199,7 +199,7 @@ func (o *FederationReservedBlock) GetFederatedRealm() string { // 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) { +func (o *ReservedBlock) GetFederatedRealmOk() (*string, bool) { if o == nil { return nil, false } @@ -207,12 +207,12 @@ func (o *FederationReservedBlock) GetFederatedRealmOk() (*string, bool) { } // SetFederatedRealm sets field value -func (o *FederationReservedBlock) SetFederatedRealm(v string) { +func (o *ReservedBlock) SetFederatedRealm(v string) { o.FederatedRealm = v } // GetId returns the Id field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetId() string { +func (o *ReservedBlock) GetId() string { if o == nil || IsNil(o.Id) { var ret string return ret @@ -222,7 +222,7 @@ func (o *FederationReservedBlock) GetId() string { // 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) { +func (o *ReservedBlock) GetIdOk() (*string, bool) { if o == nil || IsNil(o.Id) { return nil, false } @@ -230,7 +230,7 @@ func (o *FederationReservedBlock) GetIdOk() (*string, bool) { } // HasId returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasId() bool { +func (o *ReservedBlock) HasId() bool { if o != nil && !IsNil(o.Id) { return true } @@ -239,12 +239,12 @@ func (o *FederationReservedBlock) HasId() bool { } // SetId gets a reference to the given string and assigns it to the Id field. -func (o *FederationReservedBlock) SetId(v string) { +func (o *ReservedBlock) SetId(v string) { o.Id = &v } // GetName returns the Name field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetName() string { +func (o *ReservedBlock) GetName() string { if o == nil || IsNil(o.Name) { var ret string return ret @@ -254,7 +254,7 @@ func (o *FederationReservedBlock) GetName() string { // 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) { +func (o *ReservedBlock) GetNameOk() (*string, bool) { if o == nil || IsNil(o.Name) { return nil, false } @@ -262,7 +262,7 @@ func (o *FederationReservedBlock) GetNameOk() (*string, bool) { } // HasName returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasName() bool { +func (o *ReservedBlock) HasName() bool { if o != nil && !IsNil(o.Name) { return true } @@ -271,12 +271,12 @@ func (o *FederationReservedBlock) HasName() bool { } // SetName gets a reference to the given string and assigns it to the Name field. -func (o *FederationReservedBlock) SetName(v string) { +func (o *ReservedBlock) SetName(v string) { o.Name = &v } // GetParent returns the Parent field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetParent() string { +func (o *ReservedBlock) GetParent() string { if o == nil || IsNil(o.Parent) { var ret string return ret @@ -286,7 +286,7 @@ func (o *FederationReservedBlock) GetParent() string { // 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) { +func (o *ReservedBlock) GetParentOk() (*string, bool) { if o == nil || IsNil(o.Parent) { return nil, false } @@ -294,7 +294,7 @@ func (o *FederationReservedBlock) GetParentOk() (*string, bool) { } // HasParent returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasParent() bool { +func (o *ReservedBlock) HasParent() bool { if o != nil && !IsNil(o.Parent) { return true } @@ -303,12 +303,12 @@ func (o *FederationReservedBlock) HasParent() bool { } // SetParent gets a reference to the given string and assigns it to the Parent field. -func (o *FederationReservedBlock) SetParent(v string) { +func (o *ReservedBlock) SetParent(v string) { o.Parent = &v } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetProtocol() string { +func (o *ReservedBlock) GetProtocol() string { if o == nil || IsNil(o.Protocol) { var ret string return ret @@ -318,7 +318,7 @@ func (o *FederationReservedBlock) GetProtocol() string { // 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) { +func (o *ReservedBlock) GetProtocolOk() (*string, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -326,7 +326,7 @@ func (o *FederationReservedBlock) GetProtocolOk() (*string, bool) { } // HasProtocol returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasProtocol() bool { +func (o *ReservedBlock) HasProtocol() bool { if o != nil && !IsNil(o.Protocol) { return true } @@ -335,12 +335,12 @@ func (o *FederationReservedBlock) HasProtocol() bool { } // SetProtocol gets a reference to the given string and assigns it to the Protocol field. -func (o *FederationReservedBlock) SetProtocol(v string) { +func (o *ReservedBlock) SetProtocol(v string) { o.Protocol = &v } // GetTags returns the Tags field value if set, zero value otherwise. -func (o *FederationReservedBlock) GetTags() map[string]interface{} { +func (o *ReservedBlock) GetTags() map[string]interface{} { if o == nil || IsNil(o.Tags) { var ret map[string]interface{} return ret @@ -350,7 +350,7 @@ func (o *FederationReservedBlock) GetTags() map[string]interface{} { // 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) { +func (o *ReservedBlock) GetTagsOk() (map[string]interface{}, bool) { if o == nil || IsNil(o.Tags) { return map[string]interface{}{}, false } @@ -358,7 +358,7 @@ func (o *FederationReservedBlock) GetTagsOk() (map[string]interface{}, bool) { } // HasTags returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasTags() bool { +func (o *ReservedBlock) HasTags() bool { if o != nil && !IsNil(o.Tags) { return true } @@ -367,12 +367,12 @@ func (o *FederationReservedBlock) HasTags() bool { } // 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{}) { +func (o *ReservedBlock) 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 { +func (o *ReservedBlock) GetUpdatedAt() time.Time { if o == nil || IsNil(o.UpdatedAt) { var ret time.Time return ret @@ -382,7 +382,7 @@ func (o *FederationReservedBlock) GetUpdatedAt() time.Time { // 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) { +func (o *ReservedBlock) GetUpdatedAtOk() (*time.Time, bool) { if o == nil || IsNil(o.UpdatedAt) { return nil, false } @@ -390,7 +390,7 @@ func (o *FederationReservedBlock) GetUpdatedAtOk() (*time.Time, bool) { } // HasUpdatedAt returns a boolean if a field has been set. -func (o *FederationReservedBlock) HasUpdatedAt() bool { +func (o *ReservedBlock) HasUpdatedAt() bool { if o != nil && !IsNil(o.UpdatedAt) { return true } @@ -399,11 +399,11 @@ func (o *FederationReservedBlock) HasUpdatedAt() bool { } // SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. -func (o *FederationReservedBlock) SetUpdatedAt(v time.Time) { +func (o *ReservedBlock) SetUpdatedAt(v time.Time) { o.UpdatedAt = &v } -func (o FederationReservedBlock) MarshalJSON() ([]byte, error) { +func (o ReservedBlock) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { return []byte{}, err @@ -411,7 +411,7 @@ func (o FederationReservedBlock) MarshalJSON() ([]byte, error) { return json.Marshal(toSerialize) } -func (o FederationReservedBlock) ToMap() (map[string]interface{}, error) { +func (o ReservedBlock) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address if !IsNil(o.Cidr) { @@ -450,7 +450,7 @@ func (o FederationReservedBlock) ToMap() (map[string]interface{}, error) { return toSerialize, nil } -func (o *FederationReservedBlock) UnmarshalJSON(data []byte) (err error) { +func (o *ReservedBlock) 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. @@ -473,15 +473,15 @@ func (o *FederationReservedBlock) UnmarshalJSON(data []byte) (err error) { } } - varFederationReservedBlock := _FederationReservedBlock{} + varReservedBlock := _ReservedBlock{} - err = json.Unmarshal(data, &varFederationReservedBlock) + err = json.Unmarshal(data, &varReservedBlock) if err != nil { return err } - *o = FederationReservedBlock(varFederationReservedBlock) + *o = ReservedBlock(varReservedBlock) additionalProperties := make(map[string]interface{}) @@ -503,38 +503,38 @@ func (o *FederationReservedBlock) UnmarshalJSON(data []byte) (err error) { return err } -type NullableFederationReservedBlock struct { - value *FederationReservedBlock +type NullableReservedBlock struct { + value *ReservedBlock isSet bool } -func (v NullableFederationReservedBlock) Get() *FederationReservedBlock { +func (v NullableReservedBlock) Get() *ReservedBlock { return v.value } -func (v *NullableFederationReservedBlock) Set(val *FederationReservedBlock) { +func (v *NullableReservedBlock) Set(val *ReservedBlock) { v.value = val v.isSet = true } -func (v NullableFederationReservedBlock) IsSet() bool { +func (v NullableReservedBlock) IsSet() bool { return v.isSet } -func (v *NullableFederationReservedBlock) Unset() { +func (v *NullableReservedBlock) Unset() { v.value = nil v.isSet = false } -func NewNullableFederationReservedBlock(val *FederationReservedBlock) *NullableFederationReservedBlock { - return &NullableFederationReservedBlock{value: val, isSet: true} +func NewNullableReservedBlock(val *ReservedBlock) *NullableReservedBlock { + return &NullableReservedBlock{value: val, isSet: true} } -func (v NullableFederationReservedBlock) MarshalJSON() ([]byte, error) { +func (v NullableReservedBlock) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } -func (v *NullableFederationReservedBlock) UnmarshalJSON(src []byte) error { +func (v *NullableReservedBlock) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } diff --git a/ipamfederation/model_update_delegation_response.go b/ipamfederation/model_update_delegation_response.go new file mode 100644 index 0000000..469e83c --- /dev/null +++ b/ipamfederation/model_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 UpdateDelegationResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateDelegationResponse{} + +// UpdateDelegationResponse The response format to update the __Delegation__ object. +type UpdateDelegationResponse struct { + // The Delegation object. + Result *Delegation `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateDelegationResponse UpdateDelegationResponse + +// NewUpdateDelegationResponse instantiates a new UpdateDelegationResponse 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 NewUpdateDelegationResponse() *UpdateDelegationResponse { + this := UpdateDelegationResponse{} + return &this +} + +// NewUpdateDelegationResponseWithDefaults instantiates a new UpdateDelegationResponse 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 NewUpdateDelegationResponseWithDefaults() *UpdateDelegationResponse { + this := UpdateDelegationResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *UpdateDelegationResponse) GetResult() Delegation { + if o == nil || IsNil(o.Result) { + var ret Delegation + 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 *UpdateDelegationResponse) GetResultOk() (*Delegation, 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 *UpdateDelegationResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given Delegation and assigns it to the Result field. +func (o *UpdateDelegationResponse) SetResult(v Delegation) { + o.Result = &v +} + +func (o UpdateDelegationResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateDelegationResponse) 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 *UpdateDelegationResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateDelegationResponse := _UpdateDelegationResponse{} + + err = json.Unmarshal(data, &varUpdateDelegationResponse) + + if err != nil { + return err + } + + *o = UpdateDelegationResponse(varUpdateDelegationResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateDelegationResponse struct { + value *UpdateDelegationResponse + isSet bool +} + +func (v NullableUpdateDelegationResponse) Get() *UpdateDelegationResponse { + return v.value +} + +func (v *NullableUpdateDelegationResponse) Set(val *UpdateDelegationResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateDelegationResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateDelegationResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateDelegationResponse(val *UpdateDelegationResponse) *NullableUpdateDelegationResponse { + return &NullableUpdateDelegationResponse{value: val, isSet: true} +} + +func (v NullableUpdateDelegationResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateDelegationResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_update_federated_block_response.go b/ipamfederation/model_update_federated_block_response.go new file mode 100644 index 0000000..d7356dd --- /dev/null +++ b/ipamfederation/model_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 UpdateFederatedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateFederatedBlockResponse{} + +// UpdateFederatedBlockResponse The response format to update the __FederatedBlock__ object. +type UpdateFederatedBlockResponse struct { + // The FederatedBlock object. + Result *FederatedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateFederatedBlockResponse UpdateFederatedBlockResponse + +// NewUpdateFederatedBlockResponse instantiates a new UpdateFederatedBlockResponse 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 NewUpdateFederatedBlockResponse() *UpdateFederatedBlockResponse { + this := UpdateFederatedBlockResponse{} + return &this +} + +// NewUpdateFederatedBlockResponseWithDefaults instantiates a new UpdateFederatedBlockResponse 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 NewUpdateFederatedBlockResponseWithDefaults() *UpdateFederatedBlockResponse { + this := UpdateFederatedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *UpdateFederatedBlockResponse) GetResult() FederatedBlock { + if o == nil || IsNil(o.Result) { + var ret FederatedBlock + 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 *UpdateFederatedBlockResponse) GetResultOk() (*FederatedBlock, 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 *UpdateFederatedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederatedBlock and assigns it to the Result field. +func (o *UpdateFederatedBlockResponse) SetResult(v FederatedBlock) { + o.Result = &v +} + +func (o UpdateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateFederatedBlockResponse) 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 *UpdateFederatedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateFederatedBlockResponse := _UpdateFederatedBlockResponse{} + + err = json.Unmarshal(data, &varUpdateFederatedBlockResponse) + + if err != nil { + return err + } + + *o = UpdateFederatedBlockResponse(varUpdateFederatedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateFederatedBlockResponse struct { + value *UpdateFederatedBlockResponse + isSet bool +} + +func (v NullableUpdateFederatedBlockResponse) Get() *UpdateFederatedBlockResponse { + return v.value +} + +func (v *NullableUpdateFederatedBlockResponse) Set(val *UpdateFederatedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateFederatedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateFederatedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateFederatedBlockResponse(val *UpdateFederatedBlockResponse) *NullableUpdateFederatedBlockResponse { + return &NullableUpdateFederatedBlockResponse{value: val, isSet: true} +} + +func (v NullableUpdateFederatedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateFederatedBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_update_federated_realm_response.go b/ipamfederation/model_update_federated_realm_response.go new file mode 100644 index 0000000..add01ca --- /dev/null +++ b/ipamfederation/model_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 UpdateFederatedRealmResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateFederatedRealmResponse{} + +// UpdateFederatedRealmResponse The response format to update the __FederatedRealm__ object. +type UpdateFederatedRealmResponse struct { + // The FederatedRealm object. + Result *FederatedRealm `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateFederatedRealmResponse UpdateFederatedRealmResponse + +// NewUpdateFederatedRealmResponse instantiates a new UpdateFederatedRealmResponse 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 NewUpdateFederatedRealmResponse() *UpdateFederatedRealmResponse { + this := UpdateFederatedRealmResponse{} + return &this +} + +// NewUpdateFederatedRealmResponseWithDefaults instantiates a new UpdateFederatedRealmResponse 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 NewUpdateFederatedRealmResponseWithDefaults() *UpdateFederatedRealmResponse { + this := UpdateFederatedRealmResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *UpdateFederatedRealmResponse) GetResult() FederatedRealm { + if o == nil || IsNil(o.Result) { + var ret FederatedRealm + 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 *UpdateFederatedRealmResponse) GetResultOk() (*FederatedRealm, 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 *UpdateFederatedRealmResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given FederatedRealm and assigns it to the Result field. +func (o *UpdateFederatedRealmResponse) SetResult(v FederatedRealm) { + o.Result = &v +} + +func (o UpdateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateFederatedRealmResponse) 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 *UpdateFederatedRealmResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateFederatedRealmResponse := _UpdateFederatedRealmResponse{} + + err = json.Unmarshal(data, &varUpdateFederatedRealmResponse) + + if err != nil { + return err + } + + *o = UpdateFederatedRealmResponse(varUpdateFederatedRealmResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateFederatedRealmResponse struct { + value *UpdateFederatedRealmResponse + isSet bool +} + +func (v NullableUpdateFederatedRealmResponse) Get() *UpdateFederatedRealmResponse { + return v.value +} + +func (v *NullableUpdateFederatedRealmResponse) Set(val *UpdateFederatedRealmResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateFederatedRealmResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateFederatedRealmResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateFederatedRealmResponse(val *UpdateFederatedRealmResponse) *NullableUpdateFederatedRealmResponse { + return &NullableUpdateFederatedRealmResponse{value: val, isSet: true} +} + +func (v NullableUpdateFederatedRealmResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateFederatedRealmResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_update_overlapping_block_response.go b/ipamfederation/model_update_overlapping_block_response.go new file mode 100644 index 0000000..7fb1305 --- /dev/null +++ b/ipamfederation/model_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 UpdateOverlappingBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateOverlappingBlockResponse{} + +// UpdateOverlappingBlockResponse The response format to update the __OverlappingBlock__ object. +type UpdateOverlappingBlockResponse struct { + // The OverlappingBlock object. + Result *OverlappingBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateOverlappingBlockResponse UpdateOverlappingBlockResponse + +// NewUpdateOverlappingBlockResponse instantiates a new UpdateOverlappingBlockResponse 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 NewUpdateOverlappingBlockResponse() *UpdateOverlappingBlockResponse { + this := UpdateOverlappingBlockResponse{} + return &this +} + +// NewUpdateOverlappingBlockResponseWithDefaults instantiates a new UpdateOverlappingBlockResponse 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 NewUpdateOverlappingBlockResponseWithDefaults() *UpdateOverlappingBlockResponse { + this := UpdateOverlappingBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *UpdateOverlappingBlockResponse) GetResult() OverlappingBlock { + if o == nil || IsNil(o.Result) { + var ret OverlappingBlock + 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 *UpdateOverlappingBlockResponse) GetResultOk() (*OverlappingBlock, 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 *UpdateOverlappingBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given OverlappingBlock and assigns it to the Result field. +func (o *UpdateOverlappingBlockResponse) SetResult(v OverlappingBlock) { + o.Result = &v +} + +func (o UpdateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateOverlappingBlockResponse) 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 *UpdateOverlappingBlockResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateOverlappingBlockResponse := _UpdateOverlappingBlockResponse{} + + err = json.Unmarshal(data, &varUpdateOverlappingBlockResponse) + + if err != nil { + return err + } + + *o = UpdateOverlappingBlockResponse(varUpdateOverlappingBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateOverlappingBlockResponse struct { + value *UpdateOverlappingBlockResponse + isSet bool +} + +func (v NullableUpdateOverlappingBlockResponse) Get() *UpdateOverlappingBlockResponse { + return v.value +} + +func (v *NullableUpdateOverlappingBlockResponse) Set(val *UpdateOverlappingBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateOverlappingBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateOverlappingBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateOverlappingBlockResponse(val *UpdateOverlappingBlockResponse) *NullableUpdateOverlappingBlockResponse { + return &NullableUpdateOverlappingBlockResponse{value: val, isSet: true} +} + +func (v NullableUpdateOverlappingBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateOverlappingBlockResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/ipamfederation/model_update_reserved_block_response.go b/ipamfederation/model_update_reserved_block_response.go new file mode 100644 index 0000000..119305b --- /dev/null +++ b/ipamfederation/model_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 UpdateReservedBlockResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateReservedBlockResponse{} + +// UpdateReservedBlockResponse The response format to update the __ReservedBlock__ object. +type UpdateReservedBlockResponse struct { + // The ReservedBlock object. + Result *ReservedBlock `json:"result,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _UpdateReservedBlockResponse UpdateReservedBlockResponse + +// NewUpdateReservedBlockResponse instantiates a new UpdateReservedBlockResponse 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 NewUpdateReservedBlockResponse() *UpdateReservedBlockResponse { + this := UpdateReservedBlockResponse{} + return &this +} + +// NewUpdateReservedBlockResponseWithDefaults instantiates a new UpdateReservedBlockResponse 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 NewUpdateReservedBlockResponseWithDefaults() *UpdateReservedBlockResponse { + this := UpdateReservedBlockResponse{} + return &this +} + +// GetResult returns the Result field value if set, zero value otherwise. +func (o *UpdateReservedBlockResponse) GetResult() ReservedBlock { + if o == nil || IsNil(o.Result) { + var ret ReservedBlock + 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 *UpdateReservedBlockResponse) GetResultOk() (*ReservedBlock, 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 *UpdateReservedBlockResponse) HasResult() bool { + if o != nil && !IsNil(o.Result) { + return true + } + + return false +} + +// SetResult gets a reference to the given ReservedBlock and assigns it to the Result field. +func (o *UpdateReservedBlockResponse) SetResult(v ReservedBlock) { + o.Result = &v +} + +func (o UpdateReservedBlockResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateReservedBlockResponse) 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 *UpdateReservedBlockResponse) UnmarshalJSON(data []byte) (err error) { + varUpdateReservedBlockResponse := _UpdateReservedBlockResponse{} + + err = json.Unmarshal(data, &varUpdateReservedBlockResponse) + + if err != nil { + return err + } + + *o = UpdateReservedBlockResponse(varUpdateReservedBlockResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "result") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateReservedBlockResponse struct { + value *UpdateReservedBlockResponse + isSet bool +} + +func (v NullableUpdateReservedBlockResponse) Get() *UpdateReservedBlockResponse { + return v.value +} + +func (v *NullableUpdateReservedBlockResponse) Set(val *UpdateReservedBlockResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateReservedBlockResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateReservedBlockResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateReservedBlockResponse(val *UpdateReservedBlockResponse) *NullableUpdateReservedBlockResponse { + return &NullableUpdateReservedBlockResponse{value: val, isSet: true} +} + +func (v NullableUpdateReservedBlockResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateReservedBlockResponse) 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 deleted file mode 100644 index 5cab83b..0000000 --- a/ipamfederation/test/api_bulk_test.go +++ /dev/null @@ -1,38 +0,0 @@ -/* -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.DelegationBulk(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 index e82f609..b80b239 100644 --- a/ipamfederation/test/api_delegation_test.go +++ b/ipamfederation/test/api_delegation_test.go @@ -23,6 +23,18 @@ func TestDelegationAPIService(t *testing.T) { apiClient := ipamfederation.NewAPIClient() + t.Run("Test DelegationAPIService Bulk", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.DelegationAPI.Bulk(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + t.Run("Test DelegationAPIService Create", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -99,16 +111,4 @@ func TestDelegationAPIService(t *testing.T) { }) - t.Run("Test DelegationAPIService bulkDelegationBulk", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.DelegationAPI.Bulk(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - } From b577aa0ba4fd4f1e05e4dfa6b91c45a88def9354 Mon Sep 17 00:00:00 2001 From: Ujjwal Nasra Date: Tue, 20 Aug 2024 17:46:13 +0530 Subject: [PATCH 5/6] Fixed client.go --- client/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/client.go b/client/client.go index a68782d..39b0e46 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 +// - IpamFederationAPI // - 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...), From b6aa7ca07393ff27751c6a41e67ff3e20928f115 Mon Sep 17 00:00:00 2001 From: Ujjwal Nasra Date: Wed, 21 Aug 2024 21:25:51 +0530 Subject: [PATCH 6/6] Corrected Typo in client.go --- client/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/client.go b/client/client.go index 39b0e46..8095ec8 100644 --- a/client/client.go +++ b/client/client.go @@ -19,7 +19,7 @@ import ( // APIClient is an aggregation of different BloxOne API clients. type APIClient struct { IPAddressManagementAPI *ipam.APIClient - IPAMFederationAPI *ipamfederation.APIClient + IpamFederationAPI *ipamfederation.APIClient DNSConfigurationAPI *dnsconfig.APIClient DNSDataAPI *dnsdata.APIClient HostActivationAPI *infraprovision.APIClient @@ -57,7 +57,7 @@ type APIClient struct { func NewAPIClient(options ...option.ClientOption) *APIClient { return &APIClient{ IPAddressManagementAPI: ipam.NewAPIClient(options...), - IPAMFederationAPI: ipamfederation.NewAPIClient(options...), + IpamFederationAPI: ipamfederation.NewAPIClient(options...), DNSConfigurationAPI: dnsconfig.NewAPIClient(options...), DNSDataAPI: dnsdata.NewAPIClient(options...), HostActivationAPI: infraprovision.NewAPIClient(options...),