From f87b1f083440f5879adbffbc33558a38030b26bf Mon Sep 17 00:00:00 2001 From: Min Jiang Date: Tue, 27 Feb 2024 16:41:05 -0800 Subject: [PATCH] Unit Tests For Keys, DNS With Generator Working at version 7.3.0 - Unit tests for keys and dns completed, with generator upgraded to 7.3.0 - Ran go fmt ./..., but the equivalence make fmt failed --- dns_config/.openapi-generator-ignore | 3 - dns_config/.openapi-generator/FILES | 126 ++++++++ dns_config/api_acl.go | 81 +++-- dns_config/api_auth_nsg.go | 81 +++-- dns_config/api_auth_zone.go | 93 +++--- dns_config/api_cache_flush.go | 12 +- dns_config/api_convert_domain_name.go | 2 + dns_config/api_convert_rname.go | 2 + dns_config/api_delegation.go | 81 +++-- dns_config/api_forward_nsg.go | 81 +++-- dns_config/api_forward_zone.go | 93 +++--- dns_config/api_global.go | 52 ++-- dns_config/api_host.go | 48 ++- dns_config/api_lbdn.go | 25 +- dns_config/api_server.go | 81 +++-- dns_config/api_view.go | 95 +++--- dns_config/docs/ConfigForwarder.md | 9 +- dns_config/model_config_forwarder.go | 36 +-- dns_data/.openapi-generator/FILES | 1 - dns_data/api_record.go | 283 +++++++++--------- dns_data/model_data_create_record_response.go | 6 +- dns_data/model_data_list_record_response.go | 6 +- dns_data/model_data_read_record_response.go | 6 +- dns_data/model_data_record_inheritance.go | 6 +- ...model_data_soa_serial_increment_request.go | 6 +- ...odel_data_soa_serial_increment_response.go | 6 +- dns_data/model_data_update_record_response.go | 6 +- .../model_inheritance2_inherited_u_int32.go | 6 +- dns_data/model_protobuf_field_mask.go | 6 +- infra_mgmt/api_detail.go | 4 + infra_mgmt/api_hosts.go | 115 ++++--- infra_mgmt/api_services.go | 83 +++-- infra_provision/api_ui_join_token.go | 52 ++-- infra_provision/api_uicsr.go | 42 ++- ipam/.openapi-generator-ignore | 3 - ipam/api_address.go | 81 +++-- ipam/api_address_block.go | 179 +++++------ ipam/api_asm.go | 40 +-- ipam/api_dhcp_host.go | 50 ++-- ipam/api_dns_usage.go | 4 + ipam/api_filter.go | 2 + ipam/api_fixed_address.go | 81 +++-- ipam/api_global.go | 52 ++-- ipam/api_ha_group.go | 73 ++--- ipam/api_hardware_filter.go | 81 +++-- ipam/api_ip_space.go | 115 ++++--- ipam/api_ipam_host.go | 81 +++-- ipam/api_leases_command.go | 12 +- ipam/api_option_code.go | 65 ++-- ipam/api_option_filter.go | 81 +++-- ipam/api_option_group.go | 81 +++-- ipam/api_option_space.go | 81 +++-- ipam/api_range.go | 109 ++++--- ipam/api_server.go | 81 +++-- ipam/api_subnet.go | 123 ++++---- keys/.openapi-generator-ignore | 3 - keys/.openapi-generator/FILES | 1 - keys/api_generate_tsig.go | 36 +-- keys/api_kerberos.go | 55 ++-- keys/api_tsig.go | 230 +++++++------- keys/api_upload.go | 44 ++- keys/client.go | 14 +- keys/model_ddiupload_response.go | 6 +- keys/model_kerberos_key.go | 6 +- keys/model_kerberos_keys.go | 6 +- keys/model_keys_create_tsig_key_response.go | 6 +- keys/model_keys_generate_tsig_response.go | 6 +- keys/model_keys_generate_tsig_result.go | 6 +- keys/model_keys_list_kerberos_key_response.go | 6 +- keys/model_keys_list_tsig_key_response.go | 6 +- keys/model_keys_read_kerberos_key_response.go | 6 +- keys/model_keys_read_tsig_key_response.go | 6 +- keys/model_keys_tsig_key.go | 2 - ...model_keys_update_kerberos_key_response.go | 6 +- keys/model_keys_update_tsig_key_response.go | 6 +- keys/model_protobuf_field_mask.go | 6 +- keys/model_upload_content_type.go | 5 +- keys/utils.go | 2 +- 78 files changed, 1781 insertions(+), 1799 deletions(-) diff --git a/dns_config/.openapi-generator-ignore b/dns_config/.openapi-generator-ignore index 9d89018..7484ee5 100644 --- a/dns_config/.openapi-generator-ignore +++ b/dns_config/.openapi-generator-ignore @@ -21,6 +21,3 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md -*.go -*.md -!api*test.go diff --git a/dns_config/.openapi-generator/FILES b/dns_config/.openapi-generator/FILES index 4279035..c1b1372 100644 --- a/dns_config/.openapi-generator/FILES +++ b/dns_config/.openapi-generator/FILES @@ -1,3 +1,19 @@ +README.md +api_acl.go +api_auth_nsg.go +api_auth_zone.go +api_cache_flush.go +api_convert_domain_name.go +api_convert_rname.go +api_delegation.go +api_forward_nsg.go +api_forward_zone.go +api_global.go +api_host.go +api_lbdn.go +api_server.go +api_view.go +client.go docs/AclAPI.md docs/AuthNsgAPI.md docs/AuthZoneAPI.md @@ -121,3 +137,113 @@ docs/Inheritance2InheritedUInt32.md docs/LbdnAPI.md docs/ServerAPI.md docs/ViewAPI.md +model_auth_zone_external_provider.go +model_config_acl.go +model_config_acl_item.go +model_config_auth_nsg.go +model_config_auth_zone.go +model_config_auth_zone_config.go +model_config_auth_zone_inheritance.go +model_config_bulk_copy_error.go +model_config_bulk_copy_response.go +model_config_bulk_copy_view.go +model_config_cache_flush.go +model_config_convert_domain_name.go +model_config_convert_domain_name_response.go +model_config_convert_r_name_response.go +model_config_copy_auth_zone.go +model_config_copy_auth_zone_response.go +model_config_copy_forward_zone.go +model_config_copy_forward_zone_response.go +model_config_copy_response.go +model_config_create_acl_response.go +model_config_create_auth_nsg_response.go +model_config_create_auth_zone_response.go +model_config_create_delegation_response.go +model_config_create_forward_nsg_response.go +model_config_create_forward_zone_response.go +model_config_create_lbdn_response.go +model_config_create_server_response.go +model_config_create_view_response.go +model_config_custom_root_ns_block.go +model_config_delegation.go +model_config_delegation_server.go +model_config_display_view.go +model_config_dnssec_validation_block.go +model_config_dtc_config.go +model_config_dtc_policy.go +model_config_ecs_block.go +model_config_ecs_zone.go +model_config_external_primary.go +model_config_external_secondary.go +model_config_forward_nsg.go +model_config_forward_zone.go +model_config_forward_zone_config.go +model_config_forwarder.go +model_config_forwarders_block.go +model_config_global.go +model_config_host.go +model_config_host_associated_server.go +model_config_host_inheritance.go +model_config_inherited_acl_items.go +model_config_inherited_custom_root_ns_block.go +model_config_inherited_dnssec_validation_block.go +model_config_inherited_dtc_config.go +model_config_inherited_ecs_block.go +model_config_inherited_forwarders_block.go +model_config_inherited_kerberos_keys.go +model_config_inherited_sort_list_items.go +model_config_inherited_zone_authority.go +model_config_inherited_zone_authority_m_name_block.go +model_config_internal_secondary.go +model_config_kerberos_key.go +model_config_lbdn.go +model_config_list_acl_response.go +model_config_list_auth_nsg_response.go +model_config_list_auth_zone_response.go +model_config_list_delegation_response.go +model_config_list_forward_nsg_response.go +model_config_list_forward_zone_response.go +model_config_list_host_response.go +model_config_list_lbdn_response.go +model_config_list_server_response.go +model_config_list_view_response.go +model_config_read_acl_response.go +model_config_read_auth_nsg_response.go +model_config_read_auth_zone_response.go +model_config_read_delegation_response.go +model_config_read_forward_nsg_response.go +model_config_read_forward_zone_response.go +model_config_read_global_response.go +model_config_read_host_response.go +model_config_read_lbdn_response.go +model_config_read_server_response.go +model_config_read_view_response.go +model_config_root_ns.go +model_config_server.go +model_config_server_inheritance.go +model_config_sort_list_item.go +model_config_trust_anchor.go +model_config_tsig_key.go +model_config_ttl_inheritance.go +model_config_update_acl_response.go +model_config_update_auth_nsg_response.go +model_config_update_auth_zone_response.go +model_config_update_delegation_response.go +model_config_update_forward_nsg_response.go +model_config_update_forward_zone_response.go +model_config_update_global_response.go +model_config_update_host_response.go +model_config_update_lbdn_response.go +model_config_update_server_response.go +model_config_update_view_response.go +model_config_view.go +model_config_view_inheritance.go +model_config_warning.go +model_config_zone_authority.go +model_config_zone_authority_m_name_block.go +model_inheritance2_assigned_host.go +model_inheritance2_inherited_bool.go +model_inheritance2_inherited_string.go +model_inheritance2_inherited_u_int32.go +utils.go diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index c06e786..a6ee629 100644 --- a/dns_config/api_acl.go +++ b/dns_config/api_acl.go @@ -22,72 +22,77 @@ import ( ) type AclAPI interface { + /* - AclCreate Create the ACL object. + AclCreate Create the ACL object. - Use this method to create an ACL object. - ACL object (_dns/acl_) represents a named Access Control List. + Use this method to create an ACL object. + ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAclCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAclCreateRequest */ AclCreate(ctx context.Context) ApiAclCreateRequest // AclCreateExecute executes the request // @return ConfigCreateACLResponse AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateACLResponse, *http.Response, error) + /* - AclDelete Move the ACL object to Recyclebin. + AclDelete Move the ACL object to Recyclebin. - Use this method to move an ACL object to Recyclebin. - ACL object (_dns/acl_) represents a named Access Control List. + Use this method to move an ACL object to Recyclebin. + ACL object (_dns/acl_) represents a named Access Control List. - @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 ApiAclDeleteRequest + @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 ApiAclDeleteRequest */ AclDelete(ctx context.Context, id string) ApiAclDeleteRequest // AclDeleteExecute executes the request AclDeleteExecute(r ApiAclDeleteRequest) (*http.Response, error) + /* - AclList List ACL objects. + AclList List ACL objects. - Use this method to list ACL objects. - ACL object (_dns/acl_) represents a named Access Control List. + Use this method to list ACL objects. + ACL object (_dns/acl_) represents a named Access Control List. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAclListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAclListRequest */ AclList(ctx context.Context) ApiAclListRequest // AclListExecute executes the request // @return ConfigListACLResponse AclListExecute(r ApiAclListRequest) (*ConfigListACLResponse, *http.Response, error) + /* - AclRead Read the ACL object. + AclRead Read the ACL object. - Use this method to read an ACL object. - ACL object (_dns/acl_) represents a named Access Control List. + Use this method to read an ACL object. + ACL object (_dns/acl_) represents a named Access Control List. - @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 ApiAclReadRequest + @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 ApiAclReadRequest */ AclRead(ctx context.Context, id string) ApiAclReadRequest // AclReadExecute executes the request // @return ConfigReadACLResponse AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLResponse, *http.Response, error) + /* - AclUpdate Update the ACL object. + AclUpdate Update the ACL object. - Use this method to update an ACL object. - ACL object (_dns/acl_) represents a named Access Control List. + Use this method to update an ACL object. + ACL object (_dns/acl_) represents a named Access Control List. - @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 ApiAclUpdateRequest + @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 ApiAclUpdateRequest */ AclUpdate(ctx context.Context, id string) ApiAclUpdateRequest @@ -172,14 +177,6 @@ func (a *AclAPIService) AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateAC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *AclAPIService) AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateAC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *AclAPIService) AclListExecute(r ApiAclListRequest) (*ConfigListACLRespo newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *AclAPIService) AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLRespo newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *AclAPIService) AclUpdateExecute(r ApiAclUpdateRequest) (*ConfigUpdateAC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *AclAPIService) AclUpdateExecute(r ApiAclUpdateRequest) (*ConfigUpdateAC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_auth_nsg.go b/dns_config/api_auth_nsg.go index d2ed1ca..87ac335 100644 --- a/dns_config/api_auth_nsg.go +++ b/dns_config/api_auth_nsg.go @@ -22,72 +22,77 @@ import ( ) type AuthNsgAPI interface { + /* - AuthNsgCreate Create the AuthNSG object. + AuthNsgCreate Create the AuthNSG object. - Use this method to create an AuthNSG object. - The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to create an AuthNSG object. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthNsgCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthNsgCreateRequest */ AuthNsgCreate(ctx context.Context) ApiAuthNsgCreateRequest // AuthNsgCreateExecute executes the request // @return ConfigCreateAuthNSGResponse AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*ConfigCreateAuthNSGResponse, *http.Response, error) + /* - AuthNsgDelete Move the AuthNSG object to Recyclebin. + AuthNsgDelete Move the AuthNSG object to Recyclebin. - Use this method to move an AuthNSG object to Recyclebin. - The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to move an AuthNSG object to Recyclebin. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @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 ApiAuthNsgDeleteRequest + @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 ApiAuthNsgDeleteRequest */ AuthNsgDelete(ctx context.Context, id string) ApiAuthNsgDeleteRequest // AuthNsgDeleteExecute executes the request AuthNsgDeleteExecute(r ApiAuthNsgDeleteRequest) (*http.Response, error) + /* - AuthNsgList List AuthNSG objects. + AuthNsgList List AuthNSG objects. - Use this method to list AuthNSG objects. - The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to list AuthNSG objects. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthNsgListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthNsgListRequest */ AuthNsgList(ctx context.Context) ApiAuthNsgListRequest // AuthNsgListExecute executes the request // @return ConfigListAuthNSGResponse AuthNsgListExecute(r ApiAuthNsgListRequest) (*ConfigListAuthNSGResponse, *http.Response, error) + /* - AuthNsgRead Read the AuthNSG object. + AuthNsgRead Read the AuthNSG object. - Use this method to read an AuthNSG object. - The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to read an AuthNSG object. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @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 ApiAuthNsgReadRequest + @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 ApiAuthNsgReadRequest */ AuthNsgRead(ctx context.Context, id string) ApiAuthNsgReadRequest // AuthNsgReadExecute executes the request // @return ConfigReadAuthNSGResponse AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*ConfigReadAuthNSGResponse, *http.Response, error) + /* - AuthNsgUpdate Update the AuthNSG object. + AuthNsgUpdate Update the AuthNSG object. - Use this method to update an AuthNSG object. - The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. + Use this method to update an AuthNSG object. + The _dns/auth_nsg_ object represents an Authoritative DNS Server Group for authoritative zones. - @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 ApiAuthNsgUpdateRequest + @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 ApiAuthNsgUpdateRequest */ AuthNsgUpdate(ctx context.Context, id string) ApiAuthNsgUpdateRequest @@ -172,14 +177,6 @@ func (a *AuthNsgAPIService) AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*Co if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *AuthNsgAPIService) AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*Co newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *AuthNsgAPIService) AuthNsgListExecute(r ApiAuthNsgListRequest) (*Config newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *AuthNsgAPIService) AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*Config newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *AuthNsgAPIService) AuthNsgUpdateExecute(r ApiAuthNsgUpdateRequest) (*Co if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *AuthNsgAPIService) AuthNsgUpdateExecute(r ApiAuthNsgUpdateRequest) (*Co newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_auth_zone.go b/dns_config/api_auth_zone.go index c95502a..7399faf 100644 --- a/dns_config/api_auth_zone.go +++ b/dns_config/api_auth_zone.go @@ -22,86 +22,92 @@ import ( ) type AuthZoneAPI interface { + /* - AuthZoneCopy Copies the __AuthZone__ object. + AuthZoneCopy Copies the __AuthZone__ object. - Use this method to copy an __AuthZone__ object to a different __View__. - This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to copy an __AuthZone__ object to a different __View__. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneCopyRequest */ AuthZoneCopy(ctx context.Context) ApiAuthZoneCopyRequest // AuthZoneCopyExecute executes the request // @return ConfigCopyAuthZoneResponse AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*ConfigCopyAuthZoneResponse, *http.Response, error) + /* - AuthZoneCreate Create the AuthZone object. + AuthZoneCreate Create the AuthZone object. - Use this method to create an AuthZone object. - This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to create an AuthZone object. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneCreateRequest */ AuthZoneCreate(ctx context.Context) ApiAuthZoneCreateRequest // AuthZoneCreateExecute executes the request // @return ConfigCreateAuthZoneResponse AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) (*ConfigCreateAuthZoneResponse, *http.Response, error) + /* - AuthZoneDelete Moves the AuthZone object to Recyclebin. + AuthZoneDelete Moves the AuthZone object to Recyclebin. - Use this method to move an AuthZone object to Recyclebin. - This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to move an AuthZone object to Recyclebin. + This object (_dns/auth_zone_) represents an authoritative zone. - @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 ApiAuthZoneDeleteRequest + @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 ApiAuthZoneDeleteRequest */ AuthZoneDelete(ctx context.Context, id string) ApiAuthZoneDeleteRequest // AuthZoneDeleteExecute executes the request AuthZoneDeleteExecute(r ApiAuthZoneDeleteRequest) (*http.Response, error) + /* - AuthZoneList List AuthZone objects. + AuthZoneList List AuthZone objects. - Use this method to list AuthZone objects. - This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to list AuthZone objects. + This object (_dns/auth_zone_) represents an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAuthZoneListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAuthZoneListRequest */ AuthZoneList(ctx context.Context) ApiAuthZoneListRequest // AuthZoneListExecute executes the request // @return ConfigListAuthZoneResponse AuthZoneListExecute(r ApiAuthZoneListRequest) (*ConfigListAuthZoneResponse, *http.Response, error) + /* - AuthZoneRead Read the AuthZone object. + AuthZoneRead Read the AuthZone object. - Use this method to read an AuthZone object. - This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to read an AuthZone object. + This object (_dns/auth_zone_) represents an authoritative zone. - @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 ApiAuthZoneReadRequest + @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 ApiAuthZoneReadRequest */ AuthZoneRead(ctx context.Context, id string) ApiAuthZoneReadRequest // AuthZoneReadExecute executes the request // @return ConfigReadAuthZoneResponse AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*ConfigReadAuthZoneResponse, *http.Response, error) + /* - AuthZoneUpdate Update the AuthZone object. + AuthZoneUpdate Update the AuthZone object. - Use this method to update an AuthZone object. - This object (_dns/auth_zone_) represents an authoritative zone. + Use this method to update an AuthZone object. + This object (_dns/auth_zone_) represents an authoritative zone. - @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 ApiAuthZoneUpdateRequest + @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 ApiAuthZoneUpdateRequest */ AuthZoneUpdate(ctx context.Context, id string) ApiAuthZoneUpdateRequest @@ -229,6 +235,7 @@ func (a *AuthZoneAPIService) AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*Con newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -315,14 +322,6 @@ func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -366,6 +365,7 @@ func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -668,6 +668,7 @@ func (a *AuthZoneAPIService) AuthZoneListExecute(r ApiAuthZoneListRequest) (*Con newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -800,6 +801,7 @@ func (a *AuthZoneAPIService) AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*Con newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -890,14 +892,6 @@ func (a *AuthZoneAPIService) AuthZoneUpdateExecute(r ApiAuthZoneUpdateRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -941,5 +935,6 @@ func (a *AuthZoneAPIService) AuthZoneUpdateExecute(r ApiAuthZoneUpdateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_cache_flush.go b/dns_config/api_cache_flush.go index f3ca335..5d107ae 100644 --- a/dns_config/api_cache_flush.go +++ b/dns_config/api_cache_flush.go @@ -21,14 +21,15 @@ import ( ) type CacheFlushAPI interface { + /* - CacheFlushCreate Create the Cache Flush object. + CacheFlushCreate Create the Cache Flush object. - Use this method to create a Cache Flush object. - The Cache Flush object is for removing entries from the DNS cache on a host. The host must be available and running DNS for this to succeed. + Use this method to create a Cache Flush object. + The Cache Flush object is for removing entries from the DNS cache on a host. The host must be available and running DNS for this to succeed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCacheFlushCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCacheFlushCreateRequest */ CacheFlushCreate(ctx context.Context) ApiCacheFlushCreateRequest @@ -156,5 +157,6 @@ func (a *CacheFlushAPIService) CacheFlushCreateExecute(r ApiCacheFlushCreateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_convert_domain_name.go b/dns_config/api_convert_domain_name.go index cc1d7af..3c9e5b0 100644 --- a/dns_config/api_convert_domain_name.go +++ b/dns_config/api_convert_domain_name.go @@ -22,6 +22,7 @@ import ( ) type ConvertDomainNameAPI interface { + /* ConvertDomainNameConvert Convert the object. @@ -149,5 +150,6 @@ func (a *ConvertDomainNameAPIService) ConvertDomainNameConvertExecute(r ApiConve newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_convert_rname.go b/dns_config/api_convert_rname.go index e15f007..317d931 100644 --- a/dns_config/api_convert_rname.go +++ b/dns_config/api_convert_rname.go @@ -22,6 +22,7 @@ import ( ) type ConvertRnameAPI interface { + /* ConvertRnameConvertRName Convert the object. @@ -149,5 +150,6 @@ func (a *ConvertRnameAPIService) ConvertRnameConvertRNameExecute(r ApiConvertRna newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_delegation.go b/dns_config/api_delegation.go index 1aae7b6..3599ee3 100644 --- a/dns_config/api_delegation.go +++ b/dns_config/api_delegation.go @@ -22,72 +22,77 @@ import ( ) type DelegationAPI interface { + /* - DelegationCreate Create the Delegation object. + DelegationCreate Create the Delegation object. - Use this method to create a Delegation object. - This object (_dns/delegation_) represents a zone delegation. + Use this method to create a Delegation object. + This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDelegationCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDelegationCreateRequest */ DelegationCreate(ctx context.Context) ApiDelegationCreateRequest // DelegationCreateExecute executes the request // @return ConfigCreateDelegationResponse DelegationCreateExecute(r ApiDelegationCreateRequest) (*ConfigCreateDelegationResponse, *http.Response, error) + /* - DelegationDelete Moves the Delegation object to Recyclebin. + DelegationDelete Moves the Delegation object to Recyclebin. - Use this method to move a Delegation object to Recyclebin. - This object (_dns/delegation_) represents a zone delegation. + Use this method to move a Delegation object to Recyclebin. + This object (_dns/delegation_) represents a zone delegation. - @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 ApiDelegationDeleteRequest + @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 ApiDelegationDeleteRequest */ DelegationDelete(ctx context.Context, id string) ApiDelegationDeleteRequest // DelegationDeleteExecute executes the request DelegationDeleteExecute(r ApiDelegationDeleteRequest) (*http.Response, error) + /* - DelegationList List Delegation objects. + DelegationList List Delegation objects. - Use this method to list Delegation objects. - This object (_dns/delegation_) represents a zone delegation. + Use this method to list Delegation objects. + This object (_dns/delegation_) represents a zone delegation. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDelegationListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDelegationListRequest */ DelegationList(ctx context.Context) ApiDelegationListRequest // DelegationListExecute executes the request // @return ConfigListDelegationResponse DelegationListExecute(r ApiDelegationListRequest) (*ConfigListDelegationResponse, *http.Response, error) + /* - DelegationRead Read the Delegation object. + DelegationRead Read the Delegation object. - Use this method to read a Delegation object. - This object (_dns/delegation)_ represents a zone delegation. + Use this method to read a Delegation object. + This object (_dns/delegation)_ represents a zone delegation. - @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 ApiDelegationReadRequest + @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 ApiDelegationReadRequest */ DelegationRead(ctx context.Context, id string) ApiDelegationReadRequest // DelegationReadExecute executes the request // @return ConfigReadDelegationResponse DelegationReadExecute(r ApiDelegationReadRequest) (*ConfigReadDelegationResponse, *http.Response, error) + /* - DelegationUpdate Update the Delegation object. + DelegationUpdate Update the Delegation object. - Use this method to update a Delegation object. - This object (_dns/delegation_) represents a zone delegation. + Use this method to update a Delegation object. + This object (_dns/delegation_) represents a zone delegation. - @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 ApiDelegationUpdateRequest + @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 ApiDelegationUpdateRequest */ DelegationUpdate(ctx context.Context, id string) ApiDelegationUpdateRequest @@ -172,14 +177,6 @@ func (a *DelegationAPIService) DelegationCreateExecute(r ApiDelegationCreateRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *DelegationAPIService) DelegationCreateExecute(r ApiDelegationCreateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *DelegationAPIService) DelegationListExecute(r ApiDelegationListRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *DelegationAPIService) DelegationReadExecute(r ApiDelegationReadRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *DelegationAPIService) DelegationUpdateExecute(r ApiDelegationUpdateRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *DelegationAPIService) DelegationUpdateExecute(r ApiDelegationUpdateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_forward_nsg.go b/dns_config/api_forward_nsg.go index 8d33d4b..b27a0ea 100644 --- a/dns_config/api_forward_nsg.go +++ b/dns_config/api_forward_nsg.go @@ -22,72 +22,77 @@ import ( ) type ForwardNsgAPI interface { + /* - ForwardNsgCreate Create the ForwardNSG object. + ForwardNsgCreate Create the ForwardNSG object. - Use this method to create a ForwardNSG object. - The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to create a ForwardNSG object. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardNsgCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardNsgCreateRequest */ ForwardNsgCreate(ctx context.Context) ApiForwardNsgCreateRequest // ForwardNsgCreateExecute executes the request // @return ConfigCreateForwardNSGResponse ForwardNsgCreateExecute(r ApiForwardNsgCreateRequest) (*ConfigCreateForwardNSGResponse, *http.Response, error) + /* - ForwardNsgDelete Move the ForwardNSG object to Recyclebin. + ForwardNsgDelete Move the ForwardNSG object to Recyclebin. - Use this method to move a ForwardNSG object to Recyclebin. - The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to move a ForwardNSG object to Recyclebin. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @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 ApiForwardNsgDeleteRequest + @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 ApiForwardNsgDeleteRequest */ ForwardNsgDelete(ctx context.Context, id string) ApiForwardNsgDeleteRequest // ForwardNsgDeleteExecute executes the request ForwardNsgDeleteExecute(r ApiForwardNsgDeleteRequest) (*http.Response, error) + /* - ForwardNsgList List ForwardNSG objects. + ForwardNsgList List ForwardNSG objects. - Use this method to list ForwardNSG objects. - The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to list ForwardNSG objects. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardNsgListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardNsgListRequest */ ForwardNsgList(ctx context.Context) ApiForwardNsgListRequest // ForwardNsgListExecute executes the request // @return ConfigListForwardNSGResponse ForwardNsgListExecute(r ApiForwardNsgListRequest) (*ConfigListForwardNSGResponse, *http.Response, error) + /* - ForwardNsgRead Read the ForwardNSG object. + ForwardNsgRead Read the ForwardNSG object. - Use this method to read a ForwardNSG object. - The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to read a ForwardNSG object. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @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 ApiForwardNsgReadRequest + @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 ApiForwardNsgReadRequest */ ForwardNsgRead(ctx context.Context, id string) ApiForwardNsgReadRequest // ForwardNsgReadExecute executes the request // @return ConfigReadForwardNSGResponse ForwardNsgReadExecute(r ApiForwardNsgReadRequest) (*ConfigReadForwardNSGResponse, *http.Response, error) + /* - ForwardNsgUpdate Update the ForwardNSG object. + ForwardNsgUpdate Update the ForwardNSG object. - Use this method to update a ForwardNSG object. - The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. + Use this method to update a ForwardNSG object. + The _dns/forward_nsg_ object represents a Forward DNS Server Group for forward zones. - @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 ApiForwardNsgUpdateRequest + @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 ApiForwardNsgUpdateRequest */ ForwardNsgUpdate(ctx context.Context, id string) ApiForwardNsgUpdateRequest @@ -172,14 +177,6 @@ func (a *ForwardNsgAPIService) ForwardNsgCreateExecute(r ApiForwardNsgCreateRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *ForwardNsgAPIService) ForwardNsgCreateExecute(r ApiForwardNsgCreateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *ForwardNsgAPIService) ForwardNsgListExecute(r ApiForwardNsgListRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *ForwardNsgAPIService) ForwardNsgReadExecute(r ApiForwardNsgReadRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *ForwardNsgAPIService) ForwardNsgUpdateExecute(r ApiForwardNsgUpdateRequ if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *ForwardNsgAPIService) ForwardNsgUpdateExecute(r ApiForwardNsgUpdateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_forward_zone.go b/dns_config/api_forward_zone.go index 762417b..050208e 100644 --- a/dns_config/api_forward_zone.go +++ b/dns_config/api_forward_zone.go @@ -22,86 +22,92 @@ import ( ) type ForwardZoneAPI interface { + /* - ForwardZoneCopy Copies the __ForwardZone__ object. + ForwardZoneCopy Copies the __ForwardZone__ object. - Use this method to copy an __ForwardZone__ object to a different __View__. - This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to copy an __ForwardZone__ object to a different __View__. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneCopyRequest */ ForwardZoneCopy(ctx context.Context) ApiForwardZoneCopyRequest // ForwardZoneCopyExecute executes the request // @return ConfigCopyForwardZoneResponse ForwardZoneCopyExecute(r ApiForwardZoneCopyRequest) (*ConfigCopyForwardZoneResponse, *http.Response, error) + /* - ForwardZoneCreate Create the ForwardZone object. + ForwardZoneCreate Create the ForwardZone object. - Use this method to create a ForwardZone object. - This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to create a ForwardZone object. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneCreateRequest */ ForwardZoneCreate(ctx context.Context) ApiForwardZoneCreateRequest // ForwardZoneCreateExecute executes the request // @return ConfigCreateForwardZoneResponse ForwardZoneCreateExecute(r ApiForwardZoneCreateRequest) (*ConfigCreateForwardZoneResponse, *http.Response, error) + /* - ForwardZoneDelete Move the Forward Zone object to Recyclebin. + ForwardZoneDelete Move the Forward Zone object to Recyclebin. - Use this method to move a Forward Zone object to Recyclebin. - This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to move a Forward Zone object to Recyclebin. + This object (_dns/forward_zone_) represents a forwarding zone. - @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 ApiForwardZoneDeleteRequest + @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 ApiForwardZoneDeleteRequest */ ForwardZoneDelete(ctx context.Context, id string) ApiForwardZoneDeleteRequest // ForwardZoneDeleteExecute executes the request ForwardZoneDeleteExecute(r ApiForwardZoneDeleteRequest) (*http.Response, error) + /* - ForwardZoneList List Forward Zone objects. + ForwardZoneList List Forward Zone objects. - Use this method to list Forward Zone objects. - This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to list Forward Zone objects. + This object (_dns/forward_zone_) represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiForwardZoneListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiForwardZoneListRequest */ ForwardZoneList(ctx context.Context) ApiForwardZoneListRequest // ForwardZoneListExecute executes the request // @return ConfigListForwardZoneResponse ForwardZoneListExecute(r ApiForwardZoneListRequest) (*ConfigListForwardZoneResponse, *http.Response, error) + /* - ForwardZoneRead Read the Forward Zone object. + ForwardZoneRead Read the Forward Zone object. - Use this method to read a Forward Zone object. - This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to read a Forward Zone object. + This object (_dns/forward_zone_) represents a forwarding zone. - @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 ApiForwardZoneReadRequest + @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 ApiForwardZoneReadRequest */ ForwardZoneRead(ctx context.Context, id string) ApiForwardZoneReadRequest // ForwardZoneReadExecute executes the request // @return ConfigReadForwardZoneResponse ForwardZoneReadExecute(r ApiForwardZoneReadRequest) (*ConfigReadForwardZoneResponse, *http.Response, error) + /* - ForwardZoneUpdate Update the Forward Zone object. + ForwardZoneUpdate Update the Forward Zone object. - Use this method to update a Forward Zone object. - This object (_dns/forward_zone_) represents a forwarding zone. + Use this method to update a Forward Zone object. + This object (_dns/forward_zone_) represents a forwarding zone. - @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 ApiForwardZoneUpdateRequest + @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 ApiForwardZoneUpdateRequest */ ForwardZoneUpdate(ctx context.Context, id string) ApiForwardZoneUpdateRequest @@ -229,6 +235,7 @@ func (a *ForwardZoneAPIService) ForwardZoneCopyExecute(r ApiForwardZoneCopyReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -305,14 +312,6 @@ func (a *ForwardZoneAPIService) ForwardZoneCreateExecute(r ApiForwardZoneCreateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -356,6 +355,7 @@ func (a *ForwardZoneAPIService) ForwardZoneCreateExecute(r ApiForwardZoneCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -648,6 +648,7 @@ func (a *ForwardZoneAPIService) ForwardZoneListExecute(r ApiForwardZoneListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -770,6 +771,7 @@ func (a *ForwardZoneAPIService) ForwardZoneReadExecute(r ApiForwardZoneReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -850,14 +852,6 @@ func (a *ForwardZoneAPIService) ForwardZoneUpdateExecute(r ApiForwardZoneUpdateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -901,5 +895,6 @@ func (a *ForwardZoneAPIService) ForwardZoneUpdateExecute(r ApiForwardZoneUpdateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_global.go b/dns_config/api_global.go index 736b322..0c98b92 100644 --- a/dns_config/api_global.go +++ b/dns_config/api_global.go @@ -22,58 +22,62 @@ import ( ) type GlobalAPI interface { + /* - GlobalRead Read the Global configuration object. + GlobalRead Read the Global configuration object. - Use this method to read the Global configuration object. - Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to read the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalReadRequest */ GlobalRead(ctx context.Context) ApiGlobalReadRequest // GlobalReadExecute executes the request // @return ConfigReadGlobalResponse GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigReadGlobalResponse, *http.Response, error) + /* - GlobalRead2 Read the Global configuration object. + GlobalRead2 Read the Global configuration object. - Use this method to read the Global configuration object. - Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to read the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @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 ApiGlobalRead2Request + @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 ApiGlobalRead2Request */ GlobalRead2(ctx context.Context, id string) ApiGlobalRead2Request // GlobalRead2Execute executes the request // @return ConfigReadGlobalResponse GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigReadGlobalResponse, *http.Response, error) + /* - GlobalUpdate Update the Global configuration object. + GlobalUpdate Update the Global configuration object. - Use this method to update the Global configuration object. - Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to update the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalUpdateRequest */ GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequest // GlobalUpdateExecute executes the request // @return ConfigUpdateGlobalResponse GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*ConfigUpdateGlobalResponse, *http.Response, error) + /* - GlobalUpdate2 Update the Global configuration object. + GlobalUpdate2 Update the Global configuration object. - Use this method to update the Global configuration object. - Service operates on Global singleton object that represents parent configuration settings for inheritance. + Use this method to update the Global configuration object. + Service operates on Global singleton object that represents parent configuration settings for inheritance. - @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 ApiGlobalUpdate2Request + @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 ApiGlobalUpdate2Request */ GlobalUpdate2(ctx context.Context, id string) ApiGlobalUpdate2Request @@ -200,6 +204,7 @@ func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigRea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -322,6 +327,7 @@ func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -441,6 +447,7 @@ func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*Confi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -564,5 +571,6 @@ func (a *GlobalAPIService) GlobalUpdate2Execute(r ApiGlobalUpdate2Request) (*Con newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_host.go b/dns_config/api_host.go index fbef892..5a21638 100644 --- a/dns_config/api_host.go +++ b/dns_config/api_host.go @@ -22,44 +22,47 @@ import ( ) type HostAPI interface { + /* - HostList List DNS Host objects. + HostList List DNS Host objects. - Use this method to list DNS Host objects. - A DNS Host object associates DNS configuration with hosts. + Use this method to list DNS Host objects. + A DNS Host object associates DNS configuration with hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostListRequest */ HostList(ctx context.Context) ApiHostListRequest // HostListExecute executes the request // @return ConfigListHostResponse HostListExecute(r ApiHostListRequest) (*ConfigListHostResponse, *http.Response, error) + /* - HostRead Read the DNS Host object. + HostRead Read the DNS Host object. - Use this method to read a DNS Host object. - A DNS Host object associates DNS configuration with hosts. + Use this method to read a DNS Host object. + A DNS Host object associates DNS configuration with hosts. - @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 ApiHostReadRequest + @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 ApiHostReadRequest */ HostRead(ctx context.Context, id string) ApiHostReadRequest // HostReadExecute executes the request // @return ConfigReadHostResponse HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostResponse, *http.Response, error) + /* - HostUpdate Update the DNS Host object. + HostUpdate Update the DNS Host object. - Use this method to update a DNS Host object. - A DNS Host object associates DNS configuration with hosts. + Use this method to update a DNS Host object. + A DNS Host object associates DNS configuration with hosts. - @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 ApiHostUpdateRequest + @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 ApiHostUpdateRequest */ HostUpdate(ctx context.Context, id string) ApiHostUpdateRequest @@ -266,6 +269,7 @@ func (a *HostAPIService) HostListExecute(r ApiHostListRequest) (*ConfigListHostR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -398,6 +402,7 @@ func (a *HostAPIService) HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -488,14 +493,6 @@ func (a *HostAPIService) HostUpdateExecute(r ApiHostUpdateRequest) (*ConfigUpdat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -539,5 +536,6 @@ func (a *HostAPIService) HostUpdateExecute(r ApiHostUpdateRequest) (*ConfigUpdat newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_lbdn.go b/dns_config/api_lbdn.go index 33c2318..964f9a3 100644 --- a/dns_config/api_lbdn.go +++ b/dns_config/api_lbdn.go @@ -22,6 +22,7 @@ import ( ) type LbdnAPI interface { + /* LbdnCreate Create the __LBDN__ object. @@ -35,6 +36,7 @@ type LbdnAPI interface { // LbdnCreateExecute executes the request // @return ConfigCreateLBDNResponse LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreateLBDNResponse, *http.Response, error) + /* LbdnDelete Delete the __LBDN__ object. @@ -48,6 +50,7 @@ type LbdnAPI interface { // LbdnDeleteExecute executes the request LbdnDeleteExecute(r ApiLbdnDeleteRequest) (*http.Response, error) + /* LbdnList List __LBDN__ objects. @@ -61,6 +64,7 @@ type LbdnAPI interface { // LbdnListExecute executes the request // @return ConfigListLBDNResponse LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNResponse, *http.Response, error) + /* LbdnRead Read the __LBDN__ object. @@ -75,6 +79,7 @@ type LbdnAPI interface { // LbdnReadExecute executes the request // @return ConfigReadLBDNResponse LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNResponse, *http.Response, error) + /* LbdnUpdate Update the __LBDN__ object. @@ -166,14 +171,6 @@ func (a *LbdnAPIService) LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -217,6 +214,7 @@ func (a *LbdnAPIService) LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreat newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -507,6 +505,7 @@ func (a *LbdnAPIService) LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -628,6 +627,7 @@ func (a *LbdnAPIService) LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -707,14 +707,6 @@ func (a *LbdnAPIService) LbdnUpdateExecute(r ApiLbdnUpdateRequest) (*ConfigUpdat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -758,5 +750,6 @@ func (a *LbdnAPIService) LbdnUpdateExecute(r ApiLbdnUpdateRequest) (*ConfigUpdat newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_server.go b/dns_config/api_server.go index f759fa5..e6474e3 100644 --- a/dns_config/api_server.go +++ b/dns_config/api_server.go @@ -22,72 +22,77 @@ import ( ) type ServerAPI interface { + /* - ServerCreate Create the Server object. + ServerCreate Create the Server object. - Use this method to create a Server object. - A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to create a Server object. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerCreateRequest */ ServerCreate(ctx context.Context) ApiServerCreateRequest // ServerCreateExecute executes the request // @return ConfigCreateServerResponse ServerCreateExecute(r ApiServerCreateRequest) (*ConfigCreateServerResponse, *http.Response, error) + /* - ServerDelete Move the Server object to Recyclebin. + ServerDelete Move the Server object to Recyclebin. - Use this method to move a Server object to Recyclebin. - A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to move a Server object to Recyclebin. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @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 ApiServerDeleteRequest + @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 ApiServerDeleteRequest */ ServerDelete(ctx context.Context, id string) ApiServerDeleteRequest // ServerDeleteExecute executes the request ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) + /* - ServerList List Server objects. + ServerList List Server objects. - Use this method to list Server objects. - A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to list Server objects. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerListRequest */ ServerList(ctx context.Context) ApiServerListRequest // ServerListExecute executes the request // @return ConfigListServerResponse ServerListExecute(r ApiServerListRequest) (*ConfigListServerResponse, *http.Response, error) + /* - ServerRead Read the Server object. + ServerRead Read the Server object. - Use this method to read a Server object. - A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to read a Server object. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @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 ApiServerReadRequest + @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 ApiServerReadRequest */ ServerRead(ctx context.Context, id string) ApiServerReadRequest // ServerReadExecute executes the request // @return ConfigReadServerResponse ServerReadExecute(r ApiServerReadRequest) (*ConfigReadServerResponse, *http.Response, error) + /* - ServerUpdate Update the Server object. + ServerUpdate Update the Server object. - Use this method to update a Server object. - A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. + Use this method to update a Server object. + A DNS Config Profile is a named configuration profile that can be shared for specified list of hosts. - @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 ApiServerUpdateRequest + @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 ApiServerUpdateRequest */ ServerUpdate(ctx context.Context, id string) ApiServerUpdateRequest @@ -182,14 +187,6 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Confi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -233,6 +230,7 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Confi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -535,6 +533,7 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*ConfigLis newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -667,6 +666,7 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*ConfigRea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -757,14 +757,6 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Confi if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -808,5 +800,6 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Confi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/api_view.go b/dns_config/api_view.go index 5bd8d32..7ae3fe4 100644 --- a/dns_config/api_view.go +++ b/dns_config/api_view.go @@ -22,87 +22,93 @@ import ( ) type ViewAPI interface { + /* - ViewBulkCopy Copies the specified __AuthZone__ and __ForwardZone__ objects in the __View__. + ViewBulkCopy Copies the specified __AuthZone__ and __ForwardZone__ objects in the __View__. - Use this method to bulk copy __AuthZone__ and __ForwardZone__ objects from one __View__ object to another __View__ object. - The __AuthZone__ object represents an authoritative zone. - The __ForwardZone__ object represents a forwarding zone. + Use this method to bulk copy __AuthZone__ and __ForwardZone__ objects from one __View__ object to another __View__ object. + The __AuthZone__ object represents an authoritative zone. + The __ForwardZone__ object represents a forwarding zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewBulkCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewBulkCopyRequest */ ViewBulkCopy(ctx context.Context) ApiViewBulkCopyRequest // ViewBulkCopyExecute executes the request // @return ConfigBulkCopyResponse ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigBulkCopyResponse, *http.Response, error) + /* - ViewCreate Create the View object. + ViewCreate Create the View object. - Use this method to create a View object. - Named collection of DNS View settings. + Use this method to create a View object. + Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewCreateRequest */ ViewCreate(ctx context.Context) ApiViewCreateRequest // ViewCreateExecute executes the request // @return ConfigCreateViewResponse ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreateViewResponse, *http.Response, error) + /* - ViewDelete Move the View object to Recyclebin. + ViewDelete Move the View object to Recyclebin. - Use this method to move a View object to Recyclebin. - Named collection of DNS View settings. + Use this method to move a View object to Recyclebin. + Named collection of DNS View settings. - @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 ApiViewDeleteRequest + @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 ApiViewDeleteRequest */ ViewDelete(ctx context.Context, id string) ApiViewDeleteRequest // ViewDeleteExecute executes the request ViewDeleteExecute(r ApiViewDeleteRequest) (*http.Response, error) + /* - ViewList List View objects. + ViewList List View objects. - Use this method to list View objects. - Named collection of DNS View settings. + Use this method to list View objects. + Named collection of DNS View settings. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViewListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViewListRequest */ ViewList(ctx context.Context) ApiViewListRequest // ViewListExecute executes the request // @return ConfigListViewResponse ViewListExecute(r ApiViewListRequest) (*ConfigListViewResponse, *http.Response, error) + /* - ViewRead Read the View object. + ViewRead Read the View object. - Use this method to read a View object. - Named collection of DNS View settings. + Use this method to read a View object. + Named collection of DNS View settings. - @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 ApiViewReadRequest + @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 ApiViewReadRequest */ ViewRead(ctx context.Context, id string) ApiViewReadRequest // ViewReadExecute executes the request // @return ConfigReadViewResponse ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewResponse, *http.Response, error) + /* - ViewUpdate Update the View object. + ViewUpdate Update the View object. - Use this method to update a View object. - Named collection of DNS View settings. + Use this method to update a View object. + Named collection of DNS View settings. - @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 ApiViewUpdateRequest + @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 ApiViewUpdateRequest */ ViewUpdate(ctx context.Context, id string) ApiViewUpdateRequest @@ -231,6 +237,7 @@ func (a *ViewAPIService) ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigB newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -317,14 +324,6 @@ func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -368,6 +367,7 @@ func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreat newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -670,6 +670,7 @@ func (a *ViewAPIService) ViewListExecute(r ApiViewListRequest) (*ConfigListViewR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -802,6 +803,7 @@ func (a *ViewAPIService) ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -892,14 +894,6 @@ func (a *ViewAPIService) ViewUpdateExecute(r ApiViewUpdateRequest) (*ConfigUpdat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -943,5 +937,6 @@ func (a *ViewAPIService) ViewUpdateExecute(r ApiViewUpdateRequest) (*ConfigUpdat newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_config/docs/ConfigForwarder.md b/dns_config/docs/ConfigForwarder.md index 2304007..6394250 100644 --- a/dns_config/docs/ConfigForwarder.md +++ b/dns_config/docs/ConfigForwarder.md @@ -5,14 +5,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | Server IP address. | -**Fqdn** | Pointer to **string** | Server FQDN. | [optional] +**Fqdn** | **string** | Server FQDN. | **ProtocolFqdn** | Pointer to **string** | Server FQDN in punycode. | [optional] [readonly] ## Methods ### NewConfigForwarder -`func NewConfigForwarder(address string, ) *ConfigForwarder` +`func NewConfigForwarder(address string, fqdn string, ) *ConfigForwarder` NewConfigForwarder instantiates a new ConfigForwarder object This constructor will assign default values to properties that have it defined, @@ -66,11 +66,6 @@ and a boolean to check if the value has been set. SetFqdn sets Fqdn field to given value. -### HasFqdn - -`func (o *ConfigForwarder) HasFqdn() bool` - -HasFqdn returns a boolean if a field has been set. ### GetProtocolFqdn diff --git a/dns_config/model_config_forwarder.go b/dns_config/model_config_forwarder.go index 2a455ee..236ecc6 100644 --- a/dns_config/model_config_forwarder.go +++ b/dns_config/model_config_forwarder.go @@ -24,7 +24,7 @@ type ConfigForwarder struct { // Server IP address. Address string `json:"address"` // Server FQDN. - Fqdn *string `json:"fqdn,omitempty"` + Fqdn string `json:"fqdn"` // Server FQDN in punycode. ProtocolFqdn *string `json:"protocol_fqdn,omitempty"` } @@ -35,9 +35,10 @@ type _ConfigForwarder ConfigForwarder // This constructor will assign default values to properties that have it defined, // 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 NewConfigForwarder(address string) *ConfigForwarder { +func NewConfigForwarder(address string, fqdn string) *ConfigForwarder { this := ConfigForwarder{} this.Address = address + this.Fqdn = fqdn return &this } @@ -73,36 +74,28 @@ func (o *ConfigForwarder) SetAddress(v string) { o.Address = v } -// GetFqdn returns the Fqdn field value if set, zero value otherwise. +// GetFqdn returns the Fqdn field value func (o *ConfigForwarder) GetFqdn() string { - if o == nil || IsNil(o.Fqdn) { + if o == nil { var ret string return ret } - return *o.Fqdn + + return o.Fqdn } -// GetFqdnOk returns a tuple with the Fqdn field value if set, nil otherwise +// GetFqdnOk returns a tuple with the Fqdn field value // and a boolean to check if the value has been set. func (o *ConfigForwarder) GetFqdnOk() (*string, bool) { - if o == nil || IsNil(o.Fqdn) { + if o == nil { return nil, false } - return o.Fqdn, true -} - -// HasFqdn returns a boolean if a field has been set. -func (o *ConfigForwarder) HasFqdn() bool { - if o != nil && !IsNil(o.Fqdn) { - return true - } - - return false + return &o.Fqdn, true } -// SetFqdn gets a reference to the given string and assigns it to the Fqdn field. +// SetFqdn sets field value func (o *ConfigForwarder) SetFqdn(v string) { - o.Fqdn = &v + o.Fqdn = v } // GetProtocolFqdn returns the ProtocolFqdn field value if set, zero value otherwise. @@ -148,9 +141,7 @@ func (o ConfigForwarder) MarshalJSON() ([]byte, error) { func (o ConfigForwarder) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address - if !IsNil(o.Fqdn) { - toSerialize["fqdn"] = o.Fqdn - } + toSerialize["fqdn"] = o.Fqdn if !IsNil(o.ProtocolFqdn) { toSerialize["protocol_fqdn"] = o.ProtocolFqdn } @@ -163,6 +154,7 @@ func (o *ConfigForwarder) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "address", + "fqdn", } allProperties := make(map[string]interface{}) diff --git a/dns_data/.openapi-generator/FILES b/dns_data/.openapi-generator/FILES index 0c87762..606c946 100644 --- a/dns_data/.openapi-generator/FILES +++ b/dns_data/.openapi-generator/FILES @@ -22,5 +22,4 @@ model_data_soa_serial_increment_response.go model_data_update_record_response.go model_inheritance2_inherited_u_int32.go model_protobuf_field_mask.go -test/api_record_test.go utils.go diff --git a/dns_data/api_record.go b/dns_data/api_record.go index 3caac75..e6f6b3d 100644 --- a/dns_data/api_record.go +++ b/dns_data/api_record.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -18,92 +18,97 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type RecordAPI interface { + /* - RecordCreate Create the DNS resource record. + RecordCreate Create the DNS resource record. - Use this method to create a DNS __Record__ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to create a DNS __Record__ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordCreateRequest */ RecordCreate(ctx context.Context) ApiRecordCreateRequest // RecordCreateExecute executes the request // @return DataCreateRecordResponse RecordCreateExecute(r ApiRecordCreateRequest) (*DataCreateRecordResponse, *http.Response, error) + /* - RecordDelete Move the DNS resource record to recycle bin. + RecordDelete Move the DNS resource record to recycle bin. - Use this method to move a DNS __Record__ object to the recycle bin. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to move a DNS __Record__ object to the recycle bin. + A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordDeleteRequest + @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 ApiRecordDeleteRequest */ RecordDelete(ctx context.Context, id string) ApiRecordDeleteRequest // RecordDeleteExecute executes the request RecordDeleteExecute(r ApiRecordDeleteRequest) (*http.Response, error) + /* - RecordList Retrieve DNS resource records. + RecordList Retrieve DNS resource records. - Use this method to retrieve DNS __Record__ objects. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to retrieve DNS __Record__ objects. + A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordListRequest */ RecordList(ctx context.Context) ApiRecordListRequest // RecordListExecute executes the request // @return DataListRecordResponse RecordListExecute(r ApiRecordListRequest) (*DataListRecordResponse, *http.Response, error) + /* - RecordRead Retrieve the DNS resource record. + RecordRead Retrieve the DNS resource record. - Use this method to retrieve a DNS __Record__ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to retrieve a DNS __Record__ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordReadRequest + @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 ApiRecordReadRequest */ RecordRead(ctx context.Context, id string) ApiRecordReadRequest // RecordReadExecute executes the request // @return DataReadRecordResponse RecordReadExecute(r ApiRecordReadRequest) (*DataReadRecordResponse, *http.Response, error) + /* - RecordSOASerialIncrement Increment serial number for the SOA record. + RecordSOASerialIncrement Increment serial number for the SOA record. - Use this method to increment the serial number for an SOA (Start of Authority) _Record_ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to increment the serial number for an SOA (Start of Authority) _Record_ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordSOASerialIncrementRequest + @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 ApiRecordSOASerialIncrementRequest */ RecordSOASerialIncrement(ctx context.Context, id string) ApiRecordSOASerialIncrementRequest // RecordSOASerialIncrementExecute executes the request // @return DataSOASerialIncrementResponse RecordSOASerialIncrementExecute(r ApiRecordSOASerialIncrementRequest) (*DataSOASerialIncrementResponse, *http.Response, error) + /* - RecordUpdate Update the DNS resource record. + RecordUpdate Update the DNS resource record. - Use this method to update a DNS __Record__ object. -A __Record__ object represents a DNS resource record in an authoritative zone. + Use this method to update a DNS __Record__ object. + A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordUpdateRequest + @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 ApiRecordUpdateRequest */ RecordUpdate(ctx context.Context, id string) ApiRecordUpdateRequest @@ -116,10 +121,10 @@ A __Record__ object represents a DNS resource record in an authoritative zone. type RecordAPIService internal.Service type ApiRecordCreateRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - body *DataRecord - inherit *string + body *DataRecord + inherit *string } func (r ApiRecordCreateRequest) Body(body DataRecord) ApiRecordCreateRequest { @@ -143,24 +148,25 @@ RecordCreate Create the DNS resource record. Use this method to create a DNS __Record__ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordCreateRequest */ func (a *RecordAPIService) RecordCreate(ctx context.Context) ApiRecordCreateRequest { return ApiRecordCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return DataCreateRecordResponse +// +// @return DataCreateRecordResponse func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataCreateRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataCreateRecordResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataCreateRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordCreate") @@ -197,14 +203,6 @@ func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -248,13 +246,14 @@ func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } type ApiRecordDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string + id string } func (r ApiRecordDeleteRequest) Execute() (*http.Response, error) { @@ -267,24 +266,24 @@ RecordDelete Move the DNS resource record to recycle bin. Use this method to move a DNS __Record__ object to the recycle bin. A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordDeleteRequest + @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 ApiRecordDeleteRequest */ func (a *RecordAPIService) RecordDelete(ctx context.Context, id string) ApiRecordDeleteRequest { return ApiRecordDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *RecordAPIService) RecordDeleteExecute(r ApiRecordDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordDelete") @@ -356,50 +355,50 @@ func (a *RecordAPIService) RecordDeleteExecute(r ApiRecordDeleteRequest) (*http. } type ApiRecordListRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string - inherit *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. + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *string + inherit *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 ApiRecordListRequest) Fields(fields string) ApiRecordListRequest { 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 | +// 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 ApiRecordListRequest) Filter(filter string) ApiRecordListRequest { 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'. +// 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 ApiRecordListRequest) Offset(offset int32) ApiRecordListRequest { 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. +// 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 ApiRecordListRequest) Limit(limit int32) ApiRecordListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiRecordListRequest) PageToken(pageToken string) ApiRecordListRequest { 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. +// 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 ApiRecordListRequest) OrderBy(orderBy string) ApiRecordListRequest { r.orderBy = &orderBy return r @@ -433,24 +432,25 @@ RecordList Retrieve DNS resource records. Use this method to retrieve DNS __Record__ objects. A __Record__ object represents a DNS resource record in an authoritative zone. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRecordListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRecordListRequest */ func (a *RecordAPIService) RecordList(ctx context.Context) ApiRecordListRequest { return ApiRecordListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return DataListRecordResponse +// +// @return DataListRecordResponse func (a *RecordAPIService) RecordListExecute(r ApiRecordListRequest) (*DataListRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataListRecordResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataListRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordList") @@ -549,18 +549,19 @@ func (a *RecordAPIService) RecordListExecute(r ApiRecordListRequest) (*DataListR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } type ApiRecordReadRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string - fields *string - inherit *string + id string + fields *string + inherit *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. +// 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 ApiRecordReadRequest) Fields(fields string) ApiRecordReadRequest { r.fields = &fields return r @@ -582,26 +583,27 @@ RecordRead Retrieve the DNS resource record. Use this method to retrieve a DNS __Record__ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordReadRequest + @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 ApiRecordReadRequest */ func (a *RecordAPIService) RecordRead(ctx context.Context, id string) ApiRecordReadRequest { return ApiRecordReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return DataReadRecordResponse +// +// @return DataReadRecordResponse func (a *RecordAPIService) RecordReadExecute(r ApiRecordReadRequest) (*DataReadRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataReadRecordResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataReadRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordRead") @@ -680,14 +682,15 @@ func (a *RecordAPIService) RecordReadExecute(r ApiRecordReadRequest) (*DataReadR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } type ApiRecordSOASerialIncrementRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string - body *DataSOASerialIncrementRequest + id string + body *DataSOASerialIncrementRequest } func (r ApiRecordSOASerialIncrementRequest) Body(body DataSOASerialIncrementRequest) ApiRecordSOASerialIncrementRequest { @@ -705,26 +708,27 @@ RecordSOASerialIncrement Increment serial number for the SOA record. Use this method to increment the serial number for an SOA (Start of Authority) _Record_ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordSOASerialIncrementRequest + @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 ApiRecordSOASerialIncrementRequest */ func (a *RecordAPIService) RecordSOASerialIncrement(ctx context.Context, id string) ApiRecordSOASerialIncrementRequest { return ApiRecordSOASerialIncrementRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return DataSOASerialIncrementResponse +// +// @return DataSOASerialIncrementResponse func (a *RecordAPIService) RecordSOASerialIncrementExecute(r ApiRecordSOASerialIncrementRequest) (*DataSOASerialIncrementResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataSOASerialIncrementResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataSOASerialIncrementResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordSOASerialIncrement") @@ -802,15 +806,16 @@ func (a *RecordAPIService) RecordSOASerialIncrementExecute(r ApiRecordSOASerialI newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } type ApiRecordUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService RecordAPI - id string - body *DataRecord - inherit *string + id string + body *DataRecord + inherit *string } func (r ApiRecordUpdateRequest) Body(body DataRecord) ApiRecordUpdateRequest { @@ -834,26 +839,27 @@ RecordUpdate Update the DNS resource record. Use this method to update a DNS __Record__ object. A __Record__ object represents a DNS resource record in an authoritative zone. - @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 ApiRecordUpdateRequest + @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 ApiRecordUpdateRequest */ func (a *RecordAPIService) RecordUpdate(ctx context.Context, id string) ApiRecordUpdateRequest { return ApiRecordUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return DataUpdateRecordResponse +// +// @return DataUpdateRecordResponse func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataUpdateRecordResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DataUpdateRecordResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DataUpdateRecordResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "RecordAPIService.RecordUpdate") @@ -891,14 +897,6 @@ func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataU if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -942,5 +940,6 @@ func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataU newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/dns_data/model_data_create_record_response.go b/dns_data/model_data_create_record_response.go index 2914142..870d899 100644 --- a/dns_data/model_data_create_record_response.go +++ b/dns_data/model_data_create_record_response.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *DataCreateRecordResponse) SetResult(v DataRecord) { } func (o DataCreateRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataCreateRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_list_record_response.go b/dns_data/model_data_list_record_response.go index 8ce789e..e633b11 100644 --- a/dns_data/model_data_list_record_response.go +++ b/dns_data/model_data_list_record_response.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -73,7 +73,7 @@ func (o *DataListRecordResponse) SetResults(v []DataRecord) { } func (o DataListRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableDataListRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_read_record_response.go b/dns_data/model_data_read_record_response.go index 57ccdab..7541c04 100644 --- a/dns_data/model_data_read_record_response.go +++ b/dns_data/model_data_read_record_response.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *DataReadRecordResponse) SetResult(v DataRecord) { } func (o DataReadRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataReadRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_record_inheritance.go b/dns_data/model_data_record_inheritance.go index 88f08ec..55e5209 100644 --- a/dns_data/model_data_record_inheritance.go +++ b/dns_data/model_data_record_inheritance.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *DataRecordInheritance) SetTtl(v Inheritance2InheritedUInt32) { } func (o DataRecordInheritance) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataRecordInheritance) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_soa_serial_increment_request.go b/dns_data/model_data_soa_serial_increment_request.go index 2ae5f8c..ce4dabf 100644 --- a/dns_data/model_data_soa_serial_increment_request.go +++ b/dns_data/model_data_soa_serial_increment_request.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -140,7 +140,7 @@ func (o *DataSOASerialIncrementRequest) SetSerialIncrement(v int64) { } func (o DataSOASerialIncrementRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -196,5 +196,3 @@ func (v *NullableDataSOASerialIncrementRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_soa_serial_increment_response.go b/dns_data/model_data_soa_serial_increment_response.go index cc83af7..352d117 100644 --- a/dns_data/model_data_soa_serial_increment_response.go +++ b/dns_data/model_data_soa_serial_increment_response.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *DataSOASerialIncrementResponse) SetResult(v DataRecord) { } func (o DataSOASerialIncrementResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataSOASerialIncrementResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_data_update_record_response.go b/dns_data/model_data_update_record_response.go index ac6d08d..aca7ee5 100644 --- a/dns_data/model_data_update_record_response.go +++ b/dns_data/model_data_update_record_response.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *DataUpdateRecordResponse) SetResult(v DataRecord) { } func (o DataUpdateRecordResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableDataUpdateRecordResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_inheritance2_inherited_u_int32.go b/dns_data/model_inheritance2_inherited_u_int32.go index 9d2885f..c23f897 100644 --- a/dns_data/model_inheritance2_inherited_u_int32.go +++ b/dns_data/model_inheritance2_inherited_u_int32.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -175,7 +175,7 @@ func (o *Inheritance2InheritedUInt32) SetValue(v int64) { } func (o Inheritance2InheritedUInt32) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -234,5 +234,3 @@ func (v *NullableInheritance2InheritedUInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/dns_data/model_protobuf_field_mask.go b/dns_data/model_protobuf_field_mask.go index 21401df..17ded5d 100644 --- a/dns_data/model_protobuf_field_mask.go +++ b/dns_data/model_protobuf_field_mask.go @@ -1,7 +1,7 @@ /* DNS Data API -The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DNS Data is a BloxOne DDI service providing primary authoritative zone support. DNS Data is authoritative for all DNS resource records and is acting as a primary DNS server. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -73,7 +73,7 @@ func (o *ProtobufFieldMask) SetPaths(v []string) { } func (o ProtobufFieldMask) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableProtobufFieldMask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/infra_mgmt/api_detail.go b/infra_mgmt/api_detail.go index 5f04bf8..cb3d549 100644 --- a/infra_mgmt/api_detail.go +++ b/infra_mgmt/api_detail.go @@ -21,6 +21,7 @@ import ( ) type DetailAPI interface { + /* DetailHostsList List all the Hosts along with its associated Services (applications). @@ -32,6 +33,7 @@ type DetailAPI interface { // DetailHostsListExecute executes the request // @return InfraListDetailHostsResponse DetailHostsListExecute(r ApiDetailHostsListRequest) (*InfraListDetailHostsResponse, *http.Response, error) + /* DetailServicesList List all the Services (applications) along with its associated Hosts. @@ -230,6 +232,7 @@ func (a *DetailAPIService) DetailHostsListExecute(r ApiDetailHostsListRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -415,5 +418,6 @@ func (a *DetailAPIService) DetailServicesListExecute(r ApiDetailServicesListRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/infra_mgmt/api_hosts.go b/infra_mgmt/api_hosts.go index 159f42a..4c614f0 100644 --- a/infra_mgmt/api_hosts.go +++ b/infra_mgmt/api_hosts.go @@ -22,49 +22,53 @@ import ( ) type HostsAPI interface { + /* - HostsAssignTags Assign tags for list of hosts. + HostsAssignTags Assign tags for list of hosts. - Validation: - - "ids" is required. - - "tags" is required. + Validation: + - "ids" is required. + - "tags" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsAssignTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsAssignTagsRequest */ HostsAssignTags(ctx context.Context) ApiHostsAssignTagsRequest // HostsAssignTagsExecute executes the request // @return map[string]interface{} HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (map[string]interface{}, *http.Response, error) + /* - HostsCreate Create a Host resource. + HostsCreate Create a Host resource. - Validation: - - "display_name" is required and should be unique. + Validation: + - "display_name" is required and should be unique. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsCreateRequest */ HostsCreate(ctx context.Context) ApiHostsCreateRequest // HostsCreateExecute executes the request // @return InfraCreateHostResponse HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCreateHostResponse, *http.Response, error) + /* - HostsDelete Delete a Host resource. + HostsDelete Delete a Host resource. - Validation: - - "id" is required. + Validation: + - "id" is required. - @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 ApiHostsDeleteRequest + @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 ApiHostsDeleteRequest */ HostsDelete(ctx context.Context, id string) ApiHostsDeleteRequest // HostsDeleteExecute executes the request HostsDeleteExecute(r ApiHostsDeleteRequest) (*http.Response, error) + /* HostsDisconnect Disconnect a Host by resource ID. @@ -79,6 +83,7 @@ type HostsAPI interface { // HostsDisconnectExecute executes the request // @return map[string]interface{} HostsDisconnectExecute(r ApiHostsDisconnectRequest) (map[string]interface{}, *http.Response, error) + /* HostsList List all the Host resources for an account. @@ -90,21 +95,23 @@ type HostsAPI interface { // HostsListExecute executes the request // @return InfraListHostResponse HostsListExecute(r ApiHostsListRequest) (*InfraListHostResponse, *http.Response, error) + /* - HostsRead Get a Host resource. + HostsRead Get a Host resource. - Validation: - - "id" is required. + Validation: + - "id" is required. - @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 ApiHostsReadRequest + @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 ApiHostsReadRequest */ HostsRead(ctx context.Context, id string) ApiHostsReadRequest // HostsReadExecute executes the request // @return InfraGetHostResponse HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHostResponse, *http.Response, error) + /* HostsReplace Migrate a Host's configuration from one to another. @@ -118,32 +125,34 @@ type HostsAPI interface { // HostsReplaceExecute executes the request // @return map[string]interface{} HostsReplaceExecute(r ApiHostsReplaceRequest) (map[string]interface{}, *http.Response, error) + /* - HostsUnassignTags Unassign tag for the list hosts. + HostsUnassignTags Unassign tag for the list hosts. - Validation: - - "ids" is required. - - "keys" is required. + Validation: + - "ids" is required. + - "keys" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHostsUnassignTagsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHostsUnassignTagsRequest */ HostsUnassignTags(ctx context.Context) ApiHostsUnassignTagsRequest // HostsUnassignTagsExecute executes the request // @return map[string]interface{} HostsUnassignTagsExecute(r ApiHostsUnassignTagsRequest) (map[string]interface{}, *http.Response, error) + /* - HostsUpdate Update a Host resource. + HostsUpdate Update a Host resource. - Validation: - - "id" is required. - - "display_name" is required and should be unique. - - "pool_id" is required. + Validation: + - "id" is required. + - "display_name" is required and should be unique. + - "pool_id" is required. - @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 ApiHostsUpdateRequest + @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 ApiHostsUpdateRequest */ HostsUpdate(ctx context.Context, id string) ApiHostsUpdateRequest @@ -229,14 +238,6 @@ func (a *HostsAPIService) HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (m if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -280,6 +281,7 @@ func (a *HostsAPIService) HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (m newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -356,14 +358,6 @@ func (a *HostsAPIService) HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCre if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -407,6 +401,7 @@ func (a *HostsAPIService) HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCre newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -633,6 +628,7 @@ func (a *HostsAPIService) HostsDisconnectExecute(r ApiHostsDisconnectRequest) (m newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -818,6 +814,7 @@ func (a *HostsAPIService) HostsListExecute(r ApiHostsListRequest) (*InfraListHos newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -930,6 +927,7 @@ func (a *HostsAPIService) HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHost newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1054,6 +1052,7 @@ func (a *HostsAPIService) HostsReplaceExecute(r ApiHostsReplaceRequest) (map[str newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1174,6 +1173,7 @@ func (a *HostsAPIService) HostsUnassignTagsExecute(r ApiHostsUnassignTagsRequest newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1256,14 +1256,6 @@ func (a *HostsAPIService) HostsUpdateExecute(r ApiHostsUpdateRequest) (*InfraUpd if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1307,5 +1299,6 @@ func (a *HostsAPIService) HostsUpdateExecute(r ApiHostsUpdateRequest) (*InfraUpd newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/infra_mgmt/api_services.go b/infra_mgmt/api_services.go index 0de1c2d..b76de6d 100644 --- a/infra_mgmt/api_services.go +++ b/infra_mgmt/api_services.go @@ -22,6 +22,7 @@ import ( ) type ServicesAPI interface { + /* ServicesApplications List applications (Service types) for a particular account. @@ -35,36 +36,39 @@ type ServicesAPI interface { // ServicesApplicationsExecute executes the request // @return InfraApplicationsResponse ServicesApplicationsExecute(r ApiServicesApplicationsRequest) (*InfraApplicationsResponse, *http.Response, error) + /* - ServicesCreate Create a Service resource. + ServicesCreate Create a Service resource. - Validation: - - "name" is required and should be unique. - - "service_type" is required. - - "pool_id" is required. + Validation: + - "name" is required and should be unique. + - "service_type" is required. + - "pool_id" is required. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServicesCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServicesCreateRequest */ ServicesCreate(ctx context.Context) ApiServicesCreateRequest // ServicesCreateExecute executes the request // @return InfraCreateServiceResponse ServicesCreateExecute(r ApiServicesCreateRequest) (*InfraCreateServiceResponse, *http.Response, error) + /* - ServicesDelete Delete a Service resource. + ServicesDelete Delete a Service resource. - Validation: - - "id" is required. + Validation: + - "id" is required. - @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 ApiServicesDeleteRequest + @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 ApiServicesDeleteRequest */ ServicesDelete(ctx context.Context, id string) ApiServicesDeleteRequest // ServicesDeleteExecute executes the request ServicesDeleteExecute(r ApiServicesDeleteRequest) (*http.Response, error) + /* ServicesList List all the Service resources for an account. @@ -76,33 +80,35 @@ type ServicesAPI interface { // ServicesListExecute executes the request // @return InfraListServiceResponse ServicesListExecute(r ApiServicesListRequest) (*InfraListServiceResponse, *http.Response, error) + /* - ServicesRead Read a Service resource. + ServicesRead Read a Service resource. - Validation: - - "id" is required. + Validation: + - "id" is required. - @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 ApiServicesReadRequest + @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 ApiServicesReadRequest */ ServicesRead(ctx context.Context, id string) ApiServicesReadRequest // ServicesReadExecute executes the request // @return InfraGetServiceResponse ServicesReadExecute(r ApiServicesReadRequest) (*InfraGetServiceResponse, *http.Response, error) + /* - ServicesUpdate Update a Service resource. + ServicesUpdate Update a Service resource. - Validation: - - "id" is required. - - "name" is required and should be unique. - - "service_type" is required. - - "pool_id" is required. + Validation: + - "id" is required. + - "name" is required and should be unique. + - "service_type" is required. + - "pool_id" is required. - @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 ApiServicesUpdateRequest + @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 ApiServicesUpdateRequest */ ServicesUpdate(ctx context.Context, id string) ApiServicesUpdateRequest @@ -228,6 +234,7 @@ func (a *ServicesAPIService) ServicesApplicationsExecute(r ApiServicesApplicatio newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -306,14 +313,6 @@ func (a *ServicesAPIService) ServicesCreateExecute(r ApiServicesCreateRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -357,6 +356,7 @@ func (a *ServicesAPIService) ServicesCreateExecute(r ApiServicesCreateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -646,6 +646,7 @@ func (a *ServicesAPIService) ServicesListExecute(r ApiServicesListRequest) (*Inf newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -758,6 +759,7 @@ func (a *ServicesAPIService) ServicesReadExecute(r ApiServicesReadRequest) (*Inf newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -841,14 +843,6 @@ func (a *ServicesAPIService) ServicesUpdateExecute(r ApiServicesUpdateRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -892,5 +886,6 @@ func (a *ServicesAPIService) ServicesUpdateExecute(r ApiServicesUpdateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/infra_provision/api_ui_join_token.go b/infra_provision/api_ui_join_token.go index 7b25b49..8a966e1 100644 --- a/infra_provision/api_ui_join_token.go +++ b/infra_provision/api_ui_join_token.go @@ -22,21 +22,23 @@ import ( ) type UIJoinTokenAPI interface { + /* - UIJoinTokenCreate User can create a join token. Join token is random character string which is used for instant validation of new hosts. + UIJoinTokenCreate User can create a join token. Join token is random character string which is used for instant validation of new hosts. - Validation: - - "name" is required and should be unique. - - "description" is optioanl. + Validation: + - "name" is required and should be unique. + - "description" is optioanl. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUIJoinTokenCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUIJoinTokenCreateRequest */ UIJoinTokenCreate(ctx context.Context) ApiUIJoinTokenCreateRequest // UIJoinTokenCreateExecute executes the request // @return HostactivationCreateJoinTokenResponse UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateRequest) (*HostactivationCreateJoinTokenResponse, *http.Response, error) + /* UIJoinTokenDelete User can revoke the join token. Once revoked, it can not be used further. The join token record is preserved forever. @@ -48,6 +50,7 @@ type UIJoinTokenAPI interface { // UIJoinTokenDeleteExecute executes the request UIJoinTokenDeleteExecute(r ApiUIJoinTokenDeleteRequest) (*http.Response, error) + /* UIJoinTokenDeleteSet User can revoke a list of join tokens. Once revoked, join tokens can not be used further. The records are preserved forever. @@ -58,6 +61,7 @@ type UIJoinTokenAPI interface { // UIJoinTokenDeleteSetExecute executes the request UIJoinTokenDeleteSetExecute(r ApiUIJoinTokenDeleteSetRequest) (*http.Response, error) + /* UIJoinTokenList User can list the join tokens for an account. @@ -71,6 +75,7 @@ type UIJoinTokenAPI interface { // UIJoinTokenListExecute executes the request // @return HostactivationListJoinTokenResponse UIJoinTokenListExecute(r ApiUIJoinTokenListRequest) (*HostactivationListJoinTokenResponse, *http.Response, error) + /* UIJoinTokenRead User can get the join token providing its resource id in the parameter. @@ -83,16 +88,17 @@ type UIJoinTokenAPI interface { // UIJoinTokenReadExecute executes the request // @return HostactivationReadJoinTokenResponse UIJoinTokenReadExecute(r ApiUIJoinTokenReadRequest) (*HostactivationReadJoinTokenResponse, *http.Response, error) + /* - UIJoinTokenUpdate User can modify the tags or expiration time of a join token. + UIJoinTokenUpdate User can modify the tags or expiration time of a join token. - Validation: Following fields is needed. Provide what needs to be - - "expires_at" - - "tags" + Validation: Following fields is needed. Provide what needs to be + - "expires_at" + - "tags" - @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 ApiUIJoinTokenUpdateRequest + @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 ApiUIJoinTokenUpdateRequest */ UIJoinTokenUpdate(ctx context.Context, id string) ApiUIJoinTokenUpdateRequest @@ -178,14 +184,6 @@ func (a *UIJoinTokenAPIService) UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -229,6 +227,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -615,6 +614,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenListExecute(r ApiUIJoinTokenListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -734,6 +734,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenReadExecute(r ApiUIJoinTokenReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -815,14 +816,6 @@ func (a *UIJoinTokenAPIService) UIJoinTokenUpdateExecute(r ApiUIJoinTokenUpdateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -866,5 +859,6 @@ func (a *UIJoinTokenAPIService) UIJoinTokenUpdateExecute(r ApiUIJoinTokenUpdateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/infra_provision/api_uicsr.go b/infra_provision/api_uicsr.go index 70c6546..45b5cce 100644 --- a/infra_provision/api_uicsr.go +++ b/infra_provision/api_uicsr.go @@ -22,6 +22,7 @@ import ( ) type UICSRAPI interface { + /* UICSRApprove Marks the certificate signing request as approved. The host activation service will then continue with the signing process. @@ -34,6 +35,7 @@ type UICSRAPI interface { // UICSRApproveExecute executes the request // @return map[string]interface{} UICSRApproveExecute(r ApiUICSRApproveRequest) (map[string]interface{}, *http.Response, error) + /* UICSRDeny Marks the certificate signing request as denied. @@ -46,6 +48,7 @@ type UICSRAPI interface { // UICSRDenyExecute executes the request // @return map[string]interface{} UICSRDenyExecute(r ApiUICSRDenyRequest) (map[string]interface{}, *http.Response, error) + /* UICSRList User can list the certificate signing requests for an account. @@ -57,34 +60,36 @@ type UICSRAPI interface { // UICSRListExecute executes the request // @return HostactivationListCSRsResponse UICSRListExecute(r ApiUICSRListRequest) (*HostactivationListCSRsResponse, *http.Response, error) + /* - UICSRRevoke Invalidates a certificate by adding it to a certificate revocation list. + UICSRRevoke Invalidates a certificate by adding it to a certificate revocation list. - The user can revoke the cert from the cloud (for example, if in case a host is compromised). - Validation: - - one of "cert_serial" or "ophid" should be provided - - "revoke_reason" is optional + The user can revoke the cert from the cloud (for example, if in case a host is compromised). + Validation: + - one of "cert_serial" or "ophid" should be provided + - "revoke_reason" is optional - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required - @return ApiUICSRRevokeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param certSerial x509 serial number of the certificate. This can be obtained by parsing the client certificate file on the onprem. Either cert_serial or ophid is required + @return ApiUICSRRevokeRequest */ UICSRRevoke(ctx context.Context, certSerial string) ApiUICSRRevokeRequest // UICSRRevokeExecute executes the request // @return map[string]interface{} UICSRRevokeExecute(r ApiUICSRRevokeRequest) (map[string]interface{}, *http.Response, error) + /* - UICSRRevoke2 Invalidates a certificate by adding it to a certificate revocation list. + UICSRRevoke2 Invalidates a certificate by adding it to a certificate revocation list. - The user can revoke the cert from the cloud (for example, if in case a host is compromised). - Validation: - - one of "cert_serial" or "ophid" should be provided - - "revoke_reason" is optional + The user can revoke the cert from the cloud (for example, if in case a host is compromised). + Validation: + - one of "cert_serial" or "ophid" should be provided + - "revoke_reason" is optional - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . - @return ApiUICSRRevoke2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param ophid On-prem host ID which can be obtained either from on-prem or BloxOne UI portal(Manage > Infrastructure > Hosts > Select the onprem > click on 3 dots on top right side > General Information > Ophid) . + @return ApiUICSRRevoke2Request */ UICSRRevoke2(ctx context.Context, ophid string) ApiUICSRRevoke2Request @@ -213,6 +218,7 @@ func (a *UICSRAPIService) UICSRApproveExecute(r ApiUICSRApproveRequest) (map[str newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -333,6 +339,7 @@ func (a *UICSRAPIService) UICSRDenyExecute(r ApiUICSRDenyRequest) (map[string]in newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -508,6 +515,7 @@ func (a *UICSRAPIService) UICSRListExecute(r ApiUICSRListRequest) (*Hostactivati newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -633,6 +641,7 @@ func (a *UICSRAPIService) UICSRRevokeExecute(r ApiUICSRRevokeRequest) (map[strin newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -758,5 +767,6 @@ func (a *UICSRAPIService) UICSRRevoke2Execute(r ApiUICSRRevoke2Request) (map[str newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/.openapi-generator-ignore b/ipam/.openapi-generator-ignore index 9d89018..7484ee5 100644 --- a/ipam/.openapi-generator-ignore +++ b/ipam/.openapi-generator-ignore @@ -21,6 +21,3 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md -*.go -*.md -!api*test.go diff --git a/ipam/api_address.go b/ipam/api_address.go index c8e8fc7..f6acc99 100644 --- a/ipam/api_address.go +++ b/ipam/api_address.go @@ -22,72 +22,77 @@ import ( ) type AddressAPI interface { + /* - AddressCreate Create the IP address. + AddressCreate Create the IP address. - Use this method to create an __Address__ object. - The __Address__ object represents any single IP address within a given IP space. + Use this method to create an __Address__ object. + The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressCreateRequest */ AddressCreate(ctx context.Context) ApiAddressCreateRequest // AddressCreateExecute executes the request // @return IpamsvcCreateAddressResponse AddressCreateExecute(r ApiAddressCreateRequest) (*IpamsvcCreateAddressResponse, *http.Response, error) + /* - AddressDelete Move the IP address to the recycle bin. + AddressDelete Move the IP address to the recycle bin. - Use this method to move an __Address__ object to the recycle bin. - The __Address__ object represents any single IP address within a given IP space. + Use this method to move an __Address__ object to the recycle bin. + The __Address__ object represents any single IP address within a given IP space. - @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 ApiAddressDeleteRequest + @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 ApiAddressDeleteRequest */ AddressDelete(ctx context.Context, id string) ApiAddressDeleteRequest // AddressDeleteExecute executes the request AddressDeleteExecute(r ApiAddressDeleteRequest) (*http.Response, error) + /* - AddressList Retrieve IP addresses. + AddressList Retrieve IP addresses. - Use this method to retrieve __Address__ objects. - The __Address__ object represents any single IP address within a given IP space. + Use this method to retrieve __Address__ objects. + The __Address__ object represents any single IP address within a given IP space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAddressListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressListRequest */ AddressList(ctx context.Context) ApiAddressListRequest // AddressListExecute executes the request // @return IpamsvcListAddressResponse AddressListExecute(r ApiAddressListRequest) (*IpamsvcListAddressResponse, *http.Response, error) + /* - AddressRead Retrieve the IP address. + AddressRead Retrieve the IP address. - Use this method to retrieve an __Address__ object. - The __Address__ object represents any single IP address within a given IP space. + Use this method to retrieve an __Address__ object. + The __Address__ object represents any single IP address within a given IP space. - @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 ApiAddressReadRequest + @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 ApiAddressReadRequest */ AddressRead(ctx context.Context, id string) ApiAddressReadRequest // AddressReadExecute executes the request // @return IpamsvcReadAddressResponse AddressReadExecute(r ApiAddressReadRequest) (*IpamsvcReadAddressResponse, *http.Response, error) + /* - AddressUpdate Update the IP address. + AddressUpdate Update the IP address. - Use this method to update an __Address__ object. - The __Address__ object represents any single IP address within a given IP space. + Use this method to update an __Address__ object. + The __Address__ object represents any single IP address within a given IP space. - @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 ApiAddressUpdateRequest + @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 ApiAddressUpdateRequest */ AddressUpdate(ctx context.Context, id string) ApiAddressUpdateRequest @@ -172,14 +177,6 @@ func (a *AddressAPIService) AddressCreateExecute(r ApiAddressCreateRequest) (*Ip if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *AddressAPIService) AddressCreateExecute(r ApiAddressCreateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -533,6 +531,7 @@ func (a *AddressAPIService) AddressListExecute(r ApiAddressListRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -655,6 +654,7 @@ func (a *AddressAPIService) AddressReadExecute(r ApiAddressReadRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -735,14 +735,6 @@ func (a *AddressAPIService) AddressUpdateExecute(r ApiAddressUpdateRequest) (*Ip if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -786,5 +778,6 @@ func (a *AddressAPIService) AddressUpdateExecute(r ApiAddressUpdateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_address_block.go b/ipam/api_address_block.go index 481539c..c2047b0 100644 --- a/ipam/api_address_block.go +++ b/ipam/api_address_block.go @@ -22,177 +22,189 @@ import ( ) type AddressBlockAPI interface { + /* - AddressBlockCopy Copy the address block. + AddressBlockCopy Copy the address block. - Use this method to copy an __AddressBlock__ object. - The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to copy an __AddressBlock__ object. + The __AddressBlock__ 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 ApiAddressBlockCopyRequest + @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 ApiAddressBlockCopyRequest */ AddressBlockCopy(ctx context.Context, id string) ApiAddressBlockCopyRequest // AddressBlockCopyExecute executes the request // @return IpamsvcCopyAddressBlockResponse AddressBlockCopyExecute(r ApiAddressBlockCopyRequest) (*IpamsvcCopyAddressBlockResponse, *http.Response, error) + /* - AddressBlockCreate Create the address block. + AddressBlockCreate Create the address block. - Use this method to create an __AddressBlock__ object. - The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to create an __AddressBlock__ object. + The __AddressBlock__ 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 ApiAddressBlockCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressBlockCreateRequest */ AddressBlockCreate(ctx context.Context) ApiAddressBlockCreateRequest // AddressBlockCreateExecute executes the request // @return IpamsvcCreateAddressBlockResponse AddressBlockCreateExecute(r ApiAddressBlockCreateRequest) (*IpamsvcCreateAddressBlockResponse, *http.Response, error) + /* - AddressBlockCreateNextAvailableAB Create the Next Available Address Block object. + AddressBlockCreateNextAvailableAB Create the Next Available Address Block object. - Use this method to create a Next Available __AddressBlock__ object. - The Next Available Address Block is a generator that allocates one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. + Use this method to create a Next Available __AddressBlock__ object. + The Next Available Address Block is a generator that allocates one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. - @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 ApiAddressBlockCreateNextAvailableABRequest + @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 ApiAddressBlockCreateNextAvailableABRequest */ AddressBlockCreateNextAvailableAB(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableABRequest // AddressBlockCreateNextAvailableABExecute executes the request // @return IpamsvcCreateNextAvailableABResponse AddressBlockCreateNextAvailableABExecute(r ApiAddressBlockCreateNextAvailableABRequest) (*IpamsvcCreateNextAvailableABResponse, *http.Response, error) + /* - AddressBlockCreateNextAvailableIP Allocate the next available IP address. + AddressBlockCreateNextAvailableIP Allocate the next available IP address. - Use this method to allocate the next available IP address. - This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. + Use this method to allocate the next available IP address. + This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @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 ApiAddressBlockCreateNextAvailableIPRequest + @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 ApiAddressBlockCreateNextAvailableIPRequest */ AddressBlockCreateNextAvailableIP(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableIPRequest // AddressBlockCreateNextAvailableIPExecute executes the request // @return IpamsvcCreateNextAvailableIPResponse AddressBlockCreateNextAvailableIPExecute(r ApiAddressBlockCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) + /* - AddressBlockCreateNextAvailableSubnet Create the Next Available Subnet object. + AddressBlockCreateNextAvailableSubnet Create the Next Available Subnet object. - Use this method to create a Next Available __Subnet__ object. - The Next Available Subnet is a generator that allocates one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. + Use this method to create a Next Available __Subnet__ object. + The Next Available Subnet is a generator that allocates one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. - @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 ApiAddressBlockCreateNextAvailableSubnetRequest + @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 ApiAddressBlockCreateNextAvailableSubnetRequest */ AddressBlockCreateNextAvailableSubnet(ctx context.Context, id string) ApiAddressBlockCreateNextAvailableSubnetRequest // AddressBlockCreateNextAvailableSubnetExecute executes the request // @return IpamsvcCreateNextAvailableSubnetResponse AddressBlockCreateNextAvailableSubnetExecute(r ApiAddressBlockCreateNextAvailableSubnetRequest) (*IpamsvcCreateNextAvailableSubnetResponse, *http.Response, error) + /* - AddressBlockDelete Move the address block to the recycle bin. + AddressBlockDelete Move the address block to the recycle bin. - Use this method to move an __AddressBlock__ object to the recycle bin. - The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to move an __AddressBlock__ object to the recycle bin. + The __AddressBlock__ 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 ApiAddressBlockDeleteRequest + @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 ApiAddressBlockDeleteRequest */ AddressBlockDelete(ctx context.Context, id string) ApiAddressBlockDeleteRequest // AddressBlockDeleteExecute executes the request AddressBlockDeleteExecute(r ApiAddressBlockDeleteRequest) (*http.Response, error) + /* - AddressBlockList Retrieve the address blocks. + AddressBlockList Retrieve the address blocks. - Use this method to retrieve __AddressBlock__ objects. - The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to retrieve __AddressBlock__ objects. + The __AddressBlock__ 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 ApiAddressBlockListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddressBlockListRequest */ AddressBlockList(ctx context.Context) ApiAddressBlockListRequest // AddressBlockListExecute executes the request // @return IpamsvcListAddressBlockResponse AddressBlockListExecute(r ApiAddressBlockListRequest) (*IpamsvcListAddressBlockResponse, *http.Response, error) + /* - AddressBlockListNextAvailableAB List Next Available Address Block objects. + AddressBlockListNextAvailableAB List Next Available Address Block objects. - Use this method to list Next Available __AddressBlock__ objects. - The Next Available __AddressBlock__ is a generator that returns one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. + Use this method to list Next Available __AddressBlock__ objects. + The Next Available __AddressBlock__ is a generator that returns one or more _ipam/address_block_ resource from available address blocks when the network address is not known prior to allocation. - @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 ApiAddressBlockListNextAvailableABRequest + @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 ApiAddressBlockListNextAvailableABRequest */ AddressBlockListNextAvailableAB(ctx context.Context, id string) ApiAddressBlockListNextAvailableABRequest // AddressBlockListNextAvailableABExecute executes the request // @return IpamsvcNextAvailableABResponse AddressBlockListNextAvailableABExecute(r ApiAddressBlockListNextAvailableABRequest) (*IpamsvcNextAvailableABResponse, *http.Response, error) + /* - AddressBlockListNextAvailableIP Retrieve the next available IP address. + AddressBlockListNextAvailableIP Retrieve the next available IP address. - Use this method to retrieve the next available IP address. - This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. + Use this method to retrieve the next available IP address. + This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @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 ApiAddressBlockListNextAvailableIPRequest + @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 ApiAddressBlockListNextAvailableIPRequest */ AddressBlockListNextAvailableIP(ctx context.Context, id string) ApiAddressBlockListNextAvailableIPRequest // AddressBlockListNextAvailableIPExecute executes the request // @return IpamsvcNextAvailableIPResponse AddressBlockListNextAvailableIPExecute(r ApiAddressBlockListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) + /* - AddressBlockListNextAvailableSubnet List Next Available Subnet objects. + AddressBlockListNextAvailableSubnet List Next Available Subnet objects. - Use this method to list Next Available __Subnet__ objects. - The Next Available Address Block is a generator that returns one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. + Use this method to list Next Available __Subnet__ objects. + The Next Available Address Block is a generator that returns one or more _ipam/subnet_ resource from available subnets when the network address is not known prior to allocation. - @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 ApiAddressBlockListNextAvailableSubnetRequest + @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 ApiAddressBlockListNextAvailableSubnetRequest */ AddressBlockListNextAvailableSubnet(ctx context.Context, id string) ApiAddressBlockListNextAvailableSubnetRequest // AddressBlockListNextAvailableSubnetExecute executes the request // @return IpamsvcNextAvailableSubnetResponse AddressBlockListNextAvailableSubnetExecute(r ApiAddressBlockListNextAvailableSubnetRequest) (*IpamsvcNextAvailableSubnetResponse, *http.Response, error) + /* - AddressBlockRead Retrieve the address block. + AddressBlockRead Retrieve the address block. - Use this method to retrieve an __AddressBlock__ object. - The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to retrieve an __AddressBlock__ object. + The __AddressBlock__ 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 ApiAddressBlockReadRequest + @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 ApiAddressBlockReadRequest */ AddressBlockRead(ctx context.Context, id string) ApiAddressBlockReadRequest // AddressBlockReadExecute executes the request // @return IpamsvcReadAddressBlockResponse AddressBlockReadExecute(r ApiAddressBlockReadRequest) (*IpamsvcReadAddressBlockResponse, *http.Response, error) + /* - AddressBlockUpdate Update the address block. + AddressBlockUpdate Update the address block. - Use this method to update an __AddressBlock__ object. - The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + Use this method to update an __AddressBlock__ object. + The __AddressBlock__ 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 ApiAddressBlockUpdateRequest + @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 ApiAddressBlockUpdateRequest */ AddressBlockUpdate(ctx context.Context, id string) ApiAddressBlockUpdateRequest @@ -324,6 +336,7 @@ func (a *AddressBlockAPIService) AddressBlockCopyExecute(r ApiAddressBlockCopyRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -410,14 +423,6 @@ func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCrea if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -461,6 +466,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCrea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -617,6 +623,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableABExecute(r ApiA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -755,6 +762,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableIPExecute(r ApiA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -921,6 +929,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableSubnetExecute(r newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1223,6 +1232,7 @@ func (a *AddressBlockAPIService) AddressBlockListExecute(r ApiAddressBlockListRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1375,6 +1385,7 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableABExecute(r ApiAdd newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1507,6 +1518,7 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableIPExecute(r ApiAdd newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1669,6 +1681,7 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableSubnetExecute(r Ap newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1801,6 +1814,7 @@ func (a *AddressBlockAPIService) AddressBlockReadExecute(r ApiAddressBlockReadRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1891,14 +1905,6 @@ func (a *AddressBlockAPIService) AddressBlockUpdateExecute(r ApiAddressBlockUpda if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1942,5 +1948,6 @@ func (a *AddressBlockAPIService) AddressBlockUpdateExecute(r ApiAddressBlockUpda newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_asm.go b/ipam/api_asm.go index b2fe742..d33789e 100644 --- a/ipam/api_asm.go +++ b/ipam/api_asm.go @@ -22,44 +22,47 @@ import ( ) type AsmAPI interface { + /* - AsmCreate Update subnet and ranges for Automated Scope Management. + AsmCreate Update subnet and ranges for Automated Scope Management. - Use this method to update the subnet and range for Automated Scope Management. - The __ASM__ object generates and returns the suggestions from the ASM suggestion engine and allows for updating the subnet and range. - This method attempts to expand the scope by expanding a range or adding a new range and, if necessary, expanding the subnet. + Use this method to update the subnet and range for Automated Scope Management. + The __ASM__ object generates and returns the suggestions from the ASM suggestion engine and allows for updating the subnet and range. + This method attempts to expand the scope by expanding a range or adding a new range and, if necessary, expanding the subnet. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAsmCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAsmCreateRequest */ AsmCreate(ctx context.Context) ApiAsmCreateRequest // AsmCreateExecute executes the request // @return IpamsvcCreateASMResponse AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateASMResponse, *http.Response, error) + /* - AsmList Retrieve suggested updates for Automated Scope Management. + AsmList Retrieve suggested updates for Automated Scope Management. - Use this method to retrieve __ASM__ objects for Automated Scope Management. - The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. + Use this method to retrieve __ASM__ objects for Automated Scope Management. + The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAsmListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAsmListRequest */ AsmList(ctx context.Context) ApiAsmListRequest // AsmListExecute executes the request // @return IpamsvcListASMResponse AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResponse, *http.Response, error) + /* - AsmRead Retrieve the suggested update for Automated Scope Management. + AsmRead Retrieve the suggested update for Automated Scope Management. - Use this method to retrieve an __ASM__ object for Automated Scope Management. - The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. + Use this method to retrieve an __ASM__ object for Automated Scope Management. + The __ASM__ object returns the suggested updates for the subnet from the ASM suggestion engine and allows for updating the subnet and range information. - @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 ApiAsmReadRequest + @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 ApiAsmReadRequest */ AsmRead(ctx context.Context, id string) ApiAsmReadRequest @@ -188,6 +191,7 @@ func (a *AsmAPIService) AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -315,6 +319,7 @@ func (a *AsmAPIService) AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResp newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -437,5 +442,6 @@ func (a *AsmAPIService) AsmReadExecute(r ApiAsmReadRequest) (*IpamsvcReadASMResp newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_dhcp_host.go b/ipam/api_dhcp_host.go index a3d955b..5a4a3c9 100644 --- a/ipam/api_dhcp_host.go +++ b/ipam/api_dhcp_host.go @@ -22,20 +22,22 @@ import ( ) type DhcpHostAPI interface { + /* - DhcpHostList Retrieve DHCP hosts. + DhcpHostList Retrieve DHCP hosts. - Use this method to retrieve DHCP __Host__ objects. - A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. + Use this method to retrieve DHCP __Host__ objects. + A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDhcpHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDhcpHostListRequest */ DhcpHostList(ctx context.Context) ApiDhcpHostListRequest // DhcpHostListExecute executes the request // @return IpamsvcListHostResponse DhcpHostListExecute(r ApiDhcpHostListRequest) (*IpamsvcListHostResponse, *http.Response, error) + /* DhcpHostListAssociations Retrieve DHCP host associations. @@ -50,30 +52,32 @@ type DhcpHostAPI interface { // DhcpHostListAssociationsExecute executes the request // @return IpamsvcHostAssociationsResponse DhcpHostListAssociationsExecute(r ApiDhcpHostListAssociationsRequest) (*IpamsvcHostAssociationsResponse, *http.Response, error) + /* - DhcpHostRead Retrieve the DHCP host. + DhcpHostRead Retrieve the DHCP host. - Use this method to retrieve a DHCP Host object. - A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. + Use this method to retrieve a DHCP Host object. + A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @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 ApiDhcpHostReadRequest + @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 ApiDhcpHostReadRequest */ DhcpHostRead(ctx context.Context, id string) ApiDhcpHostReadRequest // DhcpHostReadExecute executes the request // @return IpamsvcReadHostResponse DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*IpamsvcReadHostResponse, *http.Response, error) + /* - DhcpHostUpdate Update the DHCP hosts. + DhcpHostUpdate Update the DHCP hosts. - Use this method to update a DHCP __Host__ object. - A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. + Use this method to update a DHCP __Host__ object. + A DHCP __Host__ object associates a __DHCPConfigProfile__ object with an on-prem host. - @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 ApiDhcpHostUpdateRequest + @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 ApiDhcpHostUpdateRequest */ DhcpHostUpdate(ctx context.Context, id string) ApiDhcpHostUpdateRequest @@ -270,6 +274,7 @@ func (a *DhcpHostAPIService) DhcpHostListExecute(r ApiDhcpHostListRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -381,6 +386,7 @@ func (a *DhcpHostAPIService) DhcpHostListAssociationsExecute(r ApiDhcpHostListAs newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -503,6 +509,7 @@ func (a *DhcpHostAPIService) DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -583,14 +590,6 @@ func (a *DhcpHostAPIService) DhcpHostUpdateExecute(r ApiDhcpHostUpdateRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -634,5 +633,6 @@ func (a *DhcpHostAPIService) DhcpHostUpdateExecute(r ApiDhcpHostUpdateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_dns_usage.go b/ipam/api_dns_usage.go index ce964cf..009657f 100644 --- a/ipam/api_dns_usage.go +++ b/ipam/api_dns_usage.go @@ -22,6 +22,7 @@ import ( ) type DnsUsageAPI interface { + /* DnsUsageList Retrieve DNS usage for multiple objects. @@ -35,6 +36,7 @@ type DnsUsageAPI interface { // DnsUsageListExecute executes the request // @return IpamsvcListDNSUsageResponse DnsUsageListExecute(r ApiDnsUsageListRequest) (*IpamsvcListDNSUsageResponse, *http.Response, error) + /* DnsUsageRead Retrieve the DNS usage. @@ -218,6 +220,7 @@ func (a *DnsUsageAPIService) DnsUsageListExecute(r ApiDnsUsageListRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -339,5 +342,6 @@ func (a *DnsUsageAPIService) DnsUsageReadExecute(r ApiDnsUsageReadRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_filter.go b/ipam/api_filter.go index 572f312..173d0a9 100644 --- a/ipam/api_filter.go +++ b/ipam/api_filter.go @@ -21,6 +21,7 @@ import ( ) type FilterAPI interface { + /* FilterList Retrieve DHCP filters. @@ -223,5 +224,6 @@ func (a *FilterAPIService) FilterListExecute(r ApiFilterListRequest) (*IpamsvcLi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_fixed_address.go b/ipam/api_fixed_address.go index 15ede2e..748cad6 100644 --- a/ipam/api_fixed_address.go +++ b/ipam/api_fixed_address.go @@ -22,72 +22,77 @@ import ( ) type FixedAddressAPI interface { + /* - FixedAddressCreate Create the fixed address. + FixedAddressCreate Create the fixed address. - Use this method to create a __FixedAddress__ object. - The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to create a __FixedAddress__ object. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFixedAddressCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFixedAddressCreateRequest */ FixedAddressCreate(ctx context.Context) ApiFixedAddressCreateRequest // FixedAddressCreateExecute executes the request // @return IpamsvcCreateFixedAddressResponse FixedAddressCreateExecute(r ApiFixedAddressCreateRequest) (*IpamsvcCreateFixedAddressResponse, *http.Response, error) + /* - FixedAddressDelete Move the fixed address to the recycle bin. + FixedAddressDelete Move the fixed address to the recycle bin. - Use this method to move a __FixedAddress__ object to the recycle bin. - The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to move a __FixedAddress__ object to the recycle bin. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @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 ApiFixedAddressDeleteRequest + @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 ApiFixedAddressDeleteRequest */ FixedAddressDelete(ctx context.Context, id string) ApiFixedAddressDeleteRequest // FixedAddressDeleteExecute executes the request FixedAddressDeleteExecute(r ApiFixedAddressDeleteRequest) (*http.Response, error) + /* - FixedAddressList Retrieve fixed addresses. + FixedAddressList Retrieve fixed addresses. - Use this method to retrieve __FixedAddress__ objects. - The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to retrieve __FixedAddress__ objects. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFixedAddressListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFixedAddressListRequest */ FixedAddressList(ctx context.Context) ApiFixedAddressListRequest // FixedAddressListExecute executes the request // @return IpamsvcListFixedAddressResponse FixedAddressListExecute(r ApiFixedAddressListRequest) (*IpamsvcListFixedAddressResponse, *http.Response, error) + /* - FixedAddressRead Retrieve the fixed address. + FixedAddressRead Retrieve the fixed address. - Use this method to retrieve a __FixedAddress__ object. - The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to retrieve a __FixedAddress__ object. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @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 ApiFixedAddressReadRequest + @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 ApiFixedAddressReadRequest */ FixedAddressRead(ctx context.Context, id string) ApiFixedAddressReadRequest // FixedAddressReadExecute executes the request // @return IpamsvcReadFixedAddressResponse FixedAddressReadExecute(r ApiFixedAddressReadRequest) (*IpamsvcReadFixedAddressResponse, *http.Response, error) + /* - FixedAddressUpdate Update the fixed address. + FixedAddressUpdate Update the fixed address. - Use this method to update a __FixedAddress__ object. - The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. + Use this method to update a __FixedAddress__ object. + The __FixedAddress__ object reserves an address for a specific client. It must have a _match_type_ and a valid corresponding _match_value_ so that it can match that client. - @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 ApiFixedAddressUpdateRequest + @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 ApiFixedAddressUpdateRequest */ FixedAddressUpdate(ctx context.Context, id string) ApiFixedAddressUpdateRequest @@ -182,14 +187,6 @@ func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCrea if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -233,6 +230,7 @@ func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCrea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -535,6 +533,7 @@ func (a *FixedAddressAPIService) FixedAddressListExecute(r ApiFixedAddressListRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -667,6 +666,7 @@ func (a *FixedAddressAPIService) FixedAddressReadExecute(r ApiFixedAddressReadRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -757,14 +757,6 @@ func (a *FixedAddressAPIService) FixedAddressUpdateExecute(r ApiFixedAddressUpda if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -808,5 +800,6 @@ func (a *FixedAddressAPIService) FixedAddressUpdateExecute(r ApiFixedAddressUpda newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_global.go b/ipam/api_global.go index d1f14ea..4bf33b3 100644 --- a/ipam/api_global.go +++ b/ipam/api_global.go @@ -22,58 +22,62 @@ import ( ) type GlobalAPI interface { + /* - GlobalRead Retrieve the global configuration. + GlobalRead Retrieve the global configuration. - Use this method to retrieve the __Global__ configuration object. - The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to retrieve the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalReadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalReadRequest */ GlobalRead(ctx context.Context) ApiGlobalReadRequest // GlobalReadExecute executes the request // @return IpamsvcReadGlobalResponse GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcReadGlobalResponse, *http.Response, error) + /* - GlobalRead2 Retrieve the global configuration. + GlobalRead2 Retrieve the global configuration. - Use this method to retrieve the __Global__ configuration object. - The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to retrieve the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @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 ApiGlobalRead2Request + @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 ApiGlobalRead2Request */ GlobalRead2(ctx context.Context, id string) ApiGlobalRead2Request // GlobalRead2Execute executes the request // @return IpamsvcReadGlobalResponse GlobalRead2Execute(r ApiGlobalRead2Request) (*IpamsvcReadGlobalResponse, *http.Response, error) + /* - GlobalUpdate Update the global configuration. + GlobalUpdate Update the global configuration. - Use this method to update the __Global__ configuration object. - The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to update the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGlobalUpdateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGlobalUpdateRequest */ GlobalUpdate(ctx context.Context) ApiGlobalUpdateRequest // GlobalUpdateExecute executes the request // @return IpamsvcUpdateGlobalResponse GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*IpamsvcUpdateGlobalResponse, *http.Response, error) + /* - GlobalUpdate2 Update the global configuration. + GlobalUpdate2 Update the global configuration. - Use this method to update the __Global__ configuration object. - The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. + Use this method to update the __Global__ configuration object. + The service operates on single __Global__ (_dhcp/global_) object that represents parent configuration settings for inheritance. - @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 ApiGlobalUpdate2Request + @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 ApiGlobalUpdate2Request */ GlobalUpdate2(ctx context.Context, id string) ApiGlobalUpdate2Request @@ -200,6 +204,7 @@ func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -322,6 +327,7 @@ func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*Ipamsvc newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -441,6 +447,7 @@ func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -564,5 +571,6 @@ func (a *GlobalAPIService) GlobalUpdate2Execute(r ApiGlobalUpdate2Request) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_ha_group.go b/ipam/api_ha_group.go index 06a4fc8..2601000 100644 --- a/ipam/api_ha_group.go +++ b/ipam/api_ha_group.go @@ -22,72 +22,77 @@ import ( ) type HaGroupAPI interface { + /* - HaGroupCreate Create the HA group. + HaGroupCreate Create the HA group. - Use this method to create an __HAGroup__ object. - The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. + Use this method to create an __HAGroup__ object. + The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHaGroupCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHaGroupCreateRequest */ HaGroupCreate(ctx context.Context) ApiHaGroupCreateRequest // HaGroupCreateExecute executes the request // @return IpamsvcCreateHAGroupResponse HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*IpamsvcCreateHAGroupResponse, *http.Response, error) + /* - HaGroupDelete Delete the HA group. + HaGroupDelete Delete the HA group. - Use this method to delete an __HAGroup__ object. - The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. + Use this method to delete an __HAGroup__ object. + The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. - @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 ApiHaGroupDeleteRequest + @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 ApiHaGroupDeleteRequest */ HaGroupDelete(ctx context.Context, id string) ApiHaGroupDeleteRequest // HaGroupDeleteExecute executes the request HaGroupDeleteExecute(r ApiHaGroupDeleteRequest) (*http.Response, error) + /* - HaGroupList Retrieve HA groups. + HaGroupList Retrieve HA groups. - Use this method to retrieve __HAGroup__ objects. - The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. + Use this method to retrieve __HAGroup__ objects. + The __HAGroup__ (_dhcp/ha_group_) object represents on-prem hosts that can serve the same leases for HA. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHaGroupListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHaGroupListRequest */ HaGroupList(ctx context.Context) ApiHaGroupListRequest // HaGroupListExecute executes the request // @return IpamsvcListHAGroupResponse HaGroupListExecute(r ApiHaGroupListRequest) (*IpamsvcListHAGroupResponse, *http.Response, error) + /* - HaGroupRead Retrieve the HA group. + HaGroupRead Retrieve the HA group. - Use this method to retrieve an __HAGroup__ object. - The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. + Use this method to retrieve an __HAGroup__ object. + The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @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 ApiHaGroupReadRequest + @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 ApiHaGroupReadRequest */ HaGroupRead(ctx context.Context, id string) ApiHaGroupReadRequest // HaGroupReadExecute executes the request // @return IpamsvcReadHAGroupResponse HaGroupReadExecute(r ApiHaGroupReadRequest) (*IpamsvcReadHAGroupResponse, *http.Response, error) + /* - HaGroupUpdate Update the HA group. + HaGroupUpdate Update the HA group. - Use this method to update an __HAGroup__ object. - The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. + Use this method to update an __HAGroup__ object. + The __HAGroup__ object represents on-prem hosts that can serve the same leases for HA. - @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 ApiHaGroupUpdateRequest + @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 ApiHaGroupUpdateRequest */ HaGroupUpdate(ctx context.Context, id string) ApiHaGroupUpdateRequest @@ -172,14 +177,6 @@ func (a *HaGroupAPIService) HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*Ip if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *HaGroupAPIService) HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -525,6 +523,7 @@ func (a *HaGroupAPIService) HaGroupListExecute(r ApiHaGroupListRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -657,6 +656,7 @@ func (a *HaGroupAPIService) HaGroupReadExecute(r ApiHaGroupReadRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -780,5 +780,6 @@ func (a *HaGroupAPIService) HaGroupUpdateExecute(r ApiHaGroupUpdateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_hardware_filter.go b/ipam/api_hardware_filter.go index 18649ed..77f0ac5 100644 --- a/ipam/api_hardware_filter.go +++ b/ipam/api_hardware_filter.go @@ -22,72 +22,77 @@ import ( ) type HardwareFilterAPI interface { + /* - HardwareFilterCreate Create the hardware filter. + HardwareFilterCreate Create the hardware filter. - Use this method to create a __HardwareFilter__ object. - The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to create a __HardwareFilter__ object. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHardwareFilterCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHardwareFilterCreateRequest */ HardwareFilterCreate(ctx context.Context) ApiHardwareFilterCreateRequest // HardwareFilterCreateExecute executes the request // @return IpamsvcCreateHardwareFilterResponse HardwareFilterCreateExecute(r ApiHardwareFilterCreateRequest) (*IpamsvcCreateHardwareFilterResponse, *http.Response, error) + /* - HardwareFilterDelete Move the hardware filter to the recycle bin. + HardwareFilterDelete Move the hardware filter to the recycle bin. - Use this method to move a __HardwareFilter__ object to the recycle bin. - The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to move a __HardwareFilter__ object to the recycle bin. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @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 ApiHardwareFilterDeleteRequest + @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 ApiHardwareFilterDeleteRequest */ HardwareFilterDelete(ctx context.Context, id string) ApiHardwareFilterDeleteRequest // HardwareFilterDeleteExecute executes the request HardwareFilterDeleteExecute(r ApiHardwareFilterDeleteRequest) (*http.Response, error) + /* - HardwareFilterList Retrieve hardware filters. + HardwareFilterList Retrieve hardware filters. - Use this method to retrieve __HardwareFilter__ objects. - The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve __HardwareFilter__ objects. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHardwareFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHardwareFilterListRequest */ HardwareFilterList(ctx context.Context) ApiHardwareFilterListRequest // HardwareFilterListExecute executes the request // @return IpamsvcListHardwareFilterResponse HardwareFilterListExecute(r ApiHardwareFilterListRequest) (*IpamsvcListHardwareFilterResponse, *http.Response, error) + /* - HardwareFilterRead Retrieve the hardware filter. + HardwareFilterRead Retrieve the hardware filter. - Use this method to retrieve a __HardwareFilter__ object. - The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve a __HardwareFilter__ object. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @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 ApiHardwareFilterReadRequest + @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 ApiHardwareFilterReadRequest */ HardwareFilterRead(ctx context.Context, id string) ApiHardwareFilterReadRequest // HardwareFilterReadExecute executes the request // @return IpamsvcReadHardwareFilterResponse HardwareFilterReadExecute(r ApiHardwareFilterReadRequest) (*IpamsvcReadHardwareFilterResponse, *http.Response, error) + /* - HardwareFilterUpdate Update the hardware filter. + HardwareFilterUpdate Update the hardware filter. - Use this method to update a __HardwareFilter__ object. - The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. + Use this method to update a __HardwareFilter__ object. + The __HardwareFilter__ object applies options to clients with matching hardware addresses. It must be configured in the _filters_ list of a scope to be effective. - @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 ApiHardwareFilterUpdateRequest + @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 ApiHardwareFilterUpdateRequest */ HardwareFilterUpdate(ctx context.Context, id string) ApiHardwareFilterUpdateRequest @@ -172,14 +177,6 @@ func (a *HardwareFilterAPIService) HardwareFilterCreateExecute(r ApiHardwareFilt if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *HardwareFilterAPIService) HardwareFilterCreateExecute(r ApiHardwareFilt newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *HardwareFilterAPIService) HardwareFilterListExecute(r ApiHardwareFilter newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *HardwareFilterAPIService) HardwareFilterReadExecute(r ApiHardwareFilter newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *HardwareFilterAPIService) HardwareFilterUpdateExecute(r ApiHardwareFilt if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *HardwareFilterAPIService) HardwareFilterUpdateExecute(r ApiHardwareFilt newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_ip_space.go b/ipam/api_ip_space.go index ac81c8b..14a0cea 100644 --- a/ipam/api_ip_space.go +++ b/ipam/api_ip_space.go @@ -22,106 +22,113 @@ import ( ) type IpSpaceAPI interface { + /* - IpSpaceBulkCopy Copy the specified address block and subnets in the IP space. + IpSpaceBulkCopy Copy the specified address block and subnets in the IP space. - Use this method to bulk copy __AddressBlock__ and __Subnet__ objects from one __IPSpace__ object to another __IPSpace__ object. - The __IPSpace__ object represents an entire address space. - The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. - The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to bulk copy __AddressBlock__ and __Subnet__ objects from one __IPSpace__ object to another __IPSpace__ object. + The __IPSpace__ object represents an entire address space. + The __AddressBlock__ object allows a uniform representation of the address space segmentation, supporting functions such as administrative grouping, routing aggregation, delegation etc. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - The _copy_objects_ specifies the list of objects (_ipam/address_block_ and _ipam/subnet_ only) in the _ipam/ip_space_ object to copy. - The _target_ specifies the _ipam/ip_space_ object to which the objects must be copied. + The _copy_objects_ specifies the list of objects (_ipam/address_block_ and _ipam/subnet_ only) in the _ipam/ip_space_ object to copy. + The _target_ specifies the _ipam/ip_space_ object to which the objects must be copied. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceBulkCopyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceBulkCopyRequest */ IpSpaceBulkCopy(ctx context.Context) ApiIpSpaceBulkCopyRequest // IpSpaceBulkCopyExecute executes the request // @return IpamsvcBulkCopyIPSpaceResponse IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) (*IpamsvcBulkCopyIPSpaceResponse, *http.Response, error) + /* - IpSpaceCopy Copy the IP space. + IpSpaceCopy Copy the IP space. - Use this method to copy an __IPSpace__ object. - The __IPSpace__ object represents an entire address space. + Use this method to copy an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @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 ApiIpSpaceCopyRequest + @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 ApiIpSpaceCopyRequest */ IpSpaceCopy(ctx context.Context, id string) ApiIpSpaceCopyRequest // IpSpaceCopyExecute executes the request // @return IpamsvcCopyIPSpaceResponse IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*IpamsvcCopyIPSpaceResponse, *http.Response, error) + /* - IpSpaceCreate Create the IP space. + IpSpaceCreate Create the IP space. - Use this method to create an __IPSpace__ object. - The __IPSpace__ object represents an entire address space. + Use this method to create an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceCreateRequest */ IpSpaceCreate(ctx context.Context) ApiIpSpaceCreateRequest // IpSpaceCreateExecute executes the request // @return IpamsvcCreateIPSpaceResponse IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*IpamsvcCreateIPSpaceResponse, *http.Response, error) + /* - IpSpaceDelete Move the IP space to the recycle bin. + IpSpaceDelete Move the IP space to the recycle bin. - Use this method to move an __IPSpace__ object to the recycle bin. - The __IPSpace__ object represents an entire address space. + Use this method to move an __IPSpace__ object to the recycle bin. + The __IPSpace__ object represents an entire address space. - @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 ApiIpSpaceDeleteRequest + @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 ApiIpSpaceDeleteRequest */ IpSpaceDelete(ctx context.Context, id string) ApiIpSpaceDeleteRequest // IpSpaceDeleteExecute executes the request IpSpaceDeleteExecute(r ApiIpSpaceDeleteRequest) (*http.Response, error) + /* - IpSpaceList Retrieve IP spaces. + IpSpaceList Retrieve IP spaces. - Use this method to retrieve __IPSpace__ objects. - The __IPSpace__ object represents an entire address space. + Use this method to retrieve __IPSpace__ objects. + The __IPSpace__ object represents an entire address space. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpSpaceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpSpaceListRequest */ IpSpaceList(ctx context.Context) ApiIpSpaceListRequest // IpSpaceListExecute executes the request // @return IpamsvcListIPSpaceResponse IpSpaceListExecute(r ApiIpSpaceListRequest) (*IpamsvcListIPSpaceResponse, *http.Response, error) + /* - IpSpaceRead Retrieve the IP space. + IpSpaceRead Retrieve the IP space. - Use this method to retrieve an __IPSpace__ object. - The __IPSpace__ object represents an entire address space. + Use this method to retrieve an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @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 ApiIpSpaceReadRequest + @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 ApiIpSpaceReadRequest */ IpSpaceRead(ctx context.Context, id string) ApiIpSpaceReadRequest // IpSpaceReadExecute executes the request // @return IpamsvcReadIPSpaceResponse IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*IpamsvcReadIPSpaceResponse, *http.Response, error) + /* - IpSpaceUpdate Update the IP space. + IpSpaceUpdate Update the IP space. - Use this method to update an __IPSpace__ object. - The __IPSpace__ object represents an entire address space. + Use this method to update an __IPSpace__ object. + The __IPSpace__ object represents an entire address space. - @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 ApiIpSpaceUpdateRequest + @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 ApiIpSpaceUpdateRequest */ IpSpaceUpdate(ctx context.Context, id string) ApiIpSpaceUpdateRequest @@ -254,6 +261,7 @@ func (a *IpSpaceAPIService) IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -377,6 +385,7 @@ func (a *IpSpaceAPIService) IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -463,14 +472,6 @@ func (a *IpSpaceAPIService) IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*Ip if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -514,6 +515,7 @@ func (a *IpSpaceAPIService) IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -816,6 +818,7 @@ func (a *IpSpaceAPIService) IpSpaceListExecute(r ApiIpSpaceListRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -948,6 +951,7 @@ func (a *IpSpaceAPIService) IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1038,14 +1042,6 @@ func (a *IpSpaceAPIService) IpSpaceUpdateExecute(r ApiIpSpaceUpdateRequest) (*Ip if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1089,5 +1085,6 @@ func (a *IpSpaceAPIService) IpSpaceUpdateExecute(r ApiIpSpaceUpdateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_ipam_host.go b/ipam/api_ipam_host.go index 7e562ec..aec93a6 100644 --- a/ipam/api_ipam_host.go +++ b/ipam/api_ipam_host.go @@ -22,72 +22,77 @@ import ( ) type IpamHostAPI interface { + /* - IpamHostCreate Create the IPAM host. + IpamHostCreate Create the IPAM host. - Use this method to create an __IpamHost__ object. - The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to create an __IpamHost__ object. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamHostCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamHostCreateRequest */ IpamHostCreate(ctx context.Context) ApiIpamHostCreateRequest // IpamHostCreateExecute executes the request // @return IpamsvcCreateIpamHostResponse IpamHostCreateExecute(r ApiIpamHostCreateRequest) (*IpamsvcCreateIpamHostResponse, *http.Response, error) + /* - IpamHostDelete Move the IPAM host to the recycle bin. + IpamHostDelete Move the IPAM host to the recycle bin. - Use this method to move an __IpamHost__ object to the recycle bin. - The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to move an __IpamHost__ object to the recycle bin. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @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 ApiIpamHostDeleteRequest + @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 ApiIpamHostDeleteRequest */ IpamHostDelete(ctx context.Context, id string) ApiIpamHostDeleteRequest // IpamHostDeleteExecute executes the request IpamHostDeleteExecute(r ApiIpamHostDeleteRequest) (*http.Response, error) + /* - IpamHostList Retrieve the IPAM hosts. + IpamHostList Retrieve the IPAM hosts. - Use this method to retrieve __IpamHost__ objects. - The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to retrieve __IpamHost__ objects. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiIpamHostListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiIpamHostListRequest */ IpamHostList(ctx context.Context) ApiIpamHostListRequest // IpamHostListExecute executes the request // @return IpamsvcListIpamHostResponse IpamHostListExecute(r ApiIpamHostListRequest) (*IpamsvcListIpamHostResponse, *http.Response, error) + /* - IpamHostRead Retrieve the IPAM host. + IpamHostRead Retrieve the IPAM host. - Use this method to retrieve an __IpamHost__ object. - The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to retrieve an __IpamHost__ object. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @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 ApiIpamHostReadRequest + @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 ApiIpamHostReadRequest */ IpamHostRead(ctx context.Context, id string) ApiIpamHostReadRequest // IpamHostReadExecute executes the request // @return IpamsvcReadIpamHostResponse IpamHostReadExecute(r ApiIpamHostReadRequest) (*IpamsvcReadIpamHostResponse, *http.Response, error) + /* - IpamHostUpdate Update the IPAM host. + IpamHostUpdate Update the IPAM host. - Use this method to update an __IpamHost__ object. - The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. + Use this method to update an __IpamHost__ object. + The __IpamHost__ object (_ipam/host_) represents any network connected equipment that is assigned one or more IP Addresses. - @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 ApiIpamHostUpdateRequest + @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 ApiIpamHostUpdateRequest */ IpamHostUpdate(ctx context.Context, id string) ApiIpamHostUpdateRequest @@ -172,14 +177,6 @@ func (a *IpamHostAPIService) IpamHostCreateExecute(r ApiIpamHostCreateRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *IpamHostAPIService) IpamHostCreateExecute(r ApiIpamHostCreateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *IpamHostAPIService) IpamHostListExecute(r ApiIpamHostListRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -647,6 +646,7 @@ func (a *IpamHostAPIService) IpamHostReadExecute(r ApiIpamHostReadRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -727,14 +727,6 @@ func (a *IpamHostAPIService) IpamHostUpdateExecute(r ApiIpamHostUpdateRequest) ( if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -778,5 +770,6 @@ func (a *IpamHostAPIService) IpamHostUpdateExecute(r ApiIpamHostUpdateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_leases_command.go b/ipam/api_leases_command.go index 02fb0c3..429e629 100644 --- a/ipam/api_leases_command.go +++ b/ipam/api_leases_command.go @@ -21,14 +21,15 @@ import ( ) type LeasesCommandAPI interface { + /* - LeasesCommandCreate Perform actions like clearing DHCP lease(s). + LeasesCommandCreate Perform actions like clearing DHCP lease(s). - Use this method to create a __LeasesCommand__ object. - The __LeasesCommand__ object (_dhcp/leases_command_) is used for performing an action like clearing DHCP lease(s). + Use this method to create a __LeasesCommand__ object. + The __LeasesCommand__ object (_dhcp/leases_command_) is used for performing an action like clearing DHCP lease(s). - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLeasesCommandCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLeasesCommandCreateRequest */ LeasesCommandCreate(ctx context.Context) ApiLeasesCommandCreateRequest @@ -156,5 +157,6 @@ func (a *LeasesCommandAPIService) LeasesCommandCreateExecute(r ApiLeasesCommandC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_option_code.go b/ipam/api_option_code.go index 17006da..3d99ae5 100644 --- a/ipam/api_option_code.go +++ b/ipam/api_option_code.go @@ -22,72 +22,77 @@ import ( ) type OptionCodeAPI interface { + /* - OptionCodeCreate Create the DHCP option code. + OptionCodeCreate Create the DHCP option code. - Use this method to create an __OptionCode__ object. - The __OptionCode__ object defines a DHCP option code. + Use this method to create an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionCodeCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionCodeCreateRequest */ OptionCodeCreate(ctx context.Context) ApiOptionCodeCreateRequest // OptionCodeCreateExecute executes the request // @return IpamsvcCreateOptionCodeResponse OptionCodeCreateExecute(r ApiOptionCodeCreateRequest) (*IpamsvcCreateOptionCodeResponse, *http.Response, error) + /* - OptionCodeDelete Delete the DHCP option code. + OptionCodeDelete Delete the DHCP option code. - Use this method to delete an __OptionCode__ object. - The __OptionCode__ object defines a DHCP option code. + Use this method to delete an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @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 ApiOptionCodeDeleteRequest + @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 ApiOptionCodeDeleteRequest */ OptionCodeDelete(ctx context.Context, id string) ApiOptionCodeDeleteRequest // OptionCodeDeleteExecute executes the request OptionCodeDeleteExecute(r ApiOptionCodeDeleteRequest) (*http.Response, error) + /* - OptionCodeList Retrieve DHCP option codes. + OptionCodeList Retrieve DHCP option codes. - Use this method to retrieve __OptionCode__ objects. - The __OptionCode__ object defines a DHCP option code. + Use this method to retrieve __OptionCode__ objects. + The __OptionCode__ object defines a DHCP option code. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionCodeListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionCodeListRequest */ OptionCodeList(ctx context.Context) ApiOptionCodeListRequest // OptionCodeListExecute executes the request // @return IpamsvcListOptionCodeResponse OptionCodeListExecute(r ApiOptionCodeListRequest) (*IpamsvcListOptionCodeResponse, *http.Response, error) + /* - OptionCodeRead Retrieve the DHCP option code. + OptionCodeRead Retrieve the DHCP option code. - Use this method to retrieve an __OptionCode__ object. - The __OptionCode__ object defines a DHCP option code. + Use this method to retrieve an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @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 ApiOptionCodeReadRequest + @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 ApiOptionCodeReadRequest */ OptionCodeRead(ctx context.Context, id string) ApiOptionCodeReadRequest // OptionCodeReadExecute executes the request // @return IpamsvcReadOptionCodeResponse OptionCodeReadExecute(r ApiOptionCodeReadRequest) (*IpamsvcReadOptionCodeResponse, *http.Response, error) + /* - OptionCodeUpdate Update the DHCP option code. + OptionCodeUpdate Update the DHCP option code. - Use this method to update an __OptionCode__ object. - The __OptionCode__ object defines a DHCP option code. + Use this method to update an __OptionCode__ object. + The __OptionCode__ object defines a DHCP option code. - @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 ApiOptionCodeUpdateRequest + @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 ApiOptionCodeUpdateRequest */ OptionCodeUpdate(ctx context.Context, id string) ApiOptionCodeUpdateRequest @@ -215,6 +220,7 @@ func (a *OptionCodeAPIService) OptionCodeCreateExecute(r ApiOptionCodeCreateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -487,6 +493,7 @@ func (a *OptionCodeAPIService) OptionCodeListExecute(r ApiOptionCodeListRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -609,6 +616,7 @@ func (a *OptionCodeAPIService) OptionCodeReadExecute(r ApiOptionCodeReadRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -732,5 +740,6 @@ func (a *OptionCodeAPIService) OptionCodeUpdateExecute(r ApiOptionCodeUpdateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_option_filter.go b/ipam/api_option_filter.go index f49e936..bd0c0cc 100644 --- a/ipam/api_option_filter.go +++ b/ipam/api_option_filter.go @@ -22,72 +22,77 @@ import ( ) type OptionFilterAPI interface { + /* - OptionFilterCreate Create the DHCP option filter. + OptionFilterCreate Create the DHCP option filter. - Use this method to create an __OptionFilter__ object. - The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to create an __OptionFilter__ object. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionFilterCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionFilterCreateRequest */ OptionFilterCreate(ctx context.Context) ApiOptionFilterCreateRequest // OptionFilterCreateExecute executes the request // @return IpamsvcCreateOptionFilterResponse OptionFilterCreateExecute(r ApiOptionFilterCreateRequest) (*IpamsvcCreateOptionFilterResponse, *http.Response, error) + /* - OptionFilterDelete Move the DHCP option filter to the recycle bin. + OptionFilterDelete Move the DHCP option filter to the recycle bin. - Use this method to move an __OptionFilter__ object to the recycle bin. - The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to move an __OptionFilter__ object to the recycle bin. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @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 ApiOptionFilterDeleteRequest + @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 ApiOptionFilterDeleteRequest */ OptionFilterDelete(ctx context.Context, id string) ApiOptionFilterDeleteRequest // OptionFilterDeleteExecute executes the request OptionFilterDeleteExecute(r ApiOptionFilterDeleteRequest) (*http.Response, error) + /* - OptionFilterList Retrieve DHCP option filters. + OptionFilterList Retrieve DHCP option filters. - Use this method to retrieve __OptionFilter__ objects. - The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve __OptionFilter__ objects. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionFilterListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionFilterListRequest */ OptionFilterList(ctx context.Context) ApiOptionFilterListRequest // OptionFilterListExecute executes the request // @return IpamsvcListOptionFilterResponse OptionFilterListExecute(r ApiOptionFilterListRequest) (*IpamsvcListOptionFilterResponse, *http.Response, error) + /* - OptionFilterRead Retrieve the DHCP option filter. + OptionFilterRead Retrieve the DHCP option filter. - Use this method to retrieve an __OptionFilter__ object. - The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to retrieve an __OptionFilter__ object. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @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 ApiOptionFilterReadRequest + @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 ApiOptionFilterReadRequest */ OptionFilterRead(ctx context.Context, id string) ApiOptionFilterReadRequest // OptionFilterReadExecute executes the request // @return IpamsvcReadOptionFilterResponse OptionFilterReadExecute(r ApiOptionFilterReadRequest) (*IpamsvcReadOptionFilterResponse, *http.Response, error) + /* - OptionFilterUpdate Update the DHCP option filter. + OptionFilterUpdate Update the DHCP option filter. - Use this method to update an __OptionFilter__ object. - The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. + Use this method to update an __OptionFilter__ object. + The __OptionFilter__ object applies options to DHCP clients with matching options. It must be configured in the _filters_ list of a scope to be effective. - @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 ApiOptionFilterUpdateRequest + @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 ApiOptionFilterUpdateRequest */ OptionFilterUpdate(ctx context.Context, id string) ApiOptionFilterUpdateRequest @@ -172,14 +177,6 @@ func (a *OptionFilterAPIService) OptionFilterCreateExecute(r ApiOptionFilterCrea if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *OptionFilterAPIService) OptionFilterCreateExecute(r ApiOptionFilterCrea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *OptionFilterAPIService) OptionFilterListExecute(r ApiOptionFilterListRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *OptionFilterAPIService) OptionFilterReadExecute(r ApiOptionFilterReadRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *OptionFilterAPIService) OptionFilterUpdateExecute(r ApiOptionFilterUpda if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *OptionFilterAPIService) OptionFilterUpdateExecute(r ApiOptionFilterUpda newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_option_group.go b/ipam/api_option_group.go index b91cbbd..e489e56 100644 --- a/ipam/api_option_group.go +++ b/ipam/api_option_group.go @@ -22,72 +22,77 @@ import ( ) type OptionGroupAPI interface { + /* - OptionGroupCreate Create the DHCP option group. + OptionGroupCreate Create the DHCP option group. - Use this method to create an __OptionGroup__ object. - The __OptionGroup__ object is a named collection of options. + Use this method to create an __OptionGroup__ object. + The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionGroupCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionGroupCreateRequest */ OptionGroupCreate(ctx context.Context) ApiOptionGroupCreateRequest // OptionGroupCreateExecute executes the request // @return IpamsvcCreateOptionGroupResponse OptionGroupCreateExecute(r ApiOptionGroupCreateRequest) (*IpamsvcCreateOptionGroupResponse, *http.Response, error) + /* - OptionGroupDelete Move the DHCP option group to the recycle bin. + OptionGroupDelete Move the DHCP option group to the recycle bin. - Use this method to move an __OptionGroup__ object to the recycle bin. - The __OptionGroup__ object is a named collection of options. + Use this method to move an __OptionGroup__ object to the recycle bin. + The __OptionGroup__ object is a named collection of options. - @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 ApiOptionGroupDeleteRequest + @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 ApiOptionGroupDeleteRequest */ OptionGroupDelete(ctx context.Context, id string) ApiOptionGroupDeleteRequest // OptionGroupDeleteExecute executes the request OptionGroupDeleteExecute(r ApiOptionGroupDeleteRequest) (*http.Response, error) + /* - OptionGroupList Retrieve DHCP option groups. + OptionGroupList Retrieve DHCP option groups. - Use this method to retrieve __OptionGroup__ objects. - The __OptionGroup__ object is a named collection of options. + Use this method to retrieve __OptionGroup__ objects. + The __OptionGroup__ object is a named collection of options. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionGroupListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionGroupListRequest */ OptionGroupList(ctx context.Context) ApiOptionGroupListRequest // OptionGroupListExecute executes the request // @return IpamsvcListOptionGroupResponse OptionGroupListExecute(r ApiOptionGroupListRequest) (*IpamsvcListOptionGroupResponse, *http.Response, error) + /* - OptionGroupRead Retrieve the DHCP option group. + OptionGroupRead Retrieve the DHCP option group. - Use this method to retrieve an __OptionGroup__ object. - The __OptionGroup__ object is a named collection of options. + Use this method to retrieve an __OptionGroup__ object. + The __OptionGroup__ object is a named collection of options. - @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 ApiOptionGroupReadRequest + @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 ApiOptionGroupReadRequest */ OptionGroupRead(ctx context.Context, id string) ApiOptionGroupReadRequest // OptionGroupReadExecute executes the request // @return IpamsvcReadOptionGroupResponse OptionGroupReadExecute(r ApiOptionGroupReadRequest) (*IpamsvcReadOptionGroupResponse, *http.Response, error) + /* - OptionGroupUpdate Update the DHCP option group. + OptionGroupUpdate Update the DHCP option group. - Use this method to update an __OptionGroup__ object. - The __OptionGroup__ object is a named collection of options. + Use this method to update an __OptionGroup__ object. + The __OptionGroup__ object is a named collection of options. - @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 ApiOptionGroupUpdateRequest + @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 ApiOptionGroupUpdateRequest */ OptionGroupUpdate(ctx context.Context, id string) ApiOptionGroupUpdateRequest @@ -172,14 +177,6 @@ func (a *OptionGroupAPIService) OptionGroupCreateExecute(r ApiOptionGroupCreateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *OptionGroupAPIService) OptionGroupCreateExecute(r ApiOptionGroupCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *OptionGroupAPIService) OptionGroupListExecute(r ApiOptionGroupListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *OptionGroupAPIService) OptionGroupReadExecute(r ApiOptionGroupReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *OptionGroupAPIService) OptionGroupUpdateExecute(r ApiOptionGroupUpdateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *OptionGroupAPIService) OptionGroupUpdateExecute(r ApiOptionGroupUpdateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_option_space.go b/ipam/api_option_space.go index babcf62..26f654d 100644 --- a/ipam/api_option_space.go +++ b/ipam/api_option_space.go @@ -22,72 +22,77 @@ import ( ) type OptionSpaceAPI interface { + /* - OptionSpaceCreate Create the DHCP option space. + OptionSpaceCreate Create the DHCP option space. - Use this method to create an __OptionSpace__ object. - The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to create an __OptionSpace__ object. + The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionSpaceCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionSpaceCreateRequest */ OptionSpaceCreate(ctx context.Context) ApiOptionSpaceCreateRequest // OptionSpaceCreateExecute executes the request // @return IpamsvcCreateOptionSpaceResponse OptionSpaceCreateExecute(r ApiOptionSpaceCreateRequest) (*IpamsvcCreateOptionSpaceResponse, *http.Response, error) + /* - OptionSpaceDelete Move the DHCP option space to the recycle bin. + OptionSpaceDelete Move the DHCP option space to the recycle bin. - Use this method to move an __OptionSpace__ object to the recycle bin. - The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to move an __OptionSpace__ object to the recycle bin. + The __OptionSpace__ object represents a set of DHCP option codes. - @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 ApiOptionSpaceDeleteRequest + @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 ApiOptionSpaceDeleteRequest */ OptionSpaceDelete(ctx context.Context, id string) ApiOptionSpaceDeleteRequest // OptionSpaceDeleteExecute executes the request OptionSpaceDeleteExecute(r ApiOptionSpaceDeleteRequest) (*http.Response, error) + /* - OptionSpaceList Retrieve DHCP option spaces. + OptionSpaceList Retrieve DHCP option spaces. - Use this method to retrieve __OptionSpace__ objects. - The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to retrieve __OptionSpace__ objects. + The __OptionSpace__ object represents a set of DHCP option codes. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOptionSpaceListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOptionSpaceListRequest */ OptionSpaceList(ctx context.Context) ApiOptionSpaceListRequest // OptionSpaceListExecute executes the request // @return IpamsvcListOptionSpaceResponse OptionSpaceListExecute(r ApiOptionSpaceListRequest) (*IpamsvcListOptionSpaceResponse, *http.Response, error) + /* - OptionSpaceRead Retrieve the DHCP option space. + OptionSpaceRead Retrieve the DHCP option space. - Use this method to retrieve an __OptionSpace__ object. - The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to retrieve an __OptionSpace__ object. + The __OptionSpace__ object represents a set of DHCP option codes. - @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 ApiOptionSpaceReadRequest + @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 ApiOptionSpaceReadRequest */ OptionSpaceRead(ctx context.Context, id string) ApiOptionSpaceReadRequest // OptionSpaceReadExecute executes the request // @return IpamsvcReadOptionSpaceResponse OptionSpaceReadExecute(r ApiOptionSpaceReadRequest) (*IpamsvcReadOptionSpaceResponse, *http.Response, error) + /* - OptionSpaceUpdate Update the DHCP option space. + OptionSpaceUpdate Update the DHCP option space. - Use this method to update an __OptionSpace__ object. - The __OptionSpace__ object represents a set of DHCP option codes. + Use this method to update an __OptionSpace__ object. + The __OptionSpace__ object represents a set of DHCP option codes. - @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 ApiOptionSpaceUpdateRequest + @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 ApiOptionSpaceUpdateRequest */ OptionSpaceUpdate(ctx context.Context, id string) ApiOptionSpaceUpdateRequest @@ -172,14 +177,6 @@ func (a *OptionSpaceAPIService) OptionSpaceCreateExecute(r ApiOptionSpaceCreateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,6 +220,7 @@ func (a *OptionSpaceAPIService) OptionSpaceCreateExecute(r ApiOptionSpaceCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,6 +513,7 @@ func (a *OptionSpaceAPIService) OptionSpaceListExecute(r ApiOptionSpaceListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,6 +636,7 @@ func (a *OptionSpaceAPIService) OptionSpaceReadExecute(r ApiOptionSpaceReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,14 +717,6 @@ func (a *OptionSpaceAPIService) OptionSpaceUpdateExecute(r ApiOptionSpaceUpdateR if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -768,5 +760,6 @@ func (a *OptionSpaceAPIService) OptionSpaceUpdateExecute(r ApiOptionSpaceUpdateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_range.go b/ipam/api_range.go index e0f0bd6..d0a5a77 100644 --- a/ipam/api_range.go +++ b/ipam/api_range.go @@ -22,102 +22,109 @@ import ( ) type RangeAPI interface { + /* - RangeCreate Create the range. + RangeCreate Create the range. - Use this method to create a __Range__ object. - A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to create a __Range__ object. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRangeCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRangeCreateRequest */ RangeCreate(ctx context.Context) ApiRangeCreateRequest // RangeCreateExecute executes the request // @return IpamsvcCreateRangeResponse RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcCreateRangeResponse, *http.Response, error) + /* - RangeCreateNextAvailableIP Allocate the next available IP address. + RangeCreateNextAvailableIP Allocate the next available IP address. - Use this method to allocate the next available IP address. - This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. + Use this method to allocate the next available IP address. + This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @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 ApiRangeCreateNextAvailableIPRequest + @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 ApiRangeCreateNextAvailableIPRequest */ RangeCreateNextAvailableIP(ctx context.Context, id string) ApiRangeCreateNextAvailableIPRequest // RangeCreateNextAvailableIPExecute executes the request // @return IpamsvcCreateNextAvailableIPResponse RangeCreateNextAvailableIPExecute(r ApiRangeCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) + /* - RangeDelete Move the range to the recycle bin. + RangeDelete Move the range to the recycle bin. - Use this method to move a __Range__ object to the recycle bin. - A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to move a __Range__ object to the recycle bin. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @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 ApiRangeDeleteRequest + @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 ApiRangeDeleteRequest */ RangeDelete(ctx context.Context, id string) ApiRangeDeleteRequest // RangeDeleteExecute executes the request RangeDeleteExecute(r ApiRangeDeleteRequest) (*http.Response, error) + /* - RangeList Retrieve ranges. + RangeList Retrieve ranges. - Use this method to retrieve __Range__ objects. - A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to retrieve __Range__ objects. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRangeListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRangeListRequest */ RangeList(ctx context.Context) ApiRangeListRequest // RangeListExecute executes the request // @return IpamsvcListRangeResponse RangeListExecute(r ApiRangeListRequest) (*IpamsvcListRangeResponse, *http.Response, error) + /* - RangeListNextAvailableIP Retrieve the next available IP address. + RangeListNextAvailableIP Retrieve the next available IP address. - Use this method to retrieve the next available IP address. - This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. + Use this method to retrieve the next available IP address. + This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @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 ApiRangeListNextAvailableIPRequest + @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 ApiRangeListNextAvailableIPRequest */ RangeListNextAvailableIP(ctx context.Context, id string) ApiRangeListNextAvailableIPRequest // RangeListNextAvailableIPExecute executes the request // @return IpamsvcNextAvailableIPResponse RangeListNextAvailableIPExecute(r ApiRangeListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) + /* - RangeRead Retrieve the range. + RangeRead Retrieve the range. - Use this method to retrieve a __Range__ object. - A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to retrieve a __Range__ object. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @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 ApiRangeReadRequest + @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 ApiRangeReadRequest */ RangeRead(ctx context.Context, id string) ApiRangeReadRequest // RangeReadExecute executes the request // @return IpamsvcReadRangeResponse RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadRangeResponse, *http.Response, error) + /* - RangeUpdate Update the range. + RangeUpdate Update the range. - Use this method to update a __Range__ object. - A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. + Use this method to update a __Range__ object. + A __Range__ object represents a set of contiguous IP addresses in the same IP space with no gap, expressed as a (start, end) pair within a given subnet that are grouped together for administrative purpose and protocol management. The start and end values are not required to align with CIDR boundaries. - @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 ApiRangeUpdateRequest + @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 ApiRangeUpdateRequest */ RangeUpdate(ctx context.Context, id string) ApiRangeUpdateRequest @@ -212,14 +219,6 @@ func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -263,6 +262,7 @@ func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -401,6 +401,7 @@ func (a *RangeAPIService) RangeCreateNextAvailableIPExecute(r ApiRangeCreateNext newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -703,6 +704,7 @@ func (a *RangeAPIService) RangeListExecute(r ApiRangeListRequest) (*IpamsvcListR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -835,6 +837,7 @@ func (a *RangeAPIService) RangeListNextAvailableIPExecute(r ApiRangeListNextAvai newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -967,6 +970,7 @@ func (a *RangeAPIService) RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1057,14 +1061,6 @@ func (a *RangeAPIService) RangeUpdateExecute(r ApiRangeUpdateRequest) (*IpamsvcU if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1108,5 +1104,6 @@ func (a *RangeAPIService) RangeUpdateExecute(r ApiRangeUpdateRequest) (*IpamsvcU newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_server.go b/ipam/api_server.go index a9336ef..418fb99 100644 --- a/ipam/api_server.go +++ b/ipam/api_server.go @@ -22,72 +22,77 @@ import ( ) type ServerAPI interface { + /* - ServerCreate Create the DHCP configuration profile. + ServerCreate Create the DHCP configuration profile. - Use this method to create a __Server__ object. - A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to create a __Server__ object. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerCreateRequest */ ServerCreate(ctx context.Context) ApiServerCreateRequest // ServerCreateExecute executes the request // @return IpamsvcCreateServerResponse ServerCreateExecute(r ApiServerCreateRequest) (*IpamsvcCreateServerResponse, *http.Response, error) + /* - ServerDelete Move the DHCP configuration profile to the recycle bin. + ServerDelete Move the DHCP configuration profile to the recycle bin. - Use this method to move a __Server__ object to the recycle bin. - A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to move a __Server__ object to the recycle bin. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @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 ApiServerDeleteRequest + @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 ApiServerDeleteRequest */ ServerDelete(ctx context.Context, id string) ApiServerDeleteRequest // ServerDeleteExecute executes the request ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) + /* - ServerList Retrieve DHCP configuration profiles. + ServerList Retrieve DHCP configuration profiles. - Use this method to retrieve __Server__ objects. - A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to retrieve __Server__ objects. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiServerListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiServerListRequest */ ServerList(ctx context.Context) ApiServerListRequest // ServerListExecute executes the request // @return IpamsvcListServerResponse ServerListExecute(r ApiServerListRequest) (*IpamsvcListServerResponse, *http.Response, error) + /* - ServerRead Retrieve the DHCP configuration profile. + ServerRead Retrieve the DHCP configuration profile. - Use this method to retrieve a __Server__ object. - A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to retrieve a __Server__ object. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @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 ApiServerReadRequest + @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 ApiServerReadRequest */ ServerRead(ctx context.Context, id string) ApiServerReadRequest // ServerReadExecute executes the request // @return IpamsvcReadServerResponse ServerReadExecute(r ApiServerReadRequest) (*IpamsvcReadServerResponse, *http.Response, error) + /* - ServerUpdate Update the DHCP configuration profile. + ServerUpdate Update the DHCP configuration profile. - Use this method to update a __Server__ object. - A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. + Use this method to update a __Server__ object. + A __Server__ (DHCP Config Profile) is a named configuration profile that can be shared for specified list of hosts. - @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 ApiServerUpdateRequest + @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 ApiServerUpdateRequest */ ServerUpdate(ctx context.Context, id string) ApiServerUpdateRequest @@ -182,14 +187,6 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Ipams if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -233,6 +230,7 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -535,6 +533,7 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*IpamsvcLi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -667,6 +666,7 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*IpamsvcRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -757,14 +757,6 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Ipams if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -808,5 +800,6 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/ipam/api_subnet.go b/ipam/api_subnet.go index 42f1527..39ee9fc 100644 --- a/ipam/api_subnet.go +++ b/ipam/api_subnet.go @@ -22,117 +22,125 @@ import ( ) type SubnetAPI interface { + /* - SubnetCopy Copy the subnet. + SubnetCopy Copy the subnet. - Use this method to copy a __Subnet__ object. - The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to copy a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @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 ApiSubnetCopyRequest + @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 ApiSubnetCopyRequest */ SubnetCopy(ctx context.Context, id string) ApiSubnetCopyRequest // SubnetCopyExecute executes the request // @return IpamsvcCopySubnetResponse SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCopySubnetResponse, *http.Response, error) + /* - SubnetCreate Create the subnet. + SubnetCreate Create the subnet. - Use this method to create a __Subnet__ object. - The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to create a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSubnetCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSubnetCreateRequest */ SubnetCreate(ctx context.Context) ApiSubnetCreateRequest // SubnetCreateExecute executes the request // @return IpamsvcCreateSubnetResponse SubnetCreateExecute(r ApiSubnetCreateRequest) (*IpamsvcCreateSubnetResponse, *http.Response, error) + /* - SubnetCreateNextAvailableIP Allocate the next available IP address. + SubnetCreateNextAvailableIP Allocate the next available IP address. - Use this method to allocate the next available IP address. - This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. + Use this method to allocate the next available IP address. + This allocates one or more __Address__ (_ipam/address_) resource from available addresses, when the IP address is not known prior to allocation. - @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 ApiSubnetCreateNextAvailableIPRequest + @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 ApiSubnetCreateNextAvailableIPRequest */ SubnetCreateNextAvailableIP(ctx context.Context, id string) ApiSubnetCreateNextAvailableIPRequest // SubnetCreateNextAvailableIPExecute executes the request // @return IpamsvcCreateNextAvailableIPResponse SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) + /* - SubnetDelete Move the subnet to the recycle bin. + SubnetDelete Move the subnet to the recycle bin. - Use this method to move a __Subnet__ object to the recycle bin. - The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to move a __Subnet__ object to the recycle bin. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @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 ApiSubnetDeleteRequest + @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 ApiSubnetDeleteRequest */ SubnetDelete(ctx context.Context, id string) ApiSubnetDeleteRequest // SubnetDeleteExecute executes the request SubnetDeleteExecute(r ApiSubnetDeleteRequest) (*http.Response, error) + /* - SubnetList Retrieve subnets. + SubnetList Retrieve subnets. - Use this method to retrieve __Subnet__ objects. - The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to retrieve __Subnet__ objects. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSubnetListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSubnetListRequest */ SubnetList(ctx context.Context) ApiSubnetListRequest // SubnetListExecute executes the request // @return IpamsvcListSubnetResponse SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcListSubnetResponse, *http.Response, error) + /* - SubnetListNextAvailableIP Retrieve the next available IP address. + SubnetListNextAvailableIP Retrieve the next available IP address. - Use this method to retrieve the next available IP address. - This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. + Use this method to retrieve the next available IP address. + This returns one or more __Address__ (_ipam/address_) resource from available addresses, when IP address is not known prior to allocation. - @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 ApiSubnetListNextAvailableIPRequest + @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 ApiSubnetListNextAvailableIPRequest */ SubnetListNextAvailableIP(ctx context.Context, id string) ApiSubnetListNextAvailableIPRequest // SubnetListNextAvailableIPExecute executes the request // @return IpamsvcNextAvailableIPResponse SubnetListNextAvailableIPExecute(r ApiSubnetListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) + /* - SubnetRead Retrieve the subnet. + SubnetRead Retrieve the subnet. - Use this method to retrieve a __Subnet__ object. - The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to retrieve a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @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 ApiSubnetReadRequest + @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 ApiSubnetReadRequest */ SubnetRead(ctx context.Context, id string) ApiSubnetReadRequest // SubnetReadExecute executes the request // @return IpamsvcReadSubnetResponse SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcReadSubnetResponse, *http.Response, error) + /* - SubnetUpdate Update the subnet. + SubnetUpdate Update the subnet. - Use this method to update a __Subnet__ object. - The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. + Use this method to update a __Subnet__ object. + The __Subnet__ object represents a set of addresses from which addresses are assigned to network equipment interfaces. - @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 ApiSubnetUpdateRequest + @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 ApiSubnetUpdateRequest */ SubnetUpdate(ctx context.Context, id string) ApiSubnetUpdateRequest @@ -264,6 +272,7 @@ func (a *SubnetAPIService) SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCo newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -350,14 +359,6 @@ func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*Ipams if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -401,6 +402,7 @@ func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -539,6 +541,7 @@ func (a *SubnetAPIService) SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateN newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -841,6 +844,7 @@ func (a *SubnetAPIService) SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcLi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -973,6 +977,7 @@ func (a *SubnetAPIService) SubnetListNextAvailableIPExecute(r ApiSubnetListNextA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1105,6 +1110,7 @@ func (a *SubnetAPIService) SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -1195,14 +1201,6 @@ func (a *SubnetAPIService) SubnetUpdateExecute(r ApiSubnetUpdateRequest) (*Ipams if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1246,5 +1244,6 @@ func (a *SubnetAPIService) SubnetUpdateExecute(r ApiSubnetUpdateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/keys/.openapi-generator-ignore b/keys/.openapi-generator-ignore index 9d89018..7484ee5 100644 --- a/keys/.openapi-generator-ignore +++ b/keys/.openapi-generator-ignore @@ -21,6 +21,3 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md -*.go -*.md -!api*test.go diff --git a/keys/.openapi-generator/FILES b/keys/.openapi-generator/FILES index 8cf4475..619bfc0 100644 --- a/keys/.openapi-generator/FILES +++ b/keys/.openapi-generator/FILES @@ -40,5 +40,4 @@ model_keys_update_tsig_key_response.go model_protobuf_field_mask.go model_upload_content_type.go model_upload_request.go -test/api_upload_test.go utils.go diff --git a/keys/api_generate_tsig.go b/keys/api_generate_tsig.go index 1a8c350..d4e3ab8 100644 --- a/keys/api_generate_tsig.go +++ b/keys/api_generate_tsig.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -17,18 +17,18 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type GenerateTsigAPI interface { + /* - GenerateTsigGenerateTSIG Generate TSIG key with a random secret. + GenerateTsigGenerateTSIG Generate TSIG key with a random secret. - Use this method to generate a TSIG key with a random secret using the specified algorithm. + Use this method to generate a TSIG key with a random secret using the specified algorithm. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGenerateTsigGenerateTSIGRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGenerateTsigGenerateTSIGRequest */ GenerateTsigGenerateTSIG(ctx context.Context) ApiGenerateTsigGenerateTSIGRequest @@ -41,9 +41,9 @@ type GenerateTsigAPI interface { type GenerateTsigAPIService internal.Service type ApiGenerateTsigGenerateTSIGRequest struct { - ctx context.Context + ctx context.Context ApiService GenerateTsigAPI - algorithm *string + algorithm *string } // The TSIG key algorithm. Valid values are: * _hmac_sha256_ * _hmac_sha1_ * _hmac_sha224_ * _hmac_sha384_ * _hmac_sha512_ Defaults to _hmac_sha256_. @@ -61,24 +61,25 @@ GenerateTsigGenerateTSIG Generate TSIG key with a random secret. Use this method to generate a TSIG key with a random secret using the specified algorithm. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGenerateTsigGenerateTSIGRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGenerateTsigGenerateTSIGRequest */ func (a *GenerateTsigAPIService) GenerateTsigGenerateTSIG(ctx context.Context) ApiGenerateTsigGenerateTSIGRequest { return ApiGenerateTsigGenerateTSIGRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysGenerateTSIGResponse +// +// @return KeysGenerateTSIGResponse func (a *GenerateTsigAPIService) GenerateTsigGenerateTSIGExecute(r ApiGenerateTsigGenerateTSIGRequest) (*KeysGenerateTSIGResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysGenerateTSIGResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysGenerateTSIGResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "GenerateTsigAPIService.GenerateTsigGenerateTSIG") @@ -153,5 +154,6 @@ func (a *GenerateTsigAPIService) GenerateTsigGenerateTSIGExecute(r ApiGenerateTs newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/keys/api_kerberos.go b/keys/api_kerberos.go index 42d68ac..30c9520 100644 --- a/keys/api_kerberos.go +++ b/keys/api_kerberos.go @@ -22,64 +22,69 @@ import ( ) type KerberosAPI interface { + /* - KerberosDelete Delete the Kerberos key. + KerberosDelete Delete the Kerberos key. - Use this method to delete a __KerberosKey__ object. - A __KerberosKey__ object represents a Kerberos key. + Use this method to delete a __KerberosKey__ object. + A __KerberosKey__ object represents a Kerberos key. - @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 ApiKerberosDeleteRequest + @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 ApiKerberosDeleteRequest */ KerberosDelete(ctx context.Context, id string) ApiKerberosDeleteRequest // KerberosDeleteExecute executes the request KerberosDeleteExecute(r ApiKerberosDeleteRequest) (*http.Response, error) + /* - KerberosList Retrieve Kerberos keys. + KerberosList Retrieve Kerberos keys. - Use this method to retrieve __KerberosKey__ objects. - A __KerberosKey__ object represents a Kerberos key. + Use this method to retrieve __KerberosKey__ objects. + A __KerberosKey__ object represents a Kerberos key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiKerberosListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKerberosListRequest */ KerberosList(ctx context.Context) ApiKerberosListRequest // KerberosListExecute executes the request // @return KeysListKerberosKeyResponse KerberosListExecute(r ApiKerberosListRequest) (*KeysListKerberosKeyResponse, *http.Response, error) + /* - KerberosRead Retrieve the Kerberos key. + KerberosRead Retrieve the Kerberos key. - Use this method to retrieve a __KerberosKey__ object. - A __KerberosKey__ object represents a Kerberos key. + Use this method to retrieve a __KerberosKey__ object. + A __KerberosKey__ object represents a Kerberos key. - @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 ApiKerberosReadRequest + @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 ApiKerberosReadRequest */ KerberosRead(ctx context.Context, id string) ApiKerberosReadRequest // KerberosReadExecute executes the request // @return KeysReadKerberosKeyResponse KerberosReadExecute(r ApiKerberosReadRequest) (*KeysReadKerberosKeyResponse, *http.Response, error) + /* - KerberosUpdate Update the Kerberos key. + KerberosUpdate Update the Kerberos key. - Use this method to update a __KerberosKey__ object. - A __KerberosKey__ object represents a Kerberos key. + Use this method to update a __KerberosKey__ object. + A __KerberosKey__ object represents a Kerberos key. - @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 ApiKerberosUpdateRequest + @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 ApiKerberosUpdateRequest */ KerberosUpdate(ctx context.Context, id string) ApiKerberosUpdateRequest // KerberosUpdateExecute executes the request // @return KeysUpdateKerberosKeyResponse KerberosUpdateExecute(r ApiKerberosUpdateRequest) (*KeysUpdateKerberosKeyResponse, *http.Response, error) + /* KeysKerberosPost Method for KeysKerberosPost @@ -385,6 +390,7 @@ func (a *KerberosAPIService) KerberosListExecute(r ApiKerberosListRequest) (*Key newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -507,6 +513,7 @@ func (a *KerberosAPIService) KerberosReadExecute(r ApiKerberosReadRequest) (*Key newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -630,6 +637,7 @@ func (a *KerberosAPIService) KerberosUpdateExecute(r ApiKerberosUpdateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } @@ -746,5 +754,6 @@ func (a *KerberosAPIService) KeysKerberosPostExecute(r ApiKeysKerberosPostReques newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/keys/api_tsig.go b/keys/api_tsig.go index 875d85c..22d08bc 100644 --- a/keys/api_tsig.go +++ b/keys/api_tsig.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -18,77 +18,81 @@ import ( "net/url" "strings" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type TsigAPI interface { + /* - TsigCreate Create the TSIG key. + TsigCreate Create the TSIG key. - Use this method to create a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to create a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigCreateRequest */ TsigCreate(ctx context.Context) ApiTsigCreateRequest // TsigCreateExecute executes the request // @return KeysCreateTSIGKeyResponse TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateTSIGKeyResponse, *http.Response, error) + /* - TsigDelete Delete the TSIG key. + TsigDelete Delete the TSIG key. - Use this method to delete a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to delete a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @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 ApiTsigDeleteRequest + @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 ApiTsigDeleteRequest */ TsigDelete(ctx context.Context, id string) ApiTsigDeleteRequest // TsigDeleteExecute executes the request TsigDeleteExecute(r ApiTsigDeleteRequest) (*http.Response, error) + /* - TsigList Retrieve TSIG keys. + TsigList Retrieve TSIG keys. - Use this method to retrieve __TSIGKey__ objects. -A __TSIGKey__ object represents a TSIG key. + Use this method to retrieve __TSIGKey__ objects. + A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigListRequest */ TsigList(ctx context.Context) ApiTsigListRequest // TsigListExecute executes the request // @return KeysListTSIGKeyResponse TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKeyResponse, *http.Response, error) + /* - TsigRead Retrieve the TSIG key. + TsigRead Retrieve the TSIG key. - Use this method to retrieve a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to retrieve a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @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 ApiTsigReadRequest + @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 ApiTsigReadRequest */ TsigRead(ctx context.Context, id string) ApiTsigReadRequest // TsigReadExecute executes the request // @return KeysReadTSIGKeyResponse TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKeyResponse, *http.Response, error) + /* - TsigUpdate Update the TSIG key. + TsigUpdate Update the TSIG key. - Use this method to update a __TSIGKey__ object. -A __TSIGKey__ object represents a TSIG key. + Use this method to update a __TSIGKey__ object. + A __TSIGKey__ object represents a TSIG key. - @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 ApiTsigUpdateRequest + @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 ApiTsigUpdateRequest */ TsigUpdate(ctx context.Context, id string) ApiTsigUpdateRequest @@ -101,9 +105,9 @@ A __TSIGKey__ object represents a TSIG key. type TsigAPIService internal.Service type ApiTsigCreateRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - body *KeysTSIGKey + body *KeysTSIGKey } func (r ApiTsigCreateRequest) Body(body KeysTSIGKey) ApiTsigCreateRequest { @@ -121,24 +125,25 @@ TsigCreate Create the TSIG key. Use this method to create a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigCreateRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigCreateRequest */ func (a *TsigAPIService) TsigCreate(ctx context.Context) ApiTsigCreateRequest { return ApiTsigCreateRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysCreateTSIGKeyResponse +// +// @return KeysCreateTSIGKeyResponse func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysCreateTSIGKeyResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysCreateTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigCreate") @@ -172,14 +177,6 @@ func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateT if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -223,13 +220,14 @@ func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateT newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } type ApiTsigDeleteRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - id string + id string } func (r ApiTsigDeleteRequest) Execute() (*http.Response, error) { @@ -242,24 +240,24 @@ TsigDelete Delete the TSIG key. Use this method to delete a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @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 ApiTsigDeleteRequest + @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 ApiTsigDeleteRequest */ func (a *TsigAPIService) TsigDelete(ctx context.Context, id string) ApiTsigDeleteRequest { return ApiTsigDeleteRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request func (a *TsigAPIService) TsigDeleteExecute(r ApiTsigDeleteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []internal.FormFile + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []internal.FormFile ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigDelete") @@ -331,49 +329,49 @@ func (a *TsigAPIService) TsigDeleteExecute(r ApiTsigDeleteRequest) (*http.Respon } type ApiTsigListRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - fields *string - filter *string - offset *int32 - limit *int32 - pageToken *string - orderBy *string - tfilter *string - torderBy *string + fields *string + filter *string + offset *int32 + limit *int32 + pageToken *string + orderBy *string + tfilter *string + torderBy *string } -// A collection of response resources can be transformed by specifying a set of JSON tags to be returned. For a “flat” resource, the tag name is straightforward. If field selection is allowed on non-flat hierarchical resources, the service should implement a qualified naming scheme such as dot-qualification to reference data down the hierarchy. If a resource does not have the specified tag, the tag does not appear in the output resource. Specify this parameter as a comma-separated list of JSON tag names. +// 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 ApiTsigListRequest) Fields(fields string) ApiTsigListRequest { 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 | +// 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 ApiTsigListRequest) Filter(filter string) ApiTsigListRequest { 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'. +// 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 ApiTsigListRequest) Offset(offset int32) ApiTsigListRequest { 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. +// 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 ApiTsigListRequest) Limit(limit int32) ApiTsigListRequest { r.limit = &limit return r } -// The service-defined string used to identify a page of resources. A null value indicates the first page. +// The service-defined string used to identify a page of resources. A null value indicates the first page. func (r ApiTsigListRequest) PageToken(pageToken string) ApiTsigListRequest { 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. +// 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 ApiTsigListRequest) OrderBy(orderBy string) ApiTsigListRequest { r.orderBy = &orderBy return r @@ -401,24 +399,25 @@ TsigList Retrieve TSIG keys. Use this method to retrieve __TSIGKey__ objects. A __TSIGKey__ object represents a TSIG key. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTsigListRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTsigListRequest */ func (a *TsigAPIService) TsigList(ctx context.Context) ApiTsigListRequest { return ApiTsigListRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return KeysListTSIGKeyResponse +// +// @return KeysListTSIGKeyResponse func (a *TsigAPIService) TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysListTSIGKeyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysListTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigList") @@ -514,17 +513,18 @@ func (a *TsigAPIService) TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKey newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } type ApiTsigReadRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - id string - fields *string + 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. +// 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 ApiTsigReadRequest) Fields(fields string) ApiTsigReadRequest { r.fields = &fields return r @@ -540,26 +540,27 @@ TsigRead Retrieve the TSIG key. Use this method to retrieve a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @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 ApiTsigReadRequest + @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 ApiTsigReadRequest */ func (a *TsigAPIService) TsigRead(ctx context.Context, id string) ApiTsigReadRequest { return ApiTsigReadRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return KeysReadTSIGKeyResponse +// +// @return KeysReadTSIGKeyResponse func (a *TsigAPIService) TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysReadTSIGKeyResponse + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysReadTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigRead") @@ -635,14 +636,15 @@ func (a *TsigAPIService) TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKey newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } type ApiTsigUpdateRequest struct { - ctx context.Context + ctx context.Context ApiService TsigAPI - id string - body *KeysTSIGKey + id string + body *KeysTSIGKey } func (r ApiTsigUpdateRequest) Body(body KeysTSIGKey) ApiTsigUpdateRequest { @@ -660,26 +662,27 @@ TsigUpdate Update the TSIG key. Use this method to update a __TSIGKey__ object. A __TSIGKey__ object represents a TSIG key. - @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 ApiTsigUpdateRequest + @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 ApiTsigUpdateRequest */ func (a *TsigAPIService) TsigUpdate(ctx context.Context, id string) ApiTsigUpdateRequest { return ApiTsigUpdateRequest{ ApiService: a, - ctx: ctx, - id: id, + ctx: ctx, + id: id, } } // Execute executes the request -// @return KeysUpdateTSIGKeyResponse +// +// @return KeysUpdateTSIGKeyResponse func (a *TsigAPIService) TsigUpdateExecute(r ApiTsigUpdateRequest) (*KeysUpdateTSIGKeyResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *KeysUpdateTSIGKeyResponse + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *KeysUpdateTSIGKeyResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "TsigAPIService.TsigUpdate") @@ -714,14 +717,6 @@ func (a *TsigAPIService) TsigUpdateExecute(r ApiTsigUpdateRequest) (*KeysUpdateT if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -765,5 +760,6 @@ func (a *TsigAPIService) TsigUpdateExecute(r ApiTsigUpdateRequest) (*KeysUpdateT newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/keys/api_upload.go b/keys/api_upload.go index 9b28757..3d68206 100644 --- a/keys/api_upload.go +++ b/keys/api_upload.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -17,18 +17,18 @@ import ( "net/http" "net/url" -"github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) - type UploadAPI interface { + /* - UploadUpload Upload content to the keys service. + UploadUpload Upload content to the keys service. - Use this method to upload specified content type to the keys service. + Use this method to upload specified content type to the keys service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUploadUploadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUploadUploadRequest */ UploadUpload(ctx context.Context) ApiUploadUploadRequest @@ -41,9 +41,9 @@ type UploadAPI interface { type UploadAPIService internal.Service type ApiUploadUploadRequest struct { - ctx context.Context + ctx context.Context ApiService UploadAPI - body *UploadRequest + body *UploadRequest } func (r ApiUploadUploadRequest) Body(body UploadRequest) ApiUploadUploadRequest { @@ -60,24 +60,25 @@ UploadUpload Upload content to the keys service. Use this method to upload specified content type to the keys service. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUploadUploadRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUploadUploadRequest */ func (a *UploadAPIService) UploadUpload(ctx context.Context) ApiUploadUploadRequest { return ApiUploadUploadRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request -// @return DdiuploadResponse +// +// @return DdiuploadResponse func (a *UploadAPIService) UploadUploadExecute(r ApiUploadUploadRequest) (*DdiuploadResponse, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []internal.FormFile - localVarReturnValue *DdiuploadResponse + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []internal.FormFile + localVarReturnValue *DdiuploadResponse ) localBasePath, err := a.Client.Cfg.ServerURLWithContext(r.ctx, "UploadAPIService.UploadUpload") @@ -111,14 +112,6 @@ func (a *UploadAPIService) UploadUploadExecute(r ApiUploadUploadRequest) (*Ddiup if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.body.Tags == nil { - r.body.Tags = make(map[string]interface{}) - } - for k, v := range a.Client.Cfg.DefaultTags { - if _, ok := r.body.Tags[k]; !ok { - r.body.Tags[k] = v - } - } // body params localVarPostBody = r.body if r.ctx != nil { @@ -162,5 +155,6 @@ func (a *UploadAPIService) UploadUploadExecute(r ApiUploadUploadRequest) (*Ddiup newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } + return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/keys/client.go b/keys/client.go index 286dc91..b3649a4 100644 --- a/keys/client.go +++ b/keys/client.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -11,7 +11,7 @@ API version: v1 package keys import ( - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) var ServiceBasePath = "/api/ddi/v1" @@ -19,20 +19,20 @@ var ServiceBasePath = "/api/ddi/v1" // APIClient manages communication with the DDI Keys API API vv1 // In most cases there should be only one, shared, APIClient. type APIClient struct { - *internal.APIClient + *internal.APIClient // API Services GenerateTsigAPI GenerateTsigAPI - KerberosAPI KerberosAPI - TsigAPI TsigAPI - UploadAPI UploadAPI + KerberosAPI KerberosAPI + TsigAPI TsigAPI + UploadAPI UploadAPI } // NewAPIClient creates a new API client. Requires a userAgent string describing your application. // optionally a custom http.Client to allow for advanced features such as caching. func NewAPIClient(cfg *internal.Configuration) *APIClient { c := &APIClient{} - c.APIClient = internal.NewAPIClient(cfg) + c.APIClient = internal.NewAPIClient(cfg) // API Services c.GenerateTsigAPI = (*GenerateTsigAPIService)(&c.Common) diff --git a/keys/model_ddiupload_response.go b/keys/model_ddiupload_response.go index e220432..a58ddfb 100644 --- a/keys/model_ddiupload_response.go +++ b/keys/model_ddiupload_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -106,7 +106,7 @@ func (o *DdiuploadResponse) SetWarning(v string) { } func (o DdiuploadResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -159,5 +159,3 @@ func (v *NullableDdiuploadResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_kerberos_key.go b/keys/model_kerberos_key.go index 4285f1e..ee036c9 100644 --- a/keys/model_kerberos_key.go +++ b/keys/model_kerberos_key.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -311,7 +311,7 @@ func (o *KerberosKey) SetVersion(v int64) { } func (o KerberosKey) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -382,5 +382,3 @@ func (v *NullableKerberosKey) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_kerberos_keys.go b/keys/model_kerberos_keys.go index 78817e6..1c06064 100644 --- a/keys/model_kerberos_keys.go +++ b/keys/model_kerberos_keys.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *KerberosKeys) SetItems(v []KerberosKey) { } func (o KerberosKeys) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKerberosKeys) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_create_tsig_key_response.go b/keys/model_keys_create_tsig_key_response.go index bfe51e4..edd0da5 100644 --- a/keys/model_keys_create_tsig_key_response.go +++ b/keys/model_keys_create_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *KeysCreateTSIGKeyResponse) SetResult(v KeysTSIGKey) { } func (o KeysCreateTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysCreateTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_generate_tsig_response.go b/keys/model_keys_generate_tsig_response.go index 5a6ee49..85f10e4 100644 --- a/keys/model_keys_generate_tsig_response.go +++ b/keys/model_keys_generate_tsig_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *KeysGenerateTSIGResponse) SetResult(v KeysGenerateTSIGResult) { } func (o KeysGenerateTSIGResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysGenerateTSIGResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_generate_tsig_result.go b/keys/model_keys_generate_tsig_result.go index 9b7dab8..4f6b49d 100644 --- a/keys/model_keys_generate_tsig_result.go +++ b/keys/model_keys_generate_tsig_result.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -73,7 +73,7 @@ func (o *KeysGenerateTSIGResult) SetSecret(v string) { } func (o KeysGenerateTSIGResult) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableKeysGenerateTSIGResult) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_list_kerberos_key_response.go b/keys/model_keys_list_kerberos_key_response.go index 31006cc..5966a99 100644 --- a/keys/model_keys_list_kerberos_key_response.go +++ b/keys/model_keys_list_kerberos_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -73,7 +73,7 @@ func (o *KeysListKerberosKeyResponse) SetResults(v []KerberosKey) { } func (o KeysListKerberosKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableKeysListKerberosKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_list_tsig_key_response.go b/keys/model_keys_list_tsig_key_response.go index 5d90120..2a6d699 100644 --- a/keys/model_keys_list_tsig_key_response.go +++ b/keys/model_keys_list_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -73,7 +73,7 @@ func (o *KeysListTSIGKeyResponse) SetResults(v []KeysTSIGKey) { } func (o KeysListTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableKeysListTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_read_kerberos_key_response.go b/keys/model_keys_read_kerberos_key_response.go index daeeb0c..dce9578 100644 --- a/keys/model_keys_read_kerberos_key_response.go +++ b/keys/model_keys_read_kerberos_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *KeysReadKerberosKeyResponse) SetResult(v KerberosKey) { } func (o KeysReadKerberosKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysReadKerberosKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_read_tsig_key_response.go b/keys/model_keys_read_tsig_key_response.go index 3eee404..fdc725c 100644 --- a/keys/model_keys_read_tsig_key_response.go +++ b/keys/model_keys_read_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *KeysReadTSIGKeyResponse) SetResult(v KeysTSIGKey) { } func (o KeysReadTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysReadTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_tsig_key.go b/keys/model_keys_tsig_key.go index 02efb33..bb5cb3d 100644 --- a/keys/model_keys_tsig_key.go +++ b/keys/model_keys_tsig_key.go @@ -15,7 +15,6 @@ import ( "encoding/json" "fmt" "time" - ) // checks if the KeysTSIGKey type satisfies the MappedNullable interface at compile time @@ -41,7 +40,6 @@ type KeysTSIGKey struct { 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"` - res interface{} } type _KeysTSIGKey KeysTSIGKey diff --git a/keys/model_keys_update_kerberos_key_response.go b/keys/model_keys_update_kerberos_key_response.go index 189d271..9e83ae5 100644 --- a/keys/model_keys_update_kerberos_key_response.go +++ b/keys/model_keys_update_kerberos_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *KeysUpdateKerberosKeyResponse) SetResult(v KerberosKey) { } func (o KeysUpdateKerberosKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysUpdateKerberosKeyResponse) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_keys_update_tsig_key_response.go b/keys/model_keys_update_tsig_key_response.go index 2082989..dc1acd7 100644 --- a/keys/model_keys_update_tsig_key_response.go +++ b/keys/model_keys_update_tsig_key_response.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -72,7 +72,7 @@ func (o *KeysUpdateTSIGKeyResponse) SetResult(v KeysTSIGKey) { } func (o KeysUpdateTSIGKeyResponse) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -122,5 +122,3 @@ func (v *NullableKeysUpdateTSIGKeyResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_protobuf_field_mask.go b/keys/model_protobuf_field_mask.go index 33973a0..c76ddb4 100644 --- a/keys/model_protobuf_field_mask.go +++ b/keys/model_protobuf_field_mask.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -73,7 +73,7 @@ func (o *ProtobufFieldMask) SetPaths(v []string) { } func (o ProtobufFieldMask) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -123,5 +123,3 @@ func (v *NullableProtobufFieldMask) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/keys/model_upload_content_type.go b/keys/model_upload_content_type.go index 4052062..dbdf50c 100644 --- a/keys/model_upload_content_type.go +++ b/keys/model_upload_content_type.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */ @@ -21,7 +21,7 @@ type UploadContentType string // List of uploadContentType const ( UPLOADCONTENTTYPE_UNKNOWN UploadContentType = "UNKNOWN" - UPLOADCONTENTTYPE_KEYTAB UploadContentType = "KEYTAB" + UPLOADCONTENTTYPE_KEYTAB UploadContentType = "KEYTAB" ) // All allowed values of UploadContentType enum @@ -108,4 +108,3 @@ func (v *NullableUploadContentType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/keys/utils.go b/keys/utils.go index 51922c8..9d1e0fd 100644 --- a/keys/utils.go +++ b/keys/utils.go @@ -1,7 +1,7 @@ /* DDI Keys API -The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. +The DDI Keys application is a BloxOne DDI service for managing TSIG keys and GSS-TSIG (Kerberos) keys which are used by other BloxOne DDI applications. It is part of the full-featured, DDI cloud solution that enables customers to deploy large numbers of protocol servers to deliver DNS and DHCP throughout their enterprise network. API version: v1 */