From 78d2c78a516cdfa023d92e4a927d26267f6447f5 Mon Sep 17 00:00:00 2001 From: Min Jiang Date: Thu, 2 May 2024 12:18:52 -0700 Subject: [PATCH] latest changes --- anycast/api/openapi.yaml | 2 ++ anycast/api_on_prem_anycast_manager.go | 20 +++++++++++++++++ fw/api/openapi.yaml | 11 ++++++++++ fw/api_application_filters.go | 20 +++++++++++++++++ fw/api_category_filters.go | 20 +++++++++++++++++ fw/api_internal_domain_lists.go | 20 +++++++++++++++++ fw/api_named_lists.go | 30 ++++++++++++++++++++++++++ fw/api_security_policies.go | 20 +++++++++++++++++ ipam/api/openapi.yaml | 7 +++++- ipam/api_ha_group.go | 10 +++++++++ keys/api/openapi.yaml | 1 + keys/api_kerberos.go | 10 +++++++++ 12 files changed, 170 insertions(+), 1 deletion(-) diff --git a/anycast/api/openapi.yaml b/anycast/api/openapi.yaml index 06f067b..469272e 100644 --- a/anycast/api/openapi.yaml +++ b/anycast/api/openapi.yaml @@ -87,6 +87,7 @@ paths: - OnPremAnycastManager x-tf-resource: anycast_ac_config x-tf-datasource: anycast_ac_configs + x-sdk-default-tags: true x-codegen-request-body-name: body /accm/ac_configs/{id}: delete: @@ -165,6 +166,7 @@ paths: summary: Create or Update Anycast Configuration tags: - OnPremAnycastManager + x-sdk-default-tags: true x-codegen-request-body-name: body /accm/ac_runtime_statuses: get: diff --git a/anycast/api_on_prem_anycast_manager.go b/anycast/api_on_prem_anycast_manager.go index 662ce74..451992c 100644 --- a/anycast/api_on_prem_anycast_manager.go +++ b/anycast/api_on_prem_anycast_manager.go @@ -377,6 +377,16 @@ func (a *OnPremAnycastManagerAPIService) CreateAnycastConfigExecute(r OnPremAnyc if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -2040,6 +2050,16 @@ func (a *OnPremAnycastManagerAPIService) UpdateAnycastConfigExecute(r OnPremAnyc if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/fw/api/openapi.yaml b/fw/api/openapi.yaml index 9e47966..fec85c4 100644 --- a/fw/api/openapi.yaml +++ b/fw/api/openapi.yaml @@ -617,6 +617,7 @@ paths: summary: Create Application Filter. tags: - application_filters + x-sdk-default-tags: true x-codegen-request-body-name: body /application_filters/{id}: delete: @@ -750,6 +751,7 @@ paths: summary: Update Application Filter. tags: - application_filters + x-sdk-default-tags: true x-codegen-request-body-name: body /category_filters: delete: @@ -948,6 +950,7 @@ paths: summary: Create Category Filter. tags: - category_filters + x-sdk-default-tags: true x-codegen-request-body-name: body /category_filters/{id}: delete: @@ -1117,6 +1120,7 @@ paths: summary: Update Category Filter. tags: - category_filters + x-sdk-default-tags: true x-codegen-request-body-name: body /content_categories: get: @@ -1374,6 +1378,7 @@ paths: summary: Create Internal Domains. tags: - internal_domain_lists + x-sdk-default-tags: true x-codegen-request-body-name: body /internal_domain_lists/{id}: delete: @@ -1582,6 +1587,7 @@ paths: summary: Update Internal Domains. tags: - internal_domain_lists + x-sdk-default-tags: true x-codegen-request-body-name: body /internal_domain_lists/{id}/items: patch: @@ -1888,6 +1894,7 @@ paths: summary: Create Named List. tags: - named_lists + x-sdk-default-tags: true x-codegen-request-body-name: body /named_lists/{id}: delete: @@ -2094,6 +2101,7 @@ paths: summary: Patch TI List. tags: - named_lists + x-sdk-default-tags: true x-codegen-request-body-name: body put: description: | @@ -2168,6 +2176,7 @@ paths: summary: Update Named List. tags: - named_lists + x-sdk-default-tags: true x-codegen-request-body-name: body /named_lists/{id}/items: delete: @@ -3137,6 +3146,7 @@ paths: summary: Create Security Policy. tags: - security_policies + x-sdk-default-tags: true x-codegen-request-body-name: body /security_policies/{id}: delete: @@ -3320,6 +3330,7 @@ paths: summary: Update Security Policy. tags: - security_policies + x-sdk-default-tags: true x-codegen-request-body-name: body /security_policy_rules: get: diff --git a/fw/api_application_filters.go b/fw/api_application_filters.go index 3eed29b..164ea3f 100644 --- a/fw/api_application_filters.go +++ b/fw/api_application_filters.go @@ -208,6 +208,16 @@ func (a *ApplicationFiltersAPIService) CreateApplicationFilterExecute(r Applicat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -860,6 +870,16 @@ func (a *ApplicationFiltersAPIService) UpdateApplicationFilterExecute(r Applicat if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/fw/api_category_filters.go b/fw/api_category_filters.go index cd9ce91..bbac0a2 100644 --- a/fw/api_category_filters.go +++ b/fw/api_category_filters.go @@ -216,6 +216,16 @@ func (a *CategoryFiltersAPIService) CreateCategoryFilterExecute(r CategoryFilter if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -901,6 +911,16 @@ func (a *CategoryFiltersAPIService) UpdateCategoryFilterExecute(r CategoryFilter if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/fw/api_internal_domain_lists.go b/fw/api_internal_domain_lists.go index 78cf5a5..09d3b6b 100644 --- a/fw/api_internal_domain_lists.go +++ b/fw/api_internal_domain_lists.go @@ -258,6 +258,16 @@ func (a *InternalDomainListsAPIService) CreateInternalDomainsExecute(r InternalD if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1150,6 +1160,16 @@ func (a *InternalDomainListsAPIService) UpdateInternalDomainsExecute(r InternalD if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/fw/api_named_lists.go b/fw/api_named_lists.go index e570566..84c83a5 100644 --- a/fw/api_named_lists.go +++ b/fw/api_named_lists.go @@ -272,6 +272,16 @@ func (a *NamedListsAPIService) CreateNamedListExecute(r NamedListsAPICreateNamed if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1296,6 +1306,16 @@ func (a *NamedListsAPIService) UpdateNamedListExecute(r NamedListsAPIUpdateNamed if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -1452,6 +1472,16 @@ func (a *NamedListsAPIService) UpdateNamedListPartialExecute(r NamedListsAPIUpda if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/fw/api_security_policies.go b/fw/api_security_policies.go index 3065291..b30dee3 100644 --- a/fw/api_security_policies.go +++ b/fw/api_security_policies.go @@ -220,6 +220,16 @@ func (a *SecurityPoliciesAPIService) CreateSecurityPolicyExecute(r SecurityPolic if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) @@ -927,6 +937,16 @@ func (a *SecurityPoliciesAPIService) UpdateSecurityPolicyExecute(r SecurityPolic if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/ipam/api/openapi.yaml b/ipam/api/openapi.yaml index 240f1d7..fb7ea06 100644 --- a/ipam/api/openapi.yaml +++ b/ipam/api/openapi.yaml @@ -663,7 +663,6 @@ paths: summary: Retrieve the HA group. tags: - ha_group - x-sdk-default-tags: true patch: description: |- Use this method to update an __HAGroup__ object. @@ -692,6 +691,7 @@ paths: summary: Update the HA group. tags: - ha_group + x-sdk-default-tags: true x-codegen-request-body-name: body /dhcp/hardware_filter: get: @@ -2732,6 +2732,7 @@ paths: summary: Create the Next Available Address Block object. tags: - address_block + x-sdk-default-tags: true /ipam/address_block/{id}/nextavailableip: get: description: |- @@ -2815,6 +2816,7 @@ paths: summary: Allocate the next available IP address. tags: - address_block + x-sdk-default-tags: true /ipam/address_block/{id}/nextavailablesubnet: get: description: |- @@ -2918,6 +2920,7 @@ paths: summary: Create the Next Available Subnet object. tags: - address_block + x-sdk-default-tags: true /ipam/asm: get: description: |- @@ -3991,6 +3994,7 @@ paths: summary: Allocate the next available IP address. tags: - range + x-sdk-default-tags: true /ipam/subnet: get: description: |- @@ -4359,6 +4363,7 @@ paths: summary: Allocate the next available IP address. tags: - subnet + x-sdk-default-tags: true components: schemas: InheritedDHCPConfigFilterList: diff --git a/ipam/api_ha_group.go b/ipam/api_ha_group.go index 02453ce..1f0c59d 100644 --- a/ipam/api_ha_group.go +++ b/ipam/api_ha_group.go @@ -683,6 +683,16 @@ func (a *HaGroupAPIService) UpdateExecute(r HaGroupAPIUpdateRequest) (*UpdateHAG if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) diff --git a/keys/api/openapi.yaml b/keys/api/openapi.yaml index bfbe6ff..03aa764 100644 --- a/keys/api/openapi.yaml +++ b/keys/api/openapi.yaml @@ -219,6 +219,7 @@ paths: summary: Update the Kerberos key. tags: - kerberos + x-sdk-default-tags: true x-codegen-request-body-name: body /keys/tsig: get: diff --git a/keys/api_kerberos.go b/keys/api_kerberos.go index e4428ef..df38798 100644 --- a/keys/api_kerberos.go +++ b/keys/api_kerberos.go @@ -534,6 +534,16 @@ func (a *KerberosAPIService) UpdateExecute(r KerberosAPIUpdateRequest) (*UpdateK if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + if len(a.Client.Cfg.DefaultTags) > 0 && r.body != nil { + if r.body.Tags == nil { + r.body.Tags = make(map[string]interface{}) + } + for k, v := range a.Client.Cfg.DefaultTags { + if _, ok := r.body.Tags[k]; !ok { + r.body.Tags[k] = v + } + } + } // body params localVarPostBody = r.body req, err := a.Client.PrepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles)