From 641af77cd6313c54c3aa8db411e6afaf722854af Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Tue, 13 Feb 2024 10:49:43 -0800 Subject: [PATCH 1/2] Code updates --- dns_config/api_acl.go | 60 +++--- dns_config/api_auth_nsg.go | 60 +++--- dns_config/api_auth_zone.go | 70 +++---- dns_config/api_cache_flush.go | 10 +- dns_config/api_delegation.go | 60 +++--- dns_config/api_forward_nsg.go | 60 +++--- dns_config/api_forward_zone.go | 70 +++---- dns_config/api_global.go | 44 ++--- dns_config/api_host.go | 36 ++-- dns_config/api_lbdn.go | 4 +- dns_config/api_server.go | 60 +++--- dns_config/api_view.go | 72 +++---- dns_data/api_record.go | 72 +++---- infra_mgmt/api_hosts.go | 80 ++++---- infra_mgmt/api_services.go | 60 +++--- infra_provision/api_ui_join_token.go | 30 +-- infra_provision/api_uicsr.go | 32 ++-- internal/configuration.go | 274 +++++++++++++-------------- ipam/api_address.go | 60 +++--- ipam/api_address_block.go | 144 +++++++------- ipam/api_asm.go | 34 ++-- ipam/api_dhcp_host.go | 36 ++-- ipam/api_fixed_address.go | 60 +++--- ipam/api_global.go | 44 ++--- ipam/api_ha_group.go | 58 +++--- ipam/api_hardware_filter.go | 60 +++--- ipam/api_ip_space.go | 90 ++++----- ipam/api_ipam_host.go | 60 +++--- ipam/api_leases_command.go | 10 +- ipam/api_option_code.go | 56 +++--- ipam/api_option_filter.go | 60 +++--- ipam/api_option_group.go | 60 +++--- ipam/api_option_space.go | 60 +++--- ipam/api_range.go | 84 ++++---- ipam/api_server.go | 60 +++--- ipam/api_subnet.go | 96 +++++----- keys/api_kerberos.go | 46 ++--- keys/api_tsig.go | 60 +++--- keys/api_upload.go | 2 +- 39 files changed, 1195 insertions(+), 1199 deletions(-) diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index d6a4f4d..76c5564 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 @@ -175,7 +175,7 @@ func (a *AclAPIService) AclCreateExecute(r ApiAclCreateRequest) (*ConfigCreateAC if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *AclAPIService) AclUpdateExecute(r ApiAclUpdateRequest) (*ConfigUpdateAC if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_auth_nsg.go b/dns_config/api_auth_nsg.go index 5d80d1e..12dc4fd 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 @@ -175,7 +175,7 @@ func (a *AuthNsgAPIService) AuthNsgCreateExecute(r ApiAuthNsgCreateRequest) (*Co if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *AuthNsgAPIService) AuthNsgUpdateExecute(r ApiAuthNsgUpdateRequest) (*Co if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_auth_zone.go b/dns_config/api_auth_zone.go index b95b1b9..fa87013 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 @@ -318,7 +318,7 @@ func (a *AuthZoneAPIService) AuthZoneCreateExecute(r ApiAuthZoneCreateRequest) ( if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -893,7 +893,7 @@ func (a *AuthZoneAPIService) AuthZoneUpdateExecute(r ApiAuthZoneUpdateRequest) ( if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_cache_flush.go b/dns_config/api_cache_flush.go index f3ca335..299deef 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 8e9cc7b..ebe0264 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 @@ -175,7 +175,7 @@ func (a *DelegationAPIService) DelegationCreateExecute(r ApiDelegationCreateRequ if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *DelegationAPIService) DelegationUpdateExecute(r ApiDelegationUpdateRequ if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_forward_nsg.go b/dns_config/api_forward_nsg.go index 5e51dc5..6c4eace 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 @@ -175,7 +175,7 @@ func (a *ForwardNsgAPIService) ForwardNsgCreateExecute(r ApiForwardNsgCreateRequ if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *ForwardNsgAPIService) ForwardNsgUpdateExecute(r ApiForwardNsgUpdateRequ if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_forward_zone.go b/dns_config/api_forward_zone.go index 31b6ffc..cc1e4b8 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 @@ -308,7 +308,7 @@ func (a *ForwardZoneAPIService) ForwardZoneCreateExecute(r ApiForwardZoneCreateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -853,7 +853,7 @@ func (a *ForwardZoneAPIService) ForwardZoneUpdateExecute(r ApiForwardZoneUpdateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_global.go b/dns_config/api_global.go index 736b322..77da4fa 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 78eeceb..f5022f1 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 @@ -491,7 +491,7 @@ func (a *HostAPIService) HostUpdateExecute(r ApiHostUpdateRequest) (*ConfigUpdat if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_lbdn.go b/dns_config/api_lbdn.go index d1a985f..33c2318 100644 --- a/dns_config/api_lbdn.go +++ b/dns_config/api_lbdn.go @@ -169,7 +169,7 @@ func (a *LbdnAPIService) LbdnCreateExecute(r ApiLbdnCreateRequest) (*ConfigCreat if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -710,7 +710,7 @@ func (a *LbdnAPIService) LbdnUpdateExecute(r ApiLbdnUpdateRequest) (*ConfigUpdat if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_server.go b/dns_config/api_server.go index 0155963..6f2d9c4 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 @@ -185,7 +185,7 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Confi if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -760,7 +760,7 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Confi if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_config/api_view.go b/dns_config/api_view.go index 7118450..3e6cdc8 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 @@ -320,7 +320,7 @@ func (a *ViewAPIService) ViewCreateExecute(r ApiViewCreateRequest) (*ConfigCreat if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -895,7 +895,7 @@ func (a *ViewAPIService) ViewUpdateExecute(r ApiViewUpdateRequest) (*ConfigUpdat if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/dns_data/api_record.go b/dns_data/api_record.go index ce669d7..f86c2df 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 @@ -200,7 +200,7 @@ func (a *RecordAPIService) RecordCreateExecute(r ApiRecordCreateRequest) (*DataC if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -898,7 +898,7 @@ func (a *RecordAPIService) RecordUpdateExecute(r ApiRecordUpdateRequest) (*DataU if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/infra_mgmt/api_hosts.go b/infra_mgmt/api_hosts.go index e7e4f92..cd4a0ce 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 @@ -232,7 +232,7 @@ func (a *HostsAPIService) HostsAssignTagsExecute(r ApiHostsAssignTagsRequest) (m if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -359,7 +359,7 @@ func (a *HostsAPIService) HostsCreateExecute(r ApiHostsCreateRequest) (*InfraCre if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -1259,7 +1259,7 @@ func (a *HostsAPIService) HostsUpdateExecute(r ApiHostsUpdateRequest) (*InfraUpd if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/infra_mgmt/api_services.go b/infra_mgmt/api_services.go index 0fcfc0a..e8c3799 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 @@ -309,7 +309,7 @@ func (a *ServicesAPIService) ServicesCreateExecute(r ApiServicesCreateRequest) ( if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -844,7 +844,7 @@ func (a *ServicesAPIService) ServicesUpdateExecute(r ApiServicesUpdateRequest) ( if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/infra_provision/api_ui_join_token.go b/infra_provision/api_ui_join_token.go index 6b62640..0fcf714 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 @@ -181,7 +181,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenCreateExecute(r ApiUIJoinTokenCreateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -818,7 +818,7 @@ func (a *UIJoinTokenAPIService) UIJoinTokenUpdateExecute(r ApiUIJoinTokenUpdateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/infra_provision/api_uicsr.go b/infra_provision/api_uicsr.go index 70c6546..992f305 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.go b/internal/configuration.go index 6270583..e71f7f3 100644 --- a/internal/configuration.go +++ b/internal/configuration.go @@ -1,10 +1,10 @@ package internal import ( - "context" - "fmt" - "net/http" - "strings" + "context" + "fmt" + "net/http" + "strings" ) // contextKeys are used to identify the type of value in the context. @@ -14,50 +14,50 @@ import ( type contextKey string func (c contextKey) String() string { - return "auth " + string(c) + return "auth " + string(c) } var ( - // ContextAPIKeys takes a string apikey as authentication for the request - ContextAPIKeys = contextKey("apiKeys") + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") ) // BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` } // APIKey provides API key based authentication to a request passed via context using ContextAPIKey type APIKey struct { - Key string - Prefix string + Key string + Prefix string } // ServerVariable stores the information about a server variable type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string + Description string + DefaultValue string + EnumValues []string } // ServerConfiguration stores the information about a server type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable + URL string + Description string + Variables map[string]ServerVariable } // ServerConfigurations stores multiple ServerConfiguration items @@ -65,150 +65,146 @@ type ServerConfigurations []ServerConfiguration // Configuration stores the configuration of the API client type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client - DefaultTags map[string]string + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client + DefaultTags map[string]string } // NewConfiguration returns a new Configuration object func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Scheme: "https", - Servers: ServerConfigurations{ - { - URL: "https://csp.infoblox.com/api/ddi/v1", - Description: "No description provided", - }, - }, - OperationServers: map[string]ServerConfigurations{}, - DefaultTags: make(map[string]string), - } - return cfg + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Scheme: "https", + Servers: ServerConfigurations{ + { + URL: "https://csp.infoblox.com/api/ddi/v1", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{}, + DefaultTags: make(map[string]string), + } + return cfg } // AddDefaultHeader adds a new HTTP header to the default header in the request func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} - -func (c *Configuration) GetDefaultTags() map[string]string { - return c.DefaultTags + c.DefaultHeader[key] = value } // 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 { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil } // ServerURL returns URL based on server settings func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) + return c.Servers.URL(index, variables) } func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, ReportError("Invalid type %T should be int", si) - } - return 0, nil + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, ReportError("Invalid type %T should be int", si) + } + return 0, nil } func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, ReportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, ReportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) } func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, ReportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, ReportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil } func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, ReportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, ReportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) } // ServerURLWithContext returns a new server URL given an endpoint func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) } diff --git a/ipam/api_address.go b/ipam/api_address.go index ee54861..bae1c67 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 @@ -175,7 +175,7 @@ func (a *AddressAPIService) AddressCreateExecute(r ApiAddressCreateRequest) (*Ip if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -738,7 +738,7 @@ func (a *AddressAPIService) AddressUpdateExecute(r ApiAddressUpdateRequest) (*Ip if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_address_block.go b/ipam/api_address_block.go index 6e8ecc2..bb58140 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 @@ -413,7 +413,7 @@ func (a *AddressBlockAPIService) AddressBlockCreateExecute(r ApiAddressBlockCrea if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -1894,7 +1894,7 @@ func (a *AddressBlockAPIService) AddressBlockUpdateExecute(r ApiAddressBlockUpda if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_asm.go b/ipam/api_asm.go index b2fe742..7a7ba18 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 c380680..f963007 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 @@ -586,7 +586,7 @@ func (a *DhcpHostAPIService) DhcpHostUpdateExecute(r ApiDhcpHostUpdateRequest) ( if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_fixed_address.go b/ipam/api_fixed_address.go index 80c6d36..f3e6b6b 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 @@ -185,7 +185,7 @@ func (a *FixedAddressAPIService) FixedAddressCreateExecute(r ApiFixedAddressCrea if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -760,7 +760,7 @@ func (a *FixedAddressAPIService) FixedAddressUpdateExecute(r ApiFixedAddressUpda if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_global.go b/ipam/api_global.go index d1f14ea..1e9ebc8 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 ef87672..bb6b8e7 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 @@ -175,7 +175,7 @@ func (a *HaGroupAPIService) HaGroupCreateExecute(r ApiHaGroupCreateRequest) (*Ip if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_hardware_filter.go b/ipam/api_hardware_filter.go index 3779ebd..932f0b0 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 @@ -175,7 +175,7 @@ func (a *HardwareFilterAPIService) HardwareFilterCreateExecute(r ApiHardwareFilt if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *HardwareFilterAPIService) HardwareFilterUpdateExecute(r ApiHardwareFilt if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_ip_space.go b/ipam/api_ip_space.go index 290da0b..10a1552 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 @@ -466,7 +466,7 @@ func (a *IpSpaceAPIService) IpSpaceCreateExecute(r ApiIpSpaceCreateRequest) (*Ip if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -1041,7 +1041,7 @@ func (a *IpSpaceAPIService) IpSpaceUpdateExecute(r ApiIpSpaceUpdateRequest) (*Ip if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_ipam_host.go b/ipam/api_ipam_host.go index 6100f40..d670f1d 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 @@ -175,7 +175,7 @@ func (a *IpamHostAPIService) IpamHostCreateExecute(r ApiIpamHostCreateRequest) ( if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -730,7 +730,7 @@ func (a *IpamHostAPIService) IpamHostUpdateExecute(r ApiIpamHostUpdateRequest) ( if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_leases_command.go b/ipam/api_leases_command.go index 02fb0c3..219d38a 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 17006da..8fec6ac 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 30675dd..00f09fb 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 @@ -175,7 +175,7 @@ func (a *OptionFilterAPIService) OptionFilterCreateExecute(r ApiOptionFilterCrea if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *OptionFilterAPIService) OptionFilterUpdateExecute(r ApiOptionFilterUpda if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_option_group.go b/ipam/api_option_group.go index a8ae748..b34decf 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 @@ -175,7 +175,7 @@ func (a *OptionGroupAPIService) OptionGroupCreateExecute(r ApiOptionGroupCreateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *OptionGroupAPIService) OptionGroupUpdateExecute(r ApiOptionGroupUpdateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_option_space.go b/ipam/api_option_space.go index 10673fc..4ae4b31 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 @@ -175,7 +175,7 @@ func (a *OptionSpaceAPIService) OptionSpaceCreateExecute(r ApiOptionSpaceCreateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *OptionSpaceAPIService) OptionSpaceUpdateExecute(r ApiOptionSpaceUpdateR if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_range.go b/ipam/api_range.go index 92712fe..c75a39b 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 @@ -215,7 +215,7 @@ func (a *RangeAPIService) RangeCreateExecute(r ApiRangeCreateRequest) (*IpamsvcC if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -1060,7 +1060,7 @@ func (a *RangeAPIService) RangeUpdateExecute(r ApiRangeUpdateRequest) (*IpamsvcU if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_server.go b/ipam/api_server.go index f51df8d..ea55167 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 @@ -185,7 +185,7 @@ func (a *ServerAPIService) ServerCreateExecute(r ApiServerCreateRequest) (*Ipams if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -760,7 +760,7 @@ func (a *ServerAPIService) ServerUpdateExecute(r ApiServerUpdateRequest) (*Ipams if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/ipam/api_subnet.go b/ipam/api_subnet.go index 9913cde..ee7f23f 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 @@ -353,7 +353,7 @@ func (a *SubnetAPIService) SubnetCreateExecute(r ApiSubnetCreateRequest) (*Ipams if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -1198,7 +1198,7 @@ func (a *SubnetAPIService) SubnetUpdateExecute(r ApiSubnetUpdateRequest) (*Ipams if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/keys/api_kerberos.go b/keys/api_kerberos.go index 42d68ac..f103519 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 c735519..e92bcf1 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 @@ -175,7 +175,7 @@ func (a *TsigAPIService) TsigCreateExecute(r ApiTsigCreateRequest) (*KeysCreateT if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } @@ -720,7 +720,7 @@ func (a *TsigAPIService) TsigUpdateExecute(r ApiTsigUpdateRequest) (*KeysUpdateT if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } diff --git a/keys/api_upload.go b/keys/api_upload.go index c933ccb..d91ba24 100644 --- a/keys/api_upload.go +++ b/keys/api_upload.go @@ -114,7 +114,7 @@ func (a *UploadAPIService) UploadUploadExecute(r ApiUploadUploadRequest) (*Ddiup if r.body.Tags == nil { r.body.Tags = make(map[string]interface{}) } - for k, v := range a.Client.Cfg.GetDefaultTags() { + for k, v := range a.Client.Cfg.DefaultTags { if _, ok := r.body.Tags[k]; !ok { r.body.Tags[k] = v } From ff5985cddd601376b01279271f310b244d81d565 Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Tue, 13 Feb 2024 10:50:41 -0800 Subject: [PATCH 2/2] Code updates - fmt --- 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.go | 270 +++++++++++++-------------- 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 +++--- 37 files changed, 1138 insertions(+), 1138 deletions(-) diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index 76c5564..c06e786 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 12dc4fd..d2ed1ca 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 fa87013..c95502a 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 ebe0264..1aae7b6 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 6c4eace..8d33d4b 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 cc1e4b8..762417b 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 f5022f1..fbef892 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 6f2d9c4..f759fa5 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 3e6cdc8..5bd8d32 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 f86c2df..3400bef 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 cd4a0ce..159f42a 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 e8c3799..0de1c2d 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 0fcf714..7b25b49 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.go b/internal/configuration.go index e71f7f3..830a876 100644 --- a/internal/configuration.go +++ b/internal/configuration.go @@ -1,10 +1,10 @@ package internal import ( - "context" - "fmt" - "net/http" - "strings" + "context" + "fmt" + "net/http" + "strings" ) // contextKeys are used to identify the type of value in the context. @@ -14,50 +14,50 @@ import ( type contextKey string func (c contextKey) String() string { - return "auth " + string(c) + return "auth " + string(c) } var ( - // ContextAPIKeys takes a string apikey as authentication for the request - ContextAPIKeys = contextKey("apiKeys") + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") - // ContextServerIndex uses a server configuration from the index. - ContextServerIndex = contextKey("serverIndex") + // ContextServerIndex uses a server configuration from the index. + ContextServerIndex = contextKey("serverIndex") - // ContextOperationServerIndices uses a server configuration from the index mapping. - ContextOperationServerIndices = contextKey("serverOperationIndices") + // ContextOperationServerIndices uses a server configuration from the index mapping. + ContextOperationServerIndices = contextKey("serverOperationIndices") - // ContextServerVariables overrides a server configuration variables. - ContextServerVariables = contextKey("serverVariables") + // ContextServerVariables overrides a server configuration variables. + ContextServerVariables = contextKey("serverVariables") - // ContextOperationServerVariables overrides a server configuration variables using operation specific values. - ContextOperationServerVariables = contextKey("serverOperationVariables") + // ContextOperationServerVariables overrides a server configuration variables using operation specific values. + ContextOperationServerVariables = contextKey("serverOperationVariables") ) // BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` } // APIKey provides API key based authentication to a request passed via context using ContextAPIKey type APIKey struct { - Key string - Prefix string + Key string + Prefix string } // ServerVariable stores the information about a server variable type ServerVariable struct { - Description string - DefaultValue string - EnumValues []string + Description string + DefaultValue string + EnumValues []string } // ServerConfiguration stores the information about a server type ServerConfiguration struct { - URL string - Description string - Variables map[string]ServerVariable + URL string + Description string + Variables map[string]ServerVariable } // ServerConfigurations stores multiple ServerConfiguration items @@ -65,146 +65,146 @@ type ServerConfigurations []ServerConfiguration // Configuration stores the configuration of the API client type Configuration struct { - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - Debug bool `json:"debug,omitempty"` - Servers ServerConfigurations - OperationServers map[string]ServerConfigurations - HTTPClient *http.Client - DefaultTags map[string]string + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + Debug bool `json:"debug,omitempty"` + Servers ServerConfigurations + OperationServers map[string]ServerConfigurations + HTTPClient *http.Client + DefaultTags map[string]string } // NewConfiguration returns a new Configuration object func NewConfiguration() *Configuration { - cfg := &Configuration{ - DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/1.0.0/go", - Debug: false, - Scheme: "https", - Servers: ServerConfigurations{ - { - URL: "https://csp.infoblox.com/api/ddi/v1", - Description: "No description provided", - }, - }, - OperationServers: map[string]ServerConfigurations{}, - DefaultTags: make(map[string]string), - } - return cfg + cfg := &Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + Debug: false, + Scheme: "https", + Servers: ServerConfigurations{ + { + URL: "https://csp.infoblox.com/api/ddi/v1", + Description: "No description provided", + }, + }, + OperationServers: map[string]ServerConfigurations{}, + DefaultTags: make(map[string]string), + } + return cfg } // AddDefaultHeader adds a new HTTP header to the default header in the request func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value + c.DefaultHeader[key] = value } // 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 { - return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) - } - server := sc[index] - url := server.URL - - // go through variables and replace placeholders - for name, variable := range server.Variables { - if value, ok := variables[name]; ok { - found := bool(len(variable.EnumValues) == 0) - for _, enumValue := range variable.EnumValues { - if value == enumValue { - found = true - } - } - if !found { - return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) - } - url = strings.Replace(url, "{"+name+"}", value, -1) - } else { - url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) - } - } - return url, nil + if index < 0 || len(sc) <= index { + return "", fmt.Errorf("index %v out of range %v", index, len(sc)-1) + } + server := sc[index] + url := server.URL + + // go through variables and replace placeholders + for name, variable := range server.Variables { + if value, ok := variables[name]; ok { + found := bool(len(variable.EnumValues) == 0) + for _, enumValue := range variable.EnumValues { + if value == enumValue { + found = true + } + } + if !found { + return "", fmt.Errorf("the variable %s in the server URL has invalid value %v. Must be %v", name, value, variable.EnumValues) + } + url = strings.Replace(url, "{"+name+"}", value, -1) + } else { + url = strings.Replace(url, "{"+name+"}", variable.DefaultValue, -1) + } + } + return url, nil } // ServerURL returns URL based on server settings func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error) { - return c.Servers.URL(index, variables) + return c.Servers.URL(index, variables) } func getServerIndex(ctx context.Context) (int, error) { - si := ctx.Value(ContextServerIndex) - if si != nil { - if index, ok := si.(int); ok { - return index, nil - } - return 0, ReportError("Invalid type %T should be int", si) - } - return 0, nil + si := ctx.Value(ContextServerIndex) + if si != nil { + if index, ok := si.(int); ok { + return index, nil + } + return 0, ReportError("Invalid type %T should be int", si) + } + return 0, nil } func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { - osi := ctx.Value(ContextOperationServerIndices) - if osi != nil { - if operationIndices, ok := osi.(map[string]int); !ok { - return 0, ReportError("Invalid type %T should be map[string]int", osi) - } else { - index, ok := operationIndices[endpoint] - if ok { - return index, nil - } - } - } - return getServerIndex(ctx) + osi := ctx.Value(ContextOperationServerIndices) + if osi != nil { + if operationIndices, ok := osi.(map[string]int); !ok { + return 0, ReportError("Invalid type %T should be map[string]int", osi) + } else { + index, ok := operationIndices[endpoint] + if ok { + return index, nil + } + } + } + return getServerIndex(ctx) } func getServerVariables(ctx context.Context) (map[string]string, error) { - sv := ctx.Value(ContextServerVariables) - if sv != nil { - if variables, ok := sv.(map[string]string); ok { - return variables, nil - } - return nil, ReportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) - } - return nil, nil + sv := ctx.Value(ContextServerVariables) + if sv != nil { + if variables, ok := sv.(map[string]string); ok { + return variables, nil + } + return nil, ReportError("ctx value of ContextServerVariables has invalid type %T should be map[string]string", sv) + } + return nil, nil } func getServerOperationVariables(ctx context.Context, endpoint string) (map[string]string, error) { - osv := ctx.Value(ContextOperationServerVariables) - if osv != nil { - if operationVariables, ok := osv.(map[string]map[string]string); !ok { - return nil, ReportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) - } else { - variables, ok := operationVariables[endpoint] - if ok { - return variables, nil - } - } - } - return getServerVariables(ctx) + osv := ctx.Value(ContextOperationServerVariables) + if osv != nil { + if operationVariables, ok := osv.(map[string]map[string]string); !ok { + return nil, ReportError("ctx value of ContextOperationServerVariables has invalid type %T should be map[string]map[string]string", osv) + } else { + variables, ok := operationVariables[endpoint] + if ok { + return variables, nil + } + } + } + return getServerVariables(ctx) } // ServerURLWithContext returns a new server URL given an endpoint func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error) { - sc, ok := c.OperationServers[endpoint] - if !ok { - sc = c.Servers - } - - if ctx == nil { - return sc.URL(0, nil) - } - - index, err := getServerOperationIndex(ctx, endpoint) - if err != nil { - return "", err - } - - variables, err := getServerOperationVariables(ctx, endpoint) - if err != nil { - return "", err - } - - return sc.URL(index, variables) + sc, ok := c.OperationServers[endpoint] + if !ok { + sc = c.Servers + } + + if ctx == nil { + return sc.URL(0, nil) + } + + index, err := getServerOperationIndex(ctx, endpoint) + if err != nil { + return "", err + } + + variables, err := getServerOperationVariables(ctx, endpoint) + if err != nil { + return "", err + } + + return sc.URL(index, variables) } diff --git a/ipam/api_address.go b/ipam/api_address.go index bae1c67..c8e8fc7 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 bb58140..481539c 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 f963007..a3d955b 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 f3e6b6b..15ede2e 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 bb6b8e7..06a4fc8 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 932f0b0..18649ed 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 10a1552..ac81c8b 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 d670f1d..7e562ec 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 00f09fb..f49e936 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 b34decf..b91cbbd 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 4ae4b31..babcf62 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 c75a39b..e0f0bd6 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 ea55167..a9336ef 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 ee7f23f..42f1527 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 e92bcf1..7aa8083 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