From 9ccdea95f1f5449db2d877e4a8aeade90ddacfd7 Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Mon, 29 Jan 2024 17:39:24 -0800 Subject: [PATCH 1/7] latest generator changes + make fmt --- dns_config/api_acl.go | 25 ++++++++++------ dns_config/api_auth_nsg.go | 25 ++++++++++------ dns_config/api_auth_zone.go | 27 +++++++++++------- dns_config/api_cache_flush.go | 2 -- dns_config/api_convert_domain_name.go | 2 -- dns_config/api_convert_rname.go | 2 -- dns_config/api_delegation.go | 25 ++++++++++------ dns_config/api_forward_nsg.go | 25 ++++++++++------ dns_config/api_forward_zone.go | 27 +++++++++++------- dns_config/api_global.go | 8 ------ dns_config/api_host.go | 14 +++++---- dns_config/api_lbdn.go | 25 ++++++++++------ dns_config/api_server.go | 25 ++++++++++------ dns_config/api_view.go | 27 +++++++++++------- dns_data/api_record.go | 27 +++++++++++------- infra_mgmt/api_detail.go | 4 --- infra_mgmt/api_hosts.go | 41 ++++++++++++++++----------- infra_mgmt/api_services.go | 27 +++++++++++------- infra_provision/api_ui_join_token.go | 26 ++++++++++------- infra_provision/api_uicsr.go | 10 ------- ipam/api_address.go | 25 ++++++++++------ ipam/api_address_block.go | 39 +++++++++++-------------- ipam/api_asm.go | 6 ---- ipam/api_dhcp_host.go | 16 +++++------ ipam/api_dns_usage.go | 4 --- ipam/api_filter.go | 2 -- ipam/api_fixed_address.go | 25 ++++++++++------ ipam/api_global.go | 8 ------ ipam/api_ha_group.go | 17 ++++++----- ipam/api_hardware_filter.go | 25 ++++++++++------ ipam/api_ip_space.go | 29 ++++++++++--------- ipam/api_ipam_host.go | 25 ++++++++++------ ipam/api_leases_command.go | 2 -- ipam/api_option_code.go | 9 ------ ipam/api_option_filter.go | 25 ++++++++++------ ipam/api_option_group.go | 25 ++++++++++------ ipam/api_option_space.go | 25 ++++++++++------ ipam/api_range.go | 29 ++++++++++--------- ipam/api_server.go | 25 ++++++++++------ ipam/api_subnet.go | 31 ++++++++++---------- keys/api_generate_tsig.go | 2 -- keys/api_kerberos.go | 9 ------ keys/api_tsig.go | 25 ++++++++++------ keys/api_upload.go | 10 +++++-- 44 files changed, 456 insertions(+), 376 deletions(-) diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index a6ee629..0ba720c 100644 --- a/dns_config/api_acl.go +++ b/dns_config/api_acl.go @@ -22,7 +22,6 @@ import ( ) type AclAPI interface { - /* AclCreate Create the ACL object. @@ -37,7 +36,6 @@ type AclAPI interface { // AclCreateExecute executes the request // @return ConfigCreateACLResponse AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateACLResponse, *http.Response, error) - /* AclDelete Move the ACL object to Recyclebin. @@ -52,7 +50,6 @@ type AclAPI interface { // AclDeleteExecute executes the request AclDeleteExecute(r ApiAclDeleteRequest) (*http.Response, error) - /* AclList List ACL objects. @@ -67,7 +64,6 @@ type AclAPI interface { // AclListExecute executes the request // @return ConfigListACLResponse AclListExecute(r ApiAclListRequest) (*ConfigListACLResponse, *http.Response, error) - /* AclRead Read the ACL object. @@ -83,7 +79,6 @@ type AclAPI interface { // AclReadExecute executes the request // @return ConfigReadACLResponse AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLResponse, *http.Response, error) - /* AclUpdate Update the ACL object. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *AclAPIService) AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateAC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *AclAPIService) AclListExecute(r ApiAclListRequest) (*ConfigListACLRespo newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *AclAPIService) AclReadExecute(r ApiAclReadRequest) (*ConfigReadACLRespo newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 87ac335..50e5b9e 100644 --- a/dns_config/api_auth_nsg.go +++ b/dns_config/api_auth_nsg.go @@ -22,7 +22,6 @@ import ( ) type AuthNsgAPI interface { - /* AuthNsgCreate Create the AuthNSG object. @@ -37,7 +36,6 @@ type AuthNsgAPI interface { // AuthNsgCreateExecute executes the request // @return ConfigCreateAuthNSGResponse AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*ConfigCreateAuthNSGResponse, *http.Response, error) - /* AuthNsgDelete Move the AuthNSG object to Recyclebin. @@ -52,7 +50,6 @@ type AuthNsgAPI interface { // AuthNsgDeleteExecute executes the request AuthNsgDeleteExecute(r ApiAuthNsgDeleteRequest) (*http.Response, error) - /* AuthNsgList List AuthNSG objects. @@ -67,7 +64,6 @@ type AuthNsgAPI interface { // AuthNsgListExecute executes the request // @return ConfigListAuthNSGResponse AuthNsgListExecute(r ApiAuthNsgListRequest) (*ConfigListAuthNSGResponse, *http.Response, error) - /* AuthNsgRead Read the AuthNSG object. @@ -83,7 +79,6 @@ type AuthNsgAPI interface { // AuthNsgReadExecute executes the request // @return ConfigReadAuthNSGResponse AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*ConfigReadAuthNSGResponse, *http.Response, error) - /* AuthNsgUpdate Update the AuthNSG object. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *AuthNsgAPIService) AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*Co newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *AuthNsgAPIService) AuthNsgListExecute(r ApiAuthNsgListRequest) (*Config newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *AuthNsgAPIService) AuthNsgReadExecute(r ApiAuthNsgReadRequest) (*Config newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 7399faf..5e1f12b 100644 --- a/dns_config/api_auth_zone.go +++ b/dns_config/api_auth_zone.go @@ -22,7 +22,6 @@ import ( ) type AuthZoneAPI interface { - /* AuthZoneCopy Copies the __AuthZone__ object. @@ -37,7 +36,6 @@ type AuthZoneAPI interface { // AuthZoneCopyExecute executes the request // @return ConfigCopyAuthZoneResponse AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*ConfigCopyAuthZoneResponse, *http.Response, error) - /* AuthZoneCreate Create the AuthZone object. @@ -52,7 +50,6 @@ type AuthZoneAPI interface { // AuthZoneCreateExecute executes the request // @return ConfigCreateAuthZoneResponse AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) (*ConfigCreateAuthZoneResponse, *http.Response, error) - /* AuthZoneDelete Moves the AuthZone object to Recyclebin. @@ -67,7 +64,6 @@ type AuthZoneAPI interface { // AuthZoneDeleteExecute executes the request AuthZoneDeleteExecute(r ApiAuthZoneDeleteRequest) (*http.Response, error) - /* AuthZoneList List AuthZone objects. @@ -82,7 +78,6 @@ type AuthZoneAPI interface { // AuthZoneListExecute executes the request // @return ConfigListAuthZoneResponse AuthZoneListExecute(r ApiAuthZoneListRequest) (*ConfigListAuthZoneResponse, *http.Response, error) - /* AuthZoneRead Read the AuthZone object. @@ -98,7 +93,6 @@ type AuthZoneAPI interface { // AuthZoneReadExecute executes the request // @return ConfigReadAuthZoneResponse AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*ConfigReadAuthZoneResponse, *http.Response, error) - /* AuthZoneUpdate Update the AuthZone object. @@ -235,7 +229,6 @@ func (a *AuthZoneAPIService) AuthZoneCopyExecute(r ApiAuthZoneCopyRequest) (*Con newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -322,6 +315,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -365,7 +366,6 @@ func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -668,7 +668,6 @@ func (a *AuthZoneAPIService) AuthZoneListExecute(r ApiAuthZoneListRequest) (*Con newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -801,7 +800,6 @@ func (a *AuthZoneAPIService) AuthZoneReadExecute(r ApiAuthZoneReadRequest) (*Con newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -892,6 +890,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -935,6 +941,5 @@ 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 5d107ae..299deef 100644 --- a/dns_config/api_cache_flush.go +++ b/dns_config/api_cache_flush.go @@ -21,7 +21,6 @@ import ( ) type CacheFlushAPI interface { - /* CacheFlushCreate Create the Cache Flush object. @@ -157,6 +156,5 @@ 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 3c9e5b0..cc1d7af 100644 --- a/dns_config/api_convert_domain_name.go +++ b/dns_config/api_convert_domain_name.go @@ -22,7 +22,6 @@ import ( ) type ConvertDomainNameAPI interface { - /* ConvertDomainNameConvert Convert the object. @@ -150,6 +149,5 @@ 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 317d931..e15f007 100644 --- a/dns_config/api_convert_rname.go +++ b/dns_config/api_convert_rname.go @@ -22,7 +22,6 @@ import ( ) type ConvertRnameAPI interface { - /* ConvertRnameConvertRName Convert the object. @@ -150,6 +149,5 @@ 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 3599ee3..aaa9ce3 100644 --- a/dns_config/api_delegation.go +++ b/dns_config/api_delegation.go @@ -22,7 +22,6 @@ import ( ) type DelegationAPI interface { - /* DelegationCreate Create the Delegation object. @@ -37,7 +36,6 @@ type DelegationAPI interface { // DelegationCreateExecute executes the request // @return ConfigCreateDelegationResponse DelegationCreateExecute(r ApiDelegationCreateRequest) (*ConfigCreateDelegationResponse, *http.Response, error) - /* DelegationDelete Moves the Delegation object to Recyclebin. @@ -52,7 +50,6 @@ type DelegationAPI interface { // DelegationDeleteExecute executes the request DelegationDeleteExecute(r ApiDelegationDeleteRequest) (*http.Response, error) - /* DelegationList List Delegation objects. @@ -67,7 +64,6 @@ type DelegationAPI interface { // DelegationListExecute executes the request // @return ConfigListDelegationResponse DelegationListExecute(r ApiDelegationListRequest) (*ConfigListDelegationResponse, *http.Response, error) - /* DelegationRead Read the Delegation object. @@ -83,7 +79,6 @@ type DelegationAPI interface { // DelegationReadExecute executes the request // @return ConfigReadDelegationResponse DelegationReadExecute(r ApiDelegationReadRequest) (*ConfigReadDelegationResponse, *http.Response, error) - /* DelegationUpdate Update the Delegation object. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *DelegationAPIService) DelegationCreateExecute(r ApiDelegationCreateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *DelegationAPIService) DelegationListExecute(r ApiDelegationListRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *DelegationAPIService) DelegationReadExecute(r ApiDelegationReadRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 b27a0ea..150e213 100644 --- a/dns_config/api_forward_nsg.go +++ b/dns_config/api_forward_nsg.go @@ -22,7 +22,6 @@ import ( ) type ForwardNsgAPI interface { - /* ForwardNsgCreate Create the ForwardNSG object. @@ -37,7 +36,6 @@ type ForwardNsgAPI interface { // ForwardNsgCreateExecute executes the request // @return ConfigCreateForwardNSGResponse ForwardNsgCreateExecute(r ApiForwardNsgCreateRequest) (*ConfigCreateForwardNSGResponse, *http.Response, error) - /* ForwardNsgDelete Move the ForwardNSG object to Recyclebin. @@ -52,7 +50,6 @@ type ForwardNsgAPI interface { // ForwardNsgDeleteExecute executes the request ForwardNsgDeleteExecute(r ApiForwardNsgDeleteRequest) (*http.Response, error) - /* ForwardNsgList List ForwardNSG objects. @@ -67,7 +64,6 @@ type ForwardNsgAPI interface { // ForwardNsgListExecute executes the request // @return ConfigListForwardNSGResponse ForwardNsgListExecute(r ApiForwardNsgListRequest) (*ConfigListForwardNSGResponse, *http.Response, error) - /* ForwardNsgRead Read the ForwardNSG object. @@ -83,7 +79,6 @@ type ForwardNsgAPI interface { // ForwardNsgReadExecute executes the request // @return ConfigReadForwardNSGResponse ForwardNsgReadExecute(r ApiForwardNsgReadRequest) (*ConfigReadForwardNSGResponse, *http.Response, error) - /* ForwardNsgUpdate Update the ForwardNSG object. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *ForwardNsgAPIService) ForwardNsgCreateExecute(r ApiForwardNsgCreateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *ForwardNsgAPIService) ForwardNsgListExecute(r ApiForwardNsgListRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *ForwardNsgAPIService) ForwardNsgReadExecute(r ApiForwardNsgReadRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 050208e..b68ef18 100644 --- a/dns_config/api_forward_zone.go +++ b/dns_config/api_forward_zone.go @@ -22,7 +22,6 @@ import ( ) type ForwardZoneAPI interface { - /* ForwardZoneCopy Copies the __ForwardZone__ object. @@ -37,7 +36,6 @@ type ForwardZoneAPI interface { // ForwardZoneCopyExecute executes the request // @return ConfigCopyForwardZoneResponse ForwardZoneCopyExecute(r ApiForwardZoneCopyRequest) (*ConfigCopyForwardZoneResponse, *http.Response, error) - /* ForwardZoneCreate Create the ForwardZone object. @@ -52,7 +50,6 @@ type ForwardZoneAPI interface { // ForwardZoneCreateExecute executes the request // @return ConfigCreateForwardZoneResponse ForwardZoneCreateExecute(r ApiForwardZoneCreateRequest) (*ConfigCreateForwardZoneResponse, *http.Response, error) - /* ForwardZoneDelete Move the Forward Zone object to Recyclebin. @@ -67,7 +64,6 @@ type ForwardZoneAPI interface { // ForwardZoneDeleteExecute executes the request ForwardZoneDeleteExecute(r ApiForwardZoneDeleteRequest) (*http.Response, error) - /* ForwardZoneList List Forward Zone objects. @@ -82,7 +78,6 @@ type ForwardZoneAPI interface { // ForwardZoneListExecute executes the request // @return ConfigListForwardZoneResponse ForwardZoneListExecute(r ApiForwardZoneListRequest) (*ConfigListForwardZoneResponse, *http.Response, error) - /* ForwardZoneRead Read the Forward Zone object. @@ -98,7 +93,6 @@ type ForwardZoneAPI interface { // ForwardZoneReadExecute executes the request // @return ConfigReadForwardZoneResponse ForwardZoneReadExecute(r ApiForwardZoneReadRequest) (*ConfigReadForwardZoneResponse, *http.Response, error) - /* ForwardZoneUpdate Update the Forward Zone object. @@ -235,7 +229,6 @@ func (a *ForwardZoneAPIService) ForwardZoneCopyExecute(r ApiForwardZoneCopyReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -312,6 +305,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -355,7 +356,6 @@ func (a *ForwardZoneAPIService) ForwardZoneCreateExecute(r ApiForwardZoneCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -648,7 +648,6 @@ func (a *ForwardZoneAPIService) ForwardZoneListExecute(r ApiForwardZoneListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -771,7 +770,6 @@ func (a *ForwardZoneAPIService) ForwardZoneReadExecute(r ApiForwardZoneReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -852,6 +850,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -895,6 +901,5 @@ 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 0c98b92..77da4fa 100644 --- a/dns_config/api_global.go +++ b/dns_config/api_global.go @@ -22,7 +22,6 @@ import ( ) type GlobalAPI interface { - /* GlobalRead Read the Global configuration object. @@ -37,7 +36,6 @@ type GlobalAPI interface { // GlobalReadExecute executes the request // @return ConfigReadGlobalResponse GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigReadGlobalResponse, *http.Response, error) - /* GlobalRead2 Read the Global configuration object. @@ -53,7 +51,6 @@ type GlobalAPI interface { // GlobalRead2Execute executes the request // @return ConfigReadGlobalResponse GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigReadGlobalResponse, *http.Response, error) - /* GlobalUpdate Update the Global configuration object. @@ -68,7 +65,6 @@ type GlobalAPI interface { // GlobalUpdateExecute executes the request // @return ConfigUpdateGlobalResponse GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*ConfigUpdateGlobalResponse, *http.Response, error) - /* GlobalUpdate2 Update the Global configuration object. @@ -204,7 +200,6 @@ func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*ConfigRea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -327,7 +322,6 @@ func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*ConfigR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -447,7 +441,6 @@ func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*Confi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -571,6 +564,5 @@ 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 5a21638..5269ca2 100644 --- a/dns_config/api_host.go +++ b/dns_config/api_host.go @@ -22,7 +22,6 @@ import ( ) type HostAPI interface { - /* HostList List DNS Host objects. @@ -37,7 +36,6 @@ type HostAPI interface { // HostListExecute executes the request // @return ConfigListHostResponse HostListExecute(r ApiHostListRequest) (*ConfigListHostResponse, *http.Response, error) - /* HostRead Read the DNS Host object. @@ -53,7 +51,6 @@ type HostAPI interface { // HostReadExecute executes the request // @return ConfigReadHostResponse HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostResponse, *http.Response, error) - /* HostUpdate Update the DNS Host object. @@ -269,7 +266,6 @@ func (a *HostAPIService) HostListExecute(r ApiHostListRequest) (*ConfigListHostR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -402,7 +398,6 @@ func (a *HostAPIService) HostReadExecute(r ApiHostReadRequest) (*ConfigReadHostR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -493,6 +488,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -536,6 +539,5 @@ 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 964f9a3..d1a985f 100644 --- a/dns_config/api_lbdn.go +++ b/dns_config/api_lbdn.go @@ -22,7 +22,6 @@ import ( ) type LbdnAPI interface { - /* LbdnCreate Create the __LBDN__ object. @@ -36,7 +35,6 @@ type LbdnAPI interface { // LbdnCreateExecute executes the request // @return ConfigCreateLBDNResponse LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreateLBDNResponse, *http.Response, error) - /* LbdnDelete Delete the __LBDN__ object. @@ -50,7 +48,6 @@ type LbdnAPI interface { // LbdnDeleteExecute executes the request LbdnDeleteExecute(r ApiLbdnDeleteRequest) (*http.Response, error) - /* LbdnList List __LBDN__ objects. @@ -64,7 +61,6 @@ type LbdnAPI interface { // LbdnListExecute executes the request // @return ConfigListLBDNResponse LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNResponse, *http.Response, error) - /* LbdnRead Read the __LBDN__ object. @@ -79,7 +75,6 @@ type LbdnAPI interface { // LbdnReadExecute executes the request // @return ConfigReadLBDNResponse LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNResponse, *http.Response, error) - /* LbdnUpdate Update the __LBDN__ object. @@ -171,6 +166,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -214,7 +217,6 @@ func (a *LbdnAPIService) LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreat newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -505,7 +507,6 @@ func (a *LbdnAPIService) LbdnListExecute(r ApiLbdnListRequest) (*ConfigListLBDNR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -627,7 +628,6 @@ func (a *LbdnAPIService) LbdnReadExecute(r ApiLbdnReadRequest) (*ConfigReadLBDNR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -707,6 +707,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -750,6 +758,5 @@ 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 e6474e3..6830c7a 100644 --- a/dns_config/api_server.go +++ b/dns_config/api_server.go @@ -22,7 +22,6 @@ import ( ) type ServerAPI interface { - /* ServerCreate Create the Server object. @@ -37,7 +36,6 @@ type ServerAPI interface { // ServerCreateExecute executes the request // @return ConfigCreateServerResponse ServerCreateExecute(r ApiServerCreateRequest) (*ConfigCreateServerResponse, *http.Response, error) - /* ServerDelete Move the Server object to Recyclebin. @@ -52,7 +50,6 @@ type ServerAPI interface { // ServerDeleteExecute executes the request ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) - /* ServerList List Server objects. @@ -67,7 +64,6 @@ type ServerAPI interface { // ServerListExecute executes the request // @return ConfigListServerResponse ServerListExecute(r ApiServerListRequest) (*ConfigListServerResponse, *http.Response, error) - /* ServerRead Read the Server object. @@ -83,7 +79,6 @@ type ServerAPI interface { // ServerReadExecute executes the request // @return ConfigReadServerResponse ServerReadExecute(r ApiServerReadRequest) (*ConfigReadServerResponse, *http.Response, error) - /* ServerUpdate Update the Server object. @@ -187,6 +182,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -230,7 +233,6 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Confi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -533,7 +535,6 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*ConfigLis newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -666,7 +667,6 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*ConfigRea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -757,6 +757,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -800,6 +808,5 @@ 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 7ae3fe4..a2f0c9b 100644 --- a/dns_config/api_view.go +++ b/dns_config/api_view.go @@ -22,7 +22,6 @@ import ( ) type ViewAPI interface { - /* ViewBulkCopy Copies the specified __AuthZone__ and __ForwardZone__ objects in the __View__. @@ -38,7 +37,6 @@ type ViewAPI interface { // ViewBulkCopyExecute executes the request // @return ConfigBulkCopyResponse ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigBulkCopyResponse, *http.Response, error) - /* ViewCreate Create the View object. @@ -53,7 +51,6 @@ type ViewAPI interface { // ViewCreateExecute executes the request // @return ConfigCreateViewResponse ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreateViewResponse, *http.Response, error) - /* ViewDelete Move the View object to Recyclebin. @@ -68,7 +65,6 @@ type ViewAPI interface { // ViewDeleteExecute executes the request ViewDeleteExecute(r ApiViewDeleteRequest) (*http.Response, error) - /* ViewList List View objects. @@ -83,7 +79,6 @@ type ViewAPI interface { // ViewListExecute executes the request // @return ConfigListViewResponse ViewListExecute(r ApiViewListRequest) (*ConfigListViewResponse, *http.Response, error) - /* ViewRead Read the View object. @@ -99,7 +94,6 @@ type ViewAPI interface { // ViewReadExecute executes the request // @return ConfigReadViewResponse ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewResponse, *http.Response, error) - /* ViewUpdate Update the View object. @@ -237,7 +231,6 @@ func (a *ViewAPIService) ViewBulkCopyExecute(r ApiViewBulkCopyRequest) (*ConfigB newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -324,6 +317,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -367,7 +368,6 @@ func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreat newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -670,7 +670,6 @@ func (a *ViewAPIService) ViewListExecute(r ApiViewListRequest) (*ConfigListViewR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -803,7 +802,6 @@ func (a *ViewAPIService) ViewReadExecute(r ApiViewReadRequest) (*ConfigReadViewR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -894,6 +892,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -937,6 +943,5 @@ 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_data/api_record.go b/dns_data/api_record.go index e6f6b3d..0d4af5c 100644 --- a/dns_data/api_record.go +++ b/dns_data/api_record.go @@ -22,7 +22,6 @@ import ( ) type RecordAPI interface { - /* RecordCreate Create the DNS resource record. @@ -37,7 +36,6 @@ type RecordAPI interface { // RecordCreateExecute executes the request // @return DataCreateRecordResponse RecordCreateExecute(r ApiRecordCreateRequest) (*DataCreateRecordResponse, *http.Response, error) - /* RecordDelete Move the DNS resource record to recycle bin. @@ -52,7 +50,6 @@ type RecordAPI interface { // RecordDeleteExecute executes the request RecordDeleteExecute(r ApiRecordDeleteRequest) (*http.Response, error) - /* RecordList Retrieve DNS resource records. @@ -67,7 +64,6 @@ type RecordAPI interface { // RecordListExecute executes the request // @return DataListRecordResponse RecordListExecute(r ApiRecordListRequest) (*DataListRecordResponse, *http.Response, error) - /* RecordRead Retrieve the DNS resource record. @@ -83,7 +79,6 @@ type RecordAPI interface { // RecordReadExecute executes the request // @return DataReadRecordResponse RecordReadExecute(r ApiRecordReadRequest) (*DataReadRecordResponse, *http.Response, error) - /* RecordSOASerialIncrement Increment serial number for the SOA record. @@ -99,7 +94,6 @@ type RecordAPI interface { // RecordSOASerialIncrementExecute executes the request // @return DataSOASerialIncrementResponse RecordSOASerialIncrementExecute(r ApiRecordSOASerialIncrementRequest) (*DataSOASerialIncrementResponse, *http.Response, error) - /* RecordUpdate Update the DNS resource record. @@ -203,6 +197,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -246,7 +248,6 @@ func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -549,7 +550,6 @@ func (a *RecordAPIService) RecordListExecute(r ApiRecordListRequest) (*DataListR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -682,7 +682,6 @@ func (a *RecordAPIService) RecordReadExecute(r ApiRecordReadRequest) (*DataReadR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -806,7 +805,6 @@ func (a *RecordAPIService) RecordSOASerialIncrementExecute(r ApiRecordSOASerialI newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -897,6 +895,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -940,6 +946,5 @@ func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataU newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } diff --git a/infra_mgmt/api_detail.go b/infra_mgmt/api_detail.go index cb3d549..5f04bf8 100644 --- a/infra_mgmt/api_detail.go +++ b/infra_mgmt/api_detail.go @@ -21,7 +21,6 @@ import ( ) type DetailAPI interface { - /* DetailHostsList List all the Hosts along with its associated Services (applications). @@ -33,7 +32,6 @@ 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. @@ -232,7 +230,6 @@ func (a *DetailAPIService) DetailHostsListExecute(r ApiDetailHostsListRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -418,6 +415,5 @@ 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 4c614f0..d7af487 100644 --- a/infra_mgmt/api_hosts.go +++ b/infra_mgmt/api_hosts.go @@ -22,7 +22,6 @@ import ( ) type HostsAPI interface { - /* HostsAssignTags Assign tags for list of hosts. @@ -38,7 +37,6 @@ type HostsAPI interface { // HostsAssignTagsExecute executes the request // @return map[string]interface{} HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (map[string]interface{}, *http.Response, error) - /* HostsCreate Create a Host resource. @@ -53,7 +51,6 @@ type HostsAPI interface { // HostsCreateExecute executes the request // @return InfraCreateHostResponse HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCreateHostResponse, *http.Response, error) - /* HostsDelete Delete a Host resource. @@ -68,7 +65,6 @@ type HostsAPI interface { // HostsDeleteExecute executes the request HostsDeleteExecute(r ApiHostsDeleteRequest) (*http.Response, error) - /* HostsDisconnect Disconnect a Host by resource ID. @@ -83,7 +79,6 @@ 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. @@ -95,7 +90,6 @@ type HostsAPI interface { // HostsListExecute executes the request // @return InfraListHostResponse HostsListExecute(r ApiHostsListRequest) (*InfraListHostResponse, *http.Response, error) - /* HostsRead Get a Host resource. @@ -111,7 +105,6 @@ type HostsAPI interface { // HostsReadExecute executes the request // @return InfraGetHostResponse HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHostResponse, *http.Response, error) - /* HostsReplace Migrate a Host's configuration from one to another. @@ -125,7 +118,6 @@ 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. @@ -141,7 +133,6 @@ type HostsAPI interface { // HostsUnassignTagsExecute executes the request // @return map[string]interface{} HostsUnassignTagsExecute(r ApiHostsUnassignTagsRequest) (map[string]interface{}, *http.Response, error) - /* HostsUpdate Update a Host resource. @@ -238,6 +229,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -281,7 +280,6 @@ func (a *HostsAPIService) HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (m newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -358,6 +356,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -401,7 +407,6 @@ func (a *HostsAPIService) HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCre newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -628,7 +633,6 @@ func (a *HostsAPIService) HostsDisconnectExecute(r ApiHostsDisconnectRequest) (m newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -814,7 +818,6 @@ func (a *HostsAPIService) HostsListExecute(r ApiHostsListRequest) (*InfraListHos newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -927,7 +930,6 @@ func (a *HostsAPIService) HostsReadExecute(r ApiHostsReadRequest) (*InfraGetHost newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1052,7 +1054,6 @@ func (a *HostsAPIService) HostsReplaceExecute(r ApiHostsReplaceRequest) (map[str newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1173,7 +1174,6 @@ func (a *HostsAPIService) HostsUnassignTagsExecute(r ApiHostsUnassignTagsRequest newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1256,6 +1256,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1299,6 +1307,5 @@ 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 b76de6d..ea81a36 100644 --- a/infra_mgmt/api_services.go +++ b/infra_mgmt/api_services.go @@ -22,7 +22,6 @@ import ( ) type ServicesAPI interface { - /* ServicesApplications List applications (Service types) for a particular account. @@ -36,7 +35,6 @@ type ServicesAPI interface { // ServicesApplicationsExecute executes the request // @return InfraApplicationsResponse ServicesApplicationsExecute(r ApiServicesApplicationsRequest) (*InfraApplicationsResponse, *http.Response, error) - /* ServicesCreate Create a Service resource. @@ -53,7 +51,6 @@ type ServicesAPI interface { // ServicesCreateExecute executes the request // @return InfraCreateServiceResponse ServicesCreateExecute(r ApiServicesCreateRequest) (*InfraCreateServiceResponse, *http.Response, error) - /* ServicesDelete Delete a Service resource. @@ -68,7 +65,6 @@ type ServicesAPI interface { // ServicesDeleteExecute executes the request ServicesDeleteExecute(r ApiServicesDeleteRequest) (*http.Response, error) - /* ServicesList List all the Service resources for an account. @@ -80,7 +76,6 @@ type ServicesAPI interface { // ServicesListExecute executes the request // @return InfraListServiceResponse ServicesListExecute(r ApiServicesListRequest) (*InfraListServiceResponse, *http.Response, error) - /* ServicesRead Read a Service resource. @@ -96,7 +91,6 @@ type ServicesAPI interface { // ServicesReadExecute executes the request // @return InfraGetServiceResponse ServicesReadExecute(r ApiServicesReadRequest) (*InfraGetServiceResponse, *http.Response, error) - /* ServicesUpdate Update a Service resource. @@ -234,7 +228,6 @@ func (a *ServicesAPIService) ServicesApplicationsExecute(r ApiServicesApplicatio newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -313,6 +306,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -356,7 +357,6 @@ func (a *ServicesAPIService) ServicesCreateExecute(r ApiServicesCreateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -646,7 +646,6 @@ func (a *ServicesAPIService) ServicesListExecute(r ApiServicesListRequest) (*Inf newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -759,7 +758,6 @@ func (a *ServicesAPIService) ServicesReadExecute(r ApiServicesReadRequest) (*Inf newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -843,6 +841,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -886,6 +892,5 @@ 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 8a966e1..26276f3 100644 --- a/infra_provision/api_ui_join_token.go +++ b/infra_provision/api_ui_join_token.go @@ -22,7 +22,6 @@ 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. @@ -38,7 +37,6 @@ type UIJoinTokenAPI interface { // 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. @@ -50,7 +48,6 @@ 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. @@ -61,7 +58,6 @@ type UIJoinTokenAPI interface { // UIJoinTokenDeleteSetExecute executes the request UIJoinTokenDeleteSetExecute(r ApiUIJoinTokenDeleteSetRequest) (*http.Response, error) - /* UIJoinTokenList User can list the join tokens for an account. @@ -75,7 +71,6 @@ 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. @@ -88,7 +83,6 @@ 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. @@ -184,6 +178,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -227,7 +229,6 @@ func (a *UIJoinTokenAPIService) UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -614,7 +615,6 @@ func (a *UIJoinTokenAPIService) UIJoinTokenListExecute(r ApiUIJoinTokenListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -734,7 +734,6 @@ func (a *UIJoinTokenAPIService) UIJoinTokenReadExecute(r ApiUIJoinTokenReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -816,6 +815,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -859,6 +866,5 @@ 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 45b5cce..992f305 100644 --- a/infra_provision/api_uicsr.go +++ b/infra_provision/api_uicsr.go @@ -22,7 +22,6 @@ import ( ) type UICSRAPI interface { - /* UICSRApprove Marks the certificate signing request as approved. The host activation service will then continue with the signing process. @@ -35,7 +34,6 @@ 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. @@ -48,7 +46,6 @@ 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. @@ -60,7 +57,6 @@ 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. @@ -78,7 +74,6 @@ type UICSRAPI interface { // 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. @@ -218,7 +213,6 @@ func (a *UICSRAPIService) UICSRApproveExecute(r ApiUICSRApproveRequest) (map[str newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -339,7 +333,6 @@ func (a *UICSRAPIService) UICSRDenyExecute(r ApiUICSRDenyRequest) (map[string]in newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -515,7 +508,6 @@ func (a *UICSRAPIService) UICSRListExecute(r ApiUICSRListRequest) (*Hostactivati newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -641,7 +633,6 @@ func (a *UICSRAPIService) UICSRRevokeExecute(r ApiUICSRRevokeRequest) (map[strin newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -767,6 +758,5 @@ 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/api_address.go b/ipam/api_address.go index f6acc99..d192bd1 100644 --- a/ipam/api_address.go +++ b/ipam/api_address.go @@ -22,7 +22,6 @@ import ( ) type AddressAPI interface { - /* AddressCreate Create the IP address. @@ -37,7 +36,6 @@ type AddressAPI interface { // AddressCreateExecute executes the request // @return IpamsvcCreateAddressResponse AddressCreateExecute(r ApiAddressCreateRequest) (*IpamsvcCreateAddressResponse, *http.Response, error) - /* AddressDelete Move the IP address to the recycle bin. @@ -52,7 +50,6 @@ type AddressAPI interface { // AddressDeleteExecute executes the request AddressDeleteExecute(r ApiAddressDeleteRequest) (*http.Response, error) - /* AddressList Retrieve IP addresses. @@ -67,7 +64,6 @@ type AddressAPI interface { // AddressListExecute executes the request // @return IpamsvcListAddressResponse AddressListExecute(r ApiAddressListRequest) (*IpamsvcListAddressResponse, *http.Response, error) - /* AddressRead Retrieve the IP address. @@ -83,7 +79,6 @@ type AddressAPI interface { // AddressReadExecute executes the request // @return IpamsvcReadAddressResponse AddressReadExecute(r ApiAddressReadRequest) (*IpamsvcReadAddressResponse, *http.Response, error) - /* AddressUpdate Update the IP address. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *AddressAPIService) AddressCreateExecute(r ApiAddressCreateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -531,7 +533,6 @@ func (a *AddressAPIService) AddressListExecute(r ApiAddressListRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -654,7 +655,6 @@ func (a *AddressAPIService) AddressReadExecute(r ApiAddressReadRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -735,6 +735,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -778,6 +786,5 @@ 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 c2047b0..f2b9aa0 100644 --- a/ipam/api_address_block.go +++ b/ipam/api_address_block.go @@ -22,7 +22,6 @@ import ( ) type AddressBlockAPI interface { - /* AddressBlockCopy Copy the address block. @@ -38,7 +37,6 @@ type AddressBlockAPI interface { // AddressBlockCopyExecute executes the request // @return IpamsvcCopyAddressBlockResponse AddressBlockCopyExecute(r ApiAddressBlockCopyRequest) (*IpamsvcCopyAddressBlockResponse, *http.Response, error) - /* AddressBlockCreate Create the address block. @@ -53,7 +51,6 @@ type AddressBlockAPI interface { // AddressBlockCreateExecute executes the request // @return IpamsvcCreateAddressBlockResponse AddressBlockCreateExecute(r ApiAddressBlockCreateRequest) (*IpamsvcCreateAddressBlockResponse, *http.Response, error) - /* AddressBlockCreateNextAvailableAB Create the Next Available Address Block object. @@ -69,7 +66,6 @@ type AddressBlockAPI interface { // AddressBlockCreateNextAvailableABExecute executes the request // @return IpamsvcCreateNextAvailableABResponse AddressBlockCreateNextAvailableABExecute(r ApiAddressBlockCreateNextAvailableABRequest) (*IpamsvcCreateNextAvailableABResponse, *http.Response, error) - /* AddressBlockCreateNextAvailableIP Allocate the next available IP address. @@ -85,7 +81,6 @@ type AddressBlockAPI interface { // AddressBlockCreateNextAvailableIPExecute executes the request // @return IpamsvcCreateNextAvailableIPResponse AddressBlockCreateNextAvailableIPExecute(r ApiAddressBlockCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) - /* AddressBlockCreateNextAvailableSubnet Create the Next Available Subnet object. @@ -101,7 +96,6 @@ type AddressBlockAPI interface { // AddressBlockCreateNextAvailableSubnetExecute executes the request // @return IpamsvcCreateNextAvailableSubnetResponse AddressBlockCreateNextAvailableSubnetExecute(r ApiAddressBlockCreateNextAvailableSubnetRequest) (*IpamsvcCreateNextAvailableSubnetResponse, *http.Response, error) - /* AddressBlockDelete Move the address block to the recycle bin. @@ -116,7 +110,6 @@ type AddressBlockAPI interface { // AddressBlockDeleteExecute executes the request AddressBlockDeleteExecute(r ApiAddressBlockDeleteRequest) (*http.Response, error) - /* AddressBlockList Retrieve the address blocks. @@ -131,7 +124,6 @@ type AddressBlockAPI interface { // AddressBlockListExecute executes the request // @return IpamsvcListAddressBlockResponse AddressBlockListExecute(r ApiAddressBlockListRequest) (*IpamsvcListAddressBlockResponse, *http.Response, error) - /* AddressBlockListNextAvailableAB List Next Available Address Block objects. @@ -147,7 +139,6 @@ type AddressBlockAPI interface { // AddressBlockListNextAvailableABExecute executes the request // @return IpamsvcNextAvailableABResponse AddressBlockListNextAvailableABExecute(r ApiAddressBlockListNextAvailableABRequest) (*IpamsvcNextAvailableABResponse, *http.Response, error) - /* AddressBlockListNextAvailableIP Retrieve the next available IP address. @@ -163,7 +154,6 @@ type AddressBlockAPI interface { // AddressBlockListNextAvailableIPExecute executes the request // @return IpamsvcNextAvailableIPResponse AddressBlockListNextAvailableIPExecute(r ApiAddressBlockListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) - /* AddressBlockListNextAvailableSubnet List Next Available Subnet objects. @@ -179,7 +169,6 @@ type AddressBlockAPI interface { // AddressBlockListNextAvailableSubnetExecute executes the request // @return IpamsvcNextAvailableSubnetResponse AddressBlockListNextAvailableSubnetExecute(r ApiAddressBlockListNextAvailableSubnetRequest) (*IpamsvcNextAvailableSubnetResponse, *http.Response, error) - /* AddressBlockRead Retrieve the address block. @@ -195,7 +184,6 @@ type AddressBlockAPI interface { // AddressBlockReadExecute executes the request // @return IpamsvcReadAddressBlockResponse AddressBlockReadExecute(r ApiAddressBlockReadRequest) (*IpamsvcReadAddressBlockResponse, *http.Response, error) - /* AddressBlockUpdate Update the address block. @@ -336,7 +324,6 @@ func (a *AddressBlockAPIService) AddressBlockCopyExecute(r ApiAddressBlockCopyRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -423,6 +410,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -466,7 +461,6 @@ func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCrea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -623,7 +617,6 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableABExecute(r ApiA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -762,7 +755,6 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableIPExecute(r ApiA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -929,7 +921,6 @@ func (a *AddressBlockAPIService) AddressBlockCreateNextAvailableSubnetExecute(r newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1232,7 +1223,6 @@ func (a *AddressBlockAPIService) AddressBlockListExecute(r ApiAddressBlockListRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1385,7 +1375,6 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableABExecute(r ApiAdd newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1518,7 +1507,6 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableIPExecute(r ApiAdd newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1681,7 +1669,6 @@ func (a *AddressBlockAPIService) AddressBlockListNextAvailableSubnetExecute(r Ap newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1814,7 +1801,6 @@ func (a *AddressBlockAPIService) AddressBlockReadExecute(r ApiAddressBlockReadRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1905,6 +1891,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1948,6 +1942,5 @@ 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 d33789e..7a7ba18 100644 --- a/ipam/api_asm.go +++ b/ipam/api_asm.go @@ -22,7 +22,6 @@ import ( ) type AsmAPI interface { - /* AsmCreate Update subnet and ranges for Automated Scope Management. @@ -38,7 +37,6 @@ type AsmAPI interface { // AsmCreateExecute executes the request // @return IpamsvcCreateASMResponse AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateASMResponse, *http.Response, error) - /* AsmList Retrieve suggested updates for Automated Scope Management. @@ -53,7 +51,6 @@ type AsmAPI interface { // AsmListExecute executes the request // @return IpamsvcListASMResponse AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResponse, *http.Response, error) - /* AsmRead Retrieve the suggested update for Automated Scope Management. @@ -191,7 +188,6 @@ func (a *AsmAPIService) AsmCreateExecute(r ApiAsmCreateRequest) (*IpamsvcCreateA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -319,7 +315,6 @@ func (a *AsmAPIService) AsmListExecute(r ApiAsmListRequest) (*IpamsvcListASMResp newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -442,6 +437,5 @@ 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 5a4a3c9..c1f4c06 100644 --- a/ipam/api_dhcp_host.go +++ b/ipam/api_dhcp_host.go @@ -22,7 +22,6 @@ import ( ) type DhcpHostAPI interface { - /* DhcpHostList Retrieve DHCP hosts. @@ -37,7 +36,6 @@ type DhcpHostAPI interface { // DhcpHostListExecute executes the request // @return IpamsvcListHostResponse DhcpHostListExecute(r ApiDhcpHostListRequest) (*IpamsvcListHostResponse, *http.Response, error) - /* DhcpHostListAssociations Retrieve DHCP host associations. @@ -52,7 +50,6 @@ type DhcpHostAPI interface { // DhcpHostListAssociationsExecute executes the request // @return IpamsvcHostAssociationsResponse DhcpHostListAssociationsExecute(r ApiDhcpHostListAssociationsRequest) (*IpamsvcHostAssociationsResponse, *http.Response, error) - /* DhcpHostRead Retrieve the DHCP host. @@ -68,7 +65,6 @@ type DhcpHostAPI interface { // DhcpHostReadExecute executes the request // @return IpamsvcReadHostResponse DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*IpamsvcReadHostResponse, *http.Response, error) - /* DhcpHostUpdate Update the DHCP hosts. @@ -274,7 +270,6 @@ func (a *DhcpHostAPIService) DhcpHostListExecute(r ApiDhcpHostListRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -386,7 +381,6 @@ func (a *DhcpHostAPIService) DhcpHostListAssociationsExecute(r ApiDhcpHostListAs newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -509,7 +503,6 @@ func (a *DhcpHostAPIService) DhcpHostReadExecute(r ApiDhcpHostReadRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -590,6 +583,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -633,6 +634,5 @@ 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 009657f..ce964cf 100644 --- a/ipam/api_dns_usage.go +++ b/ipam/api_dns_usage.go @@ -22,7 +22,6 @@ import ( ) type DnsUsageAPI interface { - /* DnsUsageList Retrieve DNS usage for multiple objects. @@ -36,7 +35,6 @@ type DnsUsageAPI interface { // DnsUsageListExecute executes the request // @return IpamsvcListDNSUsageResponse DnsUsageListExecute(r ApiDnsUsageListRequest) (*IpamsvcListDNSUsageResponse, *http.Response, error) - /* DnsUsageRead Retrieve the DNS usage. @@ -220,7 +218,6 @@ func (a *DnsUsageAPIService) DnsUsageListExecute(r ApiDnsUsageListRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -342,6 +339,5 @@ 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 173d0a9..572f312 100644 --- a/ipam/api_filter.go +++ b/ipam/api_filter.go @@ -21,7 +21,6 @@ import ( ) type FilterAPI interface { - /* FilterList Retrieve DHCP filters. @@ -224,6 +223,5 @@ 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 748cad6..ae6322e 100644 --- a/ipam/api_fixed_address.go +++ b/ipam/api_fixed_address.go @@ -22,7 +22,6 @@ import ( ) type FixedAddressAPI interface { - /* FixedAddressCreate Create the fixed address. @@ -37,7 +36,6 @@ type FixedAddressAPI interface { // FixedAddressCreateExecute executes the request // @return IpamsvcCreateFixedAddressResponse FixedAddressCreateExecute(r ApiFixedAddressCreateRequest) (*IpamsvcCreateFixedAddressResponse, *http.Response, error) - /* FixedAddressDelete Move the fixed address to the recycle bin. @@ -52,7 +50,6 @@ type FixedAddressAPI interface { // FixedAddressDeleteExecute executes the request FixedAddressDeleteExecute(r ApiFixedAddressDeleteRequest) (*http.Response, error) - /* FixedAddressList Retrieve fixed addresses. @@ -67,7 +64,6 @@ type FixedAddressAPI interface { // FixedAddressListExecute executes the request // @return IpamsvcListFixedAddressResponse FixedAddressListExecute(r ApiFixedAddressListRequest) (*IpamsvcListFixedAddressResponse, *http.Response, error) - /* FixedAddressRead Retrieve the fixed address. @@ -83,7 +79,6 @@ type FixedAddressAPI interface { // FixedAddressReadExecute executes the request // @return IpamsvcReadFixedAddressResponse FixedAddressReadExecute(r ApiFixedAddressReadRequest) (*IpamsvcReadFixedAddressResponse, *http.Response, error) - /* FixedAddressUpdate Update the fixed address. @@ -187,6 +182,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -230,7 +233,6 @@ func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCrea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -533,7 +535,6 @@ func (a *FixedAddressAPIService) FixedAddressListExecute(r ApiFixedAddressListRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -666,7 +667,6 @@ func (a *FixedAddressAPIService) FixedAddressReadExecute(r ApiFixedAddressReadRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -757,6 +757,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -800,6 +808,5 @@ 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 4bf33b3..1e9ebc8 100644 --- a/ipam/api_global.go +++ b/ipam/api_global.go @@ -22,7 +22,6 @@ import ( ) type GlobalAPI interface { - /* GlobalRead Retrieve the global configuration. @@ -37,7 +36,6 @@ type GlobalAPI interface { // GlobalReadExecute executes the request // @return IpamsvcReadGlobalResponse GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcReadGlobalResponse, *http.Response, error) - /* GlobalRead2 Retrieve the global configuration. @@ -53,7 +51,6 @@ type GlobalAPI interface { // GlobalRead2Execute executes the request // @return IpamsvcReadGlobalResponse GlobalRead2Execute(r ApiGlobalRead2Request) (*IpamsvcReadGlobalResponse, *http.Response, error) - /* GlobalUpdate Update the global configuration. @@ -68,7 +65,6 @@ type GlobalAPI interface { // GlobalUpdateExecute executes the request // @return IpamsvcUpdateGlobalResponse GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*IpamsvcUpdateGlobalResponse, *http.Response, error) - /* GlobalUpdate2 Update the global configuration. @@ -204,7 +200,6 @@ func (a *GlobalAPIService) GlobalReadExecute(r ApiGlobalReadRequest) (*IpamsvcRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -327,7 +322,6 @@ func (a *GlobalAPIService) GlobalRead2Execute(r ApiGlobalRead2Request) (*Ipamsvc newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -447,7 +441,6 @@ func (a *GlobalAPIService) GlobalUpdateExecute(r ApiGlobalUpdateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -571,6 +564,5 @@ 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 2601000..1bf5ba8 100644 --- a/ipam/api_ha_group.go +++ b/ipam/api_ha_group.go @@ -22,7 +22,6 @@ import ( ) type HaGroupAPI interface { - /* HaGroupCreate Create the HA group. @@ -37,7 +36,6 @@ type HaGroupAPI interface { // HaGroupCreateExecute executes the request // @return IpamsvcCreateHAGroupResponse HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*IpamsvcCreateHAGroupResponse, *http.Response, error) - /* HaGroupDelete Delete the HA group. @@ -52,7 +50,6 @@ type HaGroupAPI interface { // HaGroupDeleteExecute executes the request HaGroupDeleteExecute(r ApiHaGroupDeleteRequest) (*http.Response, error) - /* HaGroupList Retrieve HA groups. @@ -67,7 +64,6 @@ type HaGroupAPI interface { // HaGroupListExecute executes the request // @return IpamsvcListHAGroupResponse HaGroupListExecute(r ApiHaGroupListRequest) (*IpamsvcListHAGroupResponse, *http.Response, error) - /* HaGroupRead Retrieve the HA group. @@ -83,7 +79,6 @@ type HaGroupAPI interface { // HaGroupReadExecute executes the request // @return IpamsvcReadHAGroupResponse HaGroupReadExecute(r ApiHaGroupReadRequest) (*IpamsvcReadHAGroupResponse, *http.Response, error) - /* HaGroupUpdate Update the HA group. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *HaGroupAPIService) HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -523,7 +525,6 @@ func (a *HaGroupAPIService) HaGroupListExecute(r ApiHaGroupListRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -656,7 +657,6 @@ func (a *HaGroupAPIService) HaGroupReadExecute(r ApiHaGroupReadRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -780,6 +780,5 @@ 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 77f0ac5..fe2e55b 100644 --- a/ipam/api_hardware_filter.go +++ b/ipam/api_hardware_filter.go @@ -22,7 +22,6 @@ import ( ) type HardwareFilterAPI interface { - /* HardwareFilterCreate Create the hardware filter. @@ -37,7 +36,6 @@ type HardwareFilterAPI interface { // HardwareFilterCreateExecute executes the request // @return IpamsvcCreateHardwareFilterResponse HardwareFilterCreateExecute(r ApiHardwareFilterCreateRequest) (*IpamsvcCreateHardwareFilterResponse, *http.Response, error) - /* HardwareFilterDelete Move the hardware filter to the recycle bin. @@ -52,7 +50,6 @@ type HardwareFilterAPI interface { // HardwareFilterDeleteExecute executes the request HardwareFilterDeleteExecute(r ApiHardwareFilterDeleteRequest) (*http.Response, error) - /* HardwareFilterList Retrieve hardware filters. @@ -67,7 +64,6 @@ type HardwareFilterAPI interface { // HardwareFilterListExecute executes the request // @return IpamsvcListHardwareFilterResponse HardwareFilterListExecute(r ApiHardwareFilterListRequest) (*IpamsvcListHardwareFilterResponse, *http.Response, error) - /* HardwareFilterRead Retrieve the hardware filter. @@ -83,7 +79,6 @@ type HardwareFilterAPI interface { // HardwareFilterReadExecute executes the request // @return IpamsvcReadHardwareFilterResponse HardwareFilterReadExecute(r ApiHardwareFilterReadRequest) (*IpamsvcReadHardwareFilterResponse, *http.Response, error) - /* HardwareFilterUpdate Update the hardware filter. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *HardwareFilterAPIService) HardwareFilterCreateExecute(r ApiHardwareFilt newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *HardwareFilterAPIService) HardwareFilterListExecute(r ApiHardwareFilter newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *HardwareFilterAPIService) HardwareFilterReadExecute(r ApiHardwareFilter newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 14a0cea..6a96973 100644 --- a/ipam/api_ip_space.go +++ b/ipam/api_ip_space.go @@ -22,7 +22,6 @@ import ( ) type IpSpaceAPI interface { - /* IpSpaceBulkCopy Copy the specified address block and subnets in the IP space. @@ -42,7 +41,6 @@ type IpSpaceAPI interface { // IpSpaceBulkCopyExecute executes the request // @return IpamsvcBulkCopyIPSpaceResponse IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) (*IpamsvcBulkCopyIPSpaceResponse, *http.Response, error) - /* IpSpaceCopy Copy the IP space. @@ -58,7 +56,6 @@ type IpSpaceAPI interface { // IpSpaceCopyExecute executes the request // @return IpamsvcCopyIPSpaceResponse IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*IpamsvcCopyIPSpaceResponse, *http.Response, error) - /* IpSpaceCreate Create the IP space. @@ -73,7 +70,6 @@ type IpSpaceAPI interface { // IpSpaceCreateExecute executes the request // @return IpamsvcCreateIPSpaceResponse IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*IpamsvcCreateIPSpaceResponse, *http.Response, error) - /* IpSpaceDelete Move the IP space to the recycle bin. @@ -88,7 +84,6 @@ type IpSpaceAPI interface { // IpSpaceDeleteExecute executes the request IpSpaceDeleteExecute(r ApiIpSpaceDeleteRequest) (*http.Response, error) - /* IpSpaceList Retrieve IP spaces. @@ -103,7 +98,6 @@ type IpSpaceAPI interface { // IpSpaceListExecute executes the request // @return IpamsvcListIPSpaceResponse IpSpaceListExecute(r ApiIpSpaceListRequest) (*IpamsvcListIPSpaceResponse, *http.Response, error) - /* IpSpaceRead Retrieve the IP space. @@ -119,7 +113,6 @@ type IpSpaceAPI interface { // IpSpaceReadExecute executes the request // @return IpamsvcReadIPSpaceResponse IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*IpamsvcReadIPSpaceResponse, *http.Response, error) - /* IpSpaceUpdate Update the IP space. @@ -261,7 +254,6 @@ func (a *IpSpaceAPIService) IpSpaceBulkCopyExecute(r ApiIpSpaceBulkCopyRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -385,7 +377,6 @@ func (a *IpSpaceAPIService) IpSpaceCopyExecute(r ApiIpSpaceCopyRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -472,6 +463,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -515,7 +514,6 @@ func (a *IpSpaceAPIService) IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*Ip newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -818,7 +816,6 @@ func (a *IpSpaceAPIService) IpSpaceListExecute(r ApiIpSpaceListRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -951,7 +948,6 @@ func (a *IpSpaceAPIService) IpSpaceReadExecute(r ApiIpSpaceReadRequest) (*Ipamsv newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1042,6 +1038,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1085,6 +1089,5 @@ 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 aec93a6..96be92d 100644 --- a/ipam/api_ipam_host.go +++ b/ipam/api_ipam_host.go @@ -22,7 +22,6 @@ import ( ) type IpamHostAPI interface { - /* IpamHostCreate Create the IPAM host. @@ -37,7 +36,6 @@ type IpamHostAPI interface { // IpamHostCreateExecute executes the request // @return IpamsvcCreateIpamHostResponse IpamHostCreateExecute(r ApiIpamHostCreateRequest) (*IpamsvcCreateIpamHostResponse, *http.Response, error) - /* IpamHostDelete Move the IPAM host to the recycle bin. @@ -52,7 +50,6 @@ type IpamHostAPI interface { // IpamHostDeleteExecute executes the request IpamHostDeleteExecute(r ApiIpamHostDeleteRequest) (*http.Response, error) - /* IpamHostList Retrieve the IPAM hosts. @@ -67,7 +64,6 @@ type IpamHostAPI interface { // IpamHostListExecute executes the request // @return IpamsvcListIpamHostResponse IpamHostListExecute(r ApiIpamHostListRequest) (*IpamsvcListIpamHostResponse, *http.Response, error) - /* IpamHostRead Retrieve the IPAM host. @@ -83,7 +79,6 @@ type IpamHostAPI interface { // IpamHostReadExecute executes the request // @return IpamsvcReadIpamHostResponse IpamHostReadExecute(r ApiIpamHostReadRequest) (*IpamsvcReadIpamHostResponse, *http.Response, error) - /* IpamHostUpdate Update the IPAM host. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *IpamHostAPIService) IpamHostCreateExecute(r ApiIpamHostCreateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *IpamHostAPIService) IpamHostListExecute(r ApiIpamHostListRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -646,7 +647,6 @@ func (a *IpamHostAPIService) IpamHostReadExecute(r ApiIpamHostReadRequest) (*Ipa newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -727,6 +727,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -770,6 +778,5 @@ 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 429e629..219d38a 100644 --- a/ipam/api_leases_command.go +++ b/ipam/api_leases_command.go @@ -21,7 +21,6 @@ import ( ) type LeasesCommandAPI interface { - /* LeasesCommandCreate Perform actions like clearing DHCP lease(s). @@ -157,6 +156,5 @@ 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 3d99ae5..8fec6ac 100644 --- a/ipam/api_option_code.go +++ b/ipam/api_option_code.go @@ -22,7 +22,6 @@ import ( ) type OptionCodeAPI interface { - /* OptionCodeCreate Create the DHCP option code. @@ -37,7 +36,6 @@ type OptionCodeAPI interface { // OptionCodeCreateExecute executes the request // @return IpamsvcCreateOptionCodeResponse OptionCodeCreateExecute(r ApiOptionCodeCreateRequest) (*IpamsvcCreateOptionCodeResponse, *http.Response, error) - /* OptionCodeDelete Delete the DHCP option code. @@ -52,7 +50,6 @@ type OptionCodeAPI interface { // OptionCodeDeleteExecute executes the request OptionCodeDeleteExecute(r ApiOptionCodeDeleteRequest) (*http.Response, error) - /* OptionCodeList Retrieve DHCP option codes. @@ -67,7 +64,6 @@ type OptionCodeAPI interface { // OptionCodeListExecute executes the request // @return IpamsvcListOptionCodeResponse OptionCodeListExecute(r ApiOptionCodeListRequest) (*IpamsvcListOptionCodeResponse, *http.Response, error) - /* OptionCodeRead Retrieve the DHCP option code. @@ -83,7 +79,6 @@ type OptionCodeAPI interface { // OptionCodeReadExecute executes the request // @return IpamsvcReadOptionCodeResponse OptionCodeReadExecute(r ApiOptionCodeReadRequest) (*IpamsvcReadOptionCodeResponse, *http.Response, error) - /* OptionCodeUpdate Update the DHCP option code. @@ -220,7 +215,6 @@ func (a *OptionCodeAPIService) OptionCodeCreateExecute(r ApiOptionCodeCreateRequ newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -493,7 +487,6 @@ func (a *OptionCodeAPIService) OptionCodeListExecute(r ApiOptionCodeListRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -616,7 +609,6 @@ func (a *OptionCodeAPIService) OptionCodeReadExecute(r ApiOptionCodeReadRequest) newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -740,6 +732,5 @@ 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 bd0c0cc..b4c2798 100644 --- a/ipam/api_option_filter.go +++ b/ipam/api_option_filter.go @@ -22,7 +22,6 @@ import ( ) type OptionFilterAPI interface { - /* OptionFilterCreate Create the DHCP option filter. @@ -37,7 +36,6 @@ type OptionFilterAPI interface { // OptionFilterCreateExecute executes the request // @return IpamsvcCreateOptionFilterResponse OptionFilterCreateExecute(r ApiOptionFilterCreateRequest) (*IpamsvcCreateOptionFilterResponse, *http.Response, error) - /* OptionFilterDelete Move the DHCP option filter to the recycle bin. @@ -52,7 +50,6 @@ type OptionFilterAPI interface { // OptionFilterDeleteExecute executes the request OptionFilterDeleteExecute(r ApiOptionFilterDeleteRequest) (*http.Response, error) - /* OptionFilterList Retrieve DHCP option filters. @@ -67,7 +64,6 @@ type OptionFilterAPI interface { // OptionFilterListExecute executes the request // @return IpamsvcListOptionFilterResponse OptionFilterListExecute(r ApiOptionFilterListRequest) (*IpamsvcListOptionFilterResponse, *http.Response, error) - /* OptionFilterRead Retrieve the DHCP option filter. @@ -83,7 +79,6 @@ type OptionFilterAPI interface { // OptionFilterReadExecute executes the request // @return IpamsvcReadOptionFilterResponse OptionFilterReadExecute(r ApiOptionFilterReadRequest) (*IpamsvcReadOptionFilterResponse, *http.Response, error) - /* OptionFilterUpdate Update the DHCP option filter. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *OptionFilterAPIService) OptionFilterCreateExecute(r ApiOptionFilterCrea newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *OptionFilterAPIService) OptionFilterListExecute(r ApiOptionFilterListRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *OptionFilterAPIService) OptionFilterReadExecute(r ApiOptionFilterReadRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 e489e56..3ba243a 100644 --- a/ipam/api_option_group.go +++ b/ipam/api_option_group.go @@ -22,7 +22,6 @@ import ( ) type OptionGroupAPI interface { - /* OptionGroupCreate Create the DHCP option group. @@ -37,7 +36,6 @@ type OptionGroupAPI interface { // OptionGroupCreateExecute executes the request // @return IpamsvcCreateOptionGroupResponse OptionGroupCreateExecute(r ApiOptionGroupCreateRequest) (*IpamsvcCreateOptionGroupResponse, *http.Response, error) - /* OptionGroupDelete Move the DHCP option group to the recycle bin. @@ -52,7 +50,6 @@ type OptionGroupAPI interface { // OptionGroupDeleteExecute executes the request OptionGroupDeleteExecute(r ApiOptionGroupDeleteRequest) (*http.Response, error) - /* OptionGroupList Retrieve DHCP option groups. @@ -67,7 +64,6 @@ type OptionGroupAPI interface { // OptionGroupListExecute executes the request // @return IpamsvcListOptionGroupResponse OptionGroupListExecute(r ApiOptionGroupListRequest) (*IpamsvcListOptionGroupResponse, *http.Response, error) - /* OptionGroupRead Retrieve the DHCP option group. @@ -83,7 +79,6 @@ type OptionGroupAPI interface { // OptionGroupReadExecute executes the request // @return IpamsvcReadOptionGroupResponse OptionGroupReadExecute(r ApiOptionGroupReadRequest) (*IpamsvcReadOptionGroupResponse, *http.Response, error) - /* OptionGroupUpdate Update the DHCP option group. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *OptionGroupAPIService) OptionGroupCreateExecute(r ApiOptionGroupCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *OptionGroupAPIService) OptionGroupListExecute(r ApiOptionGroupListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *OptionGroupAPIService) OptionGroupReadExecute(r ApiOptionGroupReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 26f654d..ed2a2cf 100644 --- a/ipam/api_option_space.go +++ b/ipam/api_option_space.go @@ -22,7 +22,6 @@ import ( ) type OptionSpaceAPI interface { - /* OptionSpaceCreate Create the DHCP option space. @@ -37,7 +36,6 @@ type OptionSpaceAPI interface { // OptionSpaceCreateExecute executes the request // @return IpamsvcCreateOptionSpaceResponse OptionSpaceCreateExecute(r ApiOptionSpaceCreateRequest) (*IpamsvcCreateOptionSpaceResponse, *http.Response, error) - /* OptionSpaceDelete Move the DHCP option space to the recycle bin. @@ -52,7 +50,6 @@ type OptionSpaceAPI interface { // OptionSpaceDeleteExecute executes the request OptionSpaceDeleteExecute(r ApiOptionSpaceDeleteRequest) (*http.Response, error) - /* OptionSpaceList Retrieve DHCP option spaces. @@ -67,7 +64,6 @@ type OptionSpaceAPI interface { // OptionSpaceListExecute executes the request // @return IpamsvcListOptionSpaceResponse OptionSpaceListExecute(r ApiOptionSpaceListRequest) (*IpamsvcListOptionSpaceResponse, *http.Response, error) - /* OptionSpaceRead Retrieve the DHCP option space. @@ -83,7 +79,6 @@ type OptionSpaceAPI interface { // OptionSpaceReadExecute executes the request // @return IpamsvcReadOptionSpaceResponse OptionSpaceReadExecute(r ApiOptionSpaceReadRequest) (*IpamsvcReadOptionSpaceResponse, *http.Response, error) - /* OptionSpaceUpdate Update the DHCP option space. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *OptionSpaceAPIService) OptionSpaceCreateExecute(r ApiOptionSpaceCreateR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *OptionSpaceAPIService) OptionSpaceListExecute(r ApiOptionSpaceListReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *OptionSpaceAPIService) OptionSpaceReadExecute(r ApiOptionSpaceReadReque newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 d0a5a77..2658b96 100644 --- a/ipam/api_range.go +++ b/ipam/api_range.go @@ -22,7 +22,6 @@ import ( ) type RangeAPI interface { - /* RangeCreate Create the range. @@ -37,7 +36,6 @@ type RangeAPI interface { // RangeCreateExecute executes the request // @return IpamsvcCreateRangeResponse RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcCreateRangeResponse, *http.Response, error) - /* RangeCreateNextAvailableIP Allocate the next available IP address. @@ -53,7 +51,6 @@ type RangeAPI interface { // RangeCreateNextAvailableIPExecute executes the request // @return IpamsvcCreateNextAvailableIPResponse RangeCreateNextAvailableIPExecute(r ApiRangeCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) - /* RangeDelete Move the range to the recycle bin. @@ -68,7 +65,6 @@ type RangeAPI interface { // RangeDeleteExecute executes the request RangeDeleteExecute(r ApiRangeDeleteRequest) (*http.Response, error) - /* RangeList Retrieve ranges. @@ -83,7 +79,6 @@ type RangeAPI interface { // RangeListExecute executes the request // @return IpamsvcListRangeResponse RangeListExecute(r ApiRangeListRequest) (*IpamsvcListRangeResponse, *http.Response, error) - /* RangeListNextAvailableIP Retrieve the next available IP address. @@ -99,7 +94,6 @@ type RangeAPI interface { // RangeListNextAvailableIPExecute executes the request // @return IpamsvcNextAvailableIPResponse RangeListNextAvailableIPExecute(r ApiRangeListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) - /* RangeRead Retrieve the range. @@ -115,7 +109,6 @@ type RangeAPI interface { // RangeReadExecute executes the request // @return IpamsvcReadRangeResponse RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadRangeResponse, *http.Response, error) - /* RangeUpdate Update the range. @@ -219,6 +212,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -262,7 +263,6 @@ func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcC newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -401,7 +401,6 @@ func (a *RangeAPIService) RangeCreateNextAvailableIPExecute(r ApiRangeCreateNext newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -704,7 +703,6 @@ func (a *RangeAPIService) RangeListExecute(r ApiRangeListRequest) (*IpamsvcListR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -837,7 +835,6 @@ func (a *RangeAPIService) RangeListNextAvailableIPExecute(r ApiRangeListNextAvai newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -970,7 +967,6 @@ func (a *RangeAPIService) RangeReadExecute(r ApiRangeReadRequest) (*IpamsvcReadR newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1061,6 +1057,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1104,6 +1108,5 @@ 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 418fb99..9b6c449 100644 --- a/ipam/api_server.go +++ b/ipam/api_server.go @@ -22,7 +22,6 @@ import ( ) type ServerAPI interface { - /* ServerCreate Create the DHCP configuration profile. @@ -37,7 +36,6 @@ type ServerAPI interface { // ServerCreateExecute executes the request // @return IpamsvcCreateServerResponse ServerCreateExecute(r ApiServerCreateRequest) (*IpamsvcCreateServerResponse, *http.Response, error) - /* ServerDelete Move the DHCP configuration profile to the recycle bin. @@ -52,7 +50,6 @@ type ServerAPI interface { // ServerDeleteExecute executes the request ServerDeleteExecute(r ApiServerDeleteRequest) (*http.Response, error) - /* ServerList Retrieve DHCP configuration profiles. @@ -67,7 +64,6 @@ type ServerAPI interface { // ServerListExecute executes the request // @return IpamsvcListServerResponse ServerListExecute(r ApiServerListRequest) (*IpamsvcListServerResponse, *http.Response, error) - /* ServerRead Retrieve the DHCP configuration profile. @@ -83,7 +79,6 @@ type ServerAPI interface { // ServerReadExecute executes the request // @return IpamsvcReadServerResponse ServerReadExecute(r ApiServerReadRequest) (*IpamsvcReadServerResponse, *http.Response, error) - /* ServerUpdate Update the DHCP configuration profile. @@ -187,6 +182,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -230,7 +233,6 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -533,7 +535,6 @@ func (a *ServerAPIService) ServerListExecute(r ApiServerListRequest) (*IpamsvcLi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -666,7 +667,6 @@ func (a *ServerAPIService) ServerReadExecute(r ApiServerReadRequest) (*IpamsvcRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -757,6 +757,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -800,6 +808,5 @@ 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 39ee9fc..1b70d83 100644 --- a/ipam/api_subnet.go +++ b/ipam/api_subnet.go @@ -22,7 +22,6 @@ import ( ) type SubnetAPI interface { - /* SubnetCopy Copy the subnet. @@ -38,7 +37,6 @@ type SubnetAPI interface { // SubnetCopyExecute executes the request // @return IpamsvcCopySubnetResponse SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCopySubnetResponse, *http.Response, error) - /* SubnetCreate Create the subnet. @@ -53,7 +51,6 @@ type SubnetAPI interface { // SubnetCreateExecute executes the request // @return IpamsvcCreateSubnetResponse SubnetCreateExecute(r ApiSubnetCreateRequest) (*IpamsvcCreateSubnetResponse, *http.Response, error) - /* SubnetCreateNextAvailableIP Allocate the next available IP address. @@ -69,7 +66,6 @@ type SubnetAPI interface { // SubnetCreateNextAvailableIPExecute executes the request // @return IpamsvcCreateNextAvailableIPResponse SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateNextAvailableIPRequest) (*IpamsvcCreateNextAvailableIPResponse, *http.Response, error) - /* SubnetDelete Move the subnet to the recycle bin. @@ -84,7 +80,6 @@ type SubnetAPI interface { // SubnetDeleteExecute executes the request SubnetDeleteExecute(r ApiSubnetDeleteRequest) (*http.Response, error) - /* SubnetList Retrieve subnets. @@ -99,7 +94,6 @@ type SubnetAPI interface { // SubnetListExecute executes the request // @return IpamsvcListSubnetResponse SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcListSubnetResponse, *http.Response, error) - /* SubnetListNextAvailableIP Retrieve the next available IP address. @@ -115,7 +109,6 @@ type SubnetAPI interface { // SubnetListNextAvailableIPExecute executes the request // @return IpamsvcNextAvailableIPResponse SubnetListNextAvailableIPExecute(r ApiSubnetListNextAvailableIPRequest) (*IpamsvcNextAvailableIPResponse, *http.Response, error) - /* SubnetRead Retrieve the subnet. @@ -131,7 +124,6 @@ type SubnetAPI interface { // SubnetReadExecute executes the request // @return IpamsvcReadSubnetResponse SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcReadSubnetResponse, *http.Response, error) - /* SubnetUpdate Update the subnet. @@ -272,7 +264,6 @@ func (a *SubnetAPIService) SubnetCopyExecute(r ApiSubnetCopyRequest) (*IpamsvcCo newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -359,6 +350,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -402,7 +401,6 @@ func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*Ipams newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -541,7 +539,6 @@ func (a *SubnetAPIService) SubnetCreateNextAvailableIPExecute(r ApiSubnetCreateN newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -844,7 +841,6 @@ func (a *SubnetAPIService) SubnetListExecute(r ApiSubnetListRequest) (*IpamsvcLi newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -977,7 +973,6 @@ func (a *SubnetAPIService) SubnetListNextAvailableIPExecute(r ApiSubnetListNextA newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1110,7 +1105,6 @@ func (a *SubnetAPIService) SubnetReadExecute(r ApiSubnetReadRequest) (*IpamsvcRe newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -1201,6 +1195,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -1244,6 +1246,5 @@ 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/api_generate_tsig.go b/keys/api_generate_tsig.go index d4e3ab8..68f2022 100644 --- a/keys/api_generate_tsig.go +++ b/keys/api_generate_tsig.go @@ -21,7 +21,6 @@ import ( ) type GenerateTsigAPI interface { - /* GenerateTsigGenerateTSIG Generate TSIG key with a random secret. @@ -154,6 +153,5 @@ 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 30c9520..f103519 100644 --- a/keys/api_kerberos.go +++ b/keys/api_kerberos.go @@ -22,7 +22,6 @@ import ( ) type KerberosAPI interface { - /* KerberosDelete Delete the Kerberos key. @@ -37,7 +36,6 @@ type KerberosAPI interface { // KerberosDeleteExecute executes the request KerberosDeleteExecute(r ApiKerberosDeleteRequest) (*http.Response, error) - /* KerberosList Retrieve Kerberos keys. @@ -52,7 +50,6 @@ type KerberosAPI interface { // KerberosListExecute executes the request // @return KeysListKerberosKeyResponse KerberosListExecute(r ApiKerberosListRequest) (*KeysListKerberosKeyResponse, *http.Response, error) - /* KerberosRead Retrieve the Kerberos key. @@ -68,7 +65,6 @@ type KerberosAPI interface { // KerberosReadExecute executes the request // @return KeysReadKerberosKeyResponse KerberosReadExecute(r ApiKerberosReadRequest) (*KeysReadKerberosKeyResponse, *http.Response, error) - /* KerberosUpdate Update the Kerberos key. @@ -84,7 +80,6 @@ type KerberosAPI interface { // KerberosUpdateExecute executes the request // @return KeysUpdateKerberosKeyResponse KerberosUpdateExecute(r ApiKerberosUpdateRequest) (*KeysUpdateKerberosKeyResponse, *http.Response, error) - /* KeysKerberosPost Method for KeysKerberosPost @@ -390,7 +385,6 @@ func (a *KerberosAPIService) KerberosListExecute(r ApiKerberosListRequest) (*Key newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +507,6 @@ func (a *KerberosAPIService) KerberosReadExecute(r ApiKerberosReadRequest) (*Key newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -637,7 +630,6 @@ func (a *KerberosAPIService) KerberosUpdateExecute(r ApiKerberosUpdateRequest) ( newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -754,6 +746,5 @@ 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 22d08bc..fb00c0c 100644 --- a/keys/api_tsig.go +++ b/keys/api_tsig.go @@ -22,7 +22,6 @@ import ( ) type TsigAPI interface { - /* TsigCreate Create the TSIG key. @@ -37,7 +36,6 @@ type TsigAPI interface { // TsigCreateExecute executes the request // @return KeysCreateTSIGKeyResponse TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateTSIGKeyResponse, *http.Response, error) - /* TsigDelete Delete the TSIG key. @@ -52,7 +50,6 @@ type TsigAPI interface { // TsigDeleteExecute executes the request TsigDeleteExecute(r ApiTsigDeleteRequest) (*http.Response, error) - /* TsigList Retrieve TSIG keys. @@ -67,7 +64,6 @@ type TsigAPI interface { // TsigListExecute executes the request // @return KeysListTSIGKeyResponse TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKeyResponse, *http.Response, error) - /* TsigRead Retrieve the TSIG key. @@ -83,7 +79,6 @@ type TsigAPI interface { // TsigReadExecute executes the request // @return KeysReadTSIGKeyResponse TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKeyResponse, *http.Response, error) - /* TsigUpdate Update the TSIG key. @@ -177,6 +172,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -220,7 +223,6 @@ func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateT newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -513,7 +515,6 @@ func (a *TsigAPIService) TsigListExecute(r ApiTsigListRequest) (*KeysListTSIGKey newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -636,7 +637,6 @@ func (a *TsigAPIService) TsigReadExecute(r ApiTsigReadRequest) (*KeysReadTSIGKey newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } @@ -717,6 +717,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -760,6 +768,5 @@ 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 3d68206..c933ccb 100644 --- a/keys/api_upload.go +++ b/keys/api_upload.go @@ -21,7 +21,6 @@ import ( ) type UploadAPI interface { - /* UploadUpload Upload content to the keys service. @@ -112,6 +111,14 @@ 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.GetDefaultTags() { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } // body params localVarPostBody = r.body if r.ctx != nil { @@ -155,6 +162,5 @@ func (a *UploadAPIService) UploadUploadExecute(r ApiUploadUploadRequest) (*Ddiup newErr := internal.NewGenericOpenAPIErrorWithBody(err.Error(), localVarBody) return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil } From 5e1dc48def3cc9d44d5a25fa3dddaec0cc9fcd0d Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Mon, 29 Jan 2024 17:44:24 -0800 Subject: [PATCH 2/7] Update go client to support default tags --- client/configuration.go | 28 +++++-- client/configuration_test.go | 133 +++++++++++++++++++++++++++++++++ internal/configuration.go | 12 +++ internal/configuration_test.go | 76 +++++++++++++++++++ 4 files changed, 244 insertions(+), 5 deletions(-) create mode 100644 client/configuration_test.go create mode 100644 internal/configuration_test.go diff --git a/client/configuration.go b/client/configuration.go index f2e404d..b12640e 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -5,6 +5,7 @@ import ( "fmt" "net/http" "os" + "strings" "github.com/infobloxopen/bloxone-go-client/internal" ) @@ -18,11 +19,11 @@ const ( HeaderClient = "x-infoblox-client" HeaderSDK = "x-infoblox-sdk" HeaderAuthorization = "Authorization" + version = "0.1" + sdkIdentifier = "golang-sdk" + clientIdentifier = "automation" ) -const version = "0.1" -const sdkIdentifier = "golang-sdk" - // Configuration stores the configuration of the API client type Configuration struct { // ClientName is the name of the client using the SDK. @@ -43,6 +44,9 @@ type Configuration struct { // HTTPClient to use for the SDK. // Optional. The default HTTPClient will be used if not provided. HTTPClient *http.Client + + // Default global tags the client can set for all requests. + DefaultTags map[string]string } func (c Configuration) internal(basePath string) (*internal.Configuration, error) { @@ -83,12 +87,26 @@ func (c Configuration) internal(basePath string) (*internal.Configuration, error userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) - return &internal.Configuration{ + ic := &internal.Configuration{ DefaultHeader: defaultHeaders, UserAgent: userAgent, Debug: false, OperationServers: nil, Servers: []internal.ServerConfiguration{{URL: cspURL}}, HTTPClient: httpClient, - }, nil + DefaultTags: make(map[string]string), + } + // Add default tags set + if c.DefaultTags != nil { + ic.AddDefaultTags(c.DefaultTags) + } + + // setting up custom tag to identify the client + dfTags := make(map[string]string) + // Extract client from ClientName string + // Format: /version#commit + dfTags[clientIdentifier] = strings.Split(c.ClientName, "/")[0] + ic.AddDefaultTags(dfTags) + + return ic, nil } diff --git a/client/configuration_test.go b/client/configuration_test.go new file mode 100644 index 0000000..060d0f6 --- /dev/null +++ b/client/configuration_test.go @@ -0,0 +1,133 @@ +package client + +import ( + "fmt" + "net/http" + "os" + "reflect" + "testing" + + "github.com/infobloxopen/bloxone-go-client/internal" +) + +func TestConfiguration_internal(t *testing.T) { + type fields struct { + ClientName string + CSPURL string + APIKey string + HTTPClient *http.Client + DefaultTags map[string]string + } + type args struct { + basePath string + } + tests := []struct { + name string + fields fields + args args + want *internal.Configuration + wantErr bool + }{ + { + "empty API key", + fields{ + APIKey: "", + }, + args{basePath: ""}, + nil, + true, + }, + {"empty clientName", + fields{ + ClientName: "", + }, + args{basePath: ""}, + nil, + true, + }, + { + "empty DefaultTags", + fields{ + ClientName: "terraform/v1.1#yug278872h", + APIKey: "12323455", + }, + args{basePath: ""}, + &internal.Configuration{ + DefaultHeader: map[string]string{ + HeaderAuthorization: "Token 12323455", + HeaderClient: "terraform/v1.1#yug278872h", + HeaderSDK: sdkIdentifier, + }, + Debug: false, + UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), + Servers: []internal.ServerConfiguration{{URL: "https://csp.infoblox.com"}}, + HTTPClient: http.DefaultClient, + DefaultTags: map[string]string{ + clientIdentifier: "terraform", + }, + }, + false, + }, + { + "DefaultTags provided", + fields{ + CSPURL: "https://stage.csp.infoblox.com", + ClientName: "terraformv1.1#yug278872h", + APIKey: "12323455", + DefaultTags: map[string]string{ + "site": "A", + "env": "test", + }, + }, + args{basePath: ""}, + &internal.Configuration{ + DefaultHeader: map[string]string{ + HeaderAuthorization: "Token 12323455", + HeaderClient: "terraformv1.1#yug278872h", + HeaderSDK: sdkIdentifier, + }, + Debug: false, + UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), + Servers: []internal.ServerConfiguration{{URL: "https://stage.csp.infoblox.com"}}, + HTTPClient: http.DefaultClient, + DefaultTags: map[string]string{ + clientIdentifier: "terraformv1.1#yug278872h", + "site": "A", + "env": "test", + }, + }, + false, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var curEnvVal string + c := Configuration{ + ClientName: tt.fields.ClientName, + CSPURL: tt.fields.CSPURL, + APIKey: tt.fields.APIKey, + HTTPClient: tt.fields.HTTPClient, + DefaultTags: tt.fields.DefaultTags, + } + if c.CSPURL != "" { + curEnvVal = os.Getenv(ENVBloxOneCSPURL) + t.Setenv(ENVBloxOneCSPURL, c.CSPURL) + } + + got, err := c.internal(tt.args.basePath) + if (err != nil) != tt.wantErr { + t.Errorf("internal() error = %v, wantErr %v", err, tt.wantErr) + return + } + if !reflect.DeepEqual(got, tt.want) { + t.Errorf("internal() got = %v, want %v", got, tt.want) + } + t.Cleanup(func() { + // Set it to the value prior to executing the test + if c.CSPURL != "" { + t.Setenv(ENVBloxOneCSPURL, curEnvVal) + } + }) + }) + } +} diff --git a/internal/configuration.go b/internal/configuration.go index 2a34dce..45fa11c 100644 --- a/internal/configuration.go +++ b/internal/configuration.go @@ -73,6 +73,7 @@ type Configuration struct { Servers ServerConfigurations OperationServers map[string]ServerConfigurations HTTPClient *http.Client + DefaultTags map[string]string } // NewConfiguration returns a new Configuration object @@ -89,6 +90,7 @@ func NewConfiguration() *Configuration { }, }, OperationServers: map[string]ServerConfigurations{}, + DefaultTags: make(map[string]string), } return cfg } @@ -98,6 +100,16 @@ func (c *Configuration) AddDefaultHeader(key string, value string) { c.DefaultHeader[key] = value } +func (c *Configuration) AddDefaultTags(m map[string]string) { + for k, v := range m { + c.DefaultTags[k] = v + } +} + +func (c *Configuration) GetDefaultTags() map[string]string { + return c.DefaultTags +} + // URL formats template on a index using given variables func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { if index < 0 || len(sc) <= index { diff --git a/internal/configuration_test.go b/internal/configuration_test.go new file mode 100644 index 0000000..aacf059 --- /dev/null +++ b/internal/configuration_test.go @@ -0,0 +1,76 @@ +package internal + +import ( + "reflect" + "testing" +) + +func TestConfiguration_AddDefaultTags(t *testing.T) { + type fields struct { + DefaultTags map[string]string + } + type args struct { + m map[string]string + } + tests := []struct { + name string + fields fields + args args + expected map[string]string + }{ + { + name: "empty fields", + fields: fields{ + DefaultTags: map[string]string{}, + }, + args: args{ + m: map[string]string{}, + }, + expected: map[string]string{}, + }, { + name: "existing fields", + fields: fields{ + DefaultTags: map[string]string{ + "key1": "value1", + }, + }, + args: args{ + m: map[string]string{ + "key2": "value2", + }, + }, + expected: map[string]string{ + "key1": "value1", + "key2": "value2", + }, + }, + { + name: "overriding fields", + fields: fields{ + DefaultTags: map[string]string{ + "key1": "value1", + }, + }, + args: args{ + m: map[string]string{ + "key1": "value2", + }, + }, + expected: map[string]string{ + "key1": "value2", + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + c := &Configuration{ + DefaultTags: tt.fields.DefaultTags, + } + c.AddDefaultTags(tt.args.m) + if !reflect.DeepEqual(c.GetDefaultTags(), tt.expected) { + t.Errorf("internal() want = %v, got = %v", tt.expected, c.GetDefaultTags()) + return + } + }) + } +} From bc2d96da4d59099f3c6aae44c97464e6993c34a0 Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Tue, 6 Feb 2024 16:28:51 -0800 Subject: [PATCH 3/7] Removing system tag --- client/configuration.go | 169 +++++++++++++++++------------------ client/configuration_test.go | 17 ++-- 2 files changed, 87 insertions(+), 99 deletions(-) diff --git a/client/configuration.go b/client/configuration.go index b12640e..2c2fdcb 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -5,108 +5,99 @@ import ( "fmt" "net/http" "os" - "strings" "github.com/infobloxopen/bloxone-go-client/internal" ) const ( - ENVBloxOneCSPURL = "BLOXONE_CSP_URL" - ENVBloxOneAPIKey = "BLOXONE_API_KEY" + ENVBloxOneCSPURL = "BLOXONE_CSP_URL" + ENVBloxOneAPIKey = "BLOXONE_API_KEY" ) const ( - HeaderClient = "x-infoblox-client" - HeaderSDK = "x-infoblox-sdk" - HeaderAuthorization = "Authorization" - version = "0.1" - sdkIdentifier = "golang-sdk" - clientIdentifier = "automation" + HeaderClient = "x-infoblox-client" + HeaderSDK = "x-infoblox-sdk" + HeaderAuthorization = "Authorization" + version = "0.1" + sdkIdentifier = "golang-sdk" ) // Configuration stores the configuration of the API client type Configuration struct { - // ClientName is the name of the client using the SDK. - // Required. - ClientName string - - // CSPURL is the URL for BloxOne Cloud Services Portal. - // Can also be configured using the `BLOXONE_CSP_URL` environment variable. - // Optional. Default is https://csp.infoblox.com - CSPURL string - - // APIKey for accessing the BloxOne API. - // Can also be configured by using the `BLOXONE_API_KEY` environment variable. - // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys - // Required. - APIKey string - - // HTTPClient to use for the SDK. - // Optional. The default HTTPClient will be used if not provided. - HTTPClient *http.Client - - // Default global tags the client can set for all requests. - DefaultTags map[string]string + // ClientName is the name of the client using the SDK. + // Required. + ClientName string + + // CSPURL is the URL for BloxOne Cloud Services Portal. + // Can also be configured using the `BLOXONE_CSP_URL` environment variable. + // Optional. Default is https://csp.infoblox.com + CSPURL string + + // APIKey for accessing the BloxOne API. + // Can also be configured by using the `BLOXONE_API_KEY` environment variable. + // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys + // Required. + APIKey string + + // HTTPClient to use for the SDK. + // Optional. The default HTTPClient will be used if not provided. + HTTPClient *http.Client + + // Default global tags the client can set for all requests. + DefaultTags map[string]string } func (c Configuration) internal(basePath string) (*internal.Configuration, error) { - cspURL := "https://csp.infoblox.com" - if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { - cspURL = v - } - if len(c.CSPURL) > 0 { - cspURL = c.CSPURL - } - cspURL = cspURL + basePath - - apiKey := "" - if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { - apiKey = v - } - if len(c.APIKey) > 0 { - apiKey = c.APIKey - } - if len(apiKey) == 0 { - return nil, errors.New("APIKey is required") - } - - if len(c.ClientName) == 0 { - return nil, errors.New("ClientName is required") - } - - httpClient := c.HTTPClient - if httpClient == nil { - httpClient = http.DefaultClient - } - - defaultHeaders := map[string]string{ - HeaderAuthorization: "Token " + apiKey, - HeaderClient: c.ClientName, - HeaderSDK: sdkIdentifier, - } - - userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) - - ic := &internal.Configuration{ - DefaultHeader: defaultHeaders, - UserAgent: userAgent, - Debug: false, - OperationServers: nil, - Servers: []internal.ServerConfiguration{{URL: cspURL}}, - HTTPClient: httpClient, - DefaultTags: make(map[string]string), - } - // Add default tags set - if c.DefaultTags != nil { - ic.AddDefaultTags(c.DefaultTags) - } - - // setting up custom tag to identify the client - dfTags := make(map[string]string) - // Extract client from ClientName string - // Format: /version#commit - dfTags[clientIdentifier] = strings.Split(c.ClientName, "/")[0] - ic.AddDefaultTags(dfTags) - - return ic, nil + cspURL := "https://csp.infoblox.com" + if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { + cspURL = v + } + if len(c.CSPURL) > 0 { + cspURL = c.CSPURL + } + cspURL = cspURL + basePath + + apiKey := "" + if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { + apiKey = v + } + if len(c.APIKey) > 0 { + apiKey = c.APIKey + } + if len(apiKey) == 0 { + return nil, errors.New("APIKey is required") + } + + if len(c.ClientName) == 0 { + return nil, errors.New("ClientName is required") + } + + httpClient := c.HTTPClient + if httpClient == nil { + httpClient = http.DefaultClient + } + + defaultHeaders := map[string]string{ + HeaderAuthorization: "Token " + apiKey, + HeaderClient: c.ClientName, + HeaderSDK: sdkIdentifier, + } + + userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) + + ic := &internal.Configuration{ + DefaultHeader: defaultHeaders, + UserAgent: userAgent, + Debug: false, + OperationServers: nil, + Servers: []internal.ServerConfiguration{{URL: cspURL}}, + HTTPClient: httpClient, + DefaultTags: make(map[string]string), + } + // Add default tags set + if c.DefaultTags != nil { + ic.AddDefaultTags(c.DefaultTags) + } + + return ic, nil } diff --git a/client/configuration_test.go b/client/configuration_test.go index 060d0f6..2d53853 100644 --- a/client/configuration_test.go +++ b/client/configuration_test.go @@ -58,13 +58,11 @@ func TestConfiguration_internal(t *testing.T) { HeaderClient: "terraform/v1.1#yug278872h", HeaderSDK: sdkIdentifier, }, - Debug: false, - UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), - Servers: []internal.ServerConfiguration{{URL: "https://csp.infoblox.com"}}, - HTTPClient: http.DefaultClient, - DefaultTags: map[string]string{ - clientIdentifier: "terraform", - }, + Debug: false, + UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), + Servers: []internal.ServerConfiguration{{URL: "https://csp.infoblox.com"}}, + HTTPClient: http.DefaultClient, + DefaultTags: map[string]string{}, }, false, }, @@ -91,9 +89,8 @@ func TestConfiguration_internal(t *testing.T) { Servers: []internal.ServerConfiguration{{URL: "https://stage.csp.infoblox.com"}}, HTTPClient: http.DefaultClient, DefaultTags: map[string]string{ - clientIdentifier: "terraformv1.1#yug278872h", - "site": "A", - "env": "test", + "site": "A", + "env": "test", }, }, false, From 236508ef8a44b40a65a189769b6e0a3cc31fcde3 Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Tue, 6 Feb 2024 16:30:20 -0800 Subject: [PATCH 4/7] go fmt --- client/configuration.go | 160 +++++++++--------- client/configuration_test.go | 242 +++++++++++++-------------- dns_config/api_acl.go | 56 +++---- dns_config/api_auth_nsg.go | 56 +++---- dns_config/api_auth_zone.go | 66 ++++---- dns_config/api_cache_flush.go | 10 +- dns_config/api_delegation.go | 56 +++---- dns_config/api_forward_nsg.go | 56 +++---- dns_config/api_forward_zone.go | 66 ++++---- dns_config/api_global.go | 44 ++--- dns_config/api_host.go | 34 ++-- dns_config/api_server.go | 56 +++---- dns_config/api_view.go | 68 ++++---- dns_data/api_record.go | 68 ++++---- infra_mgmt/api_hosts.go | 74 ++++---- infra_mgmt/api_services.go | 56 +++---- infra_provision/api_ui_join_token.go | 26 +-- infra_provision/api_uicsr.go | 32 ++-- internal/configuration_test.go | 138 +++++++-------- ipam/api_address.go | 56 +++---- ipam/api_address_block.go | 140 ++++++++-------- ipam/api_asm.go | 34 ++-- ipam/api_dhcp_host.go | 34 ++-- ipam/api_fixed_address.go | 56 +++---- ipam/api_global.go | 44 ++--- ipam/api_ha_group.go | 56 +++---- ipam/api_hardware_filter.go | 56 +++---- ipam/api_ip_space.go | 86 +++++----- ipam/api_ipam_host.go | 56 +++---- ipam/api_leases_command.go | 10 +- ipam/api_option_code.go | 56 +++---- ipam/api_option_filter.go | 56 +++---- ipam/api_option_group.go | 56 +++---- ipam/api_option_space.go | 56 +++---- ipam/api_range.go | 80 ++++----- ipam/api_server.go | 56 +++---- ipam/api_subnet.go | 92 +++++----- keys/api_kerberos.go | 46 ++--- keys/api_tsig.go | 56 +++---- 39 files changed, 1273 insertions(+), 1273 deletions(-) diff --git a/client/configuration.go b/client/configuration.go index 2c2fdcb..d234748 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -10,94 +10,94 @@ import ( ) const ( - ENVBloxOneCSPURL = "BLOXONE_CSP_URL" - ENVBloxOneAPIKey = "BLOXONE_API_KEY" + ENVBloxOneCSPURL = "BLOXONE_CSP_URL" + ENVBloxOneAPIKey = "BLOXONE_API_KEY" ) const ( - HeaderClient = "x-infoblox-client" - HeaderSDK = "x-infoblox-sdk" - HeaderAuthorization = "Authorization" - version = "0.1" - sdkIdentifier = "golang-sdk" + HeaderClient = "x-infoblox-client" + HeaderSDK = "x-infoblox-sdk" + HeaderAuthorization = "Authorization" + version = "0.1" + sdkIdentifier = "golang-sdk" ) // Configuration stores the configuration of the API client type Configuration struct { - // ClientName is the name of the client using the SDK. - // Required. - ClientName string - - // CSPURL is the URL for BloxOne Cloud Services Portal. - // Can also be configured using the `BLOXONE_CSP_URL` environment variable. - // Optional. Default is https://csp.infoblox.com - CSPURL string - - // APIKey for accessing the BloxOne API. - // Can also be configured by using the `BLOXONE_API_KEY` environment variable. - // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys - // Required. - APIKey string - - // HTTPClient to use for the SDK. - // Optional. The default HTTPClient will be used if not provided. - HTTPClient *http.Client - - // Default global tags the client can set for all requests. - DefaultTags map[string]string + // ClientName is the name of the client using the SDK. + // Required. + ClientName string + + // CSPURL is the URL for BloxOne Cloud Services Portal. + // Can also be configured using the `BLOXONE_CSP_URL` environment variable. + // Optional. Default is https://csp.infoblox.com + CSPURL string + + // APIKey for accessing the BloxOne API. + // Can also be configured by using the `BLOXONE_API_KEY` environment variable. + // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys + // Required. + APIKey string + + // HTTPClient to use for the SDK. + // Optional. The default HTTPClient will be used if not provided. + HTTPClient *http.Client + + // Default global tags the client can set for all requests. + DefaultTags map[string]string } func (c Configuration) internal(basePath string) (*internal.Configuration, error) { - cspURL := "https://csp.infoblox.com" - if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { - cspURL = v - } - if len(c.CSPURL) > 0 { - cspURL = c.CSPURL - } - cspURL = cspURL + basePath - - apiKey := "" - if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { - apiKey = v - } - if len(c.APIKey) > 0 { - apiKey = c.APIKey - } - if len(apiKey) == 0 { - return nil, errors.New("APIKey is required") - } - - if len(c.ClientName) == 0 { - return nil, errors.New("ClientName is required") - } - - httpClient := c.HTTPClient - if httpClient == nil { - httpClient = http.DefaultClient - } - - defaultHeaders := map[string]string{ - HeaderAuthorization: "Token " + apiKey, - HeaderClient: c.ClientName, - HeaderSDK: sdkIdentifier, - } - - userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) - - ic := &internal.Configuration{ - DefaultHeader: defaultHeaders, - UserAgent: userAgent, - Debug: false, - OperationServers: nil, - Servers: []internal.ServerConfiguration{{URL: cspURL}}, - HTTPClient: httpClient, - DefaultTags: make(map[string]string), - } - // Add default tags set - if c.DefaultTags != nil { - ic.AddDefaultTags(c.DefaultTags) - } - - return ic, nil + cspURL := "https://csp.infoblox.com" + if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { + cspURL = v + } + if len(c.CSPURL) > 0 { + cspURL = c.CSPURL + } + cspURL = cspURL + basePath + + apiKey := "" + if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { + apiKey = v + } + if len(c.APIKey) > 0 { + apiKey = c.APIKey + } + if len(apiKey) == 0 { + return nil, errors.New("APIKey is required") + } + + if len(c.ClientName) == 0 { + return nil, errors.New("ClientName is required") + } + + httpClient := c.HTTPClient + if httpClient == nil { + httpClient = http.DefaultClient + } + + defaultHeaders := map[string]string{ + HeaderAuthorization: "Token " + apiKey, + HeaderClient: c.ClientName, + HeaderSDK: sdkIdentifier, + } + + userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) + + ic := &internal.Configuration{ + DefaultHeader: defaultHeaders, + UserAgent: userAgent, + Debug: false, + OperationServers: nil, + Servers: []internal.ServerConfiguration{{URL: cspURL}}, + HTTPClient: httpClient, + DefaultTags: make(map[string]string), + } + // Add default tags set + if c.DefaultTags != nil { + ic.AddDefaultTags(c.DefaultTags) + } + + return ic, nil } diff --git a/client/configuration_test.go b/client/configuration_test.go index 2d53853..bc5c4ad 100644 --- a/client/configuration_test.go +++ b/client/configuration_test.go @@ -1,130 +1,130 @@ package client import ( - "fmt" - "net/http" - "os" - "reflect" - "testing" + "fmt" + "net/http" + "os" + "reflect" + "testing" - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) func TestConfiguration_internal(t *testing.T) { - type fields struct { - ClientName string - CSPURL string - APIKey string - HTTPClient *http.Client - DefaultTags map[string]string - } - type args struct { - basePath string - } - tests := []struct { - name string - fields fields - args args - want *internal.Configuration - wantErr bool - }{ - { - "empty API key", - fields{ - APIKey: "", - }, - args{basePath: ""}, - nil, - true, - }, - {"empty clientName", - fields{ - ClientName: "", - }, - args{basePath: ""}, - nil, - true, - }, - { - "empty DefaultTags", - fields{ - ClientName: "terraform/v1.1#yug278872h", - APIKey: "12323455", - }, - args{basePath: ""}, - &internal.Configuration{ - DefaultHeader: map[string]string{ - HeaderAuthorization: "Token 12323455", - HeaderClient: "terraform/v1.1#yug278872h", - HeaderSDK: sdkIdentifier, - }, - Debug: false, - UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), - Servers: []internal.ServerConfiguration{{URL: "https://csp.infoblox.com"}}, - HTTPClient: http.DefaultClient, - DefaultTags: map[string]string{}, - }, - false, - }, - { - "DefaultTags provided", - fields{ - CSPURL: "https://stage.csp.infoblox.com", - ClientName: "terraformv1.1#yug278872h", - APIKey: "12323455", - DefaultTags: map[string]string{ - "site": "A", - "env": "test", - }, - }, - args{basePath: ""}, - &internal.Configuration{ - DefaultHeader: map[string]string{ - HeaderAuthorization: "Token 12323455", - HeaderClient: "terraformv1.1#yug278872h", - HeaderSDK: sdkIdentifier, - }, - Debug: false, - UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), - Servers: []internal.ServerConfiguration{{URL: "https://stage.csp.infoblox.com"}}, - HTTPClient: http.DefaultClient, - DefaultTags: map[string]string{ - "site": "A", - "env": "test", - }, - }, - false, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - var curEnvVal string - c := Configuration{ - ClientName: tt.fields.ClientName, - CSPURL: tt.fields.CSPURL, - APIKey: tt.fields.APIKey, - HTTPClient: tt.fields.HTTPClient, - DefaultTags: tt.fields.DefaultTags, - } - if c.CSPURL != "" { - curEnvVal = os.Getenv(ENVBloxOneCSPURL) - t.Setenv(ENVBloxOneCSPURL, c.CSPURL) - } + type fields struct { + ClientName string + CSPURL string + APIKey string + HTTPClient *http.Client + DefaultTags map[string]string + } + type args struct { + basePath string + } + tests := []struct { + name string + fields fields + args args + want *internal.Configuration + wantErr bool + }{ + { + "empty API key", + fields{ + APIKey: "", + }, + args{basePath: ""}, + nil, + true, + }, + {"empty clientName", + fields{ + ClientName: "", + }, + args{basePath: ""}, + nil, + true, + }, + { + "empty DefaultTags", + fields{ + ClientName: "terraform/v1.1#yug278872h", + APIKey: "12323455", + }, + args{basePath: ""}, + &internal.Configuration{ + DefaultHeader: map[string]string{ + HeaderAuthorization: "Token 12323455", + HeaderClient: "terraform/v1.1#yug278872h", + HeaderSDK: sdkIdentifier, + }, + Debug: false, + UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), + Servers: []internal.ServerConfiguration{{URL: "https://csp.infoblox.com"}}, + HTTPClient: http.DefaultClient, + DefaultTags: map[string]string{}, + }, + false, + }, + { + "DefaultTags provided", + fields{ + CSPURL: "https://stage.csp.infoblox.com", + ClientName: "terraformv1.1#yug278872h", + APIKey: "12323455", + DefaultTags: map[string]string{ + "site": "A", + "env": "test", + }, + }, + args{basePath: ""}, + &internal.Configuration{ + DefaultHeader: map[string]string{ + HeaderAuthorization: "Token 12323455", + HeaderClient: "terraformv1.1#yug278872h", + HeaderSDK: sdkIdentifier, + }, + Debug: false, + UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), + Servers: []internal.ServerConfiguration{{URL: "https://stage.csp.infoblox.com"}}, + HTTPClient: http.DefaultClient, + DefaultTags: map[string]string{ + "site": "A", + "env": "test", + }, + }, + false, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + var curEnvVal string + c := Configuration{ + ClientName: tt.fields.ClientName, + CSPURL: tt.fields.CSPURL, + APIKey: tt.fields.APIKey, + HTTPClient: tt.fields.HTTPClient, + DefaultTags: tt.fields.DefaultTags, + } + if c.CSPURL != "" { + curEnvVal = os.Getenv(ENVBloxOneCSPURL) + t.Setenv(ENVBloxOneCSPURL, c.CSPURL) + } - got, err := c.internal(tt.args.basePath) - if (err != nil) != tt.wantErr { - t.Errorf("internal() error = %v, wantErr %v", err, tt.wantErr) - return - } - if !reflect.DeepEqual(got, tt.want) { - t.Errorf("internal() got = %v, want %v", got, tt.want) - } - t.Cleanup(func() { - // Set it to the value prior to executing the test - if c.CSPURL != "" { - t.Setenv(ENVBloxOneCSPURL, curEnvVal) - } - }) - }) - } + got, err := c.internal(tt.args.basePath) + if (err != nil) != tt.wantErr { + t.Errorf("internal() error = %v, wantErr %v", err, tt.wantErr) + return + } + if !reflect.DeepEqual(got, tt.want) { + t.Errorf("internal() got = %v, want %v", got, tt.want) + } + t.Cleanup(func() { + // Set it to the value prior to executing the test + if c.CSPURL != "" { + t.Setenv(ENVBloxOneCSPURL, curEnvVal) + } + }) + }) + } } diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index 0ba720c..d6a4f4d 100644 --- a/dns_config/api_acl.go +++ b/dns_config/api_acl.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type AclAPI interface { // @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 @@ -65,14 +65,14 @@ type AclAPI interface { // @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 @@ -80,14 +80,14 @@ type AclAPI interface { // @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 diff --git a/dns_config/api_auth_nsg.go b/dns_config/api_auth_nsg.go index 50e5b9e..5d80d1e 100644 --- a/dns_config/api_auth_nsg.go +++ b/dns_config/api_auth_nsg.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type AuthNsgAPI interface { // @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 @@ -65,14 +65,14 @@ type AuthNsgAPI interface { // @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 @@ -80,14 +80,14 @@ type AuthNsgAPI interface { // @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 diff --git a/dns_config/api_auth_zone.go b/dns_config/api_auth_zone.go index 5e1f12b..b95b1b9 100644 --- a/dns_config/api_auth_zone.go +++ b/dns_config/api_auth_zone.go @@ -23,13 +23,13 @@ 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 @@ -37,13 +37,13 @@ type AuthZoneAPI interface { // @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 @@ -51,27 +51,27 @@ type AuthZoneAPI interface { // @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 @@ -79,14 +79,14 @@ type AuthZoneAPI interface { // @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 @@ -94,14 +94,14 @@ type AuthZoneAPI interface { // @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 diff --git a/dns_config/api_cache_flush.go b/dns_config/api_cache_flush.go index 299deef..f3ca335 100644 --- a/dns_config/api_cache_flush.go +++ b/dns_config/api_cache_flush.go @@ -22,13 +22,13 @@ 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 diff --git a/dns_config/api_delegation.go b/dns_config/api_delegation.go index aaa9ce3..8e9cc7b 100644 --- a/dns_config/api_delegation.go +++ b/dns_config/api_delegation.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type DelegationAPI interface { // @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 @@ -65,14 +65,14 @@ type DelegationAPI interface { // @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 @@ -80,14 +80,14 @@ type DelegationAPI interface { // @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 diff --git a/dns_config/api_forward_nsg.go b/dns_config/api_forward_nsg.go index 150e213..5e51dc5 100644 --- a/dns_config/api_forward_nsg.go +++ b/dns_config/api_forward_nsg.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type ForwardNsgAPI interface { // @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 @@ -65,14 +65,14 @@ type ForwardNsgAPI interface { // @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 @@ -80,14 +80,14 @@ type ForwardNsgAPI interface { // @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 diff --git a/dns_config/api_forward_zone.go b/dns_config/api_forward_zone.go index b68ef18..31b6ffc 100644 --- a/dns_config/api_forward_zone.go +++ b/dns_config/api_forward_zone.go @@ -23,13 +23,13 @@ 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 @@ -37,13 +37,13 @@ type ForwardZoneAPI interface { // @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 @@ -51,27 +51,27 @@ type ForwardZoneAPI interface { // @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 @@ -79,14 +79,14 @@ type ForwardZoneAPI interface { // @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 @@ -94,14 +94,14 @@ type ForwardZoneAPI interface { // @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 diff --git a/dns_config/api_global.go b/dns_config/api_global.go index 77da4fa..736b322 100644 --- a/dns_config/api_global.go +++ b/dns_config/api_global.go @@ -23,13 +23,13 @@ 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 @@ -37,14 +37,14 @@ type GlobalAPI interface { // @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 @@ -52,13 +52,13 @@ type GlobalAPI interface { // @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 @@ -66,14 +66,14 @@ type GlobalAPI interface { // @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 diff --git a/dns_config/api_host.go b/dns_config/api_host.go index 5269ca2..78eeceb 100644 --- a/dns_config/api_host.go +++ b/dns_config/api_host.go @@ -23,13 +23,13 @@ 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 @@ -37,14 +37,14 @@ type HostAPI interface { // @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 @@ -52,14 +52,14 @@ type HostAPI interface { // @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 diff --git a/dns_config/api_server.go b/dns_config/api_server.go index 6830c7a..0155963 100644 --- a/dns_config/api_server.go +++ b/dns_config/api_server.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type ServerAPI interface { // @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 @@ -65,14 +65,14 @@ type ServerAPI interface { // @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 @@ -80,14 +80,14 @@ type ServerAPI interface { // @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 diff --git a/dns_config/api_view.go b/dns_config/api_view.go index a2f0c9b..7118450 100644 --- a/dns_config/api_view.go +++ b/dns_config/api_view.go @@ -23,14 +23,14 @@ 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 @@ -38,13 +38,13 @@ type ViewAPI interface { // @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 @@ -52,27 +52,27 @@ type ViewAPI interface { // @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 @@ -80,14 +80,14 @@ type ViewAPI interface { // @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 @@ -95,14 +95,14 @@ type ViewAPI interface { // @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 diff --git a/dns_data/api_record.go b/dns_data/api_record.go index 0d4af5c..ce669d7 100644 --- a/dns_data/api_record.go +++ b/dns_data/api_record.go @@ -23,13 +23,13 @@ import ( 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 @@ -37,27 +37,27 @@ type RecordAPI interface { // @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 @@ -65,14 +65,14 @@ type RecordAPI interface { // @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 @@ -80,14 +80,14 @@ type RecordAPI interface { // @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 @@ -95,14 +95,14 @@ type RecordAPI interface { // @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 diff --git a/infra_mgmt/api_hosts.go b/infra_mgmt/api_hosts.go index d7af487..e7e4f92 100644 --- a/infra_mgmt/api_hosts.go +++ b/infra_mgmt/api_hosts.go @@ -23,14 +23,14 @@ 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 @@ -38,13 +38,13 @@ type HostsAPI interface { // @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 @@ -52,14 +52,14 @@ type HostsAPI interface { // @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 @@ -91,14 +91,14 @@ type HostsAPI interface { // @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 @@ -119,14 +119,14 @@ type HostsAPI interface { // @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 @@ -134,16 +134,16 @@ type HostsAPI interface { // @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 diff --git a/infra_mgmt/api_services.go b/infra_mgmt/api_services.go index ea81a36..0fcfc0a 100644 --- a/infra_mgmt/api_services.go +++ b/infra_mgmt/api_services.go @@ -36,15 +36,15 @@ type ServicesAPI interface { // @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 @@ -52,14 +52,14 @@ type ServicesAPI interface { // @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 @@ -77,14 +77,14 @@ type ServicesAPI interface { // @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 @@ -92,17 +92,17 @@ type ServicesAPI interface { // @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 diff --git a/infra_provision/api_ui_join_token.go b/infra_provision/api_ui_join_token.go index 26276f3..6b62640 100644 --- a/infra_provision/api_ui_join_token.go +++ b/infra_provision/api_ui_join_token.go @@ -23,14 +23,14 @@ 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 @@ -84,15 +84,15 @@ type UIJoinTokenAPI interface { // @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 diff --git a/infra_provision/api_uicsr.go b/infra_provision/api_uicsr.go index 992f305..70c6546 100644 --- a/infra_provision/api_uicsr.go +++ b/infra_provision/api_uicsr.go @@ -58,16 +58,16 @@ type UICSRAPI interface { // @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 @@ -75,16 +75,16 @@ type UICSRAPI interface { // @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 diff --git a/internal/configuration_test.go b/internal/configuration_test.go index aacf059..d0a7fba 100644 --- a/internal/configuration_test.go +++ b/internal/configuration_test.go @@ -1,76 +1,76 @@ package internal import ( - "reflect" - "testing" + "reflect" + "testing" ) func TestConfiguration_AddDefaultTags(t *testing.T) { - type fields struct { - DefaultTags map[string]string - } - type args struct { - m map[string]string - } - tests := []struct { - name string - fields fields - args args - expected map[string]string - }{ - { - name: "empty fields", - fields: fields{ - DefaultTags: map[string]string{}, - }, - args: args{ - m: map[string]string{}, - }, - expected: map[string]string{}, - }, { - name: "existing fields", - fields: fields{ - DefaultTags: map[string]string{ - "key1": "value1", - }, - }, - args: args{ - m: map[string]string{ - "key2": "value2", - }, - }, - expected: map[string]string{ - "key1": "value1", - "key2": "value2", - }, - }, - { - name: "overriding fields", - fields: fields{ - DefaultTags: map[string]string{ - "key1": "value1", - }, - }, - args: args{ - m: map[string]string{ - "key1": "value2", - }, - }, - expected: map[string]string{ - "key1": "value2", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - c := &Configuration{ - DefaultTags: tt.fields.DefaultTags, - } - c.AddDefaultTags(tt.args.m) - if !reflect.DeepEqual(c.GetDefaultTags(), tt.expected) { - t.Errorf("internal() want = %v, got = %v", tt.expected, c.GetDefaultTags()) - return - } - }) - } + type fields struct { + DefaultTags map[string]string + } + type args struct { + m map[string]string + } + tests := []struct { + name string + fields fields + args args + expected map[string]string + }{ + { + name: "empty fields", + fields: fields{ + DefaultTags: map[string]string{}, + }, + args: args{ + m: map[string]string{}, + }, + expected: map[string]string{}, + }, { + name: "existing fields", + fields: fields{ + DefaultTags: map[string]string{ + "key1": "value1", + }, + }, + args: args{ + m: map[string]string{ + "key2": "value2", + }, + }, + expected: map[string]string{ + "key1": "value1", + "key2": "value2", + }, + }, + { + name: "overriding fields", + fields: fields{ + DefaultTags: map[string]string{ + "key1": "value1", + }, + }, + args: args{ + m: map[string]string{ + "key1": "value2", + }, + }, + expected: map[string]string{ + "key1": "value2", + }, + }, + } + for _, tt := range tests { + t.Run(tt.name, func(t *testing.T) { + c := &Configuration{ + DefaultTags: tt.fields.DefaultTags, + } + c.AddDefaultTags(tt.args.m) + if !reflect.DeepEqual(c.GetDefaultTags(), tt.expected) { + t.Errorf("internal() want = %v, got = %v", tt.expected, c.GetDefaultTags()) + return + } + }) + } } diff --git a/ipam/api_address.go b/ipam/api_address.go index d192bd1..ee54861 100644 --- a/ipam/api_address.go +++ b/ipam/api_address.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type AddressAPI interface { // @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 @@ -65,14 +65,14 @@ type AddressAPI interface { // @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 @@ -80,14 +80,14 @@ type AddressAPI interface { // @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 diff --git a/ipam/api_address_block.go b/ipam/api_address_block.go index f2b9aa0..6e8ecc2 100644 --- a/ipam/api_address_block.go +++ b/ipam/api_address_block.go @@ -23,14 +23,14 @@ 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 @@ -38,13 +38,13 @@ type AddressBlockAPI interface { // @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 @@ -52,14 +52,14 @@ type AddressBlockAPI interface { // @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 @@ -67,14 +67,14 @@ type AddressBlockAPI interface { // @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 @@ -82,14 +82,14 @@ type AddressBlockAPI interface { // @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 @@ -97,27 +97,27 @@ type AddressBlockAPI interface { // @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 @@ -125,14 +125,14 @@ type AddressBlockAPI interface { // @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 @@ -140,14 +140,14 @@ type AddressBlockAPI interface { // @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 @@ -155,14 +155,14 @@ type AddressBlockAPI interface { // @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 @@ -170,14 +170,14 @@ type AddressBlockAPI interface { // @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 @@ -185,14 +185,14 @@ type AddressBlockAPI interface { // @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 diff --git a/ipam/api_asm.go b/ipam/api_asm.go index 7a7ba18..b2fe742 100644 --- a/ipam/api_asm.go +++ b/ipam/api_asm.go @@ -23,14 +23,14 @@ 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 @@ -38,13 +38,13 @@ type AsmAPI interface { // @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 @@ -52,14 +52,14 @@ type AsmAPI interface { // @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 diff --git a/ipam/api_dhcp_host.go b/ipam/api_dhcp_host.go index c1f4c06..c380680 100644 --- a/ipam/api_dhcp_host.go +++ b/ipam/api_dhcp_host.go @@ -23,13 +23,13 @@ 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 @@ -51,14 +51,14 @@ type DhcpHostAPI interface { // @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 @@ -66,14 +66,14 @@ type DhcpHostAPI interface { // @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 diff --git a/ipam/api_fixed_address.go b/ipam/api_fixed_address.go index ae6322e..80c6d36 100644 --- a/ipam/api_fixed_address.go +++ b/ipam/api_fixed_address.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type FixedAddressAPI interface { // @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 @@ -65,14 +65,14 @@ type FixedAddressAPI interface { // @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 @@ -80,14 +80,14 @@ type FixedAddressAPI interface { // @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 diff --git a/ipam/api_global.go b/ipam/api_global.go index 1e9ebc8..d1f14ea 100644 --- a/ipam/api_global.go +++ b/ipam/api_global.go @@ -23,13 +23,13 @@ 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 @@ -37,14 +37,14 @@ type GlobalAPI interface { // @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 @@ -52,13 +52,13 @@ type GlobalAPI interface { // @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 @@ -66,14 +66,14 @@ type GlobalAPI interface { // @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 diff --git a/ipam/api_ha_group.go b/ipam/api_ha_group.go index 1bf5ba8..ef87672 100644 --- a/ipam/api_ha_group.go +++ b/ipam/api_ha_group.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type HaGroupAPI interface { // @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 @@ -65,14 +65,14 @@ type HaGroupAPI interface { // @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 @@ -80,14 +80,14 @@ type HaGroupAPI interface { // @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 diff --git a/ipam/api_hardware_filter.go b/ipam/api_hardware_filter.go index fe2e55b..3779ebd 100644 --- a/ipam/api_hardware_filter.go +++ b/ipam/api_hardware_filter.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type HardwareFilterAPI interface { // @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 @@ -65,14 +65,14 @@ type HardwareFilterAPI interface { // @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 @@ -80,14 +80,14 @@ type HardwareFilterAPI interface { // @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 diff --git a/ipam/api_ip_space.go b/ipam/api_ip_space.go index 6a96973..290da0b 100644 --- a/ipam/api_ip_space.go +++ b/ipam/api_ip_space.go @@ -23,18 +23,18 @@ 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 @@ -42,14 +42,14 @@ type IpSpaceAPI interface { // @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 @@ -57,13 +57,13 @@ type IpSpaceAPI interface { // @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 @@ -71,27 +71,27 @@ type IpSpaceAPI interface { // @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 @@ -99,14 +99,14 @@ type IpSpaceAPI interface { // @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 @@ -114,14 +114,14 @@ type IpSpaceAPI interface { // @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 diff --git a/ipam/api_ipam_host.go b/ipam/api_ipam_host.go index 96be92d..6100f40 100644 --- a/ipam/api_ipam_host.go +++ b/ipam/api_ipam_host.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type IpamHostAPI interface { // @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 @@ -65,14 +65,14 @@ type IpamHostAPI interface { // @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 @@ -80,14 +80,14 @@ type IpamHostAPI interface { // @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 diff --git a/ipam/api_leases_command.go b/ipam/api_leases_command.go index 219d38a..02fb0c3 100644 --- a/ipam/api_leases_command.go +++ b/ipam/api_leases_command.go @@ -22,13 +22,13 @@ 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 diff --git a/ipam/api_option_code.go b/ipam/api_option_code.go index 8fec6ac..17006da 100644 --- a/ipam/api_option_code.go +++ b/ipam/api_option_code.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type OptionCodeAPI interface { // @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 @@ -65,14 +65,14 @@ type OptionCodeAPI interface { // @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 @@ -80,14 +80,14 @@ type OptionCodeAPI interface { // @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 diff --git a/ipam/api_option_filter.go b/ipam/api_option_filter.go index b4c2798..30675dd 100644 --- a/ipam/api_option_filter.go +++ b/ipam/api_option_filter.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type OptionFilterAPI interface { // @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 @@ -65,14 +65,14 @@ type OptionFilterAPI interface { // @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 @@ -80,14 +80,14 @@ type OptionFilterAPI interface { // @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 diff --git a/ipam/api_option_group.go b/ipam/api_option_group.go index 3ba243a..a8ae748 100644 --- a/ipam/api_option_group.go +++ b/ipam/api_option_group.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type OptionGroupAPI interface { // @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 @@ -65,14 +65,14 @@ type OptionGroupAPI interface { // @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 @@ -80,14 +80,14 @@ type OptionGroupAPI interface { // @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 diff --git a/ipam/api_option_space.go b/ipam/api_option_space.go index ed2a2cf..10673fc 100644 --- a/ipam/api_option_space.go +++ b/ipam/api_option_space.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type OptionSpaceAPI interface { // @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 @@ -65,14 +65,14 @@ type OptionSpaceAPI interface { // @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 @@ -80,14 +80,14 @@ type OptionSpaceAPI interface { // @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 diff --git a/ipam/api_range.go b/ipam/api_range.go index 2658b96..92712fe 100644 --- a/ipam/api_range.go +++ b/ipam/api_range.go @@ -23,13 +23,13 @@ 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 @@ -37,14 +37,14 @@ type RangeAPI interface { // @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 @@ -52,27 +52,27 @@ type RangeAPI interface { // @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 @@ -80,14 +80,14 @@ type RangeAPI interface { // @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 @@ -95,14 +95,14 @@ type RangeAPI interface { // @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 @@ -110,14 +110,14 @@ type RangeAPI interface { // @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 diff --git a/ipam/api_server.go b/ipam/api_server.go index 9b6c449..f51df8d 100644 --- a/ipam/api_server.go +++ b/ipam/api_server.go @@ -23,13 +23,13 @@ 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 @@ -37,27 +37,27 @@ type ServerAPI interface { // @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 @@ -65,14 +65,14 @@ type ServerAPI interface { // @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 @@ -80,14 +80,14 @@ type ServerAPI interface { // @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 diff --git a/ipam/api_subnet.go b/ipam/api_subnet.go index 1b70d83..9913cde 100644 --- a/ipam/api_subnet.go +++ b/ipam/api_subnet.go @@ -23,14 +23,14 @@ 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 @@ -38,13 +38,13 @@ type SubnetAPI interface { // @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 @@ -52,14 +52,14 @@ type SubnetAPI interface { // @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 @@ -67,27 +67,27 @@ type SubnetAPI interface { // @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 @@ -95,14 +95,14 @@ type SubnetAPI interface { // @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 @@ -110,14 +110,14 @@ type SubnetAPI interface { // @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 @@ -125,14 +125,14 @@ type SubnetAPI interface { // @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 diff --git a/keys/api_kerberos.go b/keys/api_kerberos.go index f103519..42d68ac 100644 --- a/keys/api_kerberos.go +++ b/keys/api_kerberos.go @@ -23,27 +23,27 @@ 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 @@ -51,14 +51,14 @@ type KerberosAPI interface { // @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 @@ -66,14 +66,14 @@ type KerberosAPI interface { // @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 diff --git a/keys/api_tsig.go b/keys/api_tsig.go index fb00c0c..c735519 100644 --- a/keys/api_tsig.go +++ b/keys/api_tsig.go @@ -23,13 +23,13 @@ import ( 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 @@ -37,27 +37,27 @@ type TsigAPI interface { // @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 @@ -65,14 +65,14 @@ type TsigAPI interface { // @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 @@ -80,14 +80,14 @@ type TsigAPI interface { // @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 From f343fb00132e21bee5ecc19b2e483afa76dbb48b Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Thu, 8 Feb 2024 13:21:15 -0800 Subject: [PATCH 5/7] PR comments --- client/configuration.go | 167 ++++++++++++++++----------------- client/configuration_test.go | 2 +- internal/configuration.go | 6 -- internal/configuration_test.go | 3 +- 4 files changed, 84 insertions(+), 94 deletions(-) diff --git a/client/configuration.go b/client/configuration.go index d234748..e86833d 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -1,103 +1,100 @@ package client import ( - "errors" - "fmt" - "net/http" - "os" + "errors" + "fmt" + "net/http" + "os" - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) const ( - ENVBloxOneCSPURL = "BLOXONE_CSP_URL" - ENVBloxOneAPIKey = "BLOXONE_API_KEY" + ENVBloxOneCSPURL = "BLOXONE_CSP_URL" + ENVBloxOneAPIKey = "BLOXONE_API_KEY" ) const ( - HeaderClient = "x-infoblox-client" - HeaderSDK = "x-infoblox-sdk" - HeaderAuthorization = "Authorization" - version = "0.1" - sdkIdentifier = "golang-sdk" + HeaderClient = "x-infoblox-client" + HeaderSDK = "x-infoblox-sdk" + HeaderAuthorization = "Authorization" + version = "0.1" + sdkIdentifier = "golang-sdk" ) // Configuration stores the configuration of the API client type Configuration struct { - // ClientName is the name of the client using the SDK. - // Required. - ClientName string - - // CSPURL is the URL for BloxOne Cloud Services Portal. - // Can also be configured using the `BLOXONE_CSP_URL` environment variable. - // Optional. Default is https://csp.infoblox.com - CSPURL string - - // APIKey for accessing the BloxOne API. - // Can also be configured by using the `BLOXONE_API_KEY` environment variable. - // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys - // Required. - APIKey string - - // HTTPClient to use for the SDK. - // Optional. The default HTTPClient will be used if not provided. - HTTPClient *http.Client - - // Default global tags the client can set for all requests. - DefaultTags map[string]string + // ClientName is the name of the client using the SDK. + // Required. + ClientName string + + // CSPURL is the URL for BloxOne Cloud Services Portal. + // Can also be configured using the `BLOXONE_CSP_URL` environment variable. + // Optional. Default is https://csp.infoblox.com + CSPURL string + + // APIKey for accessing the BloxOne API. + // Can also be configured by using the `BLOXONE_API_KEY` environment variable. + // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys + // Required. + APIKey string + + // HTTPClient to use for the SDK. + // Optional. The default HTTPClient will be used if not provided. + HTTPClient *http.Client + + // Default tags the client can set for objects that has tags support. + // Optional. The default is an empty map. + DefaultTags map[string]string } func (c Configuration) internal(basePath string) (*internal.Configuration, error) { - cspURL := "https://csp.infoblox.com" - if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { - cspURL = v - } - if len(c.CSPURL) > 0 { - cspURL = c.CSPURL - } - cspURL = cspURL + basePath - - apiKey := "" - if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { - apiKey = v - } - if len(c.APIKey) > 0 { - apiKey = c.APIKey - } - if len(apiKey) == 0 { - return nil, errors.New("APIKey is required") - } - - if len(c.ClientName) == 0 { - return nil, errors.New("ClientName is required") - } - - httpClient := c.HTTPClient - if httpClient == nil { - httpClient = http.DefaultClient - } - - defaultHeaders := map[string]string{ - HeaderAuthorization: "Token " + apiKey, - HeaderClient: c.ClientName, - HeaderSDK: sdkIdentifier, - } - - userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) - - ic := &internal.Configuration{ - DefaultHeader: defaultHeaders, - UserAgent: userAgent, - Debug: false, - OperationServers: nil, - Servers: []internal.ServerConfiguration{{URL: cspURL}}, - HTTPClient: httpClient, - DefaultTags: make(map[string]string), - } - // Add default tags set - if c.DefaultTags != nil { - ic.AddDefaultTags(c.DefaultTags) - } - - return ic, nil + cspURL := "https://csp.infoblox.com" + if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { + cspURL = v + } + if len(c.CSPURL) > 0 { + cspURL = c.CSPURL + } + cspURL = cspURL + basePath + + apiKey := "" + if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { + apiKey = v + } + if len(c.APIKey) > 0 { + apiKey = c.APIKey + } + if len(apiKey) == 0 { + return nil, errors.New("APIKey is required") + } + + if len(c.ClientName) == 0 { + return nil, errors.New("ClientName is required") + } + + httpClient := c.HTTPClient + if httpClient == nil { + httpClient = http.DefaultClient + } + + defaultHeaders := map[string]string{ + HeaderAuthorization: "Token " + apiKey, + HeaderClient: c.ClientName, + HeaderSDK: sdkIdentifier, + } + + userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) + + ic := &internal.Configuration{ + DefaultHeader: defaultHeaders, + UserAgent: userAgent, + Debug: false, + OperationServers: nil, + Servers: []internal.ServerConfiguration{{URL: cspURL}}, + HTTPClient: httpClient, + DefaultTags: c.DefaultTags, + } + + return ic, nil } diff --git a/client/configuration_test.go b/client/configuration_test.go index bc5c4ad..8b4d54a 100644 --- a/client/configuration_test.go +++ b/client/configuration_test.go @@ -62,7 +62,7 @@ func TestConfiguration_internal(t *testing.T) { UserAgent: fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version), Servers: []internal.ServerConfiguration{{URL: "https://csp.infoblox.com"}}, HTTPClient: http.DefaultClient, - DefaultTags: map[string]string{}, + DefaultTags: nil, }, false, }, diff --git a/internal/configuration.go b/internal/configuration.go index 45fa11c..6270583 100644 --- a/internal/configuration.go +++ b/internal/configuration.go @@ -100,12 +100,6 @@ func (c *Configuration) AddDefaultHeader(key string, value string) { c.DefaultHeader[key] = value } -func (c *Configuration) AddDefaultTags(m map[string]string) { - for k, v := range m { - c.DefaultTags[k] = v - } -} - func (c *Configuration) GetDefaultTags() map[string]string { return c.DefaultTags } diff --git a/internal/configuration_test.go b/internal/configuration_test.go index d0a7fba..c917a5b 100644 --- a/internal/configuration_test.go +++ b/internal/configuration_test.go @@ -40,7 +40,6 @@ func TestConfiguration_AddDefaultTags(t *testing.T) { }, }, expected: map[string]string{ - "key1": "value1", "key2": "value2", }, }, @@ -66,7 +65,7 @@ func TestConfiguration_AddDefaultTags(t *testing.T) { c := &Configuration{ DefaultTags: tt.fields.DefaultTags, } - c.AddDefaultTags(tt.args.m) + c.DefaultTags = tt.args.m if !reflect.DeepEqual(c.GetDefaultTags(), tt.expected) { t.Errorf("internal() want = %v, got = %v", tt.expected, c.GetDefaultTags()) return From 79df307436b2de1f59d5557fa240779154a49ae1 Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Thu, 8 Feb 2024 17:03:56 -0800 Subject: [PATCH 6/7] PR comments --- internal/configuration_test.go | 75 ---------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 internal/configuration_test.go diff --git a/internal/configuration_test.go b/internal/configuration_test.go deleted file mode 100644 index c917a5b..0000000 --- a/internal/configuration_test.go +++ /dev/null @@ -1,75 +0,0 @@ -package internal - -import ( - "reflect" - "testing" -) - -func TestConfiguration_AddDefaultTags(t *testing.T) { - type fields struct { - DefaultTags map[string]string - } - type args struct { - m map[string]string - } - tests := []struct { - name string - fields fields - args args - expected map[string]string - }{ - { - name: "empty fields", - fields: fields{ - DefaultTags: map[string]string{}, - }, - args: args{ - m: map[string]string{}, - }, - expected: map[string]string{}, - }, { - name: "existing fields", - fields: fields{ - DefaultTags: map[string]string{ - "key1": "value1", - }, - }, - args: args{ - m: map[string]string{ - "key2": "value2", - }, - }, - expected: map[string]string{ - "key2": "value2", - }, - }, - { - name: "overriding fields", - fields: fields{ - DefaultTags: map[string]string{ - "key1": "value1", - }, - }, - args: args{ - m: map[string]string{ - "key1": "value2", - }, - }, - expected: map[string]string{ - "key1": "value2", - }, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - c := &Configuration{ - DefaultTags: tt.fields.DefaultTags, - } - c.DefaultTags = tt.args.m - if !reflect.DeepEqual(c.GetDefaultTags(), tt.expected) { - t.Errorf("internal() want = %v, got = %v", tt.expected, c.GetDefaultTags()) - return - } - }) - } -} From 0ce39fc6d67977b122d6517df4fcc885c057c806 Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Mon, 12 Feb 2024 15:02:44 -0800 Subject: [PATCH 7/7] go fmt --- client/configuration.go | 164 ++++++++++++++++++++-------------------- 1 file changed, 82 insertions(+), 82 deletions(-) diff --git a/client/configuration.go b/client/configuration.go index e86833d..1cfd2dc 100644 --- a/client/configuration.go +++ b/client/configuration.go @@ -1,100 +1,100 @@ package client import ( - "errors" - "fmt" - "net/http" - "os" + "errors" + "fmt" + "net/http" + "os" - "github.com/infobloxopen/bloxone-go-client/internal" + "github.com/infobloxopen/bloxone-go-client/internal" ) const ( - ENVBloxOneCSPURL = "BLOXONE_CSP_URL" - ENVBloxOneAPIKey = "BLOXONE_API_KEY" + ENVBloxOneCSPURL = "BLOXONE_CSP_URL" + ENVBloxOneAPIKey = "BLOXONE_API_KEY" ) const ( - HeaderClient = "x-infoblox-client" - HeaderSDK = "x-infoblox-sdk" - HeaderAuthorization = "Authorization" - version = "0.1" - sdkIdentifier = "golang-sdk" + HeaderClient = "x-infoblox-client" + HeaderSDK = "x-infoblox-sdk" + HeaderAuthorization = "Authorization" + version = "0.1" + sdkIdentifier = "golang-sdk" ) // Configuration stores the configuration of the API client type Configuration struct { - // ClientName is the name of the client using the SDK. - // Required. - ClientName string - - // CSPURL is the URL for BloxOne Cloud Services Portal. - // Can also be configured using the `BLOXONE_CSP_URL` environment variable. - // Optional. Default is https://csp.infoblox.com - CSPURL string - - // APIKey for accessing the BloxOne API. - // Can also be configured by using the `BLOXONE_API_KEY` environment variable. - // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys - // Required. - APIKey string - - // HTTPClient to use for the SDK. - // Optional. The default HTTPClient will be used if not provided. - HTTPClient *http.Client - - // Default tags the client can set for objects that has tags support. - // Optional. The default is an empty map. - DefaultTags map[string]string + // ClientName is the name of the client using the SDK. + // Required. + ClientName string + + // CSPURL is the URL for BloxOne Cloud Services Portal. + // Can also be configured using the `BLOXONE_CSP_URL` environment variable. + // Optional. Default is https://csp.infoblox.com + CSPURL string + + // APIKey for accessing the BloxOne API. + // Can also be configured by using the `BLOXONE_API_KEY` environment variable. + // https://docs.infoblox.com/space/BloxOneCloud/35430405/Configuring+User+API+Keys + // Required. + APIKey string + + // HTTPClient to use for the SDK. + // Optional. The default HTTPClient will be used if not provided. + HTTPClient *http.Client + + // Default tags the client can set for objects that has tags support. + // Optional. The default is an empty map. + DefaultTags map[string]string } func (c Configuration) internal(basePath string) (*internal.Configuration, error) { - cspURL := "https://csp.infoblox.com" - if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { - cspURL = v - } - if len(c.CSPURL) > 0 { - cspURL = c.CSPURL - } - cspURL = cspURL + basePath - - apiKey := "" - if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { - apiKey = v - } - if len(c.APIKey) > 0 { - apiKey = c.APIKey - } - if len(apiKey) == 0 { - return nil, errors.New("APIKey is required") - } - - if len(c.ClientName) == 0 { - return nil, errors.New("ClientName is required") - } - - httpClient := c.HTTPClient - if httpClient == nil { - httpClient = http.DefaultClient - } - - defaultHeaders := map[string]string{ - HeaderAuthorization: "Token " + apiKey, - HeaderClient: c.ClientName, - HeaderSDK: sdkIdentifier, - } - - userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) - - ic := &internal.Configuration{ - DefaultHeader: defaultHeaders, - UserAgent: userAgent, - Debug: false, - OperationServers: nil, - Servers: []internal.ServerConfiguration{{URL: cspURL}}, - HTTPClient: httpClient, - DefaultTags: c.DefaultTags, - } - - return ic, nil + cspURL := "https://csp.infoblox.com" + if v, ok := os.LookupEnv(ENVBloxOneCSPURL); ok { + cspURL = v + } + if len(c.CSPURL) > 0 { + cspURL = c.CSPURL + } + cspURL = cspURL + basePath + + apiKey := "" + if v, ok := os.LookupEnv(ENVBloxOneAPIKey); ok { + apiKey = v + } + if len(c.APIKey) > 0 { + apiKey = c.APIKey + } + if len(apiKey) == 0 { + return nil, errors.New("APIKey is required") + } + + if len(c.ClientName) == 0 { + return nil, errors.New("ClientName is required") + } + + httpClient := c.HTTPClient + if httpClient == nil { + httpClient = http.DefaultClient + } + + defaultHeaders := map[string]string{ + HeaderAuthorization: "Token " + apiKey, + HeaderClient: c.ClientName, + HeaderSDK: sdkIdentifier, + } + + userAgent := fmt.Sprintf("bloxone-%s/%s", sdkIdentifier, version) + + ic := &internal.Configuration{ + DefaultHeader: defaultHeaders, + UserAgent: userAgent, + Debug: false, + OperationServers: nil, + Servers: []internal.ServerConfiguration{{URL: cspURL}}, + HTTPClient: httpClient, + DefaultTags: c.DefaultTags, + } + + return ic, nil }