From 3b4702a9251b8f1009c4fb2293ef724738ab562e Mon Sep 17 00:00:00 2001 From: Venkat Venkatasubramanian Date: Wed, 14 Feb 2024 14:29:59 -0800 Subject: [PATCH] Code generation updates (#20) * Code updates * Code updates - fmt --- dns_config/api_acl.go | 4 ++-- dns_config/api_auth_nsg.go | 4 ++-- dns_config/api_auth_zone.go | 4 ++-- dns_config/api_delegation.go | 4 ++-- dns_config/api_forward_nsg.go | 4 ++-- dns_config/api_forward_zone.go | 4 ++-- dns_config/api_host.go | 2 +- dns_config/api_lbdn.go | 4 ++-- dns_config/api_server.go | 4 ++-- dns_config/api_view.go | 4 ++-- dns_data/api_record.go | 4 ++-- infra_mgmt/api_hosts.go | 6 +++--- infra_mgmt/api_services.go | 4 ++-- infra_provision/api_ui_join_token.go | 4 ++-- internal/configuration.go | 4 ---- ipam/api_address.go | 4 ++-- ipam/api_address_block.go | 4 ++-- ipam/api_dhcp_host.go | 2 +- ipam/api_fixed_address.go | 4 ++-- ipam/api_ha_group.go | 2 +- ipam/api_hardware_filter.go | 4 ++-- ipam/api_ip_space.go | 4 ++-- ipam/api_ipam_host.go | 4 ++-- ipam/api_option_filter.go | 4 ++-- ipam/api_option_group.go | 4 ++-- ipam/api_option_space.go | 4 ++-- ipam/api_range.go | 4 ++-- ipam/api_server.go | 4 ++-- ipam/api_subnet.go | 4 ++-- keys/api_tsig.go | 4 ++-- keys/api_upload.go | 2 +- 31 files changed, 57 insertions(+), 61 deletions(-) diff --git a/dns_config/api_acl.go b/dns_config/api_acl.go index d6a4f4d..c06e786 100644 --- a/dns_config/api_acl.go +++ b/dns_config/api_acl.go @@ -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..d2ed1ca 100644 --- a/dns_config/api_auth_nsg.go +++ b/dns_config/api_auth_nsg.go @@ -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..c95502a 100644 --- a/dns_config/api_auth_zone.go +++ b/dns_config/api_auth_zone.go @@ -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_delegation.go b/dns_config/api_delegation.go index 8e9cc7b..1aae7b6 100644 --- a/dns_config/api_delegation.go +++ b/dns_config/api_delegation.go @@ -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..8d33d4b 100644 --- a/dns_config/api_forward_nsg.go +++ b/dns_config/api_forward_nsg.go @@ -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..762417b 100644 --- a/dns_config/api_forward_zone.go +++ b/dns_config/api_forward_zone.go @@ -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_host.go b/dns_config/api_host.go index 78eeceb..fbef892 100644 --- a/dns_config/api_host.go +++ b/dns_config/api_host.go @@ -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..f759fa5 100644 --- a/dns_config/api_server.go +++ b/dns_config/api_server.go @@ -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..5bd8d32 100644 --- a/dns_config/api_view.go +++ b/dns_config/api_view.go @@ -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..3400bef 100644 --- a/dns_data/api_record.go +++ b/dns_data/api_record.go @@ -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..159f42a 100644 --- a/infra_mgmt/api_hosts.go +++ b/infra_mgmt/api_hosts.go @@ -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..0de1c2d 100644 --- a/infra_mgmt/api_services.go +++ b/infra_mgmt/api_services.go @@ -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..7b25b49 100644 --- a/infra_provision/api_ui_join_token.go +++ b/infra_provision/api_ui_join_token.go @@ -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/internal/configuration.go b/internal/configuration.go index 6270583..830a876 100644 --- a/internal/configuration.go +++ b/internal/configuration.go @@ -100,10 +100,6 @@ func (c *Configuration) AddDefaultHeader(key string, value string) { c.DefaultHeader[key] = value } -func (c *Configuration) GetDefaultTags() map[string]string { - return c.DefaultTags -} - // URL formats template on a index using given variables func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error) { if index < 0 || len(sc) <= index { diff --git a/ipam/api_address.go b/ipam/api_address.go index ee54861..c8e8fc7 100644 --- a/ipam/api_address.go +++ b/ipam/api_address.go @@ -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..481539c 100644 --- a/ipam/api_address_block.go +++ b/ipam/api_address_block.go @@ -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_dhcp_host.go b/ipam/api_dhcp_host.go index c380680..a3d955b 100644 --- a/ipam/api_dhcp_host.go +++ b/ipam/api_dhcp_host.go @@ -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..15ede2e 100644 --- a/ipam/api_fixed_address.go +++ b/ipam/api_fixed_address.go @@ -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_ha_group.go b/ipam/api_ha_group.go index ef87672..06a4fc8 100644 --- a/ipam/api_ha_group.go +++ b/ipam/api_ha_group.go @@ -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..18649ed 100644 --- a/ipam/api_hardware_filter.go +++ b/ipam/api_hardware_filter.go @@ -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..ac81c8b 100644 --- a/ipam/api_ip_space.go +++ b/ipam/api_ip_space.go @@ -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..7e562ec 100644 --- a/ipam/api_ipam_host.go +++ b/ipam/api_ipam_host.go @@ -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_option_filter.go b/ipam/api_option_filter.go index 30675dd..f49e936 100644 --- a/ipam/api_option_filter.go +++ b/ipam/api_option_filter.go @@ -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..b91cbbd 100644 --- a/ipam/api_option_group.go +++ b/ipam/api_option_group.go @@ -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..babcf62 100644 --- a/ipam/api_option_space.go +++ b/ipam/api_option_space.go @@ -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..e0f0bd6 100644 --- a/ipam/api_range.go +++ b/ipam/api_range.go @@ -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..a9336ef 100644 --- a/ipam/api_server.go +++ b/ipam/api_server.go @@ -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..42f1527 100644 --- a/ipam/api_subnet.go +++ b/ipam/api_subnet.go @@ -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_tsig.go b/keys/api_tsig.go index c735519..7aa8083 100644 --- a/keys/api_tsig.go +++ b/keys/api_tsig.go @@ -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 }