From ae042031c5e603abe4022989c8891d17843d813f Mon Sep 17 00:00:00 2001 From: Vikrant Balyan Date: Fri, 6 May 2022 15:21:56 +0530 Subject: [PATCH] refreshing sdk for intersight version 6207 (#13) --- api_sdwan.go | 4249 ----------------- docs/ComputeBiosPostPolicy.md | 134 - docs/ComputeBiosPostPolicyAllOf.md | 134 - docs/ComputeBiosPostPolicyList.md | 92 - docs/ComputeBiosPostPolicyListAllOf.md | 92 - docs/ComputeBiosPostPolicyResponse.md | 113 - docs/FirmwareIncludeComponentListType.md | 144 - docs/FirmwareIncludeComponentListTypeAllOf.md | 144 - docs/SdwanApi.md | 1752 ------- docs/SdwanNetworkConfigurationType.md | 150 - docs/SdwanNetworkConfigurationTypeAllOf.md | 150 - docs/SdwanProfile.md | 186 - docs/SdwanProfileAllOf.md | 186 - docs/SdwanProfileList.md | 92 - docs/SdwanProfileListAllOf.md | 92 - docs/SdwanProfileRelationship.md | 150 - docs/SdwanProfileResponse.md | 113 - docs/SdwanRouterNode.md | 300 -- docs/SdwanRouterNodeAllOf.md | 300 -- docs/SdwanRouterNodeList.md | 92 - docs/SdwanRouterNodeListAllOf.md | 92 - docs/SdwanRouterNodeRelationship.md | 150 - docs/SdwanRouterNodeResponse.md | 113 - docs/SdwanRouterPolicy.md | 238 - docs/SdwanRouterPolicyAllOf.md | 238 - docs/SdwanRouterPolicyList.md | 92 - docs/SdwanRouterPolicyListAllOf.md | 92 - docs/SdwanRouterPolicyRelationship.md | 150 - docs/SdwanRouterPolicyResponse.md | 113 - docs/SdwanTemplateInputsType.md | 254 - docs/SdwanTemplateInputsTypeAllOf.md | 254 - docs/SdwanVmanageAccountPolicy.md | 264 - docs/SdwanVmanageAccountPolicyAllOf.md | 264 - docs/SdwanVmanageAccountPolicyList.md | 92 - docs/SdwanVmanageAccountPolicyListAllOf.md | 92 - docs/SdwanVmanageAccountPolicyRelationship.md | 150 - docs/SdwanVmanageAccountPolicyResponse.md | 113 - docs/StorageInitiator.md | 30 - go.mod | 4 +- go.sum | 357 ++ model_compute_bios_post_policy.go | 303 -- model_compute_bios_post_policy_all_of.go | 246 - model_compute_bios_post_policy_list.go | 234 - model_compute_bios_post_policy_list_all_of.go | 181 - model_compute_bios_post_policy_response.go | 188 - model_firmware_include_component_list_type.go | 302 -- ...ware_include_component_list_type_all_of.go | 246 - model_sdwan_network_configuration_type.go | 349 -- ...sdwan_network_configuration_type_all_of.go | 288 -- model_sdwan_profile.go | 385 -- model_sdwan_profile_all_of.go | 320 -- model_sdwan_profile_list.go | 234 - model_sdwan_profile_list_all_of.go | 181 - model_sdwan_profile_relationship.go | 141 - model_sdwan_profile_response.go | 188 - model_sdwan_router_node.go | 542 --- model_sdwan_router_node_all_of.go | 471 -- model_sdwan_router_node_list.go | 234 - model_sdwan_router_node_list_all_of.go | 181 - model_sdwan_router_node_relationship.go | 141 - model_sdwan_router_node_response.go | 188 - model_sdwan_router_policy.go | 477 -- model_sdwan_router_policy_all_of.go | 409 -- model_sdwan_router_policy_list.go | 234 - model_sdwan_router_policy_list_all_of.go | 181 - model_sdwan_router_policy_relationship.go | 141 - model_sdwan_router_policy_response.go | 188 - model_sdwan_template_inputs_type.go | 521 -- model_sdwan_template_inputs_type_all_of.go | 448 -- model_sdwan_vmanage_account_policy.go | 512 -- model_sdwan_vmanage_account_policy_all_of.go | 440 -- model_sdwan_vmanage_account_policy_list.go | 234 - ...dwan_vmanage_account_policy_list_all_of.go | 181 - ...wan_vmanage_account_policy_relationship.go | 141 - ...l_sdwan_vmanage_account_policy_response.go | 188 - model_storage_initiator.go | 152 - 76 files changed, 358 insertions(+), 21449 deletions(-) delete mode 100644 api_sdwan.go delete mode 100644 docs/ComputeBiosPostPolicy.md delete mode 100644 docs/ComputeBiosPostPolicyAllOf.md delete mode 100644 docs/ComputeBiosPostPolicyList.md delete mode 100644 docs/ComputeBiosPostPolicyListAllOf.md delete mode 100644 docs/ComputeBiosPostPolicyResponse.md delete mode 100644 docs/FirmwareIncludeComponentListType.md delete mode 100644 docs/FirmwareIncludeComponentListTypeAllOf.md delete mode 100644 docs/SdwanApi.md delete mode 100644 docs/SdwanNetworkConfigurationType.md delete mode 100644 docs/SdwanNetworkConfigurationTypeAllOf.md delete mode 100644 docs/SdwanProfile.md delete mode 100644 docs/SdwanProfileAllOf.md delete mode 100644 docs/SdwanProfileList.md delete mode 100644 docs/SdwanProfileListAllOf.md delete mode 100644 docs/SdwanProfileRelationship.md delete mode 100644 docs/SdwanProfileResponse.md delete mode 100644 docs/SdwanRouterNode.md delete mode 100644 docs/SdwanRouterNodeAllOf.md delete mode 100644 docs/SdwanRouterNodeList.md delete mode 100644 docs/SdwanRouterNodeListAllOf.md delete mode 100644 docs/SdwanRouterNodeRelationship.md delete mode 100644 docs/SdwanRouterNodeResponse.md delete mode 100644 docs/SdwanRouterPolicy.md delete mode 100644 docs/SdwanRouterPolicyAllOf.md delete mode 100644 docs/SdwanRouterPolicyList.md delete mode 100644 docs/SdwanRouterPolicyListAllOf.md delete mode 100644 docs/SdwanRouterPolicyRelationship.md delete mode 100644 docs/SdwanRouterPolicyResponse.md delete mode 100644 docs/SdwanTemplateInputsType.md delete mode 100644 docs/SdwanTemplateInputsTypeAllOf.md delete mode 100644 docs/SdwanVmanageAccountPolicy.md delete mode 100644 docs/SdwanVmanageAccountPolicyAllOf.md delete mode 100644 docs/SdwanVmanageAccountPolicyList.md delete mode 100644 docs/SdwanVmanageAccountPolicyListAllOf.md delete mode 100644 docs/SdwanVmanageAccountPolicyRelationship.md delete mode 100644 docs/SdwanVmanageAccountPolicyResponse.md delete mode 100644 docs/StorageInitiator.md delete mode 100644 model_compute_bios_post_policy.go delete mode 100644 model_compute_bios_post_policy_all_of.go delete mode 100644 model_compute_bios_post_policy_list.go delete mode 100644 model_compute_bios_post_policy_list_all_of.go delete mode 100644 model_compute_bios_post_policy_response.go delete mode 100644 model_firmware_include_component_list_type.go delete mode 100644 model_firmware_include_component_list_type_all_of.go delete mode 100644 model_sdwan_network_configuration_type.go delete mode 100644 model_sdwan_network_configuration_type_all_of.go delete mode 100644 model_sdwan_profile.go delete mode 100644 model_sdwan_profile_all_of.go delete mode 100644 model_sdwan_profile_list.go delete mode 100644 model_sdwan_profile_list_all_of.go delete mode 100644 model_sdwan_profile_relationship.go delete mode 100644 model_sdwan_profile_response.go delete mode 100644 model_sdwan_router_node.go delete mode 100644 model_sdwan_router_node_all_of.go delete mode 100644 model_sdwan_router_node_list.go delete mode 100644 model_sdwan_router_node_list_all_of.go delete mode 100644 model_sdwan_router_node_relationship.go delete mode 100644 model_sdwan_router_node_response.go delete mode 100644 model_sdwan_router_policy.go delete mode 100644 model_sdwan_router_policy_all_of.go delete mode 100644 model_sdwan_router_policy_list.go delete mode 100644 model_sdwan_router_policy_list_all_of.go delete mode 100644 model_sdwan_router_policy_relationship.go delete mode 100644 model_sdwan_router_policy_response.go delete mode 100644 model_sdwan_template_inputs_type.go delete mode 100644 model_sdwan_template_inputs_type_all_of.go delete mode 100644 model_sdwan_vmanage_account_policy.go delete mode 100644 model_sdwan_vmanage_account_policy_all_of.go delete mode 100644 model_sdwan_vmanage_account_policy_list.go delete mode 100644 model_sdwan_vmanage_account_policy_list_all_of.go delete mode 100644 model_sdwan_vmanage_account_policy_relationship.go delete mode 100644 model_sdwan_vmanage_account_policy_response.go delete mode 100644 model_storage_initiator.go diff --git a/api_sdwan.go b/api_sdwan.go deleted file mode 100644 index 58cd3b0563..0000000000 --- a/api_sdwan.go +++ /dev/null @@ -1,4249 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "bytes" - _context "context" - _ioutil "io/ioutil" - _nethttp "net/http" - _neturl "net/url" - "strings" -) - -// Linger please -var ( - _ _context.Context -) - -// SdwanApiService SdwanApi service -type SdwanApiService service - -type ApiCreateSdwanProfileRequest struct { - ctx _context.Context - ApiService *SdwanApiService - sdwanProfile *SdwanProfile - ifMatch *string - ifNoneMatch *string -} - -// The 'sdwan.Profile' resource to create. -func (r ApiCreateSdwanProfileRequest) SdwanProfile(sdwanProfile SdwanProfile) ApiCreateSdwanProfileRequest { - r.sdwanProfile = &sdwanProfile - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiCreateSdwanProfileRequest) IfMatch(ifMatch string) ApiCreateSdwanProfileRequest { - r.ifMatch = &ifMatch - return r -} -// For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. -func (r ApiCreateSdwanProfileRequest) IfNoneMatch(ifNoneMatch string) ApiCreateSdwanProfileRequest { - r.ifNoneMatch = &ifNoneMatch - return r -} - -func (r ApiCreateSdwanProfileRequest) Execute() (SdwanProfile, *_nethttp.Response, error) { - return r.ApiService.CreateSdwanProfileExecute(r) -} - -/* -CreateSdwanProfile Create a 'sdwan.Profile' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateSdwanProfileRequest -*/ -func (a *SdwanApiService) CreateSdwanProfile(ctx _context.Context) ApiCreateSdwanProfileRequest { - return ApiCreateSdwanProfileRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanProfile -func (a *SdwanApiService) CreateSdwanProfileExecute(r ApiCreateSdwanProfileRequest) (SdwanProfile, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanProfile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.CreateSdwanProfile") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/Profiles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanProfile == nil { - return localVarReturnValue, nil, reportError("sdwanProfile is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - if r.ifNoneMatch != nil { - localVarHeaderParams["If-None-Match"] = parameterToString(*r.ifNoneMatch, "") - } - // body params - localVarPostBody = r.sdwanProfile - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateSdwanRouterNodeRequest struct { - ctx _context.Context - ApiService *SdwanApiService - sdwanRouterNode *SdwanRouterNode - ifMatch *string - ifNoneMatch *string -} - -// The 'sdwan.RouterNode' resource to create. -func (r ApiCreateSdwanRouterNodeRequest) SdwanRouterNode(sdwanRouterNode SdwanRouterNode) ApiCreateSdwanRouterNodeRequest { - r.sdwanRouterNode = &sdwanRouterNode - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiCreateSdwanRouterNodeRequest) IfMatch(ifMatch string) ApiCreateSdwanRouterNodeRequest { - r.ifMatch = &ifMatch - return r -} -// For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. -func (r ApiCreateSdwanRouterNodeRequest) IfNoneMatch(ifNoneMatch string) ApiCreateSdwanRouterNodeRequest { - r.ifNoneMatch = &ifNoneMatch - return r -} - -func (r ApiCreateSdwanRouterNodeRequest) Execute() (SdwanRouterNode, *_nethttp.Response, error) { - return r.ApiService.CreateSdwanRouterNodeExecute(r) -} - -/* -CreateSdwanRouterNode Create a 'sdwan.RouterNode' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateSdwanRouterNodeRequest -*/ -func (a *SdwanApiService) CreateSdwanRouterNode(ctx _context.Context) ApiCreateSdwanRouterNodeRequest { - return ApiCreateSdwanRouterNodeRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanRouterNode -func (a *SdwanApiService) CreateSdwanRouterNodeExecute(r ApiCreateSdwanRouterNodeRequest) (SdwanRouterNode, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterNode - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.CreateSdwanRouterNode") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterNodes" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanRouterNode == nil { - return localVarReturnValue, nil, reportError("sdwanRouterNode is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - if r.ifNoneMatch != nil { - localVarHeaderParams["If-None-Match"] = parameterToString(*r.ifNoneMatch, "") - } - // body params - localVarPostBody = r.sdwanRouterNode - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateSdwanRouterPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - sdwanRouterPolicy *SdwanRouterPolicy - ifMatch *string - ifNoneMatch *string -} - -// The 'sdwan.RouterPolicy' resource to create. -func (r ApiCreateSdwanRouterPolicyRequest) SdwanRouterPolicy(sdwanRouterPolicy SdwanRouterPolicy) ApiCreateSdwanRouterPolicyRequest { - r.sdwanRouterPolicy = &sdwanRouterPolicy - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiCreateSdwanRouterPolicyRequest) IfMatch(ifMatch string) ApiCreateSdwanRouterPolicyRequest { - r.ifMatch = &ifMatch - return r -} -// For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. -func (r ApiCreateSdwanRouterPolicyRequest) IfNoneMatch(ifNoneMatch string) ApiCreateSdwanRouterPolicyRequest { - r.ifNoneMatch = &ifNoneMatch - return r -} - -func (r ApiCreateSdwanRouterPolicyRequest) Execute() (SdwanRouterPolicy, *_nethttp.Response, error) { - return r.ApiService.CreateSdwanRouterPolicyExecute(r) -} - -/* -CreateSdwanRouterPolicy Create a 'sdwan.RouterPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateSdwanRouterPolicyRequest -*/ -func (a *SdwanApiService) CreateSdwanRouterPolicy(ctx _context.Context) ApiCreateSdwanRouterPolicyRequest { - return ApiCreateSdwanRouterPolicyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanRouterPolicy -func (a *SdwanApiService) CreateSdwanRouterPolicyExecute(r ApiCreateSdwanRouterPolicyRequest) (SdwanRouterPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.CreateSdwanRouterPolicy") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterPolicies" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanRouterPolicy == nil { - return localVarReturnValue, nil, reportError("sdwanRouterPolicy is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - if r.ifNoneMatch != nil { - localVarHeaderParams["If-None-Match"] = parameterToString(*r.ifNoneMatch, "") - } - // body params - localVarPostBody = r.sdwanRouterPolicy - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCreateSdwanVmanageAccountPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - sdwanVmanageAccountPolicy *SdwanVmanageAccountPolicy - ifMatch *string - ifNoneMatch *string -} - -// The 'sdwan.VmanageAccountPolicy' resource to create. -func (r ApiCreateSdwanVmanageAccountPolicyRequest) SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy SdwanVmanageAccountPolicy) ApiCreateSdwanVmanageAccountPolicyRequest { - r.sdwanVmanageAccountPolicy = &sdwanVmanageAccountPolicy - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiCreateSdwanVmanageAccountPolicyRequest) IfMatch(ifMatch string) ApiCreateSdwanVmanageAccountPolicyRequest { - r.ifMatch = &ifMatch - return r -} -// For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. -func (r ApiCreateSdwanVmanageAccountPolicyRequest) IfNoneMatch(ifNoneMatch string) ApiCreateSdwanVmanageAccountPolicyRequest { - r.ifNoneMatch = &ifNoneMatch - return r -} - -func (r ApiCreateSdwanVmanageAccountPolicyRequest) Execute() (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - return r.ApiService.CreateSdwanVmanageAccountPolicyExecute(r) -} - -/* -CreateSdwanVmanageAccountPolicy Create a 'sdwan.VmanageAccountPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCreateSdwanVmanageAccountPolicyRequest -*/ -func (a *SdwanApiService) CreateSdwanVmanageAccountPolicy(ctx _context.Context) ApiCreateSdwanVmanageAccountPolicyRequest { - return ApiCreateSdwanVmanageAccountPolicyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanVmanageAccountPolicy -func (a *SdwanApiService) CreateSdwanVmanageAccountPolicyExecute(r ApiCreateSdwanVmanageAccountPolicyRequest) (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanVmanageAccountPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.CreateSdwanVmanageAccountPolicy") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/VmanageAccountPolicies" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanVmanageAccountPolicy == nil { - return localVarReturnValue, nil, reportError("sdwanVmanageAccountPolicy is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - if r.ifNoneMatch != nil { - localVarHeaderParams["If-None-Match"] = parameterToString(*r.ifNoneMatch, "") - } - // body params - localVarPostBody = r.sdwanVmanageAccountPolicy - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDeleteSdwanProfileRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiDeleteSdwanProfileRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.DeleteSdwanProfileExecute(r) -} - -/* -DeleteSdwanProfile Delete a 'sdwan.Profile' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiDeleteSdwanProfileRequest -*/ -func (a *SdwanApiService) DeleteSdwanProfile(ctx _context.Context, moid string) ApiDeleteSdwanProfileRequest { - return ApiDeleteSdwanProfileRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -func (a *SdwanApiService) DeleteSdwanProfileExecute(r ApiDeleteSdwanProfileRequest) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.DeleteSdwanProfile") - if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/Profiles/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteSdwanRouterNodeRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiDeleteSdwanRouterNodeRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.DeleteSdwanRouterNodeExecute(r) -} - -/* -DeleteSdwanRouterNode Delete a 'sdwan.RouterNode' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiDeleteSdwanRouterNodeRequest -*/ -func (a *SdwanApiService) DeleteSdwanRouterNode(ctx _context.Context, moid string) ApiDeleteSdwanRouterNodeRequest { - return ApiDeleteSdwanRouterNodeRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -func (a *SdwanApiService) DeleteSdwanRouterNodeExecute(r ApiDeleteSdwanRouterNodeRequest) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.DeleteSdwanRouterNode") - if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterNodes/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteSdwanRouterPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiDeleteSdwanRouterPolicyRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.DeleteSdwanRouterPolicyExecute(r) -} - -/* -DeleteSdwanRouterPolicy Delete a 'sdwan.RouterPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiDeleteSdwanRouterPolicyRequest -*/ -func (a *SdwanApiService) DeleteSdwanRouterPolicy(ctx _context.Context, moid string) ApiDeleteSdwanRouterPolicyRequest { - return ApiDeleteSdwanRouterPolicyRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -func (a *SdwanApiService) DeleteSdwanRouterPolicyExecute(r ApiDeleteSdwanRouterPolicyRequest) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.DeleteSdwanRouterPolicy") - if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDeleteSdwanVmanageAccountPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiDeleteSdwanVmanageAccountPolicyRequest) Execute() (*_nethttp.Response, error) { - return r.ApiService.DeleteSdwanVmanageAccountPolicyExecute(r) -} - -/* -DeleteSdwanVmanageAccountPolicy Delete a 'sdwan.VmanageAccountPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiDeleteSdwanVmanageAccountPolicyRequest -*/ -func (a *SdwanApiService) DeleteSdwanVmanageAccountPolicy(ctx _context.Context, moid string) ApiDeleteSdwanVmanageAccountPolicyRequest { - return ApiDeleteSdwanVmanageAccountPolicyRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -func (a *SdwanApiService) DeleteSdwanVmanageAccountPolicyExecute(r ApiDeleteSdwanVmanageAccountPolicyRequest) (*_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodDelete - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.DeleteSdwanVmanageAccountPolicy") - if err != nil { - return nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/VmanageAccountPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarHTTPResponse, newErr - } - newErr.model = v - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiGetSdwanProfileByMoidRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiGetSdwanProfileByMoidRequest) Execute() (SdwanProfile, *_nethttp.Response, error) { - return r.ApiService.GetSdwanProfileByMoidExecute(r) -} - -/* -GetSdwanProfileByMoid Read a 'sdwan.Profile' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiGetSdwanProfileByMoidRequest -*/ -func (a *SdwanApiService) GetSdwanProfileByMoid(ctx _context.Context, moid string) ApiGetSdwanProfileByMoidRequest { - return ApiGetSdwanProfileByMoidRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanProfile -func (a *SdwanApiService) GetSdwanProfileByMoidExecute(r ApiGetSdwanProfileByMoidRequest) (SdwanProfile, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanProfile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanProfileByMoid") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/Profiles/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSdwanProfileListRequest struct { - ctx _context.Context - ApiService *SdwanApiService - filter *string - orderby *string - top *int32 - skip *int32 - select_ *string - expand *string - apply *string - count *bool - inlinecount *string - at *string - tags *string -} - -// Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). -func (r ApiGetSdwanProfileListRequest) Filter(filter string) ApiGetSdwanProfileListRequest { - r.filter = &filter - return r -} -// Determines what properties are used to sort the collection of resources. -func (r ApiGetSdwanProfileListRequest) Orderby(orderby string) ApiGetSdwanProfileListRequest { - r.orderby = &orderby - return r -} -// Specifies the maximum number of resources to return in the response. -func (r ApiGetSdwanProfileListRequest) Top(top int32) ApiGetSdwanProfileListRequest { - r.top = &top - return r -} -// Specifies the number of resources to skip in the response. -func (r ApiGetSdwanProfileListRequest) Skip(skip int32) ApiGetSdwanProfileListRequest { - r.skip = &skip - return r -} -// Specifies a subset of properties to return. -func (r ApiGetSdwanProfileListRequest) Select_(select_ string) ApiGetSdwanProfileListRequest { - r.select_ = &select_ - return r -} -// Specify additional attributes or related resources to return in addition to the primary resources. -func (r ApiGetSdwanProfileListRequest) Expand(expand string) ApiGetSdwanProfileListRequest { - r.expand = &expand - return r -} -// Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. -func (r ApiGetSdwanProfileListRequest) Apply(apply string) ApiGetSdwanProfileListRequest { - r.apply = &apply - return r -} -// The $count query specifies the service should return the count of the matching resources, instead of returning the resources. -func (r ApiGetSdwanProfileListRequest) Count(count bool) ApiGetSdwanProfileListRequest { - r.count = &count - return r -} -// The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. -func (r ApiGetSdwanProfileListRequest) Inlinecount(inlinecount string) ApiGetSdwanProfileListRequest { - r.inlinecount = &inlinecount - return r -} -// Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. -func (r ApiGetSdwanProfileListRequest) At(at string) ApiGetSdwanProfileListRequest { - r.at = &at - return r -} -// The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. -func (r ApiGetSdwanProfileListRequest) Tags(tags string) ApiGetSdwanProfileListRequest { - r.tags = &tags - return r -} - -func (r ApiGetSdwanProfileListRequest) Execute() (SdwanProfileResponse, *_nethttp.Response, error) { - return r.ApiService.GetSdwanProfileListExecute(r) -} - -/* -GetSdwanProfileList Read a 'sdwan.Profile' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSdwanProfileListRequest -*/ -func (a *SdwanApiService) GetSdwanProfileList(ctx _context.Context) ApiGetSdwanProfileListRequest { - return ApiGetSdwanProfileListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanProfileResponse -func (a *SdwanApiService) GetSdwanProfileListExecute(r ApiGetSdwanProfileListRequest) (SdwanProfileResponse, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanProfileResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanProfileList") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/Profiles" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.filter != nil { - localVarQueryParams.Add("$filter", parameterToString(*r.filter, "")) - } - if r.orderby != nil { - localVarQueryParams.Add("$orderby", parameterToString(*r.orderby, "")) - } - if r.top != nil { - localVarQueryParams.Add("$top", parameterToString(*r.top, "")) - } - if r.skip != nil { - localVarQueryParams.Add("$skip", parameterToString(*r.skip, "")) - } - if r.select_ != nil { - localVarQueryParams.Add("$select", parameterToString(*r.select_, "")) - } - if r.expand != nil { - localVarQueryParams.Add("$expand", parameterToString(*r.expand, "")) - } - if r.apply != nil { - localVarQueryParams.Add("$apply", parameterToString(*r.apply, "")) - } - if r.count != nil { - localVarQueryParams.Add("$count", parameterToString(*r.count, "")) - } - if r.inlinecount != nil { - localVarQueryParams.Add("$inlinecount", parameterToString(*r.inlinecount, "")) - } - if r.at != nil { - localVarQueryParams.Add("at", parameterToString(*r.at, "")) - } - if r.tags != nil { - localVarQueryParams.Add("tags", parameterToString(*r.tags, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSdwanRouterNodeByMoidRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiGetSdwanRouterNodeByMoidRequest) Execute() (SdwanRouterNode, *_nethttp.Response, error) { - return r.ApiService.GetSdwanRouterNodeByMoidExecute(r) -} - -/* -GetSdwanRouterNodeByMoid Read a 'sdwan.RouterNode' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiGetSdwanRouterNodeByMoidRequest -*/ -func (a *SdwanApiService) GetSdwanRouterNodeByMoid(ctx _context.Context, moid string) ApiGetSdwanRouterNodeByMoidRequest { - return ApiGetSdwanRouterNodeByMoidRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanRouterNode -func (a *SdwanApiService) GetSdwanRouterNodeByMoidExecute(r ApiGetSdwanRouterNodeByMoidRequest) (SdwanRouterNode, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterNode - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanRouterNodeByMoid") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterNodes/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSdwanRouterNodeListRequest struct { - ctx _context.Context - ApiService *SdwanApiService - filter *string - orderby *string - top *int32 - skip *int32 - select_ *string - expand *string - apply *string - count *bool - inlinecount *string - at *string - tags *string -} - -// Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). -func (r ApiGetSdwanRouterNodeListRequest) Filter(filter string) ApiGetSdwanRouterNodeListRequest { - r.filter = &filter - return r -} -// Determines what properties are used to sort the collection of resources. -func (r ApiGetSdwanRouterNodeListRequest) Orderby(orderby string) ApiGetSdwanRouterNodeListRequest { - r.orderby = &orderby - return r -} -// Specifies the maximum number of resources to return in the response. -func (r ApiGetSdwanRouterNodeListRequest) Top(top int32) ApiGetSdwanRouterNodeListRequest { - r.top = &top - return r -} -// Specifies the number of resources to skip in the response. -func (r ApiGetSdwanRouterNodeListRequest) Skip(skip int32) ApiGetSdwanRouterNodeListRequest { - r.skip = &skip - return r -} -// Specifies a subset of properties to return. -func (r ApiGetSdwanRouterNodeListRequest) Select_(select_ string) ApiGetSdwanRouterNodeListRequest { - r.select_ = &select_ - return r -} -// Specify additional attributes or related resources to return in addition to the primary resources. -func (r ApiGetSdwanRouterNodeListRequest) Expand(expand string) ApiGetSdwanRouterNodeListRequest { - r.expand = &expand - return r -} -// Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. -func (r ApiGetSdwanRouterNodeListRequest) Apply(apply string) ApiGetSdwanRouterNodeListRequest { - r.apply = &apply - return r -} -// The $count query specifies the service should return the count of the matching resources, instead of returning the resources. -func (r ApiGetSdwanRouterNodeListRequest) Count(count bool) ApiGetSdwanRouterNodeListRequest { - r.count = &count - return r -} -// The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. -func (r ApiGetSdwanRouterNodeListRequest) Inlinecount(inlinecount string) ApiGetSdwanRouterNodeListRequest { - r.inlinecount = &inlinecount - return r -} -// Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. -func (r ApiGetSdwanRouterNodeListRequest) At(at string) ApiGetSdwanRouterNodeListRequest { - r.at = &at - return r -} -// The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. -func (r ApiGetSdwanRouterNodeListRequest) Tags(tags string) ApiGetSdwanRouterNodeListRequest { - r.tags = &tags - return r -} - -func (r ApiGetSdwanRouterNodeListRequest) Execute() (SdwanRouterNodeResponse, *_nethttp.Response, error) { - return r.ApiService.GetSdwanRouterNodeListExecute(r) -} - -/* -GetSdwanRouterNodeList Read a 'sdwan.RouterNode' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSdwanRouterNodeListRequest -*/ -func (a *SdwanApiService) GetSdwanRouterNodeList(ctx _context.Context) ApiGetSdwanRouterNodeListRequest { - return ApiGetSdwanRouterNodeListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanRouterNodeResponse -func (a *SdwanApiService) GetSdwanRouterNodeListExecute(r ApiGetSdwanRouterNodeListRequest) (SdwanRouterNodeResponse, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterNodeResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanRouterNodeList") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterNodes" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.filter != nil { - localVarQueryParams.Add("$filter", parameterToString(*r.filter, "")) - } - if r.orderby != nil { - localVarQueryParams.Add("$orderby", parameterToString(*r.orderby, "")) - } - if r.top != nil { - localVarQueryParams.Add("$top", parameterToString(*r.top, "")) - } - if r.skip != nil { - localVarQueryParams.Add("$skip", parameterToString(*r.skip, "")) - } - if r.select_ != nil { - localVarQueryParams.Add("$select", parameterToString(*r.select_, "")) - } - if r.expand != nil { - localVarQueryParams.Add("$expand", parameterToString(*r.expand, "")) - } - if r.apply != nil { - localVarQueryParams.Add("$apply", parameterToString(*r.apply, "")) - } - if r.count != nil { - localVarQueryParams.Add("$count", parameterToString(*r.count, "")) - } - if r.inlinecount != nil { - localVarQueryParams.Add("$inlinecount", parameterToString(*r.inlinecount, "")) - } - if r.at != nil { - localVarQueryParams.Add("at", parameterToString(*r.at, "")) - } - if r.tags != nil { - localVarQueryParams.Add("tags", parameterToString(*r.tags, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSdwanRouterPolicyByMoidRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiGetSdwanRouterPolicyByMoidRequest) Execute() (SdwanRouterPolicy, *_nethttp.Response, error) { - return r.ApiService.GetSdwanRouterPolicyByMoidExecute(r) -} - -/* -GetSdwanRouterPolicyByMoid Read a 'sdwan.RouterPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiGetSdwanRouterPolicyByMoidRequest -*/ -func (a *SdwanApiService) GetSdwanRouterPolicyByMoid(ctx _context.Context, moid string) ApiGetSdwanRouterPolicyByMoidRequest { - return ApiGetSdwanRouterPolicyByMoidRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanRouterPolicy -func (a *SdwanApiService) GetSdwanRouterPolicyByMoidExecute(r ApiGetSdwanRouterPolicyByMoidRequest) (SdwanRouterPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanRouterPolicyByMoid") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSdwanRouterPolicyListRequest struct { - ctx _context.Context - ApiService *SdwanApiService - filter *string - orderby *string - top *int32 - skip *int32 - select_ *string - expand *string - apply *string - count *bool - inlinecount *string - at *string - tags *string -} - -// Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). -func (r ApiGetSdwanRouterPolicyListRequest) Filter(filter string) ApiGetSdwanRouterPolicyListRequest { - r.filter = &filter - return r -} -// Determines what properties are used to sort the collection of resources. -func (r ApiGetSdwanRouterPolicyListRequest) Orderby(orderby string) ApiGetSdwanRouterPolicyListRequest { - r.orderby = &orderby - return r -} -// Specifies the maximum number of resources to return in the response. -func (r ApiGetSdwanRouterPolicyListRequest) Top(top int32) ApiGetSdwanRouterPolicyListRequest { - r.top = &top - return r -} -// Specifies the number of resources to skip in the response. -func (r ApiGetSdwanRouterPolicyListRequest) Skip(skip int32) ApiGetSdwanRouterPolicyListRequest { - r.skip = &skip - return r -} -// Specifies a subset of properties to return. -func (r ApiGetSdwanRouterPolicyListRequest) Select_(select_ string) ApiGetSdwanRouterPolicyListRequest { - r.select_ = &select_ - return r -} -// Specify additional attributes or related resources to return in addition to the primary resources. -func (r ApiGetSdwanRouterPolicyListRequest) Expand(expand string) ApiGetSdwanRouterPolicyListRequest { - r.expand = &expand - return r -} -// Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. -func (r ApiGetSdwanRouterPolicyListRequest) Apply(apply string) ApiGetSdwanRouterPolicyListRequest { - r.apply = &apply - return r -} -// The $count query specifies the service should return the count of the matching resources, instead of returning the resources. -func (r ApiGetSdwanRouterPolicyListRequest) Count(count bool) ApiGetSdwanRouterPolicyListRequest { - r.count = &count - return r -} -// The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. -func (r ApiGetSdwanRouterPolicyListRequest) Inlinecount(inlinecount string) ApiGetSdwanRouterPolicyListRequest { - r.inlinecount = &inlinecount - return r -} -// Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. -func (r ApiGetSdwanRouterPolicyListRequest) At(at string) ApiGetSdwanRouterPolicyListRequest { - r.at = &at - return r -} -// The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. -func (r ApiGetSdwanRouterPolicyListRequest) Tags(tags string) ApiGetSdwanRouterPolicyListRequest { - r.tags = &tags - return r -} - -func (r ApiGetSdwanRouterPolicyListRequest) Execute() (SdwanRouterPolicyResponse, *_nethttp.Response, error) { - return r.ApiService.GetSdwanRouterPolicyListExecute(r) -} - -/* -GetSdwanRouterPolicyList Read a 'sdwan.RouterPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSdwanRouterPolicyListRequest -*/ -func (a *SdwanApiService) GetSdwanRouterPolicyList(ctx _context.Context) ApiGetSdwanRouterPolicyListRequest { - return ApiGetSdwanRouterPolicyListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanRouterPolicyResponse -func (a *SdwanApiService) GetSdwanRouterPolicyListExecute(r ApiGetSdwanRouterPolicyListRequest) (SdwanRouterPolicyResponse, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterPolicyResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanRouterPolicyList") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterPolicies" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.filter != nil { - localVarQueryParams.Add("$filter", parameterToString(*r.filter, "")) - } - if r.orderby != nil { - localVarQueryParams.Add("$orderby", parameterToString(*r.orderby, "")) - } - if r.top != nil { - localVarQueryParams.Add("$top", parameterToString(*r.top, "")) - } - if r.skip != nil { - localVarQueryParams.Add("$skip", parameterToString(*r.skip, "")) - } - if r.select_ != nil { - localVarQueryParams.Add("$select", parameterToString(*r.select_, "")) - } - if r.expand != nil { - localVarQueryParams.Add("$expand", parameterToString(*r.expand, "")) - } - if r.apply != nil { - localVarQueryParams.Add("$apply", parameterToString(*r.apply, "")) - } - if r.count != nil { - localVarQueryParams.Add("$count", parameterToString(*r.count, "")) - } - if r.inlinecount != nil { - localVarQueryParams.Add("$inlinecount", parameterToString(*r.inlinecount, "")) - } - if r.at != nil { - localVarQueryParams.Add("at", parameterToString(*r.at, "")) - } - if r.tags != nil { - localVarQueryParams.Add("tags", parameterToString(*r.tags, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSdwanVmanageAccountPolicyByMoidRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string -} - - -func (r ApiGetSdwanVmanageAccountPolicyByMoidRequest) Execute() (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - return r.ApiService.GetSdwanVmanageAccountPolicyByMoidExecute(r) -} - -/* -GetSdwanVmanageAccountPolicyByMoid Read a 'sdwan.VmanageAccountPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiGetSdwanVmanageAccountPolicyByMoidRequest -*/ -func (a *SdwanApiService) GetSdwanVmanageAccountPolicyByMoid(ctx _context.Context, moid string) ApiGetSdwanVmanageAccountPolicyByMoidRequest { - return ApiGetSdwanVmanageAccountPolicyByMoidRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanVmanageAccountPolicy -func (a *SdwanApiService) GetSdwanVmanageAccountPolicyByMoidExecute(r ApiGetSdwanVmanageAccountPolicyByMoidRequest) (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanVmanageAccountPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanVmanageAccountPolicyByMoid") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/VmanageAccountPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiGetSdwanVmanageAccountPolicyListRequest struct { - ctx _context.Context - ApiService *SdwanApiService - filter *string - orderby *string - top *int32 - skip *int32 - select_ *string - expand *string - apply *string - count *bool - inlinecount *string - at *string - tags *string -} - -// Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Filter(filter string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.filter = &filter - return r -} -// Determines what properties are used to sort the collection of resources. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Orderby(orderby string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.orderby = &orderby - return r -} -// Specifies the maximum number of resources to return in the response. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Top(top int32) ApiGetSdwanVmanageAccountPolicyListRequest { - r.top = &top - return r -} -// Specifies the number of resources to skip in the response. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Skip(skip int32) ApiGetSdwanVmanageAccountPolicyListRequest { - r.skip = &skip - return r -} -// Specifies a subset of properties to return. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Select_(select_ string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.select_ = &select_ - return r -} -// Specify additional attributes or related resources to return in addition to the primary resources. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Expand(expand string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.expand = &expand - return r -} -// Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Apply(apply string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.apply = &apply - return r -} -// The $count query specifies the service should return the count of the matching resources, instead of returning the resources. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Count(count bool) ApiGetSdwanVmanageAccountPolicyListRequest { - r.count = &count - return r -} -// The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Inlinecount(inlinecount string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.inlinecount = &inlinecount - return r -} -// Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) At(at string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.at = &at - return r -} -// The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Tags(tags string) ApiGetSdwanVmanageAccountPolicyListRequest { - r.tags = &tags - return r -} - -func (r ApiGetSdwanVmanageAccountPolicyListRequest) Execute() (SdwanVmanageAccountPolicyResponse, *_nethttp.Response, error) { - return r.ApiService.GetSdwanVmanageAccountPolicyListExecute(r) -} - -/* -GetSdwanVmanageAccountPolicyList Read a 'sdwan.VmanageAccountPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSdwanVmanageAccountPolicyListRequest -*/ -func (a *SdwanApiService) GetSdwanVmanageAccountPolicyList(ctx _context.Context) ApiGetSdwanVmanageAccountPolicyListRequest { - return ApiGetSdwanVmanageAccountPolicyListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return SdwanVmanageAccountPolicyResponse -func (a *SdwanApiService) GetSdwanVmanageAccountPolicyListExecute(r ApiGetSdwanVmanageAccountPolicyListRequest) (SdwanVmanageAccountPolicyResponse, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodGet - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanVmanageAccountPolicyResponse - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.GetSdwanVmanageAccountPolicyList") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/VmanageAccountPolicies" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - - if r.filter != nil { - localVarQueryParams.Add("$filter", parameterToString(*r.filter, "")) - } - if r.orderby != nil { - localVarQueryParams.Add("$orderby", parameterToString(*r.orderby, "")) - } - if r.top != nil { - localVarQueryParams.Add("$top", parameterToString(*r.top, "")) - } - if r.skip != nil { - localVarQueryParams.Add("$skip", parameterToString(*r.skip, "")) - } - if r.select_ != nil { - localVarQueryParams.Add("$select", parameterToString(*r.select_, "")) - } - if r.expand != nil { - localVarQueryParams.Add("$expand", parameterToString(*r.expand, "")) - } - if r.apply != nil { - localVarQueryParams.Add("$apply", parameterToString(*r.apply, "")) - } - if r.count != nil { - localVarQueryParams.Add("$count", parameterToString(*r.count, "")) - } - if r.inlinecount != nil { - localVarQueryParams.Add("$inlinecount", parameterToString(*r.inlinecount, "")) - } - if r.at != nil { - localVarQueryParams.Add("at", parameterToString(*r.at, "")) - } - if r.tags != nil { - localVarQueryParams.Add("tags", parameterToString(*r.tags, "")) - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json", "text/csv", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiPatchSdwanProfileRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanProfile *SdwanProfile - ifMatch *string -} - -// The 'sdwan.Profile' resource to update. -func (r ApiPatchSdwanProfileRequest) SdwanProfile(sdwanProfile SdwanProfile) ApiPatchSdwanProfileRequest { - r.sdwanProfile = &sdwanProfile - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiPatchSdwanProfileRequest) IfMatch(ifMatch string) ApiPatchSdwanProfileRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiPatchSdwanProfileRequest) Execute() (SdwanProfile, *_nethttp.Response, error) { - return r.ApiService.PatchSdwanProfileExecute(r) -} - -/* -PatchSdwanProfile Update a 'sdwan.Profile' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiPatchSdwanProfileRequest -*/ -func (a *SdwanApiService) PatchSdwanProfile(ctx _context.Context, moid string) ApiPatchSdwanProfileRequest { - return ApiPatchSdwanProfileRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanProfile -func (a *SdwanApiService) PatchSdwanProfileExecute(r ApiPatchSdwanProfileRequest) (SdwanProfile, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPatch - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanProfile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.PatchSdwanProfile") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/Profiles/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanProfile == nil { - return localVarReturnValue, nil, reportError("sdwanProfile is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanProfile - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiPatchSdwanRouterNodeRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanRouterNode *SdwanRouterNode - ifMatch *string -} - -// The 'sdwan.RouterNode' resource to update. -func (r ApiPatchSdwanRouterNodeRequest) SdwanRouterNode(sdwanRouterNode SdwanRouterNode) ApiPatchSdwanRouterNodeRequest { - r.sdwanRouterNode = &sdwanRouterNode - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiPatchSdwanRouterNodeRequest) IfMatch(ifMatch string) ApiPatchSdwanRouterNodeRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiPatchSdwanRouterNodeRequest) Execute() (SdwanRouterNode, *_nethttp.Response, error) { - return r.ApiService.PatchSdwanRouterNodeExecute(r) -} - -/* -PatchSdwanRouterNode Update a 'sdwan.RouterNode' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiPatchSdwanRouterNodeRequest -*/ -func (a *SdwanApiService) PatchSdwanRouterNode(ctx _context.Context, moid string) ApiPatchSdwanRouterNodeRequest { - return ApiPatchSdwanRouterNodeRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanRouterNode -func (a *SdwanApiService) PatchSdwanRouterNodeExecute(r ApiPatchSdwanRouterNodeRequest) (SdwanRouterNode, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPatch - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterNode - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.PatchSdwanRouterNode") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterNodes/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanRouterNode == nil { - return localVarReturnValue, nil, reportError("sdwanRouterNode is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanRouterNode - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiPatchSdwanRouterPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanRouterPolicy *SdwanRouterPolicy - ifMatch *string -} - -// The 'sdwan.RouterPolicy' resource to update. -func (r ApiPatchSdwanRouterPolicyRequest) SdwanRouterPolicy(sdwanRouterPolicy SdwanRouterPolicy) ApiPatchSdwanRouterPolicyRequest { - r.sdwanRouterPolicy = &sdwanRouterPolicy - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiPatchSdwanRouterPolicyRequest) IfMatch(ifMatch string) ApiPatchSdwanRouterPolicyRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiPatchSdwanRouterPolicyRequest) Execute() (SdwanRouterPolicy, *_nethttp.Response, error) { - return r.ApiService.PatchSdwanRouterPolicyExecute(r) -} - -/* -PatchSdwanRouterPolicy Update a 'sdwan.RouterPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiPatchSdwanRouterPolicyRequest -*/ -func (a *SdwanApiService) PatchSdwanRouterPolicy(ctx _context.Context, moid string) ApiPatchSdwanRouterPolicyRequest { - return ApiPatchSdwanRouterPolicyRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanRouterPolicy -func (a *SdwanApiService) PatchSdwanRouterPolicyExecute(r ApiPatchSdwanRouterPolicyRequest) (SdwanRouterPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPatch - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.PatchSdwanRouterPolicy") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanRouterPolicy == nil { - return localVarReturnValue, nil, reportError("sdwanRouterPolicy is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanRouterPolicy - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiPatchSdwanVmanageAccountPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanVmanageAccountPolicy *SdwanVmanageAccountPolicy - ifMatch *string -} - -// The 'sdwan.VmanageAccountPolicy' resource to update. -func (r ApiPatchSdwanVmanageAccountPolicyRequest) SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy SdwanVmanageAccountPolicy) ApiPatchSdwanVmanageAccountPolicyRequest { - r.sdwanVmanageAccountPolicy = &sdwanVmanageAccountPolicy - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiPatchSdwanVmanageAccountPolicyRequest) IfMatch(ifMatch string) ApiPatchSdwanVmanageAccountPolicyRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiPatchSdwanVmanageAccountPolicyRequest) Execute() (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - return r.ApiService.PatchSdwanVmanageAccountPolicyExecute(r) -} - -/* -PatchSdwanVmanageAccountPolicy Update a 'sdwan.VmanageAccountPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiPatchSdwanVmanageAccountPolicyRequest -*/ -func (a *SdwanApiService) PatchSdwanVmanageAccountPolicy(ctx _context.Context, moid string) ApiPatchSdwanVmanageAccountPolicyRequest { - return ApiPatchSdwanVmanageAccountPolicyRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanVmanageAccountPolicy -func (a *SdwanApiService) PatchSdwanVmanageAccountPolicyExecute(r ApiPatchSdwanVmanageAccountPolicyRequest) (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPatch - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanVmanageAccountPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.PatchSdwanVmanageAccountPolicy") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/VmanageAccountPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanVmanageAccountPolicy == nil { - return localVarReturnValue, nil, reportError("sdwanVmanageAccountPolicy is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanVmanageAccountPolicy - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateSdwanProfileRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanProfile *SdwanProfile - ifMatch *string -} - -// The 'sdwan.Profile' resource to update. -func (r ApiUpdateSdwanProfileRequest) SdwanProfile(sdwanProfile SdwanProfile) ApiUpdateSdwanProfileRequest { - r.sdwanProfile = &sdwanProfile - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiUpdateSdwanProfileRequest) IfMatch(ifMatch string) ApiUpdateSdwanProfileRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiUpdateSdwanProfileRequest) Execute() (SdwanProfile, *_nethttp.Response, error) { - return r.ApiService.UpdateSdwanProfileExecute(r) -} - -/* -UpdateSdwanProfile Update a 'sdwan.Profile' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiUpdateSdwanProfileRequest -*/ -func (a *SdwanApiService) UpdateSdwanProfile(ctx _context.Context, moid string) ApiUpdateSdwanProfileRequest { - return ApiUpdateSdwanProfileRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanProfile -func (a *SdwanApiService) UpdateSdwanProfileExecute(r ApiUpdateSdwanProfileRequest) (SdwanProfile, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanProfile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.UpdateSdwanProfile") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/Profiles/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanProfile == nil { - return localVarReturnValue, nil, reportError("sdwanProfile is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanProfile - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateSdwanRouterNodeRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanRouterNode *SdwanRouterNode - ifMatch *string -} - -// The 'sdwan.RouterNode' resource to update. -func (r ApiUpdateSdwanRouterNodeRequest) SdwanRouterNode(sdwanRouterNode SdwanRouterNode) ApiUpdateSdwanRouterNodeRequest { - r.sdwanRouterNode = &sdwanRouterNode - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiUpdateSdwanRouterNodeRequest) IfMatch(ifMatch string) ApiUpdateSdwanRouterNodeRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiUpdateSdwanRouterNodeRequest) Execute() (SdwanRouterNode, *_nethttp.Response, error) { - return r.ApiService.UpdateSdwanRouterNodeExecute(r) -} - -/* -UpdateSdwanRouterNode Update a 'sdwan.RouterNode' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiUpdateSdwanRouterNodeRequest -*/ -func (a *SdwanApiService) UpdateSdwanRouterNode(ctx _context.Context, moid string) ApiUpdateSdwanRouterNodeRequest { - return ApiUpdateSdwanRouterNodeRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanRouterNode -func (a *SdwanApiService) UpdateSdwanRouterNodeExecute(r ApiUpdateSdwanRouterNodeRequest) (SdwanRouterNode, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterNode - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.UpdateSdwanRouterNode") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterNodes/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanRouterNode == nil { - return localVarReturnValue, nil, reportError("sdwanRouterNode is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanRouterNode - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateSdwanRouterPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanRouterPolicy *SdwanRouterPolicy - ifMatch *string -} - -// The 'sdwan.RouterPolicy' resource to update. -func (r ApiUpdateSdwanRouterPolicyRequest) SdwanRouterPolicy(sdwanRouterPolicy SdwanRouterPolicy) ApiUpdateSdwanRouterPolicyRequest { - r.sdwanRouterPolicy = &sdwanRouterPolicy - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiUpdateSdwanRouterPolicyRequest) IfMatch(ifMatch string) ApiUpdateSdwanRouterPolicyRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiUpdateSdwanRouterPolicyRequest) Execute() (SdwanRouterPolicy, *_nethttp.Response, error) { - return r.ApiService.UpdateSdwanRouterPolicyExecute(r) -} - -/* -UpdateSdwanRouterPolicy Update a 'sdwan.RouterPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiUpdateSdwanRouterPolicyRequest -*/ -func (a *SdwanApiService) UpdateSdwanRouterPolicy(ctx _context.Context, moid string) ApiUpdateSdwanRouterPolicyRequest { - return ApiUpdateSdwanRouterPolicyRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanRouterPolicy -func (a *SdwanApiService) UpdateSdwanRouterPolicyExecute(r ApiUpdateSdwanRouterPolicyRequest) (SdwanRouterPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanRouterPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.UpdateSdwanRouterPolicy") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/RouterPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanRouterPolicy == nil { - return localVarReturnValue, nil, reportError("sdwanRouterPolicy is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanRouterPolicy - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiUpdateSdwanVmanageAccountPolicyRequest struct { - ctx _context.Context - ApiService *SdwanApiService - moid string - sdwanVmanageAccountPolicy *SdwanVmanageAccountPolicy - ifMatch *string -} - -// The 'sdwan.VmanageAccountPolicy' resource to update. -func (r ApiUpdateSdwanVmanageAccountPolicyRequest) SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy SdwanVmanageAccountPolicy) ApiUpdateSdwanVmanageAccountPolicyRequest { - r.sdwanVmanageAccountPolicy = &sdwanVmanageAccountPolicy - return r -} -// For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. -func (r ApiUpdateSdwanVmanageAccountPolicyRequest) IfMatch(ifMatch string) ApiUpdateSdwanVmanageAccountPolicyRequest { - r.ifMatch = &ifMatch - return r -} - -func (r ApiUpdateSdwanVmanageAccountPolicyRequest) Execute() (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - return r.ApiService.UpdateSdwanVmanageAccountPolicyExecute(r) -} - -/* -UpdateSdwanVmanageAccountPolicy Update a 'sdwan.VmanageAccountPolicy' resource. - - @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param moid The unique Moid identifier of a resource instance. - @return ApiUpdateSdwanVmanageAccountPolicyRequest -*/ -func (a *SdwanApiService) UpdateSdwanVmanageAccountPolicy(ctx _context.Context, moid string) ApiUpdateSdwanVmanageAccountPolicyRequest { - return ApiUpdateSdwanVmanageAccountPolicyRequest{ - ApiService: a, - ctx: ctx, - moid: moid, - } -} - -// Execute executes the request -// @return SdwanVmanageAccountPolicy -func (a *SdwanApiService) UpdateSdwanVmanageAccountPolicyExecute(r ApiUpdateSdwanVmanageAccountPolicyRequest) (SdwanVmanageAccountPolicy, *_nethttp.Response, error) { - var ( - localVarHTTPMethod = _nethttp.MethodPost - localVarPostBody interface{} - localVarFormFileName string - localVarFileName string - localVarFileBytes []byte - localVarReturnValue SdwanVmanageAccountPolicy - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SdwanApiService.UpdateSdwanVmanageAccountPolicy") - if err != nil { - return localVarReturnValue, nil, GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/v1/sdwan/VmanageAccountPolicies/{Moid}" - localVarPath = strings.Replace(localVarPath, "{"+"Moid"+"}", _neturl.PathEscape(parameterToString(r.moid, "")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := _neturl.Values{} - localVarFormParams := _neturl.Values{} - if r.sdwanVmanageAccountPolicy == nil { - return localVarReturnValue, nil, reportError("sdwanVmanageAccountPolicy is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "application/json-patch+json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ifMatch != nil { - localVarHeaderParams["If-Match"] = parameterToString(*r.ifMatch, "") - } - // body params - localVarPostBody = r.sdwanVmanageAccountPolicy - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := _ioutil.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = _ioutil.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 400 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 401 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 403 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - var v Error - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/docs/ComputeBiosPostPolicy.md b/docs/ComputeBiosPostPolicy.md deleted file mode 100644 index 38c4817aaf..0000000000 --- a/docs/ComputeBiosPostPolicy.md +++ /dev/null @@ -1,134 +0,0 @@ -# ComputeBiosPostPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "compute.BiosPostPolicy"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "compute.BiosPostPolicy"] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profiles** | Pointer to [**[]PolicyAbstractConfigProfileRelationship**](PolicyAbstractConfigProfileRelationship.md) | An array of relationships to policyAbstractConfigProfile resources. | [optional] - -## Methods - -### NewComputeBiosPostPolicy - -`func NewComputeBiosPostPolicy(classId string, objectType string, ) *ComputeBiosPostPolicy` - -NewComputeBiosPostPolicy instantiates a new ComputeBiosPostPolicy object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComputeBiosPostPolicyWithDefaults - -`func NewComputeBiosPostPolicyWithDefaults() *ComputeBiosPostPolicy` - -NewComputeBiosPostPolicyWithDefaults instantiates a new ComputeBiosPostPolicy object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *ComputeBiosPostPolicy) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *ComputeBiosPostPolicy) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *ComputeBiosPostPolicy) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *ComputeBiosPostPolicy) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *ComputeBiosPostPolicy) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *ComputeBiosPostPolicy) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetOrganization - -`func (o *ComputeBiosPostPolicy) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *ComputeBiosPostPolicy) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *ComputeBiosPostPolicy) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *ComputeBiosPostPolicy) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfiles - -`func (o *ComputeBiosPostPolicy) GetProfiles() []PolicyAbstractConfigProfileRelationship` - -GetProfiles returns the Profiles field if non-nil, zero value otherwise. - -### GetProfilesOk - -`func (o *ComputeBiosPostPolicy) GetProfilesOk() (*[]PolicyAbstractConfigProfileRelationship, bool)` - -GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfiles - -`func (o *ComputeBiosPostPolicy) SetProfiles(v []PolicyAbstractConfigProfileRelationship)` - -SetProfiles sets Profiles field to given value. - -### HasProfiles - -`func (o *ComputeBiosPostPolicy) HasProfiles() bool` - -HasProfiles returns a boolean if a field has been set. - -### SetProfilesNil - -`func (o *ComputeBiosPostPolicy) SetProfilesNil(b bool)` - - SetProfilesNil sets the value for Profiles to be an explicit nil - -### UnsetProfiles -`func (o *ComputeBiosPostPolicy) UnsetProfiles()` - -UnsetProfiles ensures that no value is present for Profiles, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ComputeBiosPostPolicyAllOf.md b/docs/ComputeBiosPostPolicyAllOf.md deleted file mode 100644 index 508f9bf5f2..0000000000 --- a/docs/ComputeBiosPostPolicyAllOf.md +++ /dev/null @@ -1,134 +0,0 @@ -# ComputeBiosPostPolicyAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "compute.BiosPostPolicy"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "compute.BiosPostPolicy"] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profiles** | Pointer to [**[]PolicyAbstractConfigProfileRelationship**](PolicyAbstractConfigProfileRelationship.md) | An array of relationships to policyAbstractConfigProfile resources. | [optional] - -## Methods - -### NewComputeBiosPostPolicyAllOf - -`func NewComputeBiosPostPolicyAllOf(classId string, objectType string, ) *ComputeBiosPostPolicyAllOf` - -NewComputeBiosPostPolicyAllOf instantiates a new ComputeBiosPostPolicyAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComputeBiosPostPolicyAllOfWithDefaults - -`func NewComputeBiosPostPolicyAllOfWithDefaults() *ComputeBiosPostPolicyAllOf` - -NewComputeBiosPostPolicyAllOfWithDefaults instantiates a new ComputeBiosPostPolicyAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *ComputeBiosPostPolicyAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *ComputeBiosPostPolicyAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *ComputeBiosPostPolicyAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *ComputeBiosPostPolicyAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *ComputeBiosPostPolicyAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *ComputeBiosPostPolicyAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetOrganization - -`func (o *ComputeBiosPostPolicyAllOf) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *ComputeBiosPostPolicyAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *ComputeBiosPostPolicyAllOf) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *ComputeBiosPostPolicyAllOf) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfiles - -`func (o *ComputeBiosPostPolicyAllOf) GetProfiles() []PolicyAbstractConfigProfileRelationship` - -GetProfiles returns the Profiles field if non-nil, zero value otherwise. - -### GetProfilesOk - -`func (o *ComputeBiosPostPolicyAllOf) GetProfilesOk() (*[]PolicyAbstractConfigProfileRelationship, bool)` - -GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfiles - -`func (o *ComputeBiosPostPolicyAllOf) SetProfiles(v []PolicyAbstractConfigProfileRelationship)` - -SetProfiles sets Profiles field to given value. - -### HasProfiles - -`func (o *ComputeBiosPostPolicyAllOf) HasProfiles() bool` - -HasProfiles returns a boolean if a field has been set. - -### SetProfilesNil - -`func (o *ComputeBiosPostPolicyAllOf) SetProfilesNil(b bool)` - - SetProfilesNil sets the value for Profiles to be an explicit nil - -### UnsetProfiles -`func (o *ComputeBiosPostPolicyAllOf) UnsetProfiles()` - -UnsetProfiles ensures that no value is present for Profiles, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ComputeBiosPostPolicyList.md b/docs/ComputeBiosPostPolicyList.md deleted file mode 100644 index 525c7d4573..0000000000 --- a/docs/ComputeBiosPostPolicyList.md +++ /dev/null @@ -1,92 +0,0 @@ -# ComputeBiosPostPolicyList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'compute.BiosPostPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]ComputeBiosPostPolicy**](ComputeBiosPostPolicy.md) | The array of 'compute.BiosPostPolicy' resources matching the request. | [optional] - -## Methods - -### NewComputeBiosPostPolicyList - -`func NewComputeBiosPostPolicyList() *ComputeBiosPostPolicyList` - -NewComputeBiosPostPolicyList instantiates a new ComputeBiosPostPolicyList object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComputeBiosPostPolicyListWithDefaults - -`func NewComputeBiosPostPolicyListWithDefaults() *ComputeBiosPostPolicyList` - -NewComputeBiosPostPolicyListWithDefaults instantiates a new ComputeBiosPostPolicyList object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *ComputeBiosPostPolicyList) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *ComputeBiosPostPolicyList) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *ComputeBiosPostPolicyList) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *ComputeBiosPostPolicyList) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *ComputeBiosPostPolicyList) GetResults() []ComputeBiosPostPolicy` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *ComputeBiosPostPolicyList) GetResultsOk() (*[]ComputeBiosPostPolicy, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *ComputeBiosPostPolicyList) SetResults(v []ComputeBiosPostPolicy)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *ComputeBiosPostPolicyList) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *ComputeBiosPostPolicyList) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *ComputeBiosPostPolicyList) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ComputeBiosPostPolicyListAllOf.md b/docs/ComputeBiosPostPolicyListAllOf.md deleted file mode 100644 index 6e19792a94..0000000000 --- a/docs/ComputeBiosPostPolicyListAllOf.md +++ /dev/null @@ -1,92 +0,0 @@ -# ComputeBiosPostPolicyListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'compute.BiosPostPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]ComputeBiosPostPolicy**](ComputeBiosPostPolicy.md) | The array of 'compute.BiosPostPolicy' resources matching the request. | [optional] - -## Methods - -### NewComputeBiosPostPolicyListAllOf - -`func NewComputeBiosPostPolicyListAllOf() *ComputeBiosPostPolicyListAllOf` - -NewComputeBiosPostPolicyListAllOf instantiates a new ComputeBiosPostPolicyListAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComputeBiosPostPolicyListAllOfWithDefaults - -`func NewComputeBiosPostPolicyListAllOfWithDefaults() *ComputeBiosPostPolicyListAllOf` - -NewComputeBiosPostPolicyListAllOfWithDefaults instantiates a new ComputeBiosPostPolicyListAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *ComputeBiosPostPolicyListAllOf) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *ComputeBiosPostPolicyListAllOf) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *ComputeBiosPostPolicyListAllOf) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *ComputeBiosPostPolicyListAllOf) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *ComputeBiosPostPolicyListAllOf) GetResults() []ComputeBiosPostPolicy` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *ComputeBiosPostPolicyListAllOf) GetResultsOk() (*[]ComputeBiosPostPolicy, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *ComputeBiosPostPolicyListAllOf) SetResults(v []ComputeBiosPostPolicy)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *ComputeBiosPostPolicyListAllOf) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *ComputeBiosPostPolicyListAllOf) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *ComputeBiosPostPolicyListAllOf) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ComputeBiosPostPolicyResponse.md b/docs/ComputeBiosPostPolicyResponse.md deleted file mode 100644 index ef3719fc3c..0000000000 --- a/docs/ComputeBiosPostPolicyResponse.md +++ /dev/null @@ -1,113 +0,0 @@ -# ComputeBiosPostPolicyResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ObjectType** | **string** | A discriminator value to disambiguate the schema of a HTTP GET response body. | -**Count** | Pointer to **int32** | The total number of 'compute.BiosPostPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]MoTagKeySummary**](MoTagKeySummary.md) | | [optional] - -## Methods - -### NewComputeBiosPostPolicyResponse - -`func NewComputeBiosPostPolicyResponse(objectType string, ) *ComputeBiosPostPolicyResponse` - -NewComputeBiosPostPolicyResponse instantiates a new ComputeBiosPostPolicyResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewComputeBiosPostPolicyResponseWithDefaults - -`func NewComputeBiosPostPolicyResponseWithDefaults() *ComputeBiosPostPolicyResponse` - -NewComputeBiosPostPolicyResponseWithDefaults instantiates a new ComputeBiosPostPolicyResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetObjectType - -`func (o *ComputeBiosPostPolicyResponse) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *ComputeBiosPostPolicyResponse) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *ComputeBiosPostPolicyResponse) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetCount - -`func (o *ComputeBiosPostPolicyResponse) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *ComputeBiosPostPolicyResponse) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *ComputeBiosPostPolicyResponse) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *ComputeBiosPostPolicyResponse) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *ComputeBiosPostPolicyResponse) GetResults() []MoTagKeySummary` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *ComputeBiosPostPolicyResponse) GetResultsOk() (*[]MoTagKeySummary, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *ComputeBiosPostPolicyResponse) SetResults(v []MoTagKeySummary)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *ComputeBiosPostPolicyResponse) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *ComputeBiosPostPolicyResponse) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *ComputeBiosPostPolicyResponse) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FirmwareIncludeComponentListType.md b/docs/FirmwareIncludeComponentListType.md deleted file mode 100644 index 0675bf2d8f..0000000000 --- a/docs/FirmwareIncludeComponentListType.md +++ /dev/null @@ -1,144 +0,0 @@ -# FirmwareIncludeComponentListType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "firmware.IncludeComponentListType"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "firmware.IncludeComponentListType"] -**IncludeLocalDiskList** | Pointer to **[]string** | | [optional] -**IncludeStorageControllerList** | Pointer to **[]string** | | [optional] - -## Methods - -### NewFirmwareIncludeComponentListType - -`func NewFirmwareIncludeComponentListType(classId string, objectType string, ) *FirmwareIncludeComponentListType` - -NewFirmwareIncludeComponentListType instantiates a new FirmwareIncludeComponentListType object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFirmwareIncludeComponentListTypeWithDefaults - -`func NewFirmwareIncludeComponentListTypeWithDefaults() *FirmwareIncludeComponentListType` - -NewFirmwareIncludeComponentListTypeWithDefaults instantiates a new FirmwareIncludeComponentListType object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *FirmwareIncludeComponentListType) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *FirmwareIncludeComponentListType) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *FirmwareIncludeComponentListType) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *FirmwareIncludeComponentListType) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *FirmwareIncludeComponentListType) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *FirmwareIncludeComponentListType) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetIncludeLocalDiskList - -`func (o *FirmwareIncludeComponentListType) GetIncludeLocalDiskList() []string` - -GetIncludeLocalDiskList returns the IncludeLocalDiskList field if non-nil, zero value otherwise. - -### GetIncludeLocalDiskListOk - -`func (o *FirmwareIncludeComponentListType) GetIncludeLocalDiskListOk() (*[]string, bool)` - -GetIncludeLocalDiskListOk returns a tuple with the IncludeLocalDiskList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludeLocalDiskList - -`func (o *FirmwareIncludeComponentListType) SetIncludeLocalDiskList(v []string)` - -SetIncludeLocalDiskList sets IncludeLocalDiskList field to given value. - -### HasIncludeLocalDiskList - -`func (o *FirmwareIncludeComponentListType) HasIncludeLocalDiskList() bool` - -HasIncludeLocalDiskList returns a boolean if a field has been set. - -### SetIncludeLocalDiskListNil - -`func (o *FirmwareIncludeComponentListType) SetIncludeLocalDiskListNil(b bool)` - - SetIncludeLocalDiskListNil sets the value for IncludeLocalDiskList to be an explicit nil - -### UnsetIncludeLocalDiskList -`func (o *FirmwareIncludeComponentListType) UnsetIncludeLocalDiskList()` - -UnsetIncludeLocalDiskList ensures that no value is present for IncludeLocalDiskList, not even an explicit nil -### GetIncludeStorageControllerList - -`func (o *FirmwareIncludeComponentListType) GetIncludeStorageControllerList() []string` - -GetIncludeStorageControllerList returns the IncludeStorageControllerList field if non-nil, zero value otherwise. - -### GetIncludeStorageControllerListOk - -`func (o *FirmwareIncludeComponentListType) GetIncludeStorageControllerListOk() (*[]string, bool)` - -GetIncludeStorageControllerListOk returns a tuple with the IncludeStorageControllerList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludeStorageControllerList - -`func (o *FirmwareIncludeComponentListType) SetIncludeStorageControllerList(v []string)` - -SetIncludeStorageControllerList sets IncludeStorageControllerList field to given value. - -### HasIncludeStorageControllerList - -`func (o *FirmwareIncludeComponentListType) HasIncludeStorageControllerList() bool` - -HasIncludeStorageControllerList returns a boolean if a field has been set. - -### SetIncludeStorageControllerListNil - -`func (o *FirmwareIncludeComponentListType) SetIncludeStorageControllerListNil(b bool)` - - SetIncludeStorageControllerListNil sets the value for IncludeStorageControllerList to be an explicit nil - -### UnsetIncludeStorageControllerList -`func (o *FirmwareIncludeComponentListType) UnsetIncludeStorageControllerList()` - -UnsetIncludeStorageControllerList ensures that no value is present for IncludeStorageControllerList, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/FirmwareIncludeComponentListTypeAllOf.md b/docs/FirmwareIncludeComponentListTypeAllOf.md deleted file mode 100644 index 5558196e7f..0000000000 --- a/docs/FirmwareIncludeComponentListTypeAllOf.md +++ /dev/null @@ -1,144 +0,0 @@ -# FirmwareIncludeComponentListTypeAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "firmware.IncludeComponentListType"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "firmware.IncludeComponentListType"] -**IncludeLocalDiskList** | Pointer to **[]string** | | [optional] -**IncludeStorageControllerList** | Pointer to **[]string** | | [optional] - -## Methods - -### NewFirmwareIncludeComponentListTypeAllOf - -`func NewFirmwareIncludeComponentListTypeAllOf(classId string, objectType string, ) *FirmwareIncludeComponentListTypeAllOf` - -NewFirmwareIncludeComponentListTypeAllOf instantiates a new FirmwareIncludeComponentListTypeAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewFirmwareIncludeComponentListTypeAllOfWithDefaults - -`func NewFirmwareIncludeComponentListTypeAllOfWithDefaults() *FirmwareIncludeComponentListTypeAllOf` - -NewFirmwareIncludeComponentListTypeAllOfWithDefaults instantiates a new FirmwareIncludeComponentListTypeAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *FirmwareIncludeComponentListTypeAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *FirmwareIncludeComponentListTypeAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetIncludeLocalDiskList - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeLocalDiskList() []string` - -GetIncludeLocalDiskList returns the IncludeLocalDiskList field if non-nil, zero value otherwise. - -### GetIncludeLocalDiskListOk - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeLocalDiskListOk() (*[]string, bool)` - -GetIncludeLocalDiskListOk returns a tuple with the IncludeLocalDiskList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludeLocalDiskList - -`func (o *FirmwareIncludeComponentListTypeAllOf) SetIncludeLocalDiskList(v []string)` - -SetIncludeLocalDiskList sets IncludeLocalDiskList field to given value. - -### HasIncludeLocalDiskList - -`func (o *FirmwareIncludeComponentListTypeAllOf) HasIncludeLocalDiskList() bool` - -HasIncludeLocalDiskList returns a boolean if a field has been set. - -### SetIncludeLocalDiskListNil - -`func (o *FirmwareIncludeComponentListTypeAllOf) SetIncludeLocalDiskListNil(b bool)` - - SetIncludeLocalDiskListNil sets the value for IncludeLocalDiskList to be an explicit nil - -### UnsetIncludeLocalDiskList -`func (o *FirmwareIncludeComponentListTypeAllOf) UnsetIncludeLocalDiskList()` - -UnsetIncludeLocalDiskList ensures that no value is present for IncludeLocalDiskList, not even an explicit nil -### GetIncludeStorageControllerList - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeStorageControllerList() []string` - -GetIncludeStorageControllerList returns the IncludeStorageControllerList field if non-nil, zero value otherwise. - -### GetIncludeStorageControllerListOk - -`func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeStorageControllerListOk() (*[]string, bool)` - -GetIncludeStorageControllerListOk returns a tuple with the IncludeStorageControllerList field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIncludeStorageControllerList - -`func (o *FirmwareIncludeComponentListTypeAllOf) SetIncludeStorageControllerList(v []string)` - -SetIncludeStorageControllerList sets IncludeStorageControllerList field to given value. - -### HasIncludeStorageControllerList - -`func (o *FirmwareIncludeComponentListTypeAllOf) HasIncludeStorageControllerList() bool` - -HasIncludeStorageControllerList returns a boolean if a field has been set. - -### SetIncludeStorageControllerListNil - -`func (o *FirmwareIncludeComponentListTypeAllOf) SetIncludeStorageControllerListNil(b bool)` - - SetIncludeStorageControllerListNil sets the value for IncludeStorageControllerList to be an explicit nil - -### UnsetIncludeStorageControllerList -`func (o *FirmwareIncludeComponentListTypeAllOf) UnsetIncludeStorageControllerList()` - -UnsetIncludeStorageControllerList ensures that no value is present for IncludeStorageControllerList, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanApi.md b/docs/SdwanApi.md deleted file mode 100644 index ce6d605952..0000000000 --- a/docs/SdwanApi.md +++ /dev/null @@ -1,1752 +0,0 @@ -# \SdwanApi - -All URIs are relative to *https://intersight.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**CreateSdwanProfile**](SdwanApi.md#CreateSdwanProfile) | **Post** /api/v1/sdwan/Profiles | Create a 'sdwan.Profile' resource. -[**CreateSdwanRouterNode**](SdwanApi.md#CreateSdwanRouterNode) | **Post** /api/v1/sdwan/RouterNodes | Create a 'sdwan.RouterNode' resource. -[**CreateSdwanRouterPolicy**](SdwanApi.md#CreateSdwanRouterPolicy) | **Post** /api/v1/sdwan/RouterPolicies | Create a 'sdwan.RouterPolicy' resource. -[**CreateSdwanVmanageAccountPolicy**](SdwanApi.md#CreateSdwanVmanageAccountPolicy) | **Post** /api/v1/sdwan/VmanageAccountPolicies | Create a 'sdwan.VmanageAccountPolicy' resource. -[**DeleteSdwanProfile**](SdwanApi.md#DeleteSdwanProfile) | **Delete** /api/v1/sdwan/Profiles/{Moid} | Delete a 'sdwan.Profile' resource. -[**DeleteSdwanRouterNode**](SdwanApi.md#DeleteSdwanRouterNode) | **Delete** /api/v1/sdwan/RouterNodes/{Moid} | Delete a 'sdwan.RouterNode' resource. -[**DeleteSdwanRouterPolicy**](SdwanApi.md#DeleteSdwanRouterPolicy) | **Delete** /api/v1/sdwan/RouterPolicies/{Moid} | Delete a 'sdwan.RouterPolicy' resource. -[**DeleteSdwanVmanageAccountPolicy**](SdwanApi.md#DeleteSdwanVmanageAccountPolicy) | **Delete** /api/v1/sdwan/VmanageAccountPolicies/{Moid} | Delete a 'sdwan.VmanageAccountPolicy' resource. -[**GetSdwanProfileByMoid**](SdwanApi.md#GetSdwanProfileByMoid) | **Get** /api/v1/sdwan/Profiles/{Moid} | Read a 'sdwan.Profile' resource. -[**GetSdwanProfileList**](SdwanApi.md#GetSdwanProfileList) | **Get** /api/v1/sdwan/Profiles | Read a 'sdwan.Profile' resource. -[**GetSdwanRouterNodeByMoid**](SdwanApi.md#GetSdwanRouterNodeByMoid) | **Get** /api/v1/sdwan/RouterNodes/{Moid} | Read a 'sdwan.RouterNode' resource. -[**GetSdwanRouterNodeList**](SdwanApi.md#GetSdwanRouterNodeList) | **Get** /api/v1/sdwan/RouterNodes | Read a 'sdwan.RouterNode' resource. -[**GetSdwanRouterPolicyByMoid**](SdwanApi.md#GetSdwanRouterPolicyByMoid) | **Get** /api/v1/sdwan/RouterPolicies/{Moid} | Read a 'sdwan.RouterPolicy' resource. -[**GetSdwanRouterPolicyList**](SdwanApi.md#GetSdwanRouterPolicyList) | **Get** /api/v1/sdwan/RouterPolicies | Read a 'sdwan.RouterPolicy' resource. -[**GetSdwanVmanageAccountPolicyByMoid**](SdwanApi.md#GetSdwanVmanageAccountPolicyByMoid) | **Get** /api/v1/sdwan/VmanageAccountPolicies/{Moid} | Read a 'sdwan.VmanageAccountPolicy' resource. -[**GetSdwanVmanageAccountPolicyList**](SdwanApi.md#GetSdwanVmanageAccountPolicyList) | **Get** /api/v1/sdwan/VmanageAccountPolicies | Read a 'sdwan.VmanageAccountPolicy' resource. -[**PatchSdwanProfile**](SdwanApi.md#PatchSdwanProfile) | **Patch** /api/v1/sdwan/Profiles/{Moid} | Update a 'sdwan.Profile' resource. -[**PatchSdwanRouterNode**](SdwanApi.md#PatchSdwanRouterNode) | **Patch** /api/v1/sdwan/RouterNodes/{Moid} | Update a 'sdwan.RouterNode' resource. -[**PatchSdwanRouterPolicy**](SdwanApi.md#PatchSdwanRouterPolicy) | **Patch** /api/v1/sdwan/RouterPolicies/{Moid} | Update a 'sdwan.RouterPolicy' resource. -[**PatchSdwanVmanageAccountPolicy**](SdwanApi.md#PatchSdwanVmanageAccountPolicy) | **Patch** /api/v1/sdwan/VmanageAccountPolicies/{Moid} | Update a 'sdwan.VmanageAccountPolicy' resource. -[**UpdateSdwanProfile**](SdwanApi.md#UpdateSdwanProfile) | **Post** /api/v1/sdwan/Profiles/{Moid} | Update a 'sdwan.Profile' resource. -[**UpdateSdwanRouterNode**](SdwanApi.md#UpdateSdwanRouterNode) | **Post** /api/v1/sdwan/RouterNodes/{Moid} | Update a 'sdwan.RouterNode' resource. -[**UpdateSdwanRouterPolicy**](SdwanApi.md#UpdateSdwanRouterPolicy) | **Post** /api/v1/sdwan/RouterPolicies/{Moid} | Update a 'sdwan.RouterPolicy' resource. -[**UpdateSdwanVmanageAccountPolicy**](SdwanApi.md#UpdateSdwanVmanageAccountPolicy) | **Post** /api/v1/sdwan/VmanageAccountPolicies/{Moid} | Update a 'sdwan.VmanageAccountPolicy' resource. - - - -## CreateSdwanProfile - -> SdwanProfile CreateSdwanProfile(ctx).SdwanProfile(sdwanProfile).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - -Create a 'sdwan.Profile' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - sdwanProfile := *openapiclient.NewSdwanProfile("ClassId_example", "ObjectType_example") // SdwanProfile | The 'sdwan.Profile' resource to create. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - ifNoneMatch := "ifNoneMatch_example" // string | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.CreateSdwanProfile(context.Background()).SdwanProfile(sdwanProfile).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.CreateSdwanProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSdwanProfile`: SdwanProfile - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.CreateSdwanProfile`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateSdwanProfileRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sdwanProfile** | [**SdwanProfile**](SdwanProfile.md) | The 'sdwan.Profile' resource to create. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - **ifNoneMatch** | **string** | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. | - -### Return type - -[**SdwanProfile**](SdwanProfile.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateSdwanRouterNode - -> SdwanRouterNode CreateSdwanRouterNode(ctx).SdwanRouterNode(sdwanRouterNode).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - -Create a 'sdwan.RouterNode' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - sdwanRouterNode := *openapiclient.NewSdwanRouterNode("ClassId_example", "ObjectType_example") // SdwanRouterNode | The 'sdwan.RouterNode' resource to create. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - ifNoneMatch := "ifNoneMatch_example" // string | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.CreateSdwanRouterNode(context.Background()).SdwanRouterNode(sdwanRouterNode).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.CreateSdwanRouterNode``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSdwanRouterNode`: SdwanRouterNode - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.CreateSdwanRouterNode`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateSdwanRouterNodeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sdwanRouterNode** | [**SdwanRouterNode**](SdwanRouterNode.md) | The 'sdwan.RouterNode' resource to create. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - **ifNoneMatch** | **string** | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. | - -### Return type - -[**SdwanRouterNode**](SdwanRouterNode.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateSdwanRouterPolicy - -> SdwanRouterPolicy CreateSdwanRouterPolicy(ctx).SdwanRouterPolicy(sdwanRouterPolicy).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - -Create a 'sdwan.RouterPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - sdwanRouterPolicy := *openapiclient.NewSdwanRouterPolicy("ClassId_example", "ObjectType_example") // SdwanRouterPolicy | The 'sdwan.RouterPolicy' resource to create. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - ifNoneMatch := "ifNoneMatch_example" // string | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.CreateSdwanRouterPolicy(context.Background()).SdwanRouterPolicy(sdwanRouterPolicy).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.CreateSdwanRouterPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSdwanRouterPolicy`: SdwanRouterPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.CreateSdwanRouterPolicy`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateSdwanRouterPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sdwanRouterPolicy** | [**SdwanRouterPolicy**](SdwanRouterPolicy.md) | The 'sdwan.RouterPolicy' resource to create. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - **ifNoneMatch** | **string** | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. | - -### Return type - -[**SdwanRouterPolicy**](SdwanRouterPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CreateSdwanVmanageAccountPolicy - -> SdwanVmanageAccountPolicy CreateSdwanVmanageAccountPolicy(ctx).SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - -Create a 'sdwan.VmanageAccountPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - sdwanVmanageAccountPolicy := *openapiclient.NewSdwanVmanageAccountPolicy("ClassId_example", "ObjectType_example") // SdwanVmanageAccountPolicy | The 'sdwan.VmanageAccountPolicy' resource to create. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - ifNoneMatch := "ifNoneMatch_example" // string | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.CreateSdwanVmanageAccountPolicy(context.Background()).SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy).IfMatch(ifMatch).IfNoneMatch(ifNoneMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.CreateSdwanVmanageAccountPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CreateSdwanVmanageAccountPolicy`: SdwanVmanageAccountPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.CreateSdwanVmanageAccountPolicy`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCreateSdwanVmanageAccountPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **sdwanVmanageAccountPolicy** | [**SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) | The 'sdwan.VmanageAccountPolicy' resource to create. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - **ifNoneMatch** | **string** | For methods that apply server-side changes, If-None-Match used with the * value can be used to create a resource not known to exist, guaranteeing that another resource creation didn't happen before, losing the data of the previous put. The request will be processed only if the eventually existing resource's ETag doesn't match any of the values listed. Otherwise, the status code 412 (Precondition Failed) is used. The asterisk is a special value representing any resource. It is only useful when creating a resource, usually with PUT, to check if another resource with the identity has already been created before. The comparison with the stored ETag uses the weak comparison algorithm, meaning two resources are considered identical if the content is equivalent - they don't have to be identical byte for byte. | - -### Return type - -[**SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteSdwanProfile - -> DeleteSdwanProfile(ctx, moid).Execute() - -Delete a 'sdwan.Profile' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.DeleteSdwanProfile(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.DeleteSdwanProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteSdwanProfileRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteSdwanRouterNode - -> DeleteSdwanRouterNode(ctx, moid).Execute() - -Delete a 'sdwan.RouterNode' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.DeleteSdwanRouterNode(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.DeleteSdwanRouterNode``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteSdwanRouterNodeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteSdwanRouterPolicy - -> DeleteSdwanRouterPolicy(ctx, moid).Execute() - -Delete a 'sdwan.RouterPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.DeleteSdwanRouterPolicy(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.DeleteSdwanRouterPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteSdwanRouterPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DeleteSdwanVmanageAccountPolicy - -> DeleteSdwanVmanageAccountPolicy(ctx, moid).Execute() - -Delete a 'sdwan.VmanageAccountPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.DeleteSdwanVmanageAccountPolicy(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.DeleteSdwanVmanageAccountPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDeleteSdwanVmanageAccountPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanProfileByMoid - -> SdwanProfile GetSdwanProfileByMoid(ctx, moid).Execute() - -Read a 'sdwan.Profile' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanProfileByMoid(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanProfileByMoid``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanProfileByMoid`: SdwanProfile - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanProfileByMoid`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanProfileByMoidRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SdwanProfile**](SdwanProfile.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanProfileList - -> SdwanProfileResponse GetSdwanProfileList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - -Read a 'sdwan.Profile' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "") - orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional) - top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100) - skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0) - select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "") - expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional) - apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional) - count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional) - inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages") - at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional) - tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanProfileList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanProfileList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanProfileList`: SdwanProfileResponse - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanProfileList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanProfileListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **filter** | **string** | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] - **orderby** | **string** | Determines what properties are used to sort the collection of resources. | - **top** | **int32** | Specifies the maximum number of resources to return in the response. | [default to 100] - **skip** | **int32** | Specifies the number of resources to skip in the response. | [default to 0] - **select_** | **string** | Specifies a subset of properties to return. | [default to ""] - **expand** | **string** | Specify additional attributes or related resources to return in addition to the primary resources. | - **apply** | **string** | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | - **count** | **bool** | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | - **inlinecount** | **string** | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] - **at** | **string** | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | - **tags** | **string** | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. | - -### Return type - -[**SdwanProfileResponse**](SdwanProfileResponse.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanRouterNodeByMoid - -> SdwanRouterNode GetSdwanRouterNodeByMoid(ctx, moid).Execute() - -Read a 'sdwan.RouterNode' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanRouterNodeByMoid(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanRouterNodeByMoid``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanRouterNodeByMoid`: SdwanRouterNode - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanRouterNodeByMoid`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanRouterNodeByMoidRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SdwanRouterNode**](SdwanRouterNode.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanRouterNodeList - -> SdwanRouterNodeResponse GetSdwanRouterNodeList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - -Read a 'sdwan.RouterNode' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "") - orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional) - top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100) - skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0) - select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "") - expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional) - apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional) - count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional) - inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages") - at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional) - tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanRouterNodeList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanRouterNodeList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanRouterNodeList`: SdwanRouterNodeResponse - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanRouterNodeList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanRouterNodeListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **filter** | **string** | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] - **orderby** | **string** | Determines what properties are used to sort the collection of resources. | - **top** | **int32** | Specifies the maximum number of resources to return in the response. | [default to 100] - **skip** | **int32** | Specifies the number of resources to skip in the response. | [default to 0] - **select_** | **string** | Specifies a subset of properties to return. | [default to ""] - **expand** | **string** | Specify additional attributes or related resources to return in addition to the primary resources. | - **apply** | **string** | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | - **count** | **bool** | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | - **inlinecount** | **string** | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] - **at** | **string** | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | - **tags** | **string** | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. | - -### Return type - -[**SdwanRouterNodeResponse**](SdwanRouterNodeResponse.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanRouterPolicyByMoid - -> SdwanRouterPolicy GetSdwanRouterPolicyByMoid(ctx, moid).Execute() - -Read a 'sdwan.RouterPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanRouterPolicyByMoid(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanRouterPolicyByMoid``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanRouterPolicyByMoid`: SdwanRouterPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanRouterPolicyByMoid`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanRouterPolicyByMoidRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SdwanRouterPolicy**](SdwanRouterPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanRouterPolicyList - -> SdwanRouterPolicyResponse GetSdwanRouterPolicyList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - -Read a 'sdwan.RouterPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "") - orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional) - top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100) - skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0) - select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "") - expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional) - apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional) - count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional) - inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages") - at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional) - tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanRouterPolicyList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanRouterPolicyList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanRouterPolicyList`: SdwanRouterPolicyResponse - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanRouterPolicyList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanRouterPolicyListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **filter** | **string** | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] - **orderby** | **string** | Determines what properties are used to sort the collection of resources. | - **top** | **int32** | Specifies the maximum number of resources to return in the response. | [default to 100] - **skip** | **int32** | Specifies the number of resources to skip in the response. | [default to 0] - **select_** | **string** | Specifies a subset of properties to return. | [default to ""] - **expand** | **string** | Specify additional attributes or related resources to return in addition to the primary resources. | - **apply** | **string** | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | - **count** | **bool** | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | - **inlinecount** | **string** | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] - **at** | **string** | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | - **tags** | **string** | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. | - -### Return type - -[**SdwanRouterPolicyResponse**](SdwanRouterPolicyResponse.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanVmanageAccountPolicyByMoid - -> SdwanVmanageAccountPolicy GetSdwanVmanageAccountPolicyByMoid(ctx, moid).Execute() - -Read a 'sdwan.VmanageAccountPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanVmanageAccountPolicyByMoid(context.Background(), moid).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanVmanageAccountPolicyByMoid``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanVmanageAccountPolicyByMoid`: SdwanVmanageAccountPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanVmanageAccountPolicyByMoid`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanVmanageAccountPolicyByMoidRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## GetSdwanVmanageAccountPolicyList - -> SdwanVmanageAccountPolicyResponse GetSdwanVmanageAccountPolicyList(ctx).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - -Read a 'sdwan.VmanageAccountPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - filter := "$filter=CreateTime gt 2012-08-29T21:58:33Z" // string | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). (optional) (default to "") - orderby := "$orderby=CreationTime" // string | Determines what properties are used to sort the collection of resources. (optional) - top := int32($top=10) // int32 | Specifies the maximum number of resources to return in the response. (optional) (default to 100) - skip := int32($skip=100) // int32 | Specifies the number of resources to skip in the response. (optional) (default to 0) - select_ := "$select=CreateTime,ModTime" // string | Specifies a subset of properties to return. (optional) (default to "") - expand := "$expand=DisplayNames" // string | Specify additional attributes or related resources to return in addition to the primary resources. (optional) - apply := "apply_example" // string | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. (optional) - count := false // bool | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. (optional) - inlinecount := "$inlinecount=true" // string | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. (optional) (default to "allpages") - at := "at=VersionType eq 'Configured'" // string | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. (optional) - tags := "tags_example" // string | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.GetSdwanVmanageAccountPolicyList(context.Background()).Filter(filter).Orderby(orderby).Top(top).Skip(skip).Select_(select_).Expand(expand).Apply(apply).Count(count).Inlinecount(inlinecount).At(at).Tags(tags).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.GetSdwanVmanageAccountPolicyList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `GetSdwanVmanageAccountPolicyList`: SdwanVmanageAccountPolicyResponse - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.GetSdwanVmanageAccountPolicyList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiGetSdwanVmanageAccountPolicyListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **filter** | **string** | Filter criteria for the resources to return. A URI with a $filter query option identifies a subset of the entries from the Collection of Entries. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the $filter option. The expression language that is used in $filter queries supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false). | [default to ""] - **orderby** | **string** | Determines what properties are used to sort the collection of resources. | - **top** | **int32** | Specifies the maximum number of resources to return in the response. | [default to 100] - **skip** | **int32** | Specifies the number of resources to skip in the response. | [default to 0] - **select_** | **string** | Specifies a subset of properties to return. | [default to ""] - **expand** | **string** | Specify additional attributes or related resources to return in addition to the primary resources. | - **apply** | **string** | Specify one or more transformation operations to perform aggregation on the resources. The transformations are processed in order with the output from a transformation being used as input for the subsequent transformation. The \"$apply\" query takes a sequence of set transformations, separated by forward slashes to express that they are consecutively applied, i.e. the result of each transformation is the input to the next transformation. Supported aggregation methods are \"aggregate\" and \"groupby\". The **aggregate** transformation takes a comma-separated list of one or more aggregate expressions as parameters and returns a result set with a single instance, representing the aggregated value for all instances in the input set. The **groupby** transformation takes one or two parameters and 1. Splits the initial set into subsets where all instances in a subset have the same values for the grouping properties specified in the first parameter, 2. Applies set transformations to each subset according to the second parameter, resulting in a new set of potentially different structure and cardinality, 3. Ensures that the instances in the result set contain all grouping properties with the correct values for the group, 4. Concatenates the intermediate result sets into one result set. A groupby transformation affects the structure of the result set. | - **count** | **bool** | The $count query specifies the service should return the count of the matching resources, instead of returning the resources. | - **inlinecount** | **string** | The $inlinecount query option allows clients to request an inline count of the matching resources included with the resources in the response. | [default to "allpages"] - **at** | **string** | Similar to \"$filter\", but \"at\" is specifically used to filter versioning information properties for resources to return. A URI with an \"at\" Query Option identifies a subset of the Entries from the Collection of Entries identified by the Resource Path section of the URI. The subset is determined by selecting only the Entries that satisfy the predicate expression specified by the query option. The expression language that is used in at operators supports references to properties and literals. The literal values can be strings enclosed in single quotes, numbers and boolean values (true or false) or any of the additional literal representations shown in the Abstract Type System section. | - **tags** | **string** | The 'tags' parameter is used to request a summary of the Tag utilization for this resource. When the 'tags' parameter is specified, the response provides a list of tag keys, the number of times the key has been used across all documents, and the tag values that have been assigned to the tag key. | - -### Return type - -[**SdwanVmanageAccountPolicyResponse**](SdwanVmanageAccountPolicyResponse.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json, text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## PatchSdwanProfile - -> SdwanProfile PatchSdwanProfile(ctx, moid).SdwanProfile(sdwanProfile).IfMatch(ifMatch).Execute() - -Update a 'sdwan.Profile' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanProfile := *openapiclient.NewSdwanProfile("ClassId_example", "ObjectType_example") // SdwanProfile | The 'sdwan.Profile' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.PatchSdwanProfile(context.Background(), moid).SdwanProfile(sdwanProfile).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.PatchSdwanProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSdwanProfile`: SdwanProfile - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.PatchSdwanProfile`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiPatchSdwanProfileRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanProfile** | [**SdwanProfile**](SdwanProfile.md) | The 'sdwan.Profile' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanProfile**](SdwanProfile.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## PatchSdwanRouterNode - -> SdwanRouterNode PatchSdwanRouterNode(ctx, moid).SdwanRouterNode(sdwanRouterNode).IfMatch(ifMatch).Execute() - -Update a 'sdwan.RouterNode' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanRouterNode := *openapiclient.NewSdwanRouterNode("ClassId_example", "ObjectType_example") // SdwanRouterNode | The 'sdwan.RouterNode' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.PatchSdwanRouterNode(context.Background(), moid).SdwanRouterNode(sdwanRouterNode).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.PatchSdwanRouterNode``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSdwanRouterNode`: SdwanRouterNode - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.PatchSdwanRouterNode`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiPatchSdwanRouterNodeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanRouterNode** | [**SdwanRouterNode**](SdwanRouterNode.md) | The 'sdwan.RouterNode' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanRouterNode**](SdwanRouterNode.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## PatchSdwanRouterPolicy - -> SdwanRouterPolicy PatchSdwanRouterPolicy(ctx, moid).SdwanRouterPolicy(sdwanRouterPolicy).IfMatch(ifMatch).Execute() - -Update a 'sdwan.RouterPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanRouterPolicy := *openapiclient.NewSdwanRouterPolicy("ClassId_example", "ObjectType_example") // SdwanRouterPolicy | The 'sdwan.RouterPolicy' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.PatchSdwanRouterPolicy(context.Background(), moid).SdwanRouterPolicy(sdwanRouterPolicy).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.PatchSdwanRouterPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSdwanRouterPolicy`: SdwanRouterPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.PatchSdwanRouterPolicy`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiPatchSdwanRouterPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanRouterPolicy** | [**SdwanRouterPolicy**](SdwanRouterPolicy.md) | The 'sdwan.RouterPolicy' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanRouterPolicy**](SdwanRouterPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## PatchSdwanVmanageAccountPolicy - -> SdwanVmanageAccountPolicy PatchSdwanVmanageAccountPolicy(ctx, moid).SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy).IfMatch(ifMatch).Execute() - -Update a 'sdwan.VmanageAccountPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanVmanageAccountPolicy := *openapiclient.NewSdwanVmanageAccountPolicy("ClassId_example", "ObjectType_example") // SdwanVmanageAccountPolicy | The 'sdwan.VmanageAccountPolicy' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.PatchSdwanVmanageAccountPolicy(context.Background(), moid).SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.PatchSdwanVmanageAccountPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `PatchSdwanVmanageAccountPolicy`: SdwanVmanageAccountPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.PatchSdwanVmanageAccountPolicy`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiPatchSdwanVmanageAccountPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanVmanageAccountPolicy** | [**SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) | The 'sdwan.VmanageAccountPolicy' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateSdwanProfile - -> SdwanProfile UpdateSdwanProfile(ctx, moid).SdwanProfile(sdwanProfile).IfMatch(ifMatch).Execute() - -Update a 'sdwan.Profile' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanProfile := *openapiclient.NewSdwanProfile("ClassId_example", "ObjectType_example") // SdwanProfile | The 'sdwan.Profile' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.UpdateSdwanProfile(context.Background(), moid).SdwanProfile(sdwanProfile).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.UpdateSdwanProfile``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSdwanProfile`: SdwanProfile - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.UpdateSdwanProfile`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateSdwanProfileRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanProfile** | [**SdwanProfile**](SdwanProfile.md) | The 'sdwan.Profile' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanProfile**](SdwanProfile.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateSdwanRouterNode - -> SdwanRouterNode UpdateSdwanRouterNode(ctx, moid).SdwanRouterNode(sdwanRouterNode).IfMatch(ifMatch).Execute() - -Update a 'sdwan.RouterNode' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanRouterNode := *openapiclient.NewSdwanRouterNode("ClassId_example", "ObjectType_example") // SdwanRouterNode | The 'sdwan.RouterNode' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.UpdateSdwanRouterNode(context.Background(), moid).SdwanRouterNode(sdwanRouterNode).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.UpdateSdwanRouterNode``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSdwanRouterNode`: SdwanRouterNode - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.UpdateSdwanRouterNode`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateSdwanRouterNodeRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanRouterNode** | [**SdwanRouterNode**](SdwanRouterNode.md) | The 'sdwan.RouterNode' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanRouterNode**](SdwanRouterNode.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateSdwanRouterPolicy - -> SdwanRouterPolicy UpdateSdwanRouterPolicy(ctx, moid).SdwanRouterPolicy(sdwanRouterPolicy).IfMatch(ifMatch).Execute() - -Update a 'sdwan.RouterPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanRouterPolicy := *openapiclient.NewSdwanRouterPolicy("ClassId_example", "ObjectType_example") // SdwanRouterPolicy | The 'sdwan.RouterPolicy' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.UpdateSdwanRouterPolicy(context.Background(), moid).SdwanRouterPolicy(sdwanRouterPolicy).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.UpdateSdwanRouterPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSdwanRouterPolicy`: SdwanRouterPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.UpdateSdwanRouterPolicy`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateSdwanRouterPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanRouterPolicy** | [**SdwanRouterPolicy**](SdwanRouterPolicy.md) | The 'sdwan.RouterPolicy' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanRouterPolicy**](SdwanRouterPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## UpdateSdwanVmanageAccountPolicy - -> SdwanVmanageAccountPolicy UpdateSdwanVmanageAccountPolicy(ctx, moid).SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy).IfMatch(ifMatch).Execute() - -Update a 'sdwan.VmanageAccountPolicy' resource. - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "./openapi" -) - -func main() { - moid := "moid_example" // string | The unique Moid identifier of a resource instance. - sdwanVmanageAccountPolicy := *openapiclient.NewSdwanVmanageAccountPolicy("ClassId_example", "ObjectType_example") // SdwanVmanageAccountPolicy | The 'sdwan.VmanageAccountPolicy' resource to update. - ifMatch := "ifMatch_example" // string | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. (optional) - - configuration := openapiclient.NewConfiguration() - api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.SdwanApi.UpdateSdwanVmanageAccountPolicy(context.Background(), moid).SdwanVmanageAccountPolicy(sdwanVmanageAccountPolicy).IfMatch(ifMatch).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SdwanApi.UpdateSdwanVmanageAccountPolicy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `UpdateSdwanVmanageAccountPolicy`: SdwanVmanageAccountPolicy - fmt.Fprintf(os.Stdout, "Response from `SdwanApi.UpdateSdwanVmanageAccountPolicy`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**moid** | **string** | The unique Moid identifier of a resource instance. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiUpdateSdwanVmanageAccountPolicyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **sdwanVmanageAccountPolicy** | [**SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) | The 'sdwan.VmanageAccountPolicy' resource to update. | - **ifMatch** | **string** | For methods that apply server-side changes, and in particular for PUT, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned. When modifying a resource using POST or PUT, the If-Match header must be set to the value of the resource ModTime property after which no lost update problem should occur. For example, a client send a GET request to obtain a resource, which includes the ModTime property. The ModTime indicates the last time the resource was created or modified. The client then sends a POST or PUT request with the If-Match header set to the ModTime property of the resource as obtained in the GET request. | - -### Return type - -[**SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [http_signature](../README.md#http_signature), [oAuth2](../README.md#oAuth2), [oAuth2](../README.md#oAuth2) - -### HTTP request headers - -- **Content-Type**: application/json, application/json-patch+json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/docs/SdwanNetworkConfigurationType.md b/docs/SdwanNetworkConfigurationType.md deleted file mode 100644 index 949fb985ec..0000000000 --- a/docs/SdwanNetworkConfigurationType.md +++ /dev/null @@ -1,150 +0,0 @@ -# SdwanNetworkConfigurationType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.NetworkConfigurationType"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.NetworkConfigurationType"] -**NetworkType** | Pointer to **string** | Type of the Port group being added. * `WAN` - Port-group being added is used for WAN traffic. * `LAN` - Port-group being added is used for LAN traffic. * `Management` - Port-group being added is used for Management traffic. | [optional] [default to "WAN"] -**PortGroup** | Pointer to **string** | Name of the Port Group to create. | [optional] -**Vlan** | Pointer to **int64** | VLAN to be added to the Port Group. | [optional] - -## Methods - -### NewSdwanNetworkConfigurationType - -`func NewSdwanNetworkConfigurationType(classId string, objectType string, ) *SdwanNetworkConfigurationType` - -NewSdwanNetworkConfigurationType instantiates a new SdwanNetworkConfigurationType object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanNetworkConfigurationTypeWithDefaults - -`func NewSdwanNetworkConfigurationTypeWithDefaults() *SdwanNetworkConfigurationType` - -NewSdwanNetworkConfigurationTypeWithDefaults instantiates a new SdwanNetworkConfigurationType object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanNetworkConfigurationType) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanNetworkConfigurationType) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanNetworkConfigurationType) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanNetworkConfigurationType) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanNetworkConfigurationType) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanNetworkConfigurationType) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetNetworkType - -`func (o *SdwanNetworkConfigurationType) GetNetworkType() string` - -GetNetworkType returns the NetworkType field if non-nil, zero value otherwise. - -### GetNetworkTypeOk - -`func (o *SdwanNetworkConfigurationType) GetNetworkTypeOk() (*string, bool)` - -GetNetworkTypeOk returns a tuple with the NetworkType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNetworkType - -`func (o *SdwanNetworkConfigurationType) SetNetworkType(v string)` - -SetNetworkType sets NetworkType field to given value. - -### HasNetworkType - -`func (o *SdwanNetworkConfigurationType) HasNetworkType() bool` - -HasNetworkType returns a boolean if a field has been set. - -### GetPortGroup - -`func (o *SdwanNetworkConfigurationType) GetPortGroup() string` - -GetPortGroup returns the PortGroup field if non-nil, zero value otherwise. - -### GetPortGroupOk - -`func (o *SdwanNetworkConfigurationType) GetPortGroupOk() (*string, bool)` - -GetPortGroupOk returns a tuple with the PortGroup field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPortGroup - -`func (o *SdwanNetworkConfigurationType) SetPortGroup(v string)` - -SetPortGroup sets PortGroup field to given value. - -### HasPortGroup - -`func (o *SdwanNetworkConfigurationType) HasPortGroup() bool` - -HasPortGroup returns a boolean if a field has been set. - -### GetVlan - -`func (o *SdwanNetworkConfigurationType) GetVlan() int64` - -GetVlan returns the Vlan field if non-nil, zero value otherwise. - -### GetVlanOk - -`func (o *SdwanNetworkConfigurationType) GetVlanOk() (*int64, bool)` - -GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlan - -`func (o *SdwanNetworkConfigurationType) SetVlan(v int64)` - -SetVlan sets Vlan field to given value. - -### HasVlan - -`func (o *SdwanNetworkConfigurationType) HasVlan() bool` - -HasVlan returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanNetworkConfigurationTypeAllOf.md b/docs/SdwanNetworkConfigurationTypeAllOf.md deleted file mode 100644 index ff8b457b1a..0000000000 --- a/docs/SdwanNetworkConfigurationTypeAllOf.md +++ /dev/null @@ -1,150 +0,0 @@ -# SdwanNetworkConfigurationTypeAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.NetworkConfigurationType"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.NetworkConfigurationType"] -**NetworkType** | Pointer to **string** | Type of the Port group being added. * `WAN` - Port-group being added is used for WAN traffic. * `LAN` - Port-group being added is used for LAN traffic. * `Management` - Port-group being added is used for Management traffic. | [optional] [default to "WAN"] -**PortGroup** | Pointer to **string** | Name of the Port Group to create. | [optional] -**Vlan** | Pointer to **int64** | VLAN to be added to the Port Group. | [optional] - -## Methods - -### NewSdwanNetworkConfigurationTypeAllOf - -`func NewSdwanNetworkConfigurationTypeAllOf(classId string, objectType string, ) *SdwanNetworkConfigurationTypeAllOf` - -NewSdwanNetworkConfigurationTypeAllOf instantiates a new SdwanNetworkConfigurationTypeAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanNetworkConfigurationTypeAllOfWithDefaults - -`func NewSdwanNetworkConfigurationTypeAllOfWithDefaults() *SdwanNetworkConfigurationTypeAllOf` - -NewSdwanNetworkConfigurationTypeAllOfWithDefaults instantiates a new SdwanNetworkConfigurationTypeAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanNetworkConfigurationTypeAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanNetworkConfigurationTypeAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetNetworkType - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetNetworkType() string` - -GetNetworkType returns the NetworkType field if non-nil, zero value otherwise. - -### GetNetworkTypeOk - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetNetworkTypeOk() (*string, bool)` - -GetNetworkTypeOk returns a tuple with the NetworkType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNetworkType - -`func (o *SdwanNetworkConfigurationTypeAllOf) SetNetworkType(v string)` - -SetNetworkType sets NetworkType field to given value. - -### HasNetworkType - -`func (o *SdwanNetworkConfigurationTypeAllOf) HasNetworkType() bool` - -HasNetworkType returns a boolean if a field has been set. - -### GetPortGroup - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetPortGroup() string` - -GetPortGroup returns the PortGroup field if non-nil, zero value otherwise. - -### GetPortGroupOk - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetPortGroupOk() (*string, bool)` - -GetPortGroupOk returns a tuple with the PortGroup field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPortGroup - -`func (o *SdwanNetworkConfigurationTypeAllOf) SetPortGroup(v string)` - -SetPortGroup sets PortGroup field to given value. - -### HasPortGroup - -`func (o *SdwanNetworkConfigurationTypeAllOf) HasPortGroup() bool` - -HasPortGroup returns a boolean if a field has been set. - -### GetVlan - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetVlan() int64` - -GetVlan returns the Vlan field if non-nil, zero value otherwise. - -### GetVlanOk - -`func (o *SdwanNetworkConfigurationTypeAllOf) GetVlanOk() (*int64, bool)` - -GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlan - -`func (o *SdwanNetworkConfigurationTypeAllOf) SetVlan(v int64)` - -SetVlan sets Vlan field to given value. - -### HasVlan - -`func (o *SdwanNetworkConfigurationTypeAllOf) HasVlan() bool` - -HasVlan returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanProfile.md b/docs/SdwanProfile.md deleted file mode 100644 index 3a198294fa..0000000000 --- a/docs/SdwanProfile.md +++ /dev/null @@ -1,186 +0,0 @@ -# SdwanProfile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.Profile"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.Profile"] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**RouterNodes** | Pointer to [**[]SdwanRouterNodeRelationship**](SdwanRouterNodeRelationship.md) | An array of relationships to sdwanRouterNode resources. | [optional] -**RouterPolicy** | Pointer to [**SdwanRouterPolicyRelationship**](SdwanRouterPolicyRelationship.md) | | [optional] -**VmanageAccount** | Pointer to [**SdwanVmanageAccountPolicyRelationship**](SdwanVmanageAccountPolicyRelationship.md) | | [optional] - -## Methods - -### NewSdwanProfile - -`func NewSdwanProfile(classId string, objectType string, ) *SdwanProfile` - -NewSdwanProfile instantiates a new SdwanProfile object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanProfileWithDefaults - -`func NewSdwanProfileWithDefaults() *SdwanProfile` - -NewSdwanProfileWithDefaults instantiates a new SdwanProfile object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanProfile) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanProfile) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanProfile) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanProfile) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanProfile) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanProfile) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetOrganization - -`func (o *SdwanProfile) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanProfile) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanProfile) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanProfile) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetRouterNodes - -`func (o *SdwanProfile) GetRouterNodes() []SdwanRouterNodeRelationship` - -GetRouterNodes returns the RouterNodes field if non-nil, zero value otherwise. - -### GetRouterNodesOk - -`func (o *SdwanProfile) GetRouterNodesOk() (*[]SdwanRouterNodeRelationship, bool)` - -GetRouterNodesOk returns a tuple with the RouterNodes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRouterNodes - -`func (o *SdwanProfile) SetRouterNodes(v []SdwanRouterNodeRelationship)` - -SetRouterNodes sets RouterNodes field to given value. - -### HasRouterNodes - -`func (o *SdwanProfile) HasRouterNodes() bool` - -HasRouterNodes returns a boolean if a field has been set. - -### SetRouterNodesNil - -`func (o *SdwanProfile) SetRouterNodesNil(b bool)` - - SetRouterNodesNil sets the value for RouterNodes to be an explicit nil - -### UnsetRouterNodes -`func (o *SdwanProfile) UnsetRouterNodes()` - -UnsetRouterNodes ensures that no value is present for RouterNodes, not even an explicit nil -### GetRouterPolicy - -`func (o *SdwanProfile) GetRouterPolicy() SdwanRouterPolicyRelationship` - -GetRouterPolicy returns the RouterPolicy field if non-nil, zero value otherwise. - -### GetRouterPolicyOk - -`func (o *SdwanProfile) GetRouterPolicyOk() (*SdwanRouterPolicyRelationship, bool)` - -GetRouterPolicyOk returns a tuple with the RouterPolicy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRouterPolicy - -`func (o *SdwanProfile) SetRouterPolicy(v SdwanRouterPolicyRelationship)` - -SetRouterPolicy sets RouterPolicy field to given value. - -### HasRouterPolicy - -`func (o *SdwanProfile) HasRouterPolicy() bool` - -HasRouterPolicy returns a boolean if a field has been set. - -### GetVmanageAccount - -`func (o *SdwanProfile) GetVmanageAccount() SdwanVmanageAccountPolicyRelationship` - -GetVmanageAccount returns the VmanageAccount field if non-nil, zero value otherwise. - -### GetVmanageAccountOk - -`func (o *SdwanProfile) GetVmanageAccountOk() (*SdwanVmanageAccountPolicyRelationship, bool)` - -GetVmanageAccountOk returns a tuple with the VmanageAccount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVmanageAccount - -`func (o *SdwanProfile) SetVmanageAccount(v SdwanVmanageAccountPolicyRelationship)` - -SetVmanageAccount sets VmanageAccount field to given value. - -### HasVmanageAccount - -`func (o *SdwanProfile) HasVmanageAccount() bool` - -HasVmanageAccount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanProfileAllOf.md b/docs/SdwanProfileAllOf.md deleted file mode 100644 index 3cb329bb44..0000000000 --- a/docs/SdwanProfileAllOf.md +++ /dev/null @@ -1,186 +0,0 @@ -# SdwanProfileAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.Profile"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.Profile"] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**RouterNodes** | Pointer to [**[]SdwanRouterNodeRelationship**](SdwanRouterNodeRelationship.md) | An array of relationships to sdwanRouterNode resources. | [optional] -**RouterPolicy** | Pointer to [**SdwanRouterPolicyRelationship**](SdwanRouterPolicyRelationship.md) | | [optional] -**VmanageAccount** | Pointer to [**SdwanVmanageAccountPolicyRelationship**](SdwanVmanageAccountPolicyRelationship.md) | | [optional] - -## Methods - -### NewSdwanProfileAllOf - -`func NewSdwanProfileAllOf(classId string, objectType string, ) *SdwanProfileAllOf` - -NewSdwanProfileAllOf instantiates a new SdwanProfileAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanProfileAllOfWithDefaults - -`func NewSdwanProfileAllOfWithDefaults() *SdwanProfileAllOf` - -NewSdwanProfileAllOfWithDefaults instantiates a new SdwanProfileAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanProfileAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanProfileAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanProfileAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanProfileAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanProfileAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanProfileAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetOrganization - -`func (o *SdwanProfileAllOf) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanProfileAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanProfileAllOf) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanProfileAllOf) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetRouterNodes - -`func (o *SdwanProfileAllOf) GetRouterNodes() []SdwanRouterNodeRelationship` - -GetRouterNodes returns the RouterNodes field if non-nil, zero value otherwise. - -### GetRouterNodesOk - -`func (o *SdwanProfileAllOf) GetRouterNodesOk() (*[]SdwanRouterNodeRelationship, bool)` - -GetRouterNodesOk returns a tuple with the RouterNodes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRouterNodes - -`func (o *SdwanProfileAllOf) SetRouterNodes(v []SdwanRouterNodeRelationship)` - -SetRouterNodes sets RouterNodes field to given value. - -### HasRouterNodes - -`func (o *SdwanProfileAllOf) HasRouterNodes() bool` - -HasRouterNodes returns a boolean if a field has been set. - -### SetRouterNodesNil - -`func (o *SdwanProfileAllOf) SetRouterNodesNil(b bool)` - - SetRouterNodesNil sets the value for RouterNodes to be an explicit nil - -### UnsetRouterNodes -`func (o *SdwanProfileAllOf) UnsetRouterNodes()` - -UnsetRouterNodes ensures that no value is present for RouterNodes, not even an explicit nil -### GetRouterPolicy - -`func (o *SdwanProfileAllOf) GetRouterPolicy() SdwanRouterPolicyRelationship` - -GetRouterPolicy returns the RouterPolicy field if non-nil, zero value otherwise. - -### GetRouterPolicyOk - -`func (o *SdwanProfileAllOf) GetRouterPolicyOk() (*SdwanRouterPolicyRelationship, bool)` - -GetRouterPolicyOk returns a tuple with the RouterPolicy field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRouterPolicy - -`func (o *SdwanProfileAllOf) SetRouterPolicy(v SdwanRouterPolicyRelationship)` - -SetRouterPolicy sets RouterPolicy field to given value. - -### HasRouterPolicy - -`func (o *SdwanProfileAllOf) HasRouterPolicy() bool` - -HasRouterPolicy returns a boolean if a field has been set. - -### GetVmanageAccount - -`func (o *SdwanProfileAllOf) GetVmanageAccount() SdwanVmanageAccountPolicyRelationship` - -GetVmanageAccount returns the VmanageAccount field if non-nil, zero value otherwise. - -### GetVmanageAccountOk - -`func (o *SdwanProfileAllOf) GetVmanageAccountOk() (*SdwanVmanageAccountPolicyRelationship, bool)` - -GetVmanageAccountOk returns a tuple with the VmanageAccount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVmanageAccount - -`func (o *SdwanProfileAllOf) SetVmanageAccount(v SdwanVmanageAccountPolicyRelationship)` - -SetVmanageAccount sets VmanageAccount field to given value. - -### HasVmanageAccount - -`func (o *SdwanProfileAllOf) HasVmanageAccount() bool` - -HasVmanageAccount returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanProfileList.md b/docs/SdwanProfileList.md deleted file mode 100644 index 08f9670505..0000000000 --- a/docs/SdwanProfileList.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanProfileList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanProfile**](SdwanProfile.md) | The array of 'sdwan.Profile' resources matching the request. | [optional] - -## Methods - -### NewSdwanProfileList - -`func NewSdwanProfileList() *SdwanProfileList` - -NewSdwanProfileList instantiates a new SdwanProfileList object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanProfileListWithDefaults - -`func NewSdwanProfileListWithDefaults() *SdwanProfileList` - -NewSdwanProfileListWithDefaults instantiates a new SdwanProfileList object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanProfileList) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanProfileList) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanProfileList) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanProfileList) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanProfileList) GetResults() []SdwanProfile` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanProfileList) GetResultsOk() (*[]SdwanProfile, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanProfileList) SetResults(v []SdwanProfile)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanProfileList) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanProfileList) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanProfileList) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanProfileListAllOf.md b/docs/SdwanProfileListAllOf.md deleted file mode 100644 index c538ff9056..0000000000 --- a/docs/SdwanProfileListAllOf.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanProfileListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanProfile**](SdwanProfile.md) | The array of 'sdwan.Profile' resources matching the request. | [optional] - -## Methods - -### NewSdwanProfileListAllOf - -`func NewSdwanProfileListAllOf() *SdwanProfileListAllOf` - -NewSdwanProfileListAllOf instantiates a new SdwanProfileListAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanProfileListAllOfWithDefaults - -`func NewSdwanProfileListAllOfWithDefaults() *SdwanProfileListAllOf` - -NewSdwanProfileListAllOfWithDefaults instantiates a new SdwanProfileListAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanProfileListAllOf) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanProfileListAllOf) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanProfileListAllOf) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanProfileListAllOf) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanProfileListAllOf) GetResults() []SdwanProfile` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanProfileListAllOf) GetResultsOk() (*[]SdwanProfile, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanProfileListAllOf) SetResults(v []SdwanProfile)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanProfileListAllOf) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanProfileListAllOf) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanProfileListAllOf) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanProfileRelationship.md b/docs/SdwanProfileRelationship.md deleted file mode 100644 index ea43eeb950..0000000000 --- a/docs/SdwanProfileRelationship.md +++ /dev/null @@ -1,150 +0,0 @@ -# SdwanProfileRelationship - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "mo.MoRef"] -**ObjectType** | **string** | The fully-qualified name of the remote type referred by this relationship. | -**Moid** | Pointer to **string** | The Moid of the referenced REST resource. | [optional] -**Selector** | Pointer to **string** | An OData $filter expression which describes the REST resource to be referenced. This field may be set instead of 'moid' by clients. 1. If 'moid' is set this field is ignored. 1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the resource matching the filter expression and populates it in the MoRef that is part of the object instance being inserted/updated to fulfill the REST request. An error is returned if the filter matches zero or more than one REST resource. An example filter string is: Serial eq '3AA8B7T11'. | [optional] -**Link** | Pointer to **string** | A URL to an instance of the 'mo.MoRef' class. | [optional] - -## Methods - -### NewSdwanProfileRelationship - -`func NewSdwanProfileRelationship(classId string, objectType string, ) *SdwanProfileRelationship` - -NewSdwanProfileRelationship instantiates a new SdwanProfileRelationship object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanProfileRelationshipWithDefaults - -`func NewSdwanProfileRelationshipWithDefaults() *SdwanProfileRelationship` - -NewSdwanProfileRelationshipWithDefaults instantiates a new SdwanProfileRelationship object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanProfileRelationship) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanProfileRelationship) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanProfileRelationship) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanProfileRelationship) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanProfileRelationship) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanProfileRelationship) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetMoid - -`func (o *SdwanProfileRelationship) GetMoid() string` - -GetMoid returns the Moid field if non-nil, zero value otherwise. - -### GetMoidOk - -`func (o *SdwanProfileRelationship) GetMoidOk() (*string, bool)` - -GetMoidOk returns a tuple with the Moid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMoid - -`func (o *SdwanProfileRelationship) SetMoid(v string)` - -SetMoid sets Moid field to given value. - -### HasMoid - -`func (o *SdwanProfileRelationship) HasMoid() bool` - -HasMoid returns a boolean if a field has been set. - -### GetSelector - -`func (o *SdwanProfileRelationship) GetSelector() string` - -GetSelector returns the Selector field if non-nil, zero value otherwise. - -### GetSelectorOk - -`func (o *SdwanProfileRelationship) GetSelectorOk() (*string, bool)` - -GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSelector - -`func (o *SdwanProfileRelationship) SetSelector(v string)` - -SetSelector sets Selector field to given value. - -### HasSelector - -`func (o *SdwanProfileRelationship) HasSelector() bool` - -HasSelector returns a boolean if a field has been set. - -### GetLink - -`func (o *SdwanProfileRelationship) GetLink() string` - -GetLink returns the Link field if non-nil, zero value otherwise. - -### GetLinkOk - -`func (o *SdwanProfileRelationship) GetLinkOk() (*string, bool)` - -GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLink - -`func (o *SdwanProfileRelationship) SetLink(v string)` - -SetLink sets Link field to given value. - -### HasLink - -`func (o *SdwanProfileRelationship) HasLink() bool` - -HasLink returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanProfileResponse.md b/docs/SdwanProfileResponse.md deleted file mode 100644 index 99d9c3401b..0000000000 --- a/docs/SdwanProfileResponse.md +++ /dev/null @@ -1,113 +0,0 @@ -# SdwanProfileResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ObjectType** | **string** | A discriminator value to disambiguate the schema of a HTTP GET response body. | -**Count** | Pointer to **int32** | The total number of 'sdwan.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]MoTagKeySummary**](MoTagKeySummary.md) | | [optional] - -## Methods - -### NewSdwanProfileResponse - -`func NewSdwanProfileResponse(objectType string, ) *SdwanProfileResponse` - -NewSdwanProfileResponse instantiates a new SdwanProfileResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanProfileResponseWithDefaults - -`func NewSdwanProfileResponseWithDefaults() *SdwanProfileResponse` - -NewSdwanProfileResponseWithDefaults instantiates a new SdwanProfileResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetObjectType - -`func (o *SdwanProfileResponse) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanProfileResponse) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanProfileResponse) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetCount - -`func (o *SdwanProfileResponse) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanProfileResponse) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanProfileResponse) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanProfileResponse) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanProfileResponse) GetResults() []MoTagKeySummary` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanProfileResponse) GetResultsOk() (*[]MoTagKeySummary, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanProfileResponse) SetResults(v []MoTagKeySummary)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanProfileResponse) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanProfileResponse) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanProfileResponse) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterNode.md b/docs/SdwanRouterNode.md deleted file mode 100644 index 3933ddb23c..0000000000 --- a/docs/SdwanRouterNode.md +++ /dev/null @@ -1,300 +0,0 @@ -# SdwanRouterNode - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.RouterNode"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.RouterNode"] -**DeviceTemplate** | Pointer to **string** | Name of the Cisco vManage device template that the current device should be attached to. A device template consists of many feature templates that contain SD-WAN vEdge router configuration. | [optional] -**Name** | Pointer to **string** | Name of the router node object. | [optional] -**NetworkConfiguration** | Pointer to [**[]SdwanNetworkConfigurationType**](SdwanNetworkConfigurationType.md) | | [optional] -**TemplateInputs** | Pointer to [**[]SdwanTemplateInputsType**](SdwanTemplateInputsType.md) | | [optional] -**Uuid** | Pointer to **string** | Uniquely identifies the router by its chassis number. | [optional] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profile** | Pointer to [**SdwanProfileRelationship**](SdwanProfileRelationship.md) | | [optional] -**ServerNode** | Pointer to [**AssetDeviceRegistrationRelationship**](AssetDeviceRegistrationRelationship.md) | | [optional] - -## Methods - -### NewSdwanRouterNode - -`func NewSdwanRouterNode(classId string, objectType string, ) *SdwanRouterNode` - -NewSdwanRouterNode instantiates a new SdwanRouterNode object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterNodeWithDefaults - -`func NewSdwanRouterNodeWithDefaults() *SdwanRouterNode` - -NewSdwanRouterNodeWithDefaults instantiates a new SdwanRouterNode object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanRouterNode) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanRouterNode) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanRouterNode) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanRouterNode) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterNode) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterNode) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetDeviceTemplate - -`func (o *SdwanRouterNode) GetDeviceTemplate() string` - -GetDeviceTemplate returns the DeviceTemplate field if non-nil, zero value otherwise. - -### GetDeviceTemplateOk - -`func (o *SdwanRouterNode) GetDeviceTemplateOk() (*string, bool)` - -GetDeviceTemplateOk returns a tuple with the DeviceTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceTemplate - -`func (o *SdwanRouterNode) SetDeviceTemplate(v string)` - -SetDeviceTemplate sets DeviceTemplate field to given value. - -### HasDeviceTemplate - -`func (o *SdwanRouterNode) HasDeviceTemplate() bool` - -HasDeviceTemplate returns a boolean if a field has been set. - -### GetName - -`func (o *SdwanRouterNode) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *SdwanRouterNode) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *SdwanRouterNode) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *SdwanRouterNode) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetNetworkConfiguration - -`func (o *SdwanRouterNode) GetNetworkConfiguration() []SdwanNetworkConfigurationType` - -GetNetworkConfiguration returns the NetworkConfiguration field if non-nil, zero value otherwise. - -### GetNetworkConfigurationOk - -`func (o *SdwanRouterNode) GetNetworkConfigurationOk() (*[]SdwanNetworkConfigurationType, bool)` - -GetNetworkConfigurationOk returns a tuple with the NetworkConfiguration field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNetworkConfiguration - -`func (o *SdwanRouterNode) SetNetworkConfiguration(v []SdwanNetworkConfigurationType)` - -SetNetworkConfiguration sets NetworkConfiguration field to given value. - -### HasNetworkConfiguration - -`func (o *SdwanRouterNode) HasNetworkConfiguration() bool` - -HasNetworkConfiguration returns a boolean if a field has been set. - -### SetNetworkConfigurationNil - -`func (o *SdwanRouterNode) SetNetworkConfigurationNil(b bool)` - - SetNetworkConfigurationNil sets the value for NetworkConfiguration to be an explicit nil - -### UnsetNetworkConfiguration -`func (o *SdwanRouterNode) UnsetNetworkConfiguration()` - -UnsetNetworkConfiguration ensures that no value is present for NetworkConfiguration, not even an explicit nil -### GetTemplateInputs - -`func (o *SdwanRouterNode) GetTemplateInputs() []SdwanTemplateInputsType` - -GetTemplateInputs returns the TemplateInputs field if non-nil, zero value otherwise. - -### GetTemplateInputsOk - -`func (o *SdwanRouterNode) GetTemplateInputsOk() (*[]SdwanTemplateInputsType, bool)` - -GetTemplateInputsOk returns a tuple with the TemplateInputs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTemplateInputs - -`func (o *SdwanRouterNode) SetTemplateInputs(v []SdwanTemplateInputsType)` - -SetTemplateInputs sets TemplateInputs field to given value. - -### HasTemplateInputs - -`func (o *SdwanRouterNode) HasTemplateInputs() bool` - -HasTemplateInputs returns a boolean if a field has been set. - -### SetTemplateInputsNil - -`func (o *SdwanRouterNode) SetTemplateInputsNil(b bool)` - - SetTemplateInputsNil sets the value for TemplateInputs to be an explicit nil - -### UnsetTemplateInputs -`func (o *SdwanRouterNode) UnsetTemplateInputs()` - -UnsetTemplateInputs ensures that no value is present for TemplateInputs, not even an explicit nil -### GetUuid - -`func (o *SdwanRouterNode) GetUuid() string` - -GetUuid returns the Uuid field if non-nil, zero value otherwise. - -### GetUuidOk - -`func (o *SdwanRouterNode) GetUuidOk() (*string, bool)` - -GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUuid - -`func (o *SdwanRouterNode) SetUuid(v string)` - -SetUuid sets Uuid field to given value. - -### HasUuid - -`func (o *SdwanRouterNode) HasUuid() bool` - -HasUuid returns a boolean if a field has been set. - -### GetOrganization - -`func (o *SdwanRouterNode) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanRouterNode) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanRouterNode) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanRouterNode) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfile - -`func (o *SdwanRouterNode) GetProfile() SdwanProfileRelationship` - -GetProfile returns the Profile field if non-nil, zero value otherwise. - -### GetProfileOk - -`func (o *SdwanRouterNode) GetProfileOk() (*SdwanProfileRelationship, bool)` - -GetProfileOk returns a tuple with the Profile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfile - -`func (o *SdwanRouterNode) SetProfile(v SdwanProfileRelationship)` - -SetProfile sets Profile field to given value. - -### HasProfile - -`func (o *SdwanRouterNode) HasProfile() bool` - -HasProfile returns a boolean if a field has been set. - -### GetServerNode - -`func (o *SdwanRouterNode) GetServerNode() AssetDeviceRegistrationRelationship` - -GetServerNode returns the ServerNode field if non-nil, zero value otherwise. - -### GetServerNodeOk - -`func (o *SdwanRouterNode) GetServerNodeOk() (*AssetDeviceRegistrationRelationship, bool)` - -GetServerNodeOk returns a tuple with the ServerNode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServerNode - -`func (o *SdwanRouterNode) SetServerNode(v AssetDeviceRegistrationRelationship)` - -SetServerNode sets ServerNode field to given value. - -### HasServerNode - -`func (o *SdwanRouterNode) HasServerNode() bool` - -HasServerNode returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterNodeAllOf.md b/docs/SdwanRouterNodeAllOf.md deleted file mode 100644 index f873c3951d..0000000000 --- a/docs/SdwanRouterNodeAllOf.md +++ /dev/null @@ -1,300 +0,0 @@ -# SdwanRouterNodeAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.RouterNode"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.RouterNode"] -**DeviceTemplate** | Pointer to **string** | Name of the Cisco vManage device template that the current device should be attached to. A device template consists of many feature templates that contain SD-WAN vEdge router configuration. | [optional] -**Name** | Pointer to **string** | Name of the router node object. | [optional] -**NetworkConfiguration** | Pointer to [**[]SdwanNetworkConfigurationType**](SdwanNetworkConfigurationType.md) | | [optional] -**TemplateInputs** | Pointer to [**[]SdwanTemplateInputsType**](SdwanTemplateInputsType.md) | | [optional] -**Uuid** | Pointer to **string** | Uniquely identifies the router by its chassis number. | [optional] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profile** | Pointer to [**SdwanProfileRelationship**](SdwanProfileRelationship.md) | | [optional] -**ServerNode** | Pointer to [**AssetDeviceRegistrationRelationship**](AssetDeviceRegistrationRelationship.md) | | [optional] - -## Methods - -### NewSdwanRouterNodeAllOf - -`func NewSdwanRouterNodeAllOf(classId string, objectType string, ) *SdwanRouterNodeAllOf` - -NewSdwanRouterNodeAllOf instantiates a new SdwanRouterNodeAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterNodeAllOfWithDefaults - -`func NewSdwanRouterNodeAllOfWithDefaults() *SdwanRouterNodeAllOf` - -NewSdwanRouterNodeAllOfWithDefaults instantiates a new SdwanRouterNodeAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanRouterNodeAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanRouterNodeAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanRouterNodeAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanRouterNodeAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterNodeAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterNodeAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetDeviceTemplate - -`func (o *SdwanRouterNodeAllOf) GetDeviceTemplate() string` - -GetDeviceTemplate returns the DeviceTemplate field if non-nil, zero value otherwise. - -### GetDeviceTemplateOk - -`func (o *SdwanRouterNodeAllOf) GetDeviceTemplateOk() (*string, bool)` - -GetDeviceTemplateOk returns a tuple with the DeviceTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceTemplate - -`func (o *SdwanRouterNodeAllOf) SetDeviceTemplate(v string)` - -SetDeviceTemplate sets DeviceTemplate field to given value. - -### HasDeviceTemplate - -`func (o *SdwanRouterNodeAllOf) HasDeviceTemplate() bool` - -HasDeviceTemplate returns a boolean if a field has been set. - -### GetName - -`func (o *SdwanRouterNodeAllOf) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *SdwanRouterNodeAllOf) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *SdwanRouterNodeAllOf) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *SdwanRouterNodeAllOf) HasName() bool` - -HasName returns a boolean if a field has been set. - -### GetNetworkConfiguration - -`func (o *SdwanRouterNodeAllOf) GetNetworkConfiguration() []SdwanNetworkConfigurationType` - -GetNetworkConfiguration returns the NetworkConfiguration field if non-nil, zero value otherwise. - -### GetNetworkConfigurationOk - -`func (o *SdwanRouterNodeAllOf) GetNetworkConfigurationOk() (*[]SdwanNetworkConfigurationType, bool)` - -GetNetworkConfigurationOk returns a tuple with the NetworkConfiguration field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNetworkConfiguration - -`func (o *SdwanRouterNodeAllOf) SetNetworkConfiguration(v []SdwanNetworkConfigurationType)` - -SetNetworkConfiguration sets NetworkConfiguration field to given value. - -### HasNetworkConfiguration - -`func (o *SdwanRouterNodeAllOf) HasNetworkConfiguration() bool` - -HasNetworkConfiguration returns a boolean if a field has been set. - -### SetNetworkConfigurationNil - -`func (o *SdwanRouterNodeAllOf) SetNetworkConfigurationNil(b bool)` - - SetNetworkConfigurationNil sets the value for NetworkConfiguration to be an explicit nil - -### UnsetNetworkConfiguration -`func (o *SdwanRouterNodeAllOf) UnsetNetworkConfiguration()` - -UnsetNetworkConfiguration ensures that no value is present for NetworkConfiguration, not even an explicit nil -### GetTemplateInputs - -`func (o *SdwanRouterNodeAllOf) GetTemplateInputs() []SdwanTemplateInputsType` - -GetTemplateInputs returns the TemplateInputs field if non-nil, zero value otherwise. - -### GetTemplateInputsOk - -`func (o *SdwanRouterNodeAllOf) GetTemplateInputsOk() (*[]SdwanTemplateInputsType, bool)` - -GetTemplateInputsOk returns a tuple with the TemplateInputs field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTemplateInputs - -`func (o *SdwanRouterNodeAllOf) SetTemplateInputs(v []SdwanTemplateInputsType)` - -SetTemplateInputs sets TemplateInputs field to given value. - -### HasTemplateInputs - -`func (o *SdwanRouterNodeAllOf) HasTemplateInputs() bool` - -HasTemplateInputs returns a boolean if a field has been set. - -### SetTemplateInputsNil - -`func (o *SdwanRouterNodeAllOf) SetTemplateInputsNil(b bool)` - - SetTemplateInputsNil sets the value for TemplateInputs to be an explicit nil - -### UnsetTemplateInputs -`func (o *SdwanRouterNodeAllOf) UnsetTemplateInputs()` - -UnsetTemplateInputs ensures that no value is present for TemplateInputs, not even an explicit nil -### GetUuid - -`func (o *SdwanRouterNodeAllOf) GetUuid() string` - -GetUuid returns the Uuid field if non-nil, zero value otherwise. - -### GetUuidOk - -`func (o *SdwanRouterNodeAllOf) GetUuidOk() (*string, bool)` - -GetUuidOk returns a tuple with the Uuid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUuid - -`func (o *SdwanRouterNodeAllOf) SetUuid(v string)` - -SetUuid sets Uuid field to given value. - -### HasUuid - -`func (o *SdwanRouterNodeAllOf) HasUuid() bool` - -HasUuid returns a boolean if a field has been set. - -### GetOrganization - -`func (o *SdwanRouterNodeAllOf) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanRouterNodeAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanRouterNodeAllOf) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanRouterNodeAllOf) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfile - -`func (o *SdwanRouterNodeAllOf) GetProfile() SdwanProfileRelationship` - -GetProfile returns the Profile field if non-nil, zero value otherwise. - -### GetProfileOk - -`func (o *SdwanRouterNodeAllOf) GetProfileOk() (*SdwanProfileRelationship, bool)` - -GetProfileOk returns a tuple with the Profile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfile - -`func (o *SdwanRouterNodeAllOf) SetProfile(v SdwanProfileRelationship)` - -SetProfile sets Profile field to given value. - -### HasProfile - -`func (o *SdwanRouterNodeAllOf) HasProfile() bool` - -HasProfile returns a boolean if a field has been set. - -### GetServerNode - -`func (o *SdwanRouterNodeAllOf) GetServerNode() AssetDeviceRegistrationRelationship` - -GetServerNode returns the ServerNode field if non-nil, zero value otherwise. - -### GetServerNodeOk - -`func (o *SdwanRouterNodeAllOf) GetServerNodeOk() (*AssetDeviceRegistrationRelationship, bool)` - -GetServerNodeOk returns a tuple with the ServerNode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServerNode - -`func (o *SdwanRouterNodeAllOf) SetServerNode(v AssetDeviceRegistrationRelationship)` - -SetServerNode sets ServerNode field to given value. - -### HasServerNode - -`func (o *SdwanRouterNodeAllOf) HasServerNode() bool` - -HasServerNode returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterNodeList.md b/docs/SdwanRouterNodeList.md deleted file mode 100644 index 3e5aa01a41..0000000000 --- a/docs/SdwanRouterNodeList.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanRouterNodeList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.RouterNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanRouterNode**](SdwanRouterNode.md) | The array of 'sdwan.RouterNode' resources matching the request. | [optional] - -## Methods - -### NewSdwanRouterNodeList - -`func NewSdwanRouterNodeList() *SdwanRouterNodeList` - -NewSdwanRouterNodeList instantiates a new SdwanRouterNodeList object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterNodeListWithDefaults - -`func NewSdwanRouterNodeListWithDefaults() *SdwanRouterNodeList` - -NewSdwanRouterNodeListWithDefaults instantiates a new SdwanRouterNodeList object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanRouterNodeList) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanRouterNodeList) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanRouterNodeList) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanRouterNodeList) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanRouterNodeList) GetResults() []SdwanRouterNode` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanRouterNodeList) GetResultsOk() (*[]SdwanRouterNode, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanRouterNodeList) SetResults(v []SdwanRouterNode)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanRouterNodeList) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanRouterNodeList) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanRouterNodeList) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterNodeListAllOf.md b/docs/SdwanRouterNodeListAllOf.md deleted file mode 100644 index 392c10e953..0000000000 --- a/docs/SdwanRouterNodeListAllOf.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanRouterNodeListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.RouterNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanRouterNode**](SdwanRouterNode.md) | The array of 'sdwan.RouterNode' resources matching the request. | [optional] - -## Methods - -### NewSdwanRouterNodeListAllOf - -`func NewSdwanRouterNodeListAllOf() *SdwanRouterNodeListAllOf` - -NewSdwanRouterNodeListAllOf instantiates a new SdwanRouterNodeListAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterNodeListAllOfWithDefaults - -`func NewSdwanRouterNodeListAllOfWithDefaults() *SdwanRouterNodeListAllOf` - -NewSdwanRouterNodeListAllOfWithDefaults instantiates a new SdwanRouterNodeListAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanRouterNodeListAllOf) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanRouterNodeListAllOf) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanRouterNodeListAllOf) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanRouterNodeListAllOf) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanRouterNodeListAllOf) GetResults() []SdwanRouterNode` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanRouterNodeListAllOf) GetResultsOk() (*[]SdwanRouterNode, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanRouterNodeListAllOf) SetResults(v []SdwanRouterNode)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanRouterNodeListAllOf) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanRouterNodeListAllOf) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanRouterNodeListAllOf) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterNodeRelationship.md b/docs/SdwanRouterNodeRelationship.md deleted file mode 100644 index 3ac6198ed8..0000000000 --- a/docs/SdwanRouterNodeRelationship.md +++ /dev/null @@ -1,150 +0,0 @@ -# SdwanRouterNodeRelationship - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "mo.MoRef"] -**ObjectType** | **string** | The fully-qualified name of the remote type referred by this relationship. | -**Moid** | Pointer to **string** | The Moid of the referenced REST resource. | [optional] -**Selector** | Pointer to **string** | An OData $filter expression which describes the REST resource to be referenced. This field may be set instead of 'moid' by clients. 1. If 'moid' is set this field is ignored. 1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the resource matching the filter expression and populates it in the MoRef that is part of the object instance being inserted/updated to fulfill the REST request. An error is returned if the filter matches zero or more than one REST resource. An example filter string is: Serial eq '3AA8B7T11'. | [optional] -**Link** | Pointer to **string** | A URL to an instance of the 'mo.MoRef' class. | [optional] - -## Methods - -### NewSdwanRouterNodeRelationship - -`func NewSdwanRouterNodeRelationship(classId string, objectType string, ) *SdwanRouterNodeRelationship` - -NewSdwanRouterNodeRelationship instantiates a new SdwanRouterNodeRelationship object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterNodeRelationshipWithDefaults - -`func NewSdwanRouterNodeRelationshipWithDefaults() *SdwanRouterNodeRelationship` - -NewSdwanRouterNodeRelationshipWithDefaults instantiates a new SdwanRouterNodeRelationship object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanRouterNodeRelationship) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanRouterNodeRelationship) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanRouterNodeRelationship) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanRouterNodeRelationship) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterNodeRelationship) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterNodeRelationship) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetMoid - -`func (o *SdwanRouterNodeRelationship) GetMoid() string` - -GetMoid returns the Moid field if non-nil, zero value otherwise. - -### GetMoidOk - -`func (o *SdwanRouterNodeRelationship) GetMoidOk() (*string, bool)` - -GetMoidOk returns a tuple with the Moid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMoid - -`func (o *SdwanRouterNodeRelationship) SetMoid(v string)` - -SetMoid sets Moid field to given value. - -### HasMoid - -`func (o *SdwanRouterNodeRelationship) HasMoid() bool` - -HasMoid returns a boolean if a field has been set. - -### GetSelector - -`func (o *SdwanRouterNodeRelationship) GetSelector() string` - -GetSelector returns the Selector field if non-nil, zero value otherwise. - -### GetSelectorOk - -`func (o *SdwanRouterNodeRelationship) GetSelectorOk() (*string, bool)` - -GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSelector - -`func (o *SdwanRouterNodeRelationship) SetSelector(v string)` - -SetSelector sets Selector field to given value. - -### HasSelector - -`func (o *SdwanRouterNodeRelationship) HasSelector() bool` - -HasSelector returns a boolean if a field has been set. - -### GetLink - -`func (o *SdwanRouterNodeRelationship) GetLink() string` - -GetLink returns the Link field if non-nil, zero value otherwise. - -### GetLinkOk - -`func (o *SdwanRouterNodeRelationship) GetLinkOk() (*string, bool)` - -GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLink - -`func (o *SdwanRouterNodeRelationship) SetLink(v string)` - -SetLink sets Link field to given value. - -### HasLink - -`func (o *SdwanRouterNodeRelationship) HasLink() bool` - -HasLink returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterNodeResponse.md b/docs/SdwanRouterNodeResponse.md deleted file mode 100644 index ad361ee401..0000000000 --- a/docs/SdwanRouterNodeResponse.md +++ /dev/null @@ -1,113 +0,0 @@ -# SdwanRouterNodeResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ObjectType** | **string** | A discriminator value to disambiguate the schema of a HTTP GET response body. | -**Count** | Pointer to **int32** | The total number of 'sdwan.RouterNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]MoTagKeySummary**](MoTagKeySummary.md) | | [optional] - -## Methods - -### NewSdwanRouterNodeResponse - -`func NewSdwanRouterNodeResponse(objectType string, ) *SdwanRouterNodeResponse` - -NewSdwanRouterNodeResponse instantiates a new SdwanRouterNodeResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterNodeResponseWithDefaults - -`func NewSdwanRouterNodeResponseWithDefaults() *SdwanRouterNodeResponse` - -NewSdwanRouterNodeResponseWithDefaults instantiates a new SdwanRouterNodeResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetObjectType - -`func (o *SdwanRouterNodeResponse) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterNodeResponse) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterNodeResponse) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetCount - -`func (o *SdwanRouterNodeResponse) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanRouterNodeResponse) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanRouterNodeResponse) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanRouterNodeResponse) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanRouterNodeResponse) GetResults() []MoTagKeySummary` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanRouterNodeResponse) GetResultsOk() (*[]MoTagKeySummary, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanRouterNodeResponse) SetResults(v []MoTagKeySummary)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanRouterNodeResponse) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanRouterNodeResponse) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanRouterNodeResponse) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterPolicy.md b/docs/SdwanRouterPolicy.md deleted file mode 100644 index 43bf980446..0000000000 --- a/docs/SdwanRouterPolicy.md +++ /dev/null @@ -1,238 +0,0 @@ -# SdwanRouterPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.RouterPolicy"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.RouterPolicy"] -**DeploymentSize** | Pointer to **string** | Scale of the SD-WAN router virtual machine deployment. * `Typical` - Typical deployment configuration with 4 vCPUs and 4GB RAM. * `Minimal` - Minimal deployment configuration with 2 vCPUs and 4GB RAM. | [optional] [default to "Typical"] -**WanCount** | Pointer to **int64** | Number of WAN connections across the SD-WAN site. | [optional] [default to 2] -**WanTerminationType** | Pointer to **string** | Defines if the WAN networks are singly or dually terminated. Dually terminated WANs are configured on all the SD-WAN routers. Singly terminated WANs are configured only on one of the SD-WAN routers. * `Single` - Singly terminated WANs ar evenly distributed across SD-WAN router nodes. A given WAN connection is available only on one of the router nodes. * `Dual` - Dually terminated WANs are configured on all the SD-WAN routers. A given WAN connection is available on multiple router nodes. | [optional] [default to "Single"] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profiles** | Pointer to [**[]SdwanProfileRelationship**](SdwanProfileRelationship.md) | An array of relationships to sdwanProfile resources. | [optional] -**SolutionImage** | Pointer to [**SoftwareSolutionDistributableRelationship**](SoftwareSolutionDistributableRelationship.md) | | [optional] - -## Methods - -### NewSdwanRouterPolicy - -`func NewSdwanRouterPolicy(classId string, objectType string, ) *SdwanRouterPolicy` - -NewSdwanRouterPolicy instantiates a new SdwanRouterPolicy object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterPolicyWithDefaults - -`func NewSdwanRouterPolicyWithDefaults() *SdwanRouterPolicy` - -NewSdwanRouterPolicyWithDefaults instantiates a new SdwanRouterPolicy object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanRouterPolicy) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanRouterPolicy) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanRouterPolicy) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanRouterPolicy) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterPolicy) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterPolicy) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetDeploymentSize - -`func (o *SdwanRouterPolicy) GetDeploymentSize() string` - -GetDeploymentSize returns the DeploymentSize field if non-nil, zero value otherwise. - -### GetDeploymentSizeOk - -`func (o *SdwanRouterPolicy) GetDeploymentSizeOk() (*string, bool)` - -GetDeploymentSizeOk returns a tuple with the DeploymentSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeploymentSize - -`func (o *SdwanRouterPolicy) SetDeploymentSize(v string)` - -SetDeploymentSize sets DeploymentSize field to given value. - -### HasDeploymentSize - -`func (o *SdwanRouterPolicy) HasDeploymentSize() bool` - -HasDeploymentSize returns a boolean if a field has been set. - -### GetWanCount - -`func (o *SdwanRouterPolicy) GetWanCount() int64` - -GetWanCount returns the WanCount field if non-nil, zero value otherwise. - -### GetWanCountOk - -`func (o *SdwanRouterPolicy) GetWanCountOk() (*int64, bool)` - -GetWanCountOk returns a tuple with the WanCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWanCount - -`func (o *SdwanRouterPolicy) SetWanCount(v int64)` - -SetWanCount sets WanCount field to given value. - -### HasWanCount - -`func (o *SdwanRouterPolicy) HasWanCount() bool` - -HasWanCount returns a boolean if a field has been set. - -### GetWanTerminationType - -`func (o *SdwanRouterPolicy) GetWanTerminationType() string` - -GetWanTerminationType returns the WanTerminationType field if non-nil, zero value otherwise. - -### GetWanTerminationTypeOk - -`func (o *SdwanRouterPolicy) GetWanTerminationTypeOk() (*string, bool)` - -GetWanTerminationTypeOk returns a tuple with the WanTerminationType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWanTerminationType - -`func (o *SdwanRouterPolicy) SetWanTerminationType(v string)` - -SetWanTerminationType sets WanTerminationType field to given value. - -### HasWanTerminationType - -`func (o *SdwanRouterPolicy) HasWanTerminationType() bool` - -HasWanTerminationType returns a boolean if a field has been set. - -### GetOrganization - -`func (o *SdwanRouterPolicy) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanRouterPolicy) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanRouterPolicy) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanRouterPolicy) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfiles - -`func (o *SdwanRouterPolicy) GetProfiles() []SdwanProfileRelationship` - -GetProfiles returns the Profiles field if non-nil, zero value otherwise. - -### GetProfilesOk - -`func (o *SdwanRouterPolicy) GetProfilesOk() (*[]SdwanProfileRelationship, bool)` - -GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfiles - -`func (o *SdwanRouterPolicy) SetProfiles(v []SdwanProfileRelationship)` - -SetProfiles sets Profiles field to given value. - -### HasProfiles - -`func (o *SdwanRouterPolicy) HasProfiles() bool` - -HasProfiles returns a boolean if a field has been set. - -### SetProfilesNil - -`func (o *SdwanRouterPolicy) SetProfilesNil(b bool)` - - SetProfilesNil sets the value for Profiles to be an explicit nil - -### UnsetProfiles -`func (o *SdwanRouterPolicy) UnsetProfiles()` - -UnsetProfiles ensures that no value is present for Profiles, not even an explicit nil -### GetSolutionImage - -`func (o *SdwanRouterPolicy) GetSolutionImage() SoftwareSolutionDistributableRelationship` - -GetSolutionImage returns the SolutionImage field if non-nil, zero value otherwise. - -### GetSolutionImageOk - -`func (o *SdwanRouterPolicy) GetSolutionImageOk() (*SoftwareSolutionDistributableRelationship, bool)` - -GetSolutionImageOk returns a tuple with the SolutionImage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSolutionImage - -`func (o *SdwanRouterPolicy) SetSolutionImage(v SoftwareSolutionDistributableRelationship)` - -SetSolutionImage sets SolutionImage field to given value. - -### HasSolutionImage - -`func (o *SdwanRouterPolicy) HasSolutionImage() bool` - -HasSolutionImage returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterPolicyAllOf.md b/docs/SdwanRouterPolicyAllOf.md deleted file mode 100644 index bf6601c6b3..0000000000 --- a/docs/SdwanRouterPolicyAllOf.md +++ /dev/null @@ -1,238 +0,0 @@ -# SdwanRouterPolicyAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.RouterPolicy"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.RouterPolicy"] -**DeploymentSize** | Pointer to **string** | Scale of the SD-WAN router virtual machine deployment. * `Typical` - Typical deployment configuration with 4 vCPUs and 4GB RAM. * `Minimal` - Minimal deployment configuration with 2 vCPUs and 4GB RAM. | [optional] [default to "Typical"] -**WanCount** | Pointer to **int64** | Number of WAN connections across the SD-WAN site. | [optional] [default to 2] -**WanTerminationType** | Pointer to **string** | Defines if the WAN networks are singly or dually terminated. Dually terminated WANs are configured on all the SD-WAN routers. Singly terminated WANs are configured only on one of the SD-WAN routers. * `Single` - Singly terminated WANs ar evenly distributed across SD-WAN router nodes. A given WAN connection is available only on one of the router nodes. * `Dual` - Dually terminated WANs are configured on all the SD-WAN routers. A given WAN connection is available on multiple router nodes. | [optional] [default to "Single"] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profiles** | Pointer to [**[]SdwanProfileRelationship**](SdwanProfileRelationship.md) | An array of relationships to sdwanProfile resources. | [optional] -**SolutionImage** | Pointer to [**SoftwareSolutionDistributableRelationship**](SoftwareSolutionDistributableRelationship.md) | | [optional] - -## Methods - -### NewSdwanRouterPolicyAllOf - -`func NewSdwanRouterPolicyAllOf(classId string, objectType string, ) *SdwanRouterPolicyAllOf` - -NewSdwanRouterPolicyAllOf instantiates a new SdwanRouterPolicyAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterPolicyAllOfWithDefaults - -`func NewSdwanRouterPolicyAllOfWithDefaults() *SdwanRouterPolicyAllOf` - -NewSdwanRouterPolicyAllOfWithDefaults instantiates a new SdwanRouterPolicyAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanRouterPolicyAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanRouterPolicyAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanRouterPolicyAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanRouterPolicyAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterPolicyAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterPolicyAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetDeploymentSize - -`func (o *SdwanRouterPolicyAllOf) GetDeploymentSize() string` - -GetDeploymentSize returns the DeploymentSize field if non-nil, zero value otherwise. - -### GetDeploymentSizeOk - -`func (o *SdwanRouterPolicyAllOf) GetDeploymentSizeOk() (*string, bool)` - -GetDeploymentSizeOk returns a tuple with the DeploymentSize field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeploymentSize - -`func (o *SdwanRouterPolicyAllOf) SetDeploymentSize(v string)` - -SetDeploymentSize sets DeploymentSize field to given value. - -### HasDeploymentSize - -`func (o *SdwanRouterPolicyAllOf) HasDeploymentSize() bool` - -HasDeploymentSize returns a boolean if a field has been set. - -### GetWanCount - -`func (o *SdwanRouterPolicyAllOf) GetWanCount() int64` - -GetWanCount returns the WanCount field if non-nil, zero value otherwise. - -### GetWanCountOk - -`func (o *SdwanRouterPolicyAllOf) GetWanCountOk() (*int64, bool)` - -GetWanCountOk returns a tuple with the WanCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWanCount - -`func (o *SdwanRouterPolicyAllOf) SetWanCount(v int64)` - -SetWanCount sets WanCount field to given value. - -### HasWanCount - -`func (o *SdwanRouterPolicyAllOf) HasWanCount() bool` - -HasWanCount returns a boolean if a field has been set. - -### GetWanTerminationType - -`func (o *SdwanRouterPolicyAllOf) GetWanTerminationType() string` - -GetWanTerminationType returns the WanTerminationType field if non-nil, zero value otherwise. - -### GetWanTerminationTypeOk - -`func (o *SdwanRouterPolicyAllOf) GetWanTerminationTypeOk() (*string, bool)` - -GetWanTerminationTypeOk returns a tuple with the WanTerminationType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWanTerminationType - -`func (o *SdwanRouterPolicyAllOf) SetWanTerminationType(v string)` - -SetWanTerminationType sets WanTerminationType field to given value. - -### HasWanTerminationType - -`func (o *SdwanRouterPolicyAllOf) HasWanTerminationType() bool` - -HasWanTerminationType returns a boolean if a field has been set. - -### GetOrganization - -`func (o *SdwanRouterPolicyAllOf) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanRouterPolicyAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanRouterPolicyAllOf) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanRouterPolicyAllOf) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfiles - -`func (o *SdwanRouterPolicyAllOf) GetProfiles() []SdwanProfileRelationship` - -GetProfiles returns the Profiles field if non-nil, zero value otherwise. - -### GetProfilesOk - -`func (o *SdwanRouterPolicyAllOf) GetProfilesOk() (*[]SdwanProfileRelationship, bool)` - -GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfiles - -`func (o *SdwanRouterPolicyAllOf) SetProfiles(v []SdwanProfileRelationship)` - -SetProfiles sets Profiles field to given value. - -### HasProfiles - -`func (o *SdwanRouterPolicyAllOf) HasProfiles() bool` - -HasProfiles returns a boolean if a field has been set. - -### SetProfilesNil - -`func (o *SdwanRouterPolicyAllOf) SetProfilesNil(b bool)` - - SetProfilesNil sets the value for Profiles to be an explicit nil - -### UnsetProfiles -`func (o *SdwanRouterPolicyAllOf) UnsetProfiles()` - -UnsetProfiles ensures that no value is present for Profiles, not even an explicit nil -### GetSolutionImage - -`func (o *SdwanRouterPolicyAllOf) GetSolutionImage() SoftwareSolutionDistributableRelationship` - -GetSolutionImage returns the SolutionImage field if non-nil, zero value otherwise. - -### GetSolutionImageOk - -`func (o *SdwanRouterPolicyAllOf) GetSolutionImageOk() (*SoftwareSolutionDistributableRelationship, bool)` - -GetSolutionImageOk returns a tuple with the SolutionImage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSolutionImage - -`func (o *SdwanRouterPolicyAllOf) SetSolutionImage(v SoftwareSolutionDistributableRelationship)` - -SetSolutionImage sets SolutionImage field to given value. - -### HasSolutionImage - -`func (o *SdwanRouterPolicyAllOf) HasSolutionImage() bool` - -HasSolutionImage returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterPolicyList.md b/docs/SdwanRouterPolicyList.md deleted file mode 100644 index 645051eed9..0000000000 --- a/docs/SdwanRouterPolicyList.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanRouterPolicyList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.RouterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanRouterPolicy**](SdwanRouterPolicy.md) | The array of 'sdwan.RouterPolicy' resources matching the request. | [optional] - -## Methods - -### NewSdwanRouterPolicyList - -`func NewSdwanRouterPolicyList() *SdwanRouterPolicyList` - -NewSdwanRouterPolicyList instantiates a new SdwanRouterPolicyList object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterPolicyListWithDefaults - -`func NewSdwanRouterPolicyListWithDefaults() *SdwanRouterPolicyList` - -NewSdwanRouterPolicyListWithDefaults instantiates a new SdwanRouterPolicyList object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanRouterPolicyList) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanRouterPolicyList) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanRouterPolicyList) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanRouterPolicyList) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanRouterPolicyList) GetResults() []SdwanRouterPolicy` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanRouterPolicyList) GetResultsOk() (*[]SdwanRouterPolicy, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanRouterPolicyList) SetResults(v []SdwanRouterPolicy)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanRouterPolicyList) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanRouterPolicyList) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanRouterPolicyList) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterPolicyListAllOf.md b/docs/SdwanRouterPolicyListAllOf.md deleted file mode 100644 index 37f331c760..0000000000 --- a/docs/SdwanRouterPolicyListAllOf.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanRouterPolicyListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.RouterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanRouterPolicy**](SdwanRouterPolicy.md) | The array of 'sdwan.RouterPolicy' resources matching the request. | [optional] - -## Methods - -### NewSdwanRouterPolicyListAllOf - -`func NewSdwanRouterPolicyListAllOf() *SdwanRouterPolicyListAllOf` - -NewSdwanRouterPolicyListAllOf instantiates a new SdwanRouterPolicyListAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterPolicyListAllOfWithDefaults - -`func NewSdwanRouterPolicyListAllOfWithDefaults() *SdwanRouterPolicyListAllOf` - -NewSdwanRouterPolicyListAllOfWithDefaults instantiates a new SdwanRouterPolicyListAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanRouterPolicyListAllOf) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanRouterPolicyListAllOf) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanRouterPolicyListAllOf) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanRouterPolicyListAllOf) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanRouterPolicyListAllOf) GetResults() []SdwanRouterPolicy` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanRouterPolicyListAllOf) GetResultsOk() (*[]SdwanRouterPolicy, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanRouterPolicyListAllOf) SetResults(v []SdwanRouterPolicy)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanRouterPolicyListAllOf) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanRouterPolicyListAllOf) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanRouterPolicyListAllOf) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterPolicyRelationship.md b/docs/SdwanRouterPolicyRelationship.md deleted file mode 100644 index c2e5b5a0c9..0000000000 --- a/docs/SdwanRouterPolicyRelationship.md +++ /dev/null @@ -1,150 +0,0 @@ -# SdwanRouterPolicyRelationship - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "mo.MoRef"] -**ObjectType** | **string** | The fully-qualified name of the remote type referred by this relationship. | -**Moid** | Pointer to **string** | The Moid of the referenced REST resource. | [optional] -**Selector** | Pointer to **string** | An OData $filter expression which describes the REST resource to be referenced. This field may be set instead of 'moid' by clients. 1. If 'moid' is set this field is ignored. 1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the resource matching the filter expression and populates it in the MoRef that is part of the object instance being inserted/updated to fulfill the REST request. An error is returned if the filter matches zero or more than one REST resource. An example filter string is: Serial eq '3AA8B7T11'. | [optional] -**Link** | Pointer to **string** | A URL to an instance of the 'mo.MoRef' class. | [optional] - -## Methods - -### NewSdwanRouterPolicyRelationship - -`func NewSdwanRouterPolicyRelationship(classId string, objectType string, ) *SdwanRouterPolicyRelationship` - -NewSdwanRouterPolicyRelationship instantiates a new SdwanRouterPolicyRelationship object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterPolicyRelationshipWithDefaults - -`func NewSdwanRouterPolicyRelationshipWithDefaults() *SdwanRouterPolicyRelationship` - -NewSdwanRouterPolicyRelationshipWithDefaults instantiates a new SdwanRouterPolicyRelationship object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanRouterPolicyRelationship) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanRouterPolicyRelationship) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanRouterPolicyRelationship) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanRouterPolicyRelationship) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterPolicyRelationship) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterPolicyRelationship) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetMoid - -`func (o *SdwanRouterPolicyRelationship) GetMoid() string` - -GetMoid returns the Moid field if non-nil, zero value otherwise. - -### GetMoidOk - -`func (o *SdwanRouterPolicyRelationship) GetMoidOk() (*string, bool)` - -GetMoidOk returns a tuple with the Moid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMoid - -`func (o *SdwanRouterPolicyRelationship) SetMoid(v string)` - -SetMoid sets Moid field to given value. - -### HasMoid - -`func (o *SdwanRouterPolicyRelationship) HasMoid() bool` - -HasMoid returns a boolean if a field has been set. - -### GetSelector - -`func (o *SdwanRouterPolicyRelationship) GetSelector() string` - -GetSelector returns the Selector field if non-nil, zero value otherwise. - -### GetSelectorOk - -`func (o *SdwanRouterPolicyRelationship) GetSelectorOk() (*string, bool)` - -GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSelector - -`func (o *SdwanRouterPolicyRelationship) SetSelector(v string)` - -SetSelector sets Selector field to given value. - -### HasSelector - -`func (o *SdwanRouterPolicyRelationship) HasSelector() bool` - -HasSelector returns a boolean if a field has been set. - -### GetLink - -`func (o *SdwanRouterPolicyRelationship) GetLink() string` - -GetLink returns the Link field if non-nil, zero value otherwise. - -### GetLinkOk - -`func (o *SdwanRouterPolicyRelationship) GetLinkOk() (*string, bool)` - -GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLink - -`func (o *SdwanRouterPolicyRelationship) SetLink(v string)` - -SetLink sets Link field to given value. - -### HasLink - -`func (o *SdwanRouterPolicyRelationship) HasLink() bool` - -HasLink returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanRouterPolicyResponse.md b/docs/SdwanRouterPolicyResponse.md deleted file mode 100644 index 9486ef9073..0000000000 --- a/docs/SdwanRouterPolicyResponse.md +++ /dev/null @@ -1,113 +0,0 @@ -# SdwanRouterPolicyResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ObjectType** | **string** | A discriminator value to disambiguate the schema of a HTTP GET response body. | -**Count** | Pointer to **int32** | The total number of 'sdwan.RouterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]MoTagKeySummary**](MoTagKeySummary.md) | | [optional] - -## Methods - -### NewSdwanRouterPolicyResponse - -`func NewSdwanRouterPolicyResponse(objectType string, ) *SdwanRouterPolicyResponse` - -NewSdwanRouterPolicyResponse instantiates a new SdwanRouterPolicyResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanRouterPolicyResponseWithDefaults - -`func NewSdwanRouterPolicyResponseWithDefaults() *SdwanRouterPolicyResponse` - -NewSdwanRouterPolicyResponseWithDefaults instantiates a new SdwanRouterPolicyResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetObjectType - -`func (o *SdwanRouterPolicyResponse) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanRouterPolicyResponse) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanRouterPolicyResponse) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetCount - -`func (o *SdwanRouterPolicyResponse) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanRouterPolicyResponse) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanRouterPolicyResponse) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanRouterPolicyResponse) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanRouterPolicyResponse) GetResults() []MoTagKeySummary` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanRouterPolicyResponse) GetResultsOk() (*[]MoTagKeySummary, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanRouterPolicyResponse) SetResults(v []MoTagKeySummary)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanRouterPolicyResponse) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanRouterPolicyResponse) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanRouterPolicyResponse) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanTemplateInputsType.md b/docs/SdwanTemplateInputsType.md deleted file mode 100644 index 95ad7ab3f5..0000000000 --- a/docs/SdwanTemplateInputsType.md +++ /dev/null @@ -1,254 +0,0 @@ -# SdwanTemplateInputsType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.TemplateInputsType"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.TemplateInputsType"] -**Editable** | Pointer to **bool** | Defines if the input is editable. | [optional] [default to false] -**Key** | Pointer to **string** | Name of the dynamic input key specified in the vManage template. | [optional] -**Required** | Pointer to **bool** | Defines if the input is optional or required. | [optional] [default to false] -**Template** | Pointer to **string** | Refers to the name of the vManage template that this inputs belongs to. | [optional] [readonly] -**Title** | Pointer to **string** | Label for the property being saved in the current instance of template Input. | [optional] -**Type** | Pointer to **string** | Defines the object type for the input. | [optional] [default to "string"] -**Value** | Pointer to **string** | Value of the dynamic input key specfied in the vManage template. | [optional] - -## Methods - -### NewSdwanTemplateInputsType - -`func NewSdwanTemplateInputsType(classId string, objectType string, ) *SdwanTemplateInputsType` - -NewSdwanTemplateInputsType instantiates a new SdwanTemplateInputsType object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanTemplateInputsTypeWithDefaults - -`func NewSdwanTemplateInputsTypeWithDefaults() *SdwanTemplateInputsType` - -NewSdwanTemplateInputsTypeWithDefaults instantiates a new SdwanTemplateInputsType object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanTemplateInputsType) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanTemplateInputsType) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanTemplateInputsType) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanTemplateInputsType) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanTemplateInputsType) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanTemplateInputsType) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetEditable - -`func (o *SdwanTemplateInputsType) GetEditable() bool` - -GetEditable returns the Editable field if non-nil, zero value otherwise. - -### GetEditableOk - -`func (o *SdwanTemplateInputsType) GetEditableOk() (*bool, bool)` - -GetEditableOk returns a tuple with the Editable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEditable - -`func (o *SdwanTemplateInputsType) SetEditable(v bool)` - -SetEditable sets Editable field to given value. - -### HasEditable - -`func (o *SdwanTemplateInputsType) HasEditable() bool` - -HasEditable returns a boolean if a field has been set. - -### GetKey - -`func (o *SdwanTemplateInputsType) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *SdwanTemplateInputsType) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *SdwanTemplateInputsType) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *SdwanTemplateInputsType) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetRequired - -`func (o *SdwanTemplateInputsType) GetRequired() bool` - -GetRequired returns the Required field if non-nil, zero value otherwise. - -### GetRequiredOk - -`func (o *SdwanTemplateInputsType) GetRequiredOk() (*bool, bool)` - -GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequired - -`func (o *SdwanTemplateInputsType) SetRequired(v bool)` - -SetRequired sets Required field to given value. - -### HasRequired - -`func (o *SdwanTemplateInputsType) HasRequired() bool` - -HasRequired returns a boolean if a field has been set. - -### GetTemplate - -`func (o *SdwanTemplateInputsType) GetTemplate() string` - -GetTemplate returns the Template field if non-nil, zero value otherwise. - -### GetTemplateOk - -`func (o *SdwanTemplateInputsType) GetTemplateOk() (*string, bool)` - -GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTemplate - -`func (o *SdwanTemplateInputsType) SetTemplate(v string)` - -SetTemplate sets Template field to given value. - -### HasTemplate - -`func (o *SdwanTemplateInputsType) HasTemplate() bool` - -HasTemplate returns a boolean if a field has been set. - -### GetTitle - -`func (o *SdwanTemplateInputsType) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *SdwanTemplateInputsType) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *SdwanTemplateInputsType) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *SdwanTemplateInputsType) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - -### GetType - -`func (o *SdwanTemplateInputsType) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *SdwanTemplateInputsType) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *SdwanTemplateInputsType) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *SdwanTemplateInputsType) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetValue - -`func (o *SdwanTemplateInputsType) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *SdwanTemplateInputsType) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *SdwanTemplateInputsType) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *SdwanTemplateInputsType) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanTemplateInputsTypeAllOf.md b/docs/SdwanTemplateInputsTypeAllOf.md deleted file mode 100644 index 83cb5663df..0000000000 --- a/docs/SdwanTemplateInputsTypeAllOf.md +++ /dev/null @@ -1,254 +0,0 @@ -# SdwanTemplateInputsTypeAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.TemplateInputsType"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.TemplateInputsType"] -**Editable** | Pointer to **bool** | Defines if the input is editable. | [optional] [default to false] -**Key** | Pointer to **string** | Name of the dynamic input key specified in the vManage template. | [optional] -**Required** | Pointer to **bool** | Defines if the input is optional or required. | [optional] [default to false] -**Template** | Pointer to **string** | Refers to the name of the vManage template that this inputs belongs to. | [optional] [readonly] -**Title** | Pointer to **string** | Label for the property being saved in the current instance of template Input. | [optional] -**Type** | Pointer to **string** | Defines the object type for the input. | [optional] [default to "string"] -**Value** | Pointer to **string** | Value of the dynamic input key specfied in the vManage template. | [optional] - -## Methods - -### NewSdwanTemplateInputsTypeAllOf - -`func NewSdwanTemplateInputsTypeAllOf(classId string, objectType string, ) *SdwanTemplateInputsTypeAllOf` - -NewSdwanTemplateInputsTypeAllOf instantiates a new SdwanTemplateInputsTypeAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanTemplateInputsTypeAllOfWithDefaults - -`func NewSdwanTemplateInputsTypeAllOfWithDefaults() *SdwanTemplateInputsTypeAllOf` - -NewSdwanTemplateInputsTypeAllOfWithDefaults instantiates a new SdwanTemplateInputsTypeAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanTemplateInputsTypeAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanTemplateInputsTypeAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanTemplateInputsTypeAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanTemplateInputsTypeAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetEditable - -`func (o *SdwanTemplateInputsTypeAllOf) GetEditable() bool` - -GetEditable returns the Editable field if non-nil, zero value otherwise. - -### GetEditableOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetEditableOk() (*bool, bool)` - -GetEditableOk returns a tuple with the Editable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEditable - -`func (o *SdwanTemplateInputsTypeAllOf) SetEditable(v bool)` - -SetEditable sets Editable field to given value. - -### HasEditable - -`func (o *SdwanTemplateInputsTypeAllOf) HasEditable() bool` - -HasEditable returns a boolean if a field has been set. - -### GetKey - -`func (o *SdwanTemplateInputsTypeAllOf) GetKey() string` - -GetKey returns the Key field if non-nil, zero value otherwise. - -### GetKeyOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetKeyOk() (*string, bool)` - -GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetKey - -`func (o *SdwanTemplateInputsTypeAllOf) SetKey(v string)` - -SetKey sets Key field to given value. - -### HasKey - -`func (o *SdwanTemplateInputsTypeAllOf) HasKey() bool` - -HasKey returns a boolean if a field has been set. - -### GetRequired - -`func (o *SdwanTemplateInputsTypeAllOf) GetRequired() bool` - -GetRequired returns the Required field if non-nil, zero value otherwise. - -### GetRequiredOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetRequiredOk() (*bool, bool)` - -GetRequiredOk returns a tuple with the Required field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRequired - -`func (o *SdwanTemplateInputsTypeAllOf) SetRequired(v bool)` - -SetRequired sets Required field to given value. - -### HasRequired - -`func (o *SdwanTemplateInputsTypeAllOf) HasRequired() bool` - -HasRequired returns a boolean if a field has been set. - -### GetTemplate - -`func (o *SdwanTemplateInputsTypeAllOf) GetTemplate() string` - -GetTemplate returns the Template field if non-nil, zero value otherwise. - -### GetTemplateOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetTemplateOk() (*string, bool)` - -GetTemplateOk returns a tuple with the Template field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTemplate - -`func (o *SdwanTemplateInputsTypeAllOf) SetTemplate(v string)` - -SetTemplate sets Template field to given value. - -### HasTemplate - -`func (o *SdwanTemplateInputsTypeAllOf) HasTemplate() bool` - -HasTemplate returns a boolean if a field has been set. - -### GetTitle - -`func (o *SdwanTemplateInputsTypeAllOf) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *SdwanTemplateInputsTypeAllOf) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *SdwanTemplateInputsTypeAllOf) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - -### GetType - -`func (o *SdwanTemplateInputsTypeAllOf) GetType() string` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetTypeOk() (*string, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *SdwanTemplateInputsTypeAllOf) SetType(v string)` - -SetType sets Type field to given value. - -### HasType - -`func (o *SdwanTemplateInputsTypeAllOf) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetValue - -`func (o *SdwanTemplateInputsTypeAllOf) GetValue() string` - -GetValue returns the Value field if non-nil, zero value otherwise. - -### GetValueOk - -`func (o *SdwanTemplateInputsTypeAllOf) GetValueOk() (*string, bool)` - -GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetValue - -`func (o *SdwanTemplateInputsTypeAllOf) SetValue(v string)` - -SetValue sets Value field to given value. - -### HasValue - -`func (o *SdwanTemplateInputsTypeAllOf) HasValue() bool` - -HasValue returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanVmanageAccountPolicy.md b/docs/SdwanVmanageAccountPolicy.md deleted file mode 100644 index 354f92c89d..0000000000 --- a/docs/SdwanVmanageAccountPolicy.md +++ /dev/null @@ -1,264 +0,0 @@ -# SdwanVmanageAccountPolicy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.VmanageAccountPolicy"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.VmanageAccountPolicy"] -**EndpointAddress** | Pointer to **string** | VManage server hostname (FQDN) that the acccount holds information for. | [optional] -**IsPasswordSet** | Pointer to **bool** | Indicates whether the value of the 'password' property has been set. | [optional] [readonly] [default to false] -**Password** | Pointer to **string** | Local password for authenticating with the vManage server. | [optional] -**Port** | Pointer to **int64** | VManage Port number on which the application is running. | [optional] [default to 8443] -**Username** | Pointer to **string** | Local username for authenticating with the vManage server. | [optional] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profiles** | Pointer to [**[]SdwanProfileRelationship**](SdwanProfileRelationship.md) | An array of relationships to sdwanProfile resources. | [optional] - -## Methods - -### NewSdwanVmanageAccountPolicy - -`func NewSdwanVmanageAccountPolicy(classId string, objectType string, ) *SdwanVmanageAccountPolicy` - -NewSdwanVmanageAccountPolicy instantiates a new SdwanVmanageAccountPolicy object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanVmanageAccountPolicyWithDefaults - -`func NewSdwanVmanageAccountPolicyWithDefaults() *SdwanVmanageAccountPolicy` - -NewSdwanVmanageAccountPolicyWithDefaults instantiates a new SdwanVmanageAccountPolicy object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanVmanageAccountPolicy) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanVmanageAccountPolicy) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanVmanageAccountPolicy) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanVmanageAccountPolicy) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanVmanageAccountPolicy) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanVmanageAccountPolicy) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetEndpointAddress - -`func (o *SdwanVmanageAccountPolicy) GetEndpointAddress() string` - -GetEndpointAddress returns the EndpointAddress field if non-nil, zero value otherwise. - -### GetEndpointAddressOk - -`func (o *SdwanVmanageAccountPolicy) GetEndpointAddressOk() (*string, bool)` - -GetEndpointAddressOk returns a tuple with the EndpointAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEndpointAddress - -`func (o *SdwanVmanageAccountPolicy) SetEndpointAddress(v string)` - -SetEndpointAddress sets EndpointAddress field to given value. - -### HasEndpointAddress - -`func (o *SdwanVmanageAccountPolicy) HasEndpointAddress() bool` - -HasEndpointAddress returns a boolean if a field has been set. - -### GetIsPasswordSet - -`func (o *SdwanVmanageAccountPolicy) GetIsPasswordSet() bool` - -GetIsPasswordSet returns the IsPasswordSet field if non-nil, zero value otherwise. - -### GetIsPasswordSetOk - -`func (o *SdwanVmanageAccountPolicy) GetIsPasswordSetOk() (*bool, bool)` - -GetIsPasswordSetOk returns a tuple with the IsPasswordSet field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsPasswordSet - -`func (o *SdwanVmanageAccountPolicy) SetIsPasswordSet(v bool)` - -SetIsPasswordSet sets IsPasswordSet field to given value. - -### HasIsPasswordSet - -`func (o *SdwanVmanageAccountPolicy) HasIsPasswordSet() bool` - -HasIsPasswordSet returns a boolean if a field has been set. - -### GetPassword - -`func (o *SdwanVmanageAccountPolicy) GetPassword() string` - -GetPassword returns the Password field if non-nil, zero value otherwise. - -### GetPasswordOk - -`func (o *SdwanVmanageAccountPolicy) GetPasswordOk() (*string, bool)` - -GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPassword - -`func (o *SdwanVmanageAccountPolicy) SetPassword(v string)` - -SetPassword sets Password field to given value. - -### HasPassword - -`func (o *SdwanVmanageAccountPolicy) HasPassword() bool` - -HasPassword returns a boolean if a field has been set. - -### GetPort - -`func (o *SdwanVmanageAccountPolicy) GetPort() int64` - -GetPort returns the Port field if non-nil, zero value otherwise. - -### GetPortOk - -`func (o *SdwanVmanageAccountPolicy) GetPortOk() (*int64, bool)` - -GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPort - -`func (o *SdwanVmanageAccountPolicy) SetPort(v int64)` - -SetPort sets Port field to given value. - -### HasPort - -`func (o *SdwanVmanageAccountPolicy) HasPort() bool` - -HasPort returns a boolean if a field has been set. - -### GetUsername - -`func (o *SdwanVmanageAccountPolicy) GetUsername() string` - -GetUsername returns the Username field if non-nil, zero value otherwise. - -### GetUsernameOk - -`func (o *SdwanVmanageAccountPolicy) GetUsernameOk() (*string, bool)` - -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsername - -`func (o *SdwanVmanageAccountPolicy) SetUsername(v string)` - -SetUsername sets Username field to given value. - -### HasUsername - -`func (o *SdwanVmanageAccountPolicy) HasUsername() bool` - -HasUsername returns a boolean if a field has been set. - -### GetOrganization - -`func (o *SdwanVmanageAccountPolicy) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanVmanageAccountPolicy) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanVmanageAccountPolicy) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanVmanageAccountPolicy) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfiles - -`func (o *SdwanVmanageAccountPolicy) GetProfiles() []SdwanProfileRelationship` - -GetProfiles returns the Profiles field if non-nil, zero value otherwise. - -### GetProfilesOk - -`func (o *SdwanVmanageAccountPolicy) GetProfilesOk() (*[]SdwanProfileRelationship, bool)` - -GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfiles - -`func (o *SdwanVmanageAccountPolicy) SetProfiles(v []SdwanProfileRelationship)` - -SetProfiles sets Profiles field to given value. - -### HasProfiles - -`func (o *SdwanVmanageAccountPolicy) HasProfiles() bool` - -HasProfiles returns a boolean if a field has been set. - -### SetProfilesNil - -`func (o *SdwanVmanageAccountPolicy) SetProfilesNil(b bool)` - - SetProfilesNil sets the value for Profiles to be an explicit nil - -### UnsetProfiles -`func (o *SdwanVmanageAccountPolicy) UnsetProfiles()` - -UnsetProfiles ensures that no value is present for Profiles, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanVmanageAccountPolicyAllOf.md b/docs/SdwanVmanageAccountPolicyAllOf.md deleted file mode 100644 index 262fd37ee3..0000000000 --- a/docs/SdwanVmanageAccountPolicyAllOf.md +++ /dev/null @@ -1,264 +0,0 @@ -# SdwanVmanageAccountPolicyAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "sdwan.VmanageAccountPolicy"] -**ObjectType** | **string** | The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. | [default to "sdwan.VmanageAccountPolicy"] -**EndpointAddress** | Pointer to **string** | VManage server hostname (FQDN) that the acccount holds information for. | [optional] -**IsPasswordSet** | Pointer to **bool** | Indicates whether the value of the 'password' property has been set. | [optional] [readonly] [default to false] -**Password** | Pointer to **string** | Local password for authenticating with the vManage server. | [optional] -**Port** | Pointer to **int64** | VManage Port number on which the application is running. | [optional] [default to 8443] -**Username** | Pointer to **string** | Local username for authenticating with the vManage server. | [optional] -**Organization** | Pointer to [**OrganizationOrganizationRelationship**](OrganizationOrganizationRelationship.md) | | [optional] -**Profiles** | Pointer to [**[]SdwanProfileRelationship**](SdwanProfileRelationship.md) | An array of relationships to sdwanProfile resources. | [optional] - -## Methods - -### NewSdwanVmanageAccountPolicyAllOf - -`func NewSdwanVmanageAccountPolicyAllOf(classId string, objectType string, ) *SdwanVmanageAccountPolicyAllOf` - -NewSdwanVmanageAccountPolicyAllOf instantiates a new SdwanVmanageAccountPolicyAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanVmanageAccountPolicyAllOfWithDefaults - -`func NewSdwanVmanageAccountPolicyAllOfWithDefaults() *SdwanVmanageAccountPolicyAllOf` - -NewSdwanVmanageAccountPolicyAllOfWithDefaults instantiates a new SdwanVmanageAccountPolicyAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanVmanageAccountPolicyAllOf) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanVmanageAccountPolicyAllOf) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanVmanageAccountPolicyAllOf) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanVmanageAccountPolicyAllOf) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetEndpointAddress - -`func (o *SdwanVmanageAccountPolicyAllOf) GetEndpointAddress() string` - -GetEndpointAddress returns the EndpointAddress field if non-nil, zero value otherwise. - -### GetEndpointAddressOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetEndpointAddressOk() (*string, bool)` - -GetEndpointAddressOk returns a tuple with the EndpointAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEndpointAddress - -`func (o *SdwanVmanageAccountPolicyAllOf) SetEndpointAddress(v string)` - -SetEndpointAddress sets EndpointAddress field to given value. - -### HasEndpointAddress - -`func (o *SdwanVmanageAccountPolicyAllOf) HasEndpointAddress() bool` - -HasEndpointAddress returns a boolean if a field has been set. - -### GetIsPasswordSet - -`func (o *SdwanVmanageAccountPolicyAllOf) GetIsPasswordSet() bool` - -GetIsPasswordSet returns the IsPasswordSet field if non-nil, zero value otherwise. - -### GetIsPasswordSetOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetIsPasswordSetOk() (*bool, bool)` - -GetIsPasswordSetOk returns a tuple with the IsPasswordSet field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsPasswordSet - -`func (o *SdwanVmanageAccountPolicyAllOf) SetIsPasswordSet(v bool)` - -SetIsPasswordSet sets IsPasswordSet field to given value. - -### HasIsPasswordSet - -`func (o *SdwanVmanageAccountPolicyAllOf) HasIsPasswordSet() bool` - -HasIsPasswordSet returns a boolean if a field has been set. - -### GetPassword - -`func (o *SdwanVmanageAccountPolicyAllOf) GetPassword() string` - -GetPassword returns the Password field if non-nil, zero value otherwise. - -### GetPasswordOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetPasswordOk() (*string, bool)` - -GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPassword - -`func (o *SdwanVmanageAccountPolicyAllOf) SetPassword(v string)` - -SetPassword sets Password field to given value. - -### HasPassword - -`func (o *SdwanVmanageAccountPolicyAllOf) HasPassword() bool` - -HasPassword returns a boolean if a field has been set. - -### GetPort - -`func (o *SdwanVmanageAccountPolicyAllOf) GetPort() int64` - -GetPort returns the Port field if non-nil, zero value otherwise. - -### GetPortOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetPortOk() (*int64, bool)` - -GetPortOk returns a tuple with the Port field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPort - -`func (o *SdwanVmanageAccountPolicyAllOf) SetPort(v int64)` - -SetPort sets Port field to given value. - -### HasPort - -`func (o *SdwanVmanageAccountPolicyAllOf) HasPort() bool` - -HasPort returns a boolean if a field has been set. - -### GetUsername - -`func (o *SdwanVmanageAccountPolicyAllOf) GetUsername() string` - -GetUsername returns the Username field if non-nil, zero value otherwise. - -### GetUsernameOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetUsernameOk() (*string, bool)` - -GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUsername - -`func (o *SdwanVmanageAccountPolicyAllOf) SetUsername(v string)` - -SetUsername sets Username field to given value. - -### HasUsername - -`func (o *SdwanVmanageAccountPolicyAllOf) HasUsername() bool` - -HasUsername returns a boolean if a field has been set. - -### GetOrganization - -`func (o *SdwanVmanageAccountPolicyAllOf) GetOrganization() OrganizationOrganizationRelationship` - -GetOrganization returns the Organization field if non-nil, zero value otherwise. - -### GetOrganizationOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool)` - -GetOrganizationOk returns a tuple with the Organization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOrganization - -`func (o *SdwanVmanageAccountPolicyAllOf) SetOrganization(v OrganizationOrganizationRelationship)` - -SetOrganization sets Organization field to given value. - -### HasOrganization - -`func (o *SdwanVmanageAccountPolicyAllOf) HasOrganization() bool` - -HasOrganization returns a boolean if a field has been set. - -### GetProfiles - -`func (o *SdwanVmanageAccountPolicyAllOf) GetProfiles() []SdwanProfileRelationship` - -GetProfiles returns the Profiles field if non-nil, zero value otherwise. - -### GetProfilesOk - -`func (o *SdwanVmanageAccountPolicyAllOf) GetProfilesOk() (*[]SdwanProfileRelationship, bool)` - -GetProfilesOk returns a tuple with the Profiles field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProfiles - -`func (o *SdwanVmanageAccountPolicyAllOf) SetProfiles(v []SdwanProfileRelationship)` - -SetProfiles sets Profiles field to given value. - -### HasProfiles - -`func (o *SdwanVmanageAccountPolicyAllOf) HasProfiles() bool` - -HasProfiles returns a boolean if a field has been set. - -### SetProfilesNil - -`func (o *SdwanVmanageAccountPolicyAllOf) SetProfilesNil(b bool)` - - SetProfilesNil sets the value for Profiles to be an explicit nil - -### UnsetProfiles -`func (o *SdwanVmanageAccountPolicyAllOf) UnsetProfiles()` - -UnsetProfiles ensures that no value is present for Profiles, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanVmanageAccountPolicyList.md b/docs/SdwanVmanageAccountPolicyList.md deleted file mode 100644 index c38c8a7016..0000000000 --- a/docs/SdwanVmanageAccountPolicyList.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanVmanageAccountPolicyList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.VmanageAccountPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) | The array of 'sdwan.VmanageAccountPolicy' resources matching the request. | [optional] - -## Methods - -### NewSdwanVmanageAccountPolicyList - -`func NewSdwanVmanageAccountPolicyList() *SdwanVmanageAccountPolicyList` - -NewSdwanVmanageAccountPolicyList instantiates a new SdwanVmanageAccountPolicyList object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanVmanageAccountPolicyListWithDefaults - -`func NewSdwanVmanageAccountPolicyListWithDefaults() *SdwanVmanageAccountPolicyList` - -NewSdwanVmanageAccountPolicyListWithDefaults instantiates a new SdwanVmanageAccountPolicyList object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanVmanageAccountPolicyList) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanVmanageAccountPolicyList) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanVmanageAccountPolicyList) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanVmanageAccountPolicyList) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanVmanageAccountPolicyList) GetResults() []SdwanVmanageAccountPolicy` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanVmanageAccountPolicyList) GetResultsOk() (*[]SdwanVmanageAccountPolicy, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanVmanageAccountPolicyList) SetResults(v []SdwanVmanageAccountPolicy)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanVmanageAccountPolicyList) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanVmanageAccountPolicyList) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanVmanageAccountPolicyList) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanVmanageAccountPolicyListAllOf.md b/docs/SdwanVmanageAccountPolicyListAllOf.md deleted file mode 100644 index e54ff0df14..0000000000 --- a/docs/SdwanVmanageAccountPolicyListAllOf.md +++ /dev/null @@ -1,92 +0,0 @@ -# SdwanVmanageAccountPolicyListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Count** | Pointer to **int32** | The total number of 'sdwan.VmanageAccountPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]SdwanVmanageAccountPolicy**](SdwanVmanageAccountPolicy.md) | The array of 'sdwan.VmanageAccountPolicy' resources matching the request. | [optional] - -## Methods - -### NewSdwanVmanageAccountPolicyListAllOf - -`func NewSdwanVmanageAccountPolicyListAllOf() *SdwanVmanageAccountPolicyListAllOf` - -NewSdwanVmanageAccountPolicyListAllOf instantiates a new SdwanVmanageAccountPolicyListAllOf object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanVmanageAccountPolicyListAllOfWithDefaults - -`func NewSdwanVmanageAccountPolicyListAllOfWithDefaults() *SdwanVmanageAccountPolicyListAllOf` - -NewSdwanVmanageAccountPolicyListAllOfWithDefaults instantiates a new SdwanVmanageAccountPolicyListAllOf object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCount - -`func (o *SdwanVmanageAccountPolicyListAllOf) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanVmanageAccountPolicyListAllOf) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanVmanageAccountPolicyListAllOf) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanVmanageAccountPolicyListAllOf) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanVmanageAccountPolicyListAllOf) GetResults() []SdwanVmanageAccountPolicy` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanVmanageAccountPolicyListAllOf) GetResultsOk() (*[]SdwanVmanageAccountPolicy, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanVmanageAccountPolicyListAllOf) SetResults(v []SdwanVmanageAccountPolicy)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanVmanageAccountPolicyListAllOf) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanVmanageAccountPolicyListAllOf) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanVmanageAccountPolicyListAllOf) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanVmanageAccountPolicyRelationship.md b/docs/SdwanVmanageAccountPolicyRelationship.md deleted file mode 100644 index de43a95820..0000000000 --- a/docs/SdwanVmanageAccountPolicyRelationship.md +++ /dev/null @@ -1,150 +0,0 @@ -# SdwanVmanageAccountPolicyRelationship - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ClassId** | **string** | The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. | [default to "mo.MoRef"] -**ObjectType** | **string** | The fully-qualified name of the remote type referred by this relationship. | -**Moid** | Pointer to **string** | The Moid of the referenced REST resource. | [optional] -**Selector** | Pointer to **string** | An OData $filter expression which describes the REST resource to be referenced. This field may be set instead of 'moid' by clients. 1. If 'moid' is set this field is ignored. 1. If 'selector' is set and 'moid' is empty/absent from the request, Intersight determines the Moid of the resource matching the filter expression and populates it in the MoRef that is part of the object instance being inserted/updated to fulfill the REST request. An error is returned if the filter matches zero or more than one REST resource. An example filter string is: Serial eq '3AA8B7T11'. | [optional] -**Link** | Pointer to **string** | A URL to an instance of the 'mo.MoRef' class. | [optional] - -## Methods - -### NewSdwanVmanageAccountPolicyRelationship - -`func NewSdwanVmanageAccountPolicyRelationship(classId string, objectType string, ) *SdwanVmanageAccountPolicyRelationship` - -NewSdwanVmanageAccountPolicyRelationship instantiates a new SdwanVmanageAccountPolicyRelationship object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanVmanageAccountPolicyRelationshipWithDefaults - -`func NewSdwanVmanageAccountPolicyRelationshipWithDefaults() *SdwanVmanageAccountPolicyRelationship` - -NewSdwanVmanageAccountPolicyRelationshipWithDefaults instantiates a new SdwanVmanageAccountPolicyRelationship object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetClassId - -`func (o *SdwanVmanageAccountPolicyRelationship) GetClassId() string` - -GetClassId returns the ClassId field if non-nil, zero value otherwise. - -### GetClassIdOk - -`func (o *SdwanVmanageAccountPolicyRelationship) GetClassIdOk() (*string, bool)` - -GetClassIdOk returns a tuple with the ClassId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClassId - -`func (o *SdwanVmanageAccountPolicyRelationship) SetClassId(v string)` - -SetClassId sets ClassId field to given value. - - -### GetObjectType - -`func (o *SdwanVmanageAccountPolicyRelationship) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanVmanageAccountPolicyRelationship) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanVmanageAccountPolicyRelationship) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetMoid - -`func (o *SdwanVmanageAccountPolicyRelationship) GetMoid() string` - -GetMoid returns the Moid field if non-nil, zero value otherwise. - -### GetMoidOk - -`func (o *SdwanVmanageAccountPolicyRelationship) GetMoidOk() (*string, bool)` - -GetMoidOk returns a tuple with the Moid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMoid - -`func (o *SdwanVmanageAccountPolicyRelationship) SetMoid(v string)` - -SetMoid sets Moid field to given value. - -### HasMoid - -`func (o *SdwanVmanageAccountPolicyRelationship) HasMoid() bool` - -HasMoid returns a boolean if a field has been set. - -### GetSelector - -`func (o *SdwanVmanageAccountPolicyRelationship) GetSelector() string` - -GetSelector returns the Selector field if non-nil, zero value otherwise. - -### GetSelectorOk - -`func (o *SdwanVmanageAccountPolicyRelationship) GetSelectorOk() (*string, bool)` - -GetSelectorOk returns a tuple with the Selector field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSelector - -`func (o *SdwanVmanageAccountPolicyRelationship) SetSelector(v string)` - -SetSelector sets Selector field to given value. - -### HasSelector - -`func (o *SdwanVmanageAccountPolicyRelationship) HasSelector() bool` - -HasSelector returns a boolean if a field has been set. - -### GetLink - -`func (o *SdwanVmanageAccountPolicyRelationship) GetLink() string` - -GetLink returns the Link field if non-nil, zero value otherwise. - -### GetLinkOk - -`func (o *SdwanVmanageAccountPolicyRelationship) GetLinkOk() (*string, bool)` - -GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLink - -`func (o *SdwanVmanageAccountPolicyRelationship) SetLink(v string)` - -SetLink sets Link field to given value. - -### HasLink - -`func (o *SdwanVmanageAccountPolicyRelationship) HasLink() bool` - -HasLink returns a boolean if a field has been set. - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/SdwanVmanageAccountPolicyResponse.md b/docs/SdwanVmanageAccountPolicyResponse.md deleted file mode 100644 index 19e9e8a888..0000000000 --- a/docs/SdwanVmanageAccountPolicyResponse.md +++ /dev/null @@ -1,113 +0,0 @@ -# SdwanVmanageAccountPolicyResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ObjectType** | **string** | A discriminator value to disambiguate the schema of a HTTP GET response body. | -**Count** | Pointer to **int32** | The total number of 'sdwan.VmanageAccountPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. | [optional] -**Results** | Pointer to [**[]MoTagKeySummary**](MoTagKeySummary.md) | | [optional] - -## Methods - -### NewSdwanVmanageAccountPolicyResponse - -`func NewSdwanVmanageAccountPolicyResponse(objectType string, ) *SdwanVmanageAccountPolicyResponse` - -NewSdwanVmanageAccountPolicyResponse instantiates a new SdwanVmanageAccountPolicyResponse object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewSdwanVmanageAccountPolicyResponseWithDefaults - -`func NewSdwanVmanageAccountPolicyResponseWithDefaults() *SdwanVmanageAccountPolicyResponse` - -NewSdwanVmanageAccountPolicyResponseWithDefaults instantiates a new SdwanVmanageAccountPolicyResponse object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetObjectType - -`func (o *SdwanVmanageAccountPolicyResponse) GetObjectType() string` - -GetObjectType returns the ObjectType field if non-nil, zero value otherwise. - -### GetObjectTypeOk - -`func (o *SdwanVmanageAccountPolicyResponse) GetObjectTypeOk() (*string, bool)` - -GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetObjectType - -`func (o *SdwanVmanageAccountPolicyResponse) SetObjectType(v string)` - -SetObjectType sets ObjectType field to given value. - - -### GetCount - -`func (o *SdwanVmanageAccountPolicyResponse) GetCount() int32` - -GetCount returns the Count field if non-nil, zero value otherwise. - -### GetCountOk - -`func (o *SdwanVmanageAccountPolicyResponse) GetCountOk() (*int32, bool)` - -GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCount - -`func (o *SdwanVmanageAccountPolicyResponse) SetCount(v int32)` - -SetCount sets Count field to given value. - -### HasCount - -`func (o *SdwanVmanageAccountPolicyResponse) HasCount() bool` - -HasCount returns a boolean if a field has been set. - -### GetResults - -`func (o *SdwanVmanageAccountPolicyResponse) GetResults() []MoTagKeySummary` - -GetResults returns the Results field if non-nil, zero value otherwise. - -### GetResultsOk - -`func (o *SdwanVmanageAccountPolicyResponse) GetResultsOk() (*[]MoTagKeySummary, bool)` - -GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetResults - -`func (o *SdwanVmanageAccountPolicyResponse) SetResults(v []MoTagKeySummary)` - -SetResults sets Results field to given value. - -### HasResults - -`func (o *SdwanVmanageAccountPolicyResponse) HasResults() bool` - -HasResults returns a boolean if a field has been set. - -### SetResultsNil - -`func (o *SdwanVmanageAccountPolicyResponse) SetResultsNil(b bool)` - - SetResultsNil sets the value for Results to be an explicit nil - -### UnsetResults -`func (o *SdwanVmanageAccountPolicyResponse) UnsetResults()` - -UnsetResults ensures that no value is present for Results, not even an explicit nil - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/StorageInitiator.md b/docs/StorageInitiator.md deleted file mode 100644 index f9388e4963..0000000000 --- a/docs/StorageInitiator.md +++ /dev/null @@ -1,30 +0,0 @@ -# StorageInitiator - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -## Methods - -### NewStorageInitiator - -`func NewStorageInitiator() *StorageInitiator` - -NewStorageInitiator instantiates a new StorageInitiator object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewStorageInitiatorWithDefaults - -`func NewStorageInitiatorWithDefaults() *StorageInitiator` - -NewStorageInitiatorWithDefaults instantiates a new StorageInitiator object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/go.mod b/go.mod index 3bbb5e4a8a..677cf95563 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,4 @@ module github.com/CiscoDevNet/intersight-go go 1.13 -require ( - golang.org/x/oauth2 v0.0.0-20210323180902-22b0adad7558 -) +require golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 diff --git a/go.sum b/go.sum index 734252e681..00e54fa5c7 100644 --- a/go.sum +++ b/go.sum @@ -1,13 +1,370 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd h1:O7DYs+zxREGLKzKoMQrtrEacpb0ZVXA5rIwylE2Xchk= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 h1:OSnWWcOd/CtWQC2cYSBgbTSJv3ciqd8r54ySIW2y3RE= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508= google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6 h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0 h1:Ejskq+SyPohKW+1uil0JJMtmHCgJPJ/qWTxr8qp+R4c= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= diff --git a/model_compute_bios_post_policy.go b/model_compute_bios_post_policy.go deleted file mode 100644 index b1c3b7598f..0000000000 --- a/model_compute_bios_post_policy.go +++ /dev/null @@ -1,303 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// ComputeBiosPostPolicy Policy to determine Bios Post completion during server profile deploy/undeploy. -type ComputeBiosPostPolicy struct { - PolicyAbstractPolicy - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to policyAbstractConfigProfile resources. - Profiles []PolicyAbstractConfigProfileRelationship `json:"Profiles,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ComputeBiosPostPolicy ComputeBiosPostPolicy - -// NewComputeBiosPostPolicy instantiates a new ComputeBiosPostPolicy object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComputeBiosPostPolicy(classId string, objectType string) *ComputeBiosPostPolicy { - this := ComputeBiosPostPolicy{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewComputeBiosPostPolicyWithDefaults instantiates a new ComputeBiosPostPolicy object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComputeBiosPostPolicyWithDefaults() *ComputeBiosPostPolicy { - this := ComputeBiosPostPolicy{} - var classId string = "compute.BiosPostPolicy" - this.ClassId = classId - var objectType string = "compute.BiosPostPolicy" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *ComputeBiosPostPolicy) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicy) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *ComputeBiosPostPolicy) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *ComputeBiosPostPolicy) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicy) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *ComputeBiosPostPolicy) SetObjectType(v string) { - o.ObjectType = v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *ComputeBiosPostPolicy) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicy) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicy) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *ComputeBiosPostPolicy) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfiles returns the Profiles field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ComputeBiosPostPolicy) GetProfiles() []PolicyAbstractConfigProfileRelationship { - if o == nil { - var ret []PolicyAbstractConfigProfileRelationship - return ret - } - return o.Profiles -} - -// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ComputeBiosPostPolicy) GetProfilesOk() (*[]PolicyAbstractConfigProfileRelationship, bool) { - if o == nil || o.Profiles == nil { - return nil, false - } - return &o.Profiles, true -} - -// HasProfiles returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicy) HasProfiles() bool { - if o != nil && o.Profiles != nil { - return true - } - - return false -} - -// SetProfiles gets a reference to the given []PolicyAbstractConfigProfileRelationship and assigns it to the Profiles field. -func (o *ComputeBiosPostPolicy) SetProfiles(v []PolicyAbstractConfigProfileRelationship) { - o.Profiles = v -} - -func (o ComputeBiosPostPolicy) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedPolicyAbstractPolicy, errPolicyAbstractPolicy := json.Marshal(o.PolicyAbstractPolicy) - if errPolicyAbstractPolicy != nil { - return []byte{}, errPolicyAbstractPolicy - } - errPolicyAbstractPolicy = json.Unmarshal([]byte(serializedPolicyAbstractPolicy), &toSerialize) - if errPolicyAbstractPolicy != nil { - return []byte{}, errPolicyAbstractPolicy - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profiles != nil { - toSerialize["Profiles"] = o.Profiles - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ComputeBiosPostPolicy) UnmarshalJSON(bytes []byte) (err error) { - type ComputeBiosPostPolicyWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to policyAbstractConfigProfile resources. - Profiles []PolicyAbstractConfigProfileRelationship `json:"Profiles,omitempty"` - } - - varComputeBiosPostPolicyWithoutEmbeddedStruct := ComputeBiosPostPolicyWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varComputeBiosPostPolicyWithoutEmbeddedStruct) - if err == nil { - varComputeBiosPostPolicy := _ComputeBiosPostPolicy{} - varComputeBiosPostPolicy.ClassId = varComputeBiosPostPolicyWithoutEmbeddedStruct.ClassId - varComputeBiosPostPolicy.ObjectType = varComputeBiosPostPolicyWithoutEmbeddedStruct.ObjectType - varComputeBiosPostPolicy.Organization = varComputeBiosPostPolicyWithoutEmbeddedStruct.Organization - varComputeBiosPostPolicy.Profiles = varComputeBiosPostPolicyWithoutEmbeddedStruct.Profiles - *o = ComputeBiosPostPolicy(varComputeBiosPostPolicy) - } else { - return err - } - - varComputeBiosPostPolicy := _ComputeBiosPostPolicy{} - - err = json.Unmarshal(bytes, &varComputeBiosPostPolicy) - if err == nil { - o.PolicyAbstractPolicy = varComputeBiosPostPolicy.PolicyAbstractPolicy - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profiles") - - // remove fields from embedded structs - reflectPolicyAbstractPolicy := reflect.ValueOf(o.PolicyAbstractPolicy) - for i := 0; i < reflectPolicyAbstractPolicy.Type().NumField(); i++ { - t := reflectPolicyAbstractPolicy.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableComputeBiosPostPolicy struct { - value *ComputeBiosPostPolicy - isSet bool -} - -func (v NullableComputeBiosPostPolicy) Get() *ComputeBiosPostPolicy { - return v.value -} - -func (v *NullableComputeBiosPostPolicy) Set(val *ComputeBiosPostPolicy) { - v.value = val - v.isSet = true -} - -func (v NullableComputeBiosPostPolicy) IsSet() bool { - return v.isSet -} - -func (v *NullableComputeBiosPostPolicy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComputeBiosPostPolicy(val *ComputeBiosPostPolicy) *NullableComputeBiosPostPolicy { - return &NullableComputeBiosPostPolicy{value: val, isSet: true} -} - -func (v NullableComputeBiosPostPolicy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComputeBiosPostPolicy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_compute_bios_post_policy_all_of.go b/model_compute_bios_post_policy_all_of.go deleted file mode 100644 index f67cb54894..0000000000 --- a/model_compute_bios_post_policy_all_of.go +++ /dev/null @@ -1,246 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// ComputeBiosPostPolicyAllOf Definition of the list of properties defined in 'compute.BiosPostPolicy', excluding properties defined in parent classes. -type ComputeBiosPostPolicyAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to policyAbstractConfigProfile resources. - Profiles []PolicyAbstractConfigProfileRelationship `json:"Profiles,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ComputeBiosPostPolicyAllOf ComputeBiosPostPolicyAllOf - -// NewComputeBiosPostPolicyAllOf instantiates a new ComputeBiosPostPolicyAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComputeBiosPostPolicyAllOf(classId string, objectType string) *ComputeBiosPostPolicyAllOf { - this := ComputeBiosPostPolicyAllOf{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewComputeBiosPostPolicyAllOfWithDefaults instantiates a new ComputeBiosPostPolicyAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComputeBiosPostPolicyAllOfWithDefaults() *ComputeBiosPostPolicyAllOf { - this := ComputeBiosPostPolicyAllOf{} - var classId string = "compute.BiosPostPolicy" - this.ClassId = classId - var objectType string = "compute.BiosPostPolicy" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *ComputeBiosPostPolicyAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicyAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *ComputeBiosPostPolicyAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *ComputeBiosPostPolicyAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicyAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *ComputeBiosPostPolicyAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *ComputeBiosPostPolicyAllOf) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicyAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicyAllOf) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *ComputeBiosPostPolicyAllOf) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfiles returns the Profiles field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ComputeBiosPostPolicyAllOf) GetProfiles() []PolicyAbstractConfigProfileRelationship { - if o == nil { - var ret []PolicyAbstractConfigProfileRelationship - return ret - } - return o.Profiles -} - -// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ComputeBiosPostPolicyAllOf) GetProfilesOk() (*[]PolicyAbstractConfigProfileRelationship, bool) { - if o == nil || o.Profiles == nil { - return nil, false - } - return &o.Profiles, true -} - -// HasProfiles returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicyAllOf) HasProfiles() bool { - if o != nil && o.Profiles != nil { - return true - } - - return false -} - -// SetProfiles gets a reference to the given []PolicyAbstractConfigProfileRelationship and assigns it to the Profiles field. -func (o *ComputeBiosPostPolicyAllOf) SetProfiles(v []PolicyAbstractConfigProfileRelationship) { - o.Profiles = v -} - -func (o ComputeBiosPostPolicyAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profiles != nil { - toSerialize["Profiles"] = o.Profiles - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ComputeBiosPostPolicyAllOf) UnmarshalJSON(bytes []byte) (err error) { - varComputeBiosPostPolicyAllOf := _ComputeBiosPostPolicyAllOf{} - - if err = json.Unmarshal(bytes, &varComputeBiosPostPolicyAllOf); err == nil { - *o = ComputeBiosPostPolicyAllOf(varComputeBiosPostPolicyAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profiles") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableComputeBiosPostPolicyAllOf struct { - value *ComputeBiosPostPolicyAllOf - isSet bool -} - -func (v NullableComputeBiosPostPolicyAllOf) Get() *ComputeBiosPostPolicyAllOf { - return v.value -} - -func (v *NullableComputeBiosPostPolicyAllOf) Set(val *ComputeBiosPostPolicyAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableComputeBiosPostPolicyAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableComputeBiosPostPolicyAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComputeBiosPostPolicyAllOf(val *ComputeBiosPostPolicyAllOf) *NullableComputeBiosPostPolicyAllOf { - return &NullableComputeBiosPostPolicyAllOf{value: val, isSet: true} -} - -func (v NullableComputeBiosPostPolicyAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComputeBiosPostPolicyAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_compute_bios_post_policy_list.go b/model_compute_bios_post_policy_list.go deleted file mode 100644 index 288ce948ce..0000000000 --- a/model_compute_bios_post_policy_list.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// ComputeBiosPostPolicyList This resource list is returned as a response to a HTTP GET request that does not include a specific resource identifier. -type ComputeBiosPostPolicyList struct { - MoBaseResponse - // The total number of 'compute.BiosPostPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'compute.BiosPostPolicy' resources matching the request. - Results []ComputeBiosPostPolicy `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ComputeBiosPostPolicyList ComputeBiosPostPolicyList - -// NewComputeBiosPostPolicyList instantiates a new ComputeBiosPostPolicyList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComputeBiosPostPolicyList(objectType string) *ComputeBiosPostPolicyList { - this := ComputeBiosPostPolicyList{} - this.ObjectType = objectType - return &this -} - -// NewComputeBiosPostPolicyListWithDefaults instantiates a new ComputeBiosPostPolicyList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComputeBiosPostPolicyListWithDefaults() *ComputeBiosPostPolicyList { - this := ComputeBiosPostPolicyList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *ComputeBiosPostPolicyList) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicyList) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicyList) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ComputeBiosPostPolicyList) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ComputeBiosPostPolicyList) GetResults() []ComputeBiosPostPolicy { - if o == nil { - var ret []ComputeBiosPostPolicy - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ComputeBiosPostPolicyList) GetResultsOk() (*[]ComputeBiosPostPolicy, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicyList) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []ComputeBiosPostPolicy and assigns it to the Results field. -func (o *ComputeBiosPostPolicyList) SetResults(v []ComputeBiosPostPolicy) { - o.Results = v -} - -func (o ComputeBiosPostPolicyList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseResponse, errMoBaseResponse := json.Marshal(o.MoBaseResponse) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - errMoBaseResponse = json.Unmarshal([]byte(serializedMoBaseResponse), &toSerialize) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ComputeBiosPostPolicyList) UnmarshalJSON(bytes []byte) (err error) { - type ComputeBiosPostPolicyListWithoutEmbeddedStruct struct { - // The total number of 'compute.BiosPostPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'compute.BiosPostPolicy' resources matching the request. - Results []ComputeBiosPostPolicy `json:"Results,omitempty"` - } - - varComputeBiosPostPolicyListWithoutEmbeddedStruct := ComputeBiosPostPolicyListWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varComputeBiosPostPolicyListWithoutEmbeddedStruct) - if err == nil { - varComputeBiosPostPolicyList := _ComputeBiosPostPolicyList{} - varComputeBiosPostPolicyList.Count = varComputeBiosPostPolicyListWithoutEmbeddedStruct.Count - varComputeBiosPostPolicyList.Results = varComputeBiosPostPolicyListWithoutEmbeddedStruct.Results - *o = ComputeBiosPostPolicyList(varComputeBiosPostPolicyList) - } else { - return err - } - - varComputeBiosPostPolicyList := _ComputeBiosPostPolicyList{} - - err = json.Unmarshal(bytes, &varComputeBiosPostPolicyList) - if err == nil { - o.MoBaseResponse = varComputeBiosPostPolicyList.MoBaseResponse - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - - // remove fields from embedded structs - reflectMoBaseResponse := reflect.ValueOf(o.MoBaseResponse) - for i := 0; i < reflectMoBaseResponse.Type().NumField(); i++ { - t := reflectMoBaseResponse.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableComputeBiosPostPolicyList struct { - value *ComputeBiosPostPolicyList - isSet bool -} - -func (v NullableComputeBiosPostPolicyList) Get() *ComputeBiosPostPolicyList { - return v.value -} - -func (v *NullableComputeBiosPostPolicyList) Set(val *ComputeBiosPostPolicyList) { - v.value = val - v.isSet = true -} - -func (v NullableComputeBiosPostPolicyList) IsSet() bool { - return v.isSet -} - -func (v *NullableComputeBiosPostPolicyList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComputeBiosPostPolicyList(val *ComputeBiosPostPolicyList) *NullableComputeBiosPostPolicyList { - return &NullableComputeBiosPostPolicyList{value: val, isSet: true} -} - -func (v NullableComputeBiosPostPolicyList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComputeBiosPostPolicyList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_compute_bios_post_policy_list_all_of.go b/model_compute_bios_post_policy_list_all_of.go deleted file mode 100644 index 8b829e24fc..0000000000 --- a/model_compute_bios_post_policy_list_all_of.go +++ /dev/null @@ -1,181 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// ComputeBiosPostPolicyListAllOf struct for ComputeBiosPostPolicyListAllOf -type ComputeBiosPostPolicyListAllOf struct { - // The total number of 'compute.BiosPostPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'compute.BiosPostPolicy' resources matching the request. - Results []ComputeBiosPostPolicy `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _ComputeBiosPostPolicyListAllOf ComputeBiosPostPolicyListAllOf - -// NewComputeBiosPostPolicyListAllOf instantiates a new ComputeBiosPostPolicyListAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewComputeBiosPostPolicyListAllOf() *ComputeBiosPostPolicyListAllOf { - this := ComputeBiosPostPolicyListAllOf{} - return &this -} - -// NewComputeBiosPostPolicyListAllOfWithDefaults instantiates a new ComputeBiosPostPolicyListAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewComputeBiosPostPolicyListAllOfWithDefaults() *ComputeBiosPostPolicyListAllOf { - this := ComputeBiosPostPolicyListAllOf{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *ComputeBiosPostPolicyListAllOf) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ComputeBiosPostPolicyListAllOf) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicyListAllOf) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *ComputeBiosPostPolicyListAllOf) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ComputeBiosPostPolicyListAllOf) GetResults() []ComputeBiosPostPolicy { - if o == nil { - var ret []ComputeBiosPostPolicy - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ComputeBiosPostPolicyListAllOf) GetResultsOk() (*[]ComputeBiosPostPolicy, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *ComputeBiosPostPolicyListAllOf) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []ComputeBiosPostPolicy and assigns it to the Results field. -func (o *ComputeBiosPostPolicyListAllOf) SetResults(v []ComputeBiosPostPolicy) { - o.Results = v -} - -func (o ComputeBiosPostPolicyListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *ComputeBiosPostPolicyListAllOf) UnmarshalJSON(bytes []byte) (err error) { - varComputeBiosPostPolicyListAllOf := _ComputeBiosPostPolicyListAllOf{} - - if err = json.Unmarshal(bytes, &varComputeBiosPostPolicyListAllOf); err == nil { - *o = ComputeBiosPostPolicyListAllOf(varComputeBiosPostPolicyListAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableComputeBiosPostPolicyListAllOf struct { - value *ComputeBiosPostPolicyListAllOf - isSet bool -} - -func (v NullableComputeBiosPostPolicyListAllOf) Get() *ComputeBiosPostPolicyListAllOf { - return v.value -} - -func (v *NullableComputeBiosPostPolicyListAllOf) Set(val *ComputeBiosPostPolicyListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableComputeBiosPostPolicyListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableComputeBiosPostPolicyListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComputeBiosPostPolicyListAllOf(val *ComputeBiosPostPolicyListAllOf) *NullableComputeBiosPostPolicyListAllOf { - return &NullableComputeBiosPostPolicyListAllOf{value: val, isSet: true} -} - -func (v NullableComputeBiosPostPolicyListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComputeBiosPostPolicyListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_compute_bios_post_policy_response.go b/model_compute_bios_post_policy_response.go deleted file mode 100644 index ed8b788293..0000000000 --- a/model_compute_bios_post_policy_response.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// ComputeBiosPostPolicyResponse - The response body of a HTTP GET request for the 'compute.BiosPostPolicy' resource. The value may be one of the following types. 1. When 'tag' is specified in the URL query, the response schema is a summary of the tag usage. 1. When '$apply' is specified in the URL query, the response schema is dynamically-generated schema based on the $apply value. 1. When '$count' is specified in the URL query, the response is a simple object providing the count of the resources. 1. In all other cases, the response is a list of 'compute.BiosPostPolicy' resources. -type ComputeBiosPostPolicyResponse struct { - ComputeBiosPostPolicyList *ComputeBiosPostPolicyList - MoAggregateTransform *MoAggregateTransform - MoDocumentCount *MoDocumentCount - MoTagSummary *MoTagSummary -} - -// ComputeBiosPostPolicyListAsComputeBiosPostPolicyResponse is a convenience function that returns ComputeBiosPostPolicyList wrapped in ComputeBiosPostPolicyResponse -func ComputeBiosPostPolicyListAsComputeBiosPostPolicyResponse(v *ComputeBiosPostPolicyList) ComputeBiosPostPolicyResponse { - return ComputeBiosPostPolicyResponse{ ComputeBiosPostPolicyList: v} -} - -// MoAggregateTransformAsComputeBiosPostPolicyResponse is a convenience function that returns MoAggregateTransform wrapped in ComputeBiosPostPolicyResponse -func MoAggregateTransformAsComputeBiosPostPolicyResponse(v *MoAggregateTransform) ComputeBiosPostPolicyResponse { - return ComputeBiosPostPolicyResponse{ MoAggregateTransform: v} -} - -// MoDocumentCountAsComputeBiosPostPolicyResponse is a convenience function that returns MoDocumentCount wrapped in ComputeBiosPostPolicyResponse -func MoDocumentCountAsComputeBiosPostPolicyResponse(v *MoDocumentCount) ComputeBiosPostPolicyResponse { - return ComputeBiosPostPolicyResponse{ MoDocumentCount: v} -} - -// MoTagSummaryAsComputeBiosPostPolicyResponse is a convenience function that returns MoTagSummary wrapped in ComputeBiosPostPolicyResponse -func MoTagSummaryAsComputeBiosPostPolicyResponse(v *MoTagSummary) ComputeBiosPostPolicyResponse { - return ComputeBiosPostPolicyResponse{ MoTagSummary: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *ComputeBiosPostPolicyResponse) UnmarshalJSON(data []byte) error { - var err error - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'compute.BiosPostPolicy.List' - if jsonDict["ObjectType"] == "compute.BiosPostPolicy.List" { - // try to unmarshal JSON data into ComputeBiosPostPolicyList - err = json.Unmarshal(data, &dst.ComputeBiosPostPolicyList) - if err == nil { - return nil // data stored in dst.ComputeBiosPostPolicyList, return on the first match - } else { - dst.ComputeBiosPostPolicyList = nil - return fmt.Errorf("Failed to unmarshal ComputeBiosPostPolicyResponse as ComputeBiosPostPolicyList: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.AggregateTransform' - if jsonDict["ObjectType"] == "mo.AggregateTransform" { - // try to unmarshal JSON data into MoAggregateTransform - err = json.Unmarshal(data, &dst.MoAggregateTransform) - if err == nil { - return nil // data stored in dst.MoAggregateTransform, return on the first match - } else { - dst.MoAggregateTransform = nil - return fmt.Errorf("Failed to unmarshal ComputeBiosPostPolicyResponse as MoAggregateTransform: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.DocumentCount' - if jsonDict["ObjectType"] == "mo.DocumentCount" { - // try to unmarshal JSON data into MoDocumentCount - err = json.Unmarshal(data, &dst.MoDocumentCount) - if err == nil { - return nil // data stored in dst.MoDocumentCount, return on the first match - } else { - dst.MoDocumentCount = nil - return fmt.Errorf("Failed to unmarshal ComputeBiosPostPolicyResponse as MoDocumentCount: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.TagSummary' - if jsonDict["ObjectType"] == "mo.TagSummary" { - // try to unmarshal JSON data into MoTagSummary - err = json.Unmarshal(data, &dst.MoTagSummary) - if err == nil { - return nil // data stored in dst.MoTagSummary, return on the first match - } else { - dst.MoTagSummary = nil - return fmt.Errorf("Failed to unmarshal ComputeBiosPostPolicyResponse as MoTagSummary: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src ComputeBiosPostPolicyResponse) MarshalJSON() ([]byte, error) { - if src.ComputeBiosPostPolicyList != nil { - return json.Marshal(&src.ComputeBiosPostPolicyList) - } - - if src.MoAggregateTransform != nil { - return json.Marshal(&src.MoAggregateTransform) - } - - if src.MoDocumentCount != nil { - return json.Marshal(&src.MoDocumentCount) - } - - if src.MoTagSummary != nil { - return json.Marshal(&src.MoTagSummary) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *ComputeBiosPostPolicyResponse) GetActualInstance() (interface{}) { - if obj.ComputeBiosPostPolicyList != nil { - return obj.ComputeBiosPostPolicyList - } - - if obj.MoAggregateTransform != nil { - return obj.MoAggregateTransform - } - - if obj.MoDocumentCount != nil { - return obj.MoDocumentCount - } - - if obj.MoTagSummary != nil { - return obj.MoTagSummary - } - - // all schemas are nil - return nil -} - -type NullableComputeBiosPostPolicyResponse struct { - value *ComputeBiosPostPolicyResponse - isSet bool -} - -func (v NullableComputeBiosPostPolicyResponse) Get() *ComputeBiosPostPolicyResponse { - return v.value -} - -func (v *NullableComputeBiosPostPolicyResponse) Set(val *ComputeBiosPostPolicyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableComputeBiosPostPolicyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableComputeBiosPostPolicyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableComputeBiosPostPolicyResponse(val *ComputeBiosPostPolicyResponse) *NullableComputeBiosPostPolicyResponse { - return &NullableComputeBiosPostPolicyResponse{value: val, isSet: true} -} - -func (v NullableComputeBiosPostPolicyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableComputeBiosPostPolicyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_firmware_include_component_list_type.go b/model_firmware_include_component_list_type.go deleted file mode 100644 index 91a8780fe4..0000000000 --- a/model_firmware_include_component_list_type.go +++ /dev/null @@ -1,302 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// FirmwareIncludeComponentListType The list of components to be included for firmware upgrade. -type FirmwareIncludeComponentListType struct { - MoBaseComplexType - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - IncludeLocalDiskList []string `json:"IncludeLocalDiskList,omitempty"` - IncludeStorageControllerList []string `json:"IncludeStorageControllerList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _FirmwareIncludeComponentListType FirmwareIncludeComponentListType - -// NewFirmwareIncludeComponentListType instantiates a new FirmwareIncludeComponentListType object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFirmwareIncludeComponentListType(classId string, objectType string) *FirmwareIncludeComponentListType { - this := FirmwareIncludeComponentListType{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewFirmwareIncludeComponentListTypeWithDefaults instantiates a new FirmwareIncludeComponentListType object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFirmwareIncludeComponentListTypeWithDefaults() *FirmwareIncludeComponentListType { - this := FirmwareIncludeComponentListType{} - var classId string = "firmware.IncludeComponentListType" - this.ClassId = classId - var objectType string = "firmware.IncludeComponentListType" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *FirmwareIncludeComponentListType) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *FirmwareIncludeComponentListType) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *FirmwareIncludeComponentListType) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *FirmwareIncludeComponentListType) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *FirmwareIncludeComponentListType) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *FirmwareIncludeComponentListType) SetObjectType(v string) { - o.ObjectType = v -} - -// GetIncludeLocalDiskList returns the IncludeLocalDiskList field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FirmwareIncludeComponentListType) GetIncludeLocalDiskList() []string { - if o == nil { - var ret []string - return ret - } - return o.IncludeLocalDiskList -} - -// GetIncludeLocalDiskListOk returns a tuple with the IncludeLocalDiskList field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FirmwareIncludeComponentListType) GetIncludeLocalDiskListOk() (*[]string, bool) { - if o == nil || o.IncludeLocalDiskList == nil { - return nil, false - } - return &o.IncludeLocalDiskList, true -} - -// HasIncludeLocalDiskList returns a boolean if a field has been set. -func (o *FirmwareIncludeComponentListType) HasIncludeLocalDiskList() bool { - if o != nil && o.IncludeLocalDiskList != nil { - return true - } - - return false -} - -// SetIncludeLocalDiskList gets a reference to the given []string and assigns it to the IncludeLocalDiskList field. -func (o *FirmwareIncludeComponentListType) SetIncludeLocalDiskList(v []string) { - o.IncludeLocalDiskList = v -} - -// GetIncludeStorageControllerList returns the IncludeStorageControllerList field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FirmwareIncludeComponentListType) GetIncludeStorageControllerList() []string { - if o == nil { - var ret []string - return ret - } - return o.IncludeStorageControllerList -} - -// GetIncludeStorageControllerListOk returns a tuple with the IncludeStorageControllerList field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FirmwareIncludeComponentListType) GetIncludeStorageControllerListOk() (*[]string, bool) { - if o == nil || o.IncludeStorageControllerList == nil { - return nil, false - } - return &o.IncludeStorageControllerList, true -} - -// HasIncludeStorageControllerList returns a boolean if a field has been set. -func (o *FirmwareIncludeComponentListType) HasIncludeStorageControllerList() bool { - if o != nil && o.IncludeStorageControllerList != nil { - return true - } - - return false -} - -// SetIncludeStorageControllerList gets a reference to the given []string and assigns it to the IncludeStorageControllerList field. -func (o *FirmwareIncludeComponentListType) SetIncludeStorageControllerList(v []string) { - o.IncludeStorageControllerList = v -} - -func (o FirmwareIncludeComponentListType) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseComplexType, errMoBaseComplexType := json.Marshal(o.MoBaseComplexType) - if errMoBaseComplexType != nil { - return []byte{}, errMoBaseComplexType - } - errMoBaseComplexType = json.Unmarshal([]byte(serializedMoBaseComplexType), &toSerialize) - if errMoBaseComplexType != nil { - return []byte{}, errMoBaseComplexType - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.IncludeLocalDiskList != nil { - toSerialize["IncludeLocalDiskList"] = o.IncludeLocalDiskList - } - if o.IncludeStorageControllerList != nil { - toSerialize["IncludeStorageControllerList"] = o.IncludeStorageControllerList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *FirmwareIncludeComponentListType) UnmarshalJSON(bytes []byte) (err error) { - type FirmwareIncludeComponentListTypeWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - IncludeLocalDiskList []string `json:"IncludeLocalDiskList,omitempty"` - IncludeStorageControllerList []string `json:"IncludeStorageControllerList,omitempty"` - } - - varFirmwareIncludeComponentListTypeWithoutEmbeddedStruct := FirmwareIncludeComponentListTypeWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varFirmwareIncludeComponentListTypeWithoutEmbeddedStruct) - if err == nil { - varFirmwareIncludeComponentListType := _FirmwareIncludeComponentListType{} - varFirmwareIncludeComponentListType.ClassId = varFirmwareIncludeComponentListTypeWithoutEmbeddedStruct.ClassId - varFirmwareIncludeComponentListType.ObjectType = varFirmwareIncludeComponentListTypeWithoutEmbeddedStruct.ObjectType - varFirmwareIncludeComponentListType.IncludeLocalDiskList = varFirmwareIncludeComponentListTypeWithoutEmbeddedStruct.IncludeLocalDiskList - varFirmwareIncludeComponentListType.IncludeStorageControllerList = varFirmwareIncludeComponentListTypeWithoutEmbeddedStruct.IncludeStorageControllerList - *o = FirmwareIncludeComponentListType(varFirmwareIncludeComponentListType) - } else { - return err - } - - varFirmwareIncludeComponentListType := _FirmwareIncludeComponentListType{} - - err = json.Unmarshal(bytes, &varFirmwareIncludeComponentListType) - if err == nil { - o.MoBaseComplexType = varFirmwareIncludeComponentListType.MoBaseComplexType - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "IncludeLocalDiskList") - delete(additionalProperties, "IncludeStorageControllerList") - - // remove fields from embedded structs - reflectMoBaseComplexType := reflect.ValueOf(o.MoBaseComplexType) - for i := 0; i < reflectMoBaseComplexType.Type().NumField(); i++ { - t := reflectMoBaseComplexType.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableFirmwareIncludeComponentListType struct { - value *FirmwareIncludeComponentListType - isSet bool -} - -func (v NullableFirmwareIncludeComponentListType) Get() *FirmwareIncludeComponentListType { - return v.value -} - -func (v *NullableFirmwareIncludeComponentListType) Set(val *FirmwareIncludeComponentListType) { - v.value = val - v.isSet = true -} - -func (v NullableFirmwareIncludeComponentListType) IsSet() bool { - return v.isSet -} - -func (v *NullableFirmwareIncludeComponentListType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFirmwareIncludeComponentListType(val *FirmwareIncludeComponentListType) *NullableFirmwareIncludeComponentListType { - return &NullableFirmwareIncludeComponentListType{value: val, isSet: true} -} - -func (v NullableFirmwareIncludeComponentListType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFirmwareIncludeComponentListType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_firmware_include_component_list_type_all_of.go b/model_firmware_include_component_list_type_all_of.go deleted file mode 100644 index 0d41f9f395..0000000000 --- a/model_firmware_include_component_list_type_all_of.go +++ /dev/null @@ -1,246 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// FirmwareIncludeComponentListTypeAllOf Definition of the list of properties defined in 'firmware.IncludeComponentListType', excluding properties defined in parent classes. -type FirmwareIncludeComponentListTypeAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - IncludeLocalDiskList []string `json:"IncludeLocalDiskList,omitempty"` - IncludeStorageControllerList []string `json:"IncludeStorageControllerList,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _FirmwareIncludeComponentListTypeAllOf FirmwareIncludeComponentListTypeAllOf - -// NewFirmwareIncludeComponentListTypeAllOf instantiates a new FirmwareIncludeComponentListTypeAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewFirmwareIncludeComponentListTypeAllOf(classId string, objectType string) *FirmwareIncludeComponentListTypeAllOf { - this := FirmwareIncludeComponentListTypeAllOf{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewFirmwareIncludeComponentListTypeAllOfWithDefaults instantiates a new FirmwareIncludeComponentListTypeAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewFirmwareIncludeComponentListTypeAllOfWithDefaults() *FirmwareIncludeComponentListTypeAllOf { - this := FirmwareIncludeComponentListTypeAllOf{} - var classId string = "firmware.IncludeComponentListType" - this.ClassId = classId - var objectType string = "firmware.IncludeComponentListType" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *FirmwareIncludeComponentListTypeAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *FirmwareIncludeComponentListTypeAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *FirmwareIncludeComponentListTypeAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *FirmwareIncludeComponentListTypeAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *FirmwareIncludeComponentListTypeAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *FirmwareIncludeComponentListTypeAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetIncludeLocalDiskList returns the IncludeLocalDiskList field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeLocalDiskList() []string { - if o == nil { - var ret []string - return ret - } - return o.IncludeLocalDiskList -} - -// GetIncludeLocalDiskListOk returns a tuple with the IncludeLocalDiskList field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeLocalDiskListOk() (*[]string, bool) { - if o == nil || o.IncludeLocalDiskList == nil { - return nil, false - } - return &o.IncludeLocalDiskList, true -} - -// HasIncludeLocalDiskList returns a boolean if a field has been set. -func (o *FirmwareIncludeComponentListTypeAllOf) HasIncludeLocalDiskList() bool { - if o != nil && o.IncludeLocalDiskList != nil { - return true - } - - return false -} - -// SetIncludeLocalDiskList gets a reference to the given []string and assigns it to the IncludeLocalDiskList field. -func (o *FirmwareIncludeComponentListTypeAllOf) SetIncludeLocalDiskList(v []string) { - o.IncludeLocalDiskList = v -} - -// GetIncludeStorageControllerList returns the IncludeStorageControllerList field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeStorageControllerList() []string { - if o == nil { - var ret []string - return ret - } - return o.IncludeStorageControllerList -} - -// GetIncludeStorageControllerListOk returns a tuple with the IncludeStorageControllerList field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FirmwareIncludeComponentListTypeAllOf) GetIncludeStorageControllerListOk() (*[]string, bool) { - if o == nil || o.IncludeStorageControllerList == nil { - return nil, false - } - return &o.IncludeStorageControllerList, true -} - -// HasIncludeStorageControllerList returns a boolean if a field has been set. -func (o *FirmwareIncludeComponentListTypeAllOf) HasIncludeStorageControllerList() bool { - if o != nil && o.IncludeStorageControllerList != nil { - return true - } - - return false -} - -// SetIncludeStorageControllerList gets a reference to the given []string and assigns it to the IncludeStorageControllerList field. -func (o *FirmwareIncludeComponentListTypeAllOf) SetIncludeStorageControllerList(v []string) { - o.IncludeStorageControllerList = v -} - -func (o FirmwareIncludeComponentListTypeAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.IncludeLocalDiskList != nil { - toSerialize["IncludeLocalDiskList"] = o.IncludeLocalDiskList - } - if o.IncludeStorageControllerList != nil { - toSerialize["IncludeStorageControllerList"] = o.IncludeStorageControllerList - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *FirmwareIncludeComponentListTypeAllOf) UnmarshalJSON(bytes []byte) (err error) { - varFirmwareIncludeComponentListTypeAllOf := _FirmwareIncludeComponentListTypeAllOf{} - - if err = json.Unmarshal(bytes, &varFirmwareIncludeComponentListTypeAllOf); err == nil { - *o = FirmwareIncludeComponentListTypeAllOf(varFirmwareIncludeComponentListTypeAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "IncludeLocalDiskList") - delete(additionalProperties, "IncludeStorageControllerList") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableFirmwareIncludeComponentListTypeAllOf struct { - value *FirmwareIncludeComponentListTypeAllOf - isSet bool -} - -func (v NullableFirmwareIncludeComponentListTypeAllOf) Get() *FirmwareIncludeComponentListTypeAllOf { - return v.value -} - -func (v *NullableFirmwareIncludeComponentListTypeAllOf) Set(val *FirmwareIncludeComponentListTypeAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableFirmwareIncludeComponentListTypeAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableFirmwareIncludeComponentListTypeAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableFirmwareIncludeComponentListTypeAllOf(val *FirmwareIncludeComponentListTypeAllOf) *NullableFirmwareIncludeComponentListTypeAllOf { - return &NullableFirmwareIncludeComponentListTypeAllOf{value: val, isSet: true} -} - -func (v NullableFirmwareIncludeComponentListTypeAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableFirmwareIncludeComponentListTypeAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_network_configuration_type.go b/model_sdwan_network_configuration_type.go deleted file mode 100644 index 37ad72a649..0000000000 --- a/model_sdwan_network_configuration_type.go +++ /dev/null @@ -1,349 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanNetworkConfigurationType Port Group, VLAN ID and Network Type mapping for virtual router configuration. -type SdwanNetworkConfigurationType struct { - MoBaseComplexType - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Type of the Port group being added. * `WAN` - Port-group being added is used for WAN traffic. * `LAN` - Port-group being added is used for LAN traffic. * `Management` - Port-group being added is used for Management traffic. - NetworkType *string `json:"NetworkType,omitempty"` - // Name of the Port Group to create. - PortGroup *string `json:"PortGroup,omitempty"` - // VLAN to be added to the Port Group. - Vlan *int64 `json:"Vlan,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanNetworkConfigurationType SdwanNetworkConfigurationType - -// NewSdwanNetworkConfigurationType instantiates a new SdwanNetworkConfigurationType object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanNetworkConfigurationType(classId string, objectType string) *SdwanNetworkConfigurationType { - this := SdwanNetworkConfigurationType{} - this.ClassId = classId - this.ObjectType = objectType - var networkType string = "WAN" - this.NetworkType = &networkType - return &this -} - -// NewSdwanNetworkConfigurationTypeWithDefaults instantiates a new SdwanNetworkConfigurationType object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanNetworkConfigurationTypeWithDefaults() *SdwanNetworkConfigurationType { - this := SdwanNetworkConfigurationType{} - var classId string = "sdwan.NetworkConfigurationType" - this.ClassId = classId - var objectType string = "sdwan.NetworkConfigurationType" - this.ObjectType = objectType - var networkType string = "WAN" - this.NetworkType = &networkType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanNetworkConfigurationType) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationType) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanNetworkConfigurationType) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanNetworkConfigurationType) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationType) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanNetworkConfigurationType) SetObjectType(v string) { - o.ObjectType = v -} - -// GetNetworkType returns the NetworkType field value if set, zero value otherwise. -func (o *SdwanNetworkConfigurationType) GetNetworkType() string { - if o == nil || o.NetworkType == nil { - var ret string - return ret - } - return *o.NetworkType -} - -// GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationType) GetNetworkTypeOk() (*string, bool) { - if o == nil || o.NetworkType == nil { - return nil, false - } - return o.NetworkType, true -} - -// HasNetworkType returns a boolean if a field has been set. -func (o *SdwanNetworkConfigurationType) HasNetworkType() bool { - if o != nil && o.NetworkType != nil { - return true - } - - return false -} - -// SetNetworkType gets a reference to the given string and assigns it to the NetworkType field. -func (o *SdwanNetworkConfigurationType) SetNetworkType(v string) { - o.NetworkType = &v -} - -// GetPortGroup returns the PortGroup field value if set, zero value otherwise. -func (o *SdwanNetworkConfigurationType) GetPortGroup() string { - if o == nil || o.PortGroup == nil { - var ret string - return ret - } - return *o.PortGroup -} - -// GetPortGroupOk returns a tuple with the PortGroup field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationType) GetPortGroupOk() (*string, bool) { - if o == nil || o.PortGroup == nil { - return nil, false - } - return o.PortGroup, true -} - -// HasPortGroup returns a boolean if a field has been set. -func (o *SdwanNetworkConfigurationType) HasPortGroup() bool { - if o != nil && o.PortGroup != nil { - return true - } - - return false -} - -// SetPortGroup gets a reference to the given string and assigns it to the PortGroup field. -func (o *SdwanNetworkConfigurationType) SetPortGroup(v string) { - o.PortGroup = &v -} - -// GetVlan returns the Vlan field value if set, zero value otherwise. -func (o *SdwanNetworkConfigurationType) GetVlan() int64 { - if o == nil || o.Vlan == nil { - var ret int64 - return ret - } - return *o.Vlan -} - -// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationType) GetVlanOk() (*int64, bool) { - if o == nil || o.Vlan == nil { - return nil, false - } - return o.Vlan, true -} - -// HasVlan returns a boolean if a field has been set. -func (o *SdwanNetworkConfigurationType) HasVlan() bool { - if o != nil && o.Vlan != nil { - return true - } - - return false -} - -// SetVlan gets a reference to the given int64 and assigns it to the Vlan field. -func (o *SdwanNetworkConfigurationType) SetVlan(v int64) { - o.Vlan = &v -} - -func (o SdwanNetworkConfigurationType) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseComplexType, errMoBaseComplexType := json.Marshal(o.MoBaseComplexType) - if errMoBaseComplexType != nil { - return []byte{}, errMoBaseComplexType - } - errMoBaseComplexType = json.Unmarshal([]byte(serializedMoBaseComplexType), &toSerialize) - if errMoBaseComplexType != nil { - return []byte{}, errMoBaseComplexType - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.NetworkType != nil { - toSerialize["NetworkType"] = o.NetworkType - } - if o.PortGroup != nil { - toSerialize["PortGroup"] = o.PortGroup - } - if o.Vlan != nil { - toSerialize["Vlan"] = o.Vlan - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanNetworkConfigurationType) UnmarshalJSON(bytes []byte) (err error) { - type SdwanNetworkConfigurationTypeWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Type of the Port group being added. * `WAN` - Port-group being added is used for WAN traffic. * `LAN` - Port-group being added is used for LAN traffic. * `Management` - Port-group being added is used for Management traffic. - NetworkType *string `json:"NetworkType,omitempty"` - // Name of the Port Group to create. - PortGroup *string `json:"PortGroup,omitempty"` - // VLAN to be added to the Port Group. - Vlan *int64 `json:"Vlan,omitempty"` - } - - varSdwanNetworkConfigurationTypeWithoutEmbeddedStruct := SdwanNetworkConfigurationTypeWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanNetworkConfigurationTypeWithoutEmbeddedStruct) - if err == nil { - varSdwanNetworkConfigurationType := _SdwanNetworkConfigurationType{} - varSdwanNetworkConfigurationType.ClassId = varSdwanNetworkConfigurationTypeWithoutEmbeddedStruct.ClassId - varSdwanNetworkConfigurationType.ObjectType = varSdwanNetworkConfigurationTypeWithoutEmbeddedStruct.ObjectType - varSdwanNetworkConfigurationType.NetworkType = varSdwanNetworkConfigurationTypeWithoutEmbeddedStruct.NetworkType - varSdwanNetworkConfigurationType.PortGroup = varSdwanNetworkConfigurationTypeWithoutEmbeddedStruct.PortGroup - varSdwanNetworkConfigurationType.Vlan = varSdwanNetworkConfigurationTypeWithoutEmbeddedStruct.Vlan - *o = SdwanNetworkConfigurationType(varSdwanNetworkConfigurationType) - } else { - return err - } - - varSdwanNetworkConfigurationType := _SdwanNetworkConfigurationType{} - - err = json.Unmarshal(bytes, &varSdwanNetworkConfigurationType) - if err == nil { - o.MoBaseComplexType = varSdwanNetworkConfigurationType.MoBaseComplexType - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "NetworkType") - delete(additionalProperties, "PortGroup") - delete(additionalProperties, "Vlan") - - // remove fields from embedded structs - reflectMoBaseComplexType := reflect.ValueOf(o.MoBaseComplexType) - for i := 0; i < reflectMoBaseComplexType.Type().NumField(); i++ { - t := reflectMoBaseComplexType.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanNetworkConfigurationType struct { - value *SdwanNetworkConfigurationType - isSet bool -} - -func (v NullableSdwanNetworkConfigurationType) Get() *SdwanNetworkConfigurationType { - return v.value -} - -func (v *NullableSdwanNetworkConfigurationType) Set(val *SdwanNetworkConfigurationType) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanNetworkConfigurationType) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanNetworkConfigurationType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanNetworkConfigurationType(val *SdwanNetworkConfigurationType) *NullableSdwanNetworkConfigurationType { - return &NullableSdwanNetworkConfigurationType{value: val, isSet: true} -} - -func (v NullableSdwanNetworkConfigurationType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanNetworkConfigurationType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_network_configuration_type_all_of.go b/model_sdwan_network_configuration_type_all_of.go deleted file mode 100644 index 2f681bc42d..0000000000 --- a/model_sdwan_network_configuration_type_all_of.go +++ /dev/null @@ -1,288 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanNetworkConfigurationTypeAllOf Definition of the list of properties defined in 'sdwan.NetworkConfigurationType', excluding properties defined in parent classes. -type SdwanNetworkConfigurationTypeAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Type of the Port group being added. * `WAN` - Port-group being added is used for WAN traffic. * `LAN` - Port-group being added is used for LAN traffic. * `Management` - Port-group being added is used for Management traffic. - NetworkType *string `json:"NetworkType,omitempty"` - // Name of the Port Group to create. - PortGroup *string `json:"PortGroup,omitempty"` - // VLAN to be added to the Port Group. - Vlan *int64 `json:"Vlan,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanNetworkConfigurationTypeAllOf SdwanNetworkConfigurationTypeAllOf - -// NewSdwanNetworkConfigurationTypeAllOf instantiates a new SdwanNetworkConfigurationTypeAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanNetworkConfigurationTypeAllOf(classId string, objectType string) *SdwanNetworkConfigurationTypeAllOf { - this := SdwanNetworkConfigurationTypeAllOf{} - this.ClassId = classId - this.ObjectType = objectType - var networkType string = "WAN" - this.NetworkType = &networkType - return &this -} - -// NewSdwanNetworkConfigurationTypeAllOfWithDefaults instantiates a new SdwanNetworkConfigurationTypeAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanNetworkConfigurationTypeAllOfWithDefaults() *SdwanNetworkConfigurationTypeAllOf { - this := SdwanNetworkConfigurationTypeAllOf{} - var classId string = "sdwan.NetworkConfigurationType" - this.ClassId = classId - var objectType string = "sdwan.NetworkConfigurationType" - this.ObjectType = objectType - var networkType string = "WAN" - this.NetworkType = &networkType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanNetworkConfigurationTypeAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanNetworkConfigurationTypeAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanNetworkConfigurationTypeAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanNetworkConfigurationTypeAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetNetworkType returns the NetworkType field value if set, zero value otherwise. -func (o *SdwanNetworkConfigurationTypeAllOf) GetNetworkType() string { - if o == nil || o.NetworkType == nil { - var ret string - return ret - } - return *o.NetworkType -} - -// GetNetworkTypeOk returns a tuple with the NetworkType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) GetNetworkTypeOk() (*string, bool) { - if o == nil || o.NetworkType == nil { - return nil, false - } - return o.NetworkType, true -} - -// HasNetworkType returns a boolean if a field has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) HasNetworkType() bool { - if o != nil && o.NetworkType != nil { - return true - } - - return false -} - -// SetNetworkType gets a reference to the given string and assigns it to the NetworkType field. -func (o *SdwanNetworkConfigurationTypeAllOf) SetNetworkType(v string) { - o.NetworkType = &v -} - -// GetPortGroup returns the PortGroup field value if set, zero value otherwise. -func (o *SdwanNetworkConfigurationTypeAllOf) GetPortGroup() string { - if o == nil || o.PortGroup == nil { - var ret string - return ret - } - return *o.PortGroup -} - -// GetPortGroupOk returns a tuple with the PortGroup field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) GetPortGroupOk() (*string, bool) { - if o == nil || o.PortGroup == nil { - return nil, false - } - return o.PortGroup, true -} - -// HasPortGroup returns a boolean if a field has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) HasPortGroup() bool { - if o != nil && o.PortGroup != nil { - return true - } - - return false -} - -// SetPortGroup gets a reference to the given string and assigns it to the PortGroup field. -func (o *SdwanNetworkConfigurationTypeAllOf) SetPortGroup(v string) { - o.PortGroup = &v -} - -// GetVlan returns the Vlan field value if set, zero value otherwise. -func (o *SdwanNetworkConfigurationTypeAllOf) GetVlan() int64 { - if o == nil || o.Vlan == nil { - var ret int64 - return ret - } - return *o.Vlan -} - -// GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) GetVlanOk() (*int64, bool) { - if o == nil || o.Vlan == nil { - return nil, false - } - return o.Vlan, true -} - -// HasVlan returns a boolean if a field has been set. -func (o *SdwanNetworkConfigurationTypeAllOf) HasVlan() bool { - if o != nil && o.Vlan != nil { - return true - } - - return false -} - -// SetVlan gets a reference to the given int64 and assigns it to the Vlan field. -func (o *SdwanNetworkConfigurationTypeAllOf) SetVlan(v int64) { - o.Vlan = &v -} - -func (o SdwanNetworkConfigurationTypeAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.NetworkType != nil { - toSerialize["NetworkType"] = o.NetworkType - } - if o.PortGroup != nil { - toSerialize["PortGroup"] = o.PortGroup - } - if o.Vlan != nil { - toSerialize["Vlan"] = o.Vlan - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanNetworkConfigurationTypeAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanNetworkConfigurationTypeAllOf := _SdwanNetworkConfigurationTypeAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanNetworkConfigurationTypeAllOf); err == nil { - *o = SdwanNetworkConfigurationTypeAllOf(varSdwanNetworkConfigurationTypeAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "NetworkType") - delete(additionalProperties, "PortGroup") - delete(additionalProperties, "Vlan") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanNetworkConfigurationTypeAllOf struct { - value *SdwanNetworkConfigurationTypeAllOf - isSet bool -} - -func (v NullableSdwanNetworkConfigurationTypeAllOf) Get() *SdwanNetworkConfigurationTypeAllOf { - return v.value -} - -func (v *NullableSdwanNetworkConfigurationTypeAllOf) Set(val *SdwanNetworkConfigurationTypeAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanNetworkConfigurationTypeAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanNetworkConfigurationTypeAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanNetworkConfigurationTypeAllOf(val *SdwanNetworkConfigurationTypeAllOf) *NullableSdwanNetworkConfigurationTypeAllOf { - return &NullableSdwanNetworkConfigurationTypeAllOf{value: val, isSet: true} -} - -func (v NullableSdwanNetworkConfigurationTypeAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanNetworkConfigurationTypeAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_profile.go b/model_sdwan_profile.go deleted file mode 100644 index bcab84df71..0000000000 --- a/model_sdwan_profile.go +++ /dev/null @@ -1,385 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanProfile A profile that specifies configuration settings for a SDWAN router. -type SdwanProfile struct { - PolicyAbstractConfigProfile - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanRouterNode resources. - RouterNodes []SdwanRouterNodeRelationship `json:"RouterNodes,omitempty"` - RouterPolicy *SdwanRouterPolicyRelationship `json:"RouterPolicy,omitempty"` - VmanageAccount *SdwanVmanageAccountPolicyRelationship `json:"VmanageAccount,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanProfile SdwanProfile - -// NewSdwanProfile instantiates a new SdwanProfile object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanProfile(classId string, objectType string) *SdwanProfile { - this := SdwanProfile{} - this.ClassId = classId - this.ObjectType = objectType - var type_ string = "instance" - this.Type = &type_ - var action string = "No-op" - this.Action = &action - return &this -} - -// NewSdwanProfileWithDefaults instantiates a new SdwanProfile object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanProfileWithDefaults() *SdwanProfile { - this := SdwanProfile{} - var classId string = "sdwan.Profile" - this.ClassId = classId - var objectType string = "sdwan.Profile" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanProfile) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanProfile) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanProfile) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanProfile) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanProfile) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanProfile) SetObjectType(v string) { - o.ObjectType = v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanProfile) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfile) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanProfile) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanProfile) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetRouterNodes returns the RouterNodes field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanProfile) GetRouterNodes() []SdwanRouterNodeRelationship { - if o == nil { - var ret []SdwanRouterNodeRelationship - return ret - } - return o.RouterNodes -} - -// GetRouterNodesOk returns a tuple with the RouterNodes field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanProfile) GetRouterNodesOk() (*[]SdwanRouterNodeRelationship, bool) { - if o == nil || o.RouterNodes == nil { - return nil, false - } - return &o.RouterNodes, true -} - -// HasRouterNodes returns a boolean if a field has been set. -func (o *SdwanProfile) HasRouterNodes() bool { - if o != nil && o.RouterNodes != nil { - return true - } - - return false -} - -// SetRouterNodes gets a reference to the given []SdwanRouterNodeRelationship and assigns it to the RouterNodes field. -func (o *SdwanProfile) SetRouterNodes(v []SdwanRouterNodeRelationship) { - o.RouterNodes = v -} - -// GetRouterPolicy returns the RouterPolicy field value if set, zero value otherwise. -func (o *SdwanProfile) GetRouterPolicy() SdwanRouterPolicyRelationship { - if o == nil || o.RouterPolicy == nil { - var ret SdwanRouterPolicyRelationship - return ret - } - return *o.RouterPolicy -} - -// GetRouterPolicyOk returns a tuple with the RouterPolicy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfile) GetRouterPolicyOk() (*SdwanRouterPolicyRelationship, bool) { - if o == nil || o.RouterPolicy == nil { - return nil, false - } - return o.RouterPolicy, true -} - -// HasRouterPolicy returns a boolean if a field has been set. -func (o *SdwanProfile) HasRouterPolicy() bool { - if o != nil && o.RouterPolicy != nil { - return true - } - - return false -} - -// SetRouterPolicy gets a reference to the given SdwanRouterPolicyRelationship and assigns it to the RouterPolicy field. -func (o *SdwanProfile) SetRouterPolicy(v SdwanRouterPolicyRelationship) { - o.RouterPolicy = &v -} - -// GetVmanageAccount returns the VmanageAccount field value if set, zero value otherwise. -func (o *SdwanProfile) GetVmanageAccount() SdwanVmanageAccountPolicyRelationship { - if o == nil || o.VmanageAccount == nil { - var ret SdwanVmanageAccountPolicyRelationship - return ret - } - return *o.VmanageAccount -} - -// GetVmanageAccountOk returns a tuple with the VmanageAccount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfile) GetVmanageAccountOk() (*SdwanVmanageAccountPolicyRelationship, bool) { - if o == nil || o.VmanageAccount == nil { - return nil, false - } - return o.VmanageAccount, true -} - -// HasVmanageAccount returns a boolean if a field has been set. -func (o *SdwanProfile) HasVmanageAccount() bool { - if o != nil && o.VmanageAccount != nil { - return true - } - - return false -} - -// SetVmanageAccount gets a reference to the given SdwanVmanageAccountPolicyRelationship and assigns it to the VmanageAccount field. -func (o *SdwanProfile) SetVmanageAccount(v SdwanVmanageAccountPolicyRelationship) { - o.VmanageAccount = &v -} - -func (o SdwanProfile) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedPolicyAbstractConfigProfile, errPolicyAbstractConfigProfile := json.Marshal(o.PolicyAbstractConfigProfile) - if errPolicyAbstractConfigProfile != nil { - return []byte{}, errPolicyAbstractConfigProfile - } - errPolicyAbstractConfigProfile = json.Unmarshal([]byte(serializedPolicyAbstractConfigProfile), &toSerialize) - if errPolicyAbstractConfigProfile != nil { - return []byte{}, errPolicyAbstractConfigProfile - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.RouterNodes != nil { - toSerialize["RouterNodes"] = o.RouterNodes - } - if o.RouterPolicy != nil { - toSerialize["RouterPolicy"] = o.RouterPolicy - } - if o.VmanageAccount != nil { - toSerialize["VmanageAccount"] = o.VmanageAccount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanProfile) UnmarshalJSON(bytes []byte) (err error) { - type SdwanProfileWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanRouterNode resources. - RouterNodes []SdwanRouterNodeRelationship `json:"RouterNodes,omitempty"` - RouterPolicy *SdwanRouterPolicyRelationship `json:"RouterPolicy,omitempty"` - VmanageAccount *SdwanVmanageAccountPolicyRelationship `json:"VmanageAccount,omitempty"` - } - - varSdwanProfileWithoutEmbeddedStruct := SdwanProfileWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanProfileWithoutEmbeddedStruct) - if err == nil { - varSdwanProfile := _SdwanProfile{} - varSdwanProfile.ClassId = varSdwanProfileWithoutEmbeddedStruct.ClassId - varSdwanProfile.ObjectType = varSdwanProfileWithoutEmbeddedStruct.ObjectType - varSdwanProfile.Organization = varSdwanProfileWithoutEmbeddedStruct.Organization - varSdwanProfile.RouterNodes = varSdwanProfileWithoutEmbeddedStruct.RouterNodes - varSdwanProfile.RouterPolicy = varSdwanProfileWithoutEmbeddedStruct.RouterPolicy - varSdwanProfile.VmanageAccount = varSdwanProfileWithoutEmbeddedStruct.VmanageAccount - *o = SdwanProfile(varSdwanProfile) - } else { - return err - } - - varSdwanProfile := _SdwanProfile{} - - err = json.Unmarshal(bytes, &varSdwanProfile) - if err == nil { - o.PolicyAbstractConfigProfile = varSdwanProfile.PolicyAbstractConfigProfile - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "Organization") - delete(additionalProperties, "RouterNodes") - delete(additionalProperties, "RouterPolicy") - delete(additionalProperties, "VmanageAccount") - - // remove fields from embedded structs - reflectPolicyAbstractConfigProfile := reflect.ValueOf(o.PolicyAbstractConfigProfile) - for i := 0; i < reflectPolicyAbstractConfigProfile.Type().NumField(); i++ { - t := reflectPolicyAbstractConfigProfile.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanProfile struct { - value *SdwanProfile - isSet bool -} - -func (v NullableSdwanProfile) Get() *SdwanProfile { - return v.value -} - -func (v *NullableSdwanProfile) Set(val *SdwanProfile) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanProfile) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanProfile) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanProfile(val *SdwanProfile) *NullableSdwanProfile { - return &NullableSdwanProfile{value: val, isSet: true} -} - -func (v NullableSdwanProfile) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanProfile) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_profile_all_of.go b/model_sdwan_profile_all_of.go deleted file mode 100644 index 3479fc4c40..0000000000 --- a/model_sdwan_profile_all_of.go +++ /dev/null @@ -1,320 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanProfileAllOf Definition of the list of properties defined in 'sdwan.Profile', excluding properties defined in parent classes. -type SdwanProfileAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanRouterNode resources. - RouterNodes []SdwanRouterNodeRelationship `json:"RouterNodes,omitempty"` - RouterPolicy *SdwanRouterPolicyRelationship `json:"RouterPolicy,omitempty"` - VmanageAccount *SdwanVmanageAccountPolicyRelationship `json:"VmanageAccount,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanProfileAllOf SdwanProfileAllOf - -// NewSdwanProfileAllOf instantiates a new SdwanProfileAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanProfileAllOf(classId string, objectType string) *SdwanProfileAllOf { - this := SdwanProfileAllOf{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewSdwanProfileAllOfWithDefaults instantiates a new SdwanProfileAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanProfileAllOfWithDefaults() *SdwanProfileAllOf { - this := SdwanProfileAllOf{} - var classId string = "sdwan.Profile" - this.ClassId = classId - var objectType string = "sdwan.Profile" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanProfileAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanProfileAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanProfileAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanProfileAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanProfileAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanProfileAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanProfileAllOf) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfileAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanProfileAllOf) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanProfileAllOf) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetRouterNodes returns the RouterNodes field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanProfileAllOf) GetRouterNodes() []SdwanRouterNodeRelationship { - if o == nil { - var ret []SdwanRouterNodeRelationship - return ret - } - return o.RouterNodes -} - -// GetRouterNodesOk returns a tuple with the RouterNodes field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanProfileAllOf) GetRouterNodesOk() (*[]SdwanRouterNodeRelationship, bool) { - if o == nil || o.RouterNodes == nil { - return nil, false - } - return &o.RouterNodes, true -} - -// HasRouterNodes returns a boolean if a field has been set. -func (o *SdwanProfileAllOf) HasRouterNodes() bool { - if o != nil && o.RouterNodes != nil { - return true - } - - return false -} - -// SetRouterNodes gets a reference to the given []SdwanRouterNodeRelationship and assigns it to the RouterNodes field. -func (o *SdwanProfileAllOf) SetRouterNodes(v []SdwanRouterNodeRelationship) { - o.RouterNodes = v -} - -// GetRouterPolicy returns the RouterPolicy field value if set, zero value otherwise. -func (o *SdwanProfileAllOf) GetRouterPolicy() SdwanRouterPolicyRelationship { - if o == nil || o.RouterPolicy == nil { - var ret SdwanRouterPolicyRelationship - return ret - } - return *o.RouterPolicy -} - -// GetRouterPolicyOk returns a tuple with the RouterPolicy field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfileAllOf) GetRouterPolicyOk() (*SdwanRouterPolicyRelationship, bool) { - if o == nil || o.RouterPolicy == nil { - return nil, false - } - return o.RouterPolicy, true -} - -// HasRouterPolicy returns a boolean if a field has been set. -func (o *SdwanProfileAllOf) HasRouterPolicy() bool { - if o != nil && o.RouterPolicy != nil { - return true - } - - return false -} - -// SetRouterPolicy gets a reference to the given SdwanRouterPolicyRelationship and assigns it to the RouterPolicy field. -func (o *SdwanProfileAllOf) SetRouterPolicy(v SdwanRouterPolicyRelationship) { - o.RouterPolicy = &v -} - -// GetVmanageAccount returns the VmanageAccount field value if set, zero value otherwise. -func (o *SdwanProfileAllOf) GetVmanageAccount() SdwanVmanageAccountPolicyRelationship { - if o == nil || o.VmanageAccount == nil { - var ret SdwanVmanageAccountPolicyRelationship - return ret - } - return *o.VmanageAccount -} - -// GetVmanageAccountOk returns a tuple with the VmanageAccount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfileAllOf) GetVmanageAccountOk() (*SdwanVmanageAccountPolicyRelationship, bool) { - if o == nil || o.VmanageAccount == nil { - return nil, false - } - return o.VmanageAccount, true -} - -// HasVmanageAccount returns a boolean if a field has been set. -func (o *SdwanProfileAllOf) HasVmanageAccount() bool { - if o != nil && o.VmanageAccount != nil { - return true - } - - return false -} - -// SetVmanageAccount gets a reference to the given SdwanVmanageAccountPolicyRelationship and assigns it to the VmanageAccount field. -func (o *SdwanProfileAllOf) SetVmanageAccount(v SdwanVmanageAccountPolicyRelationship) { - o.VmanageAccount = &v -} - -func (o SdwanProfileAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.RouterNodes != nil { - toSerialize["RouterNodes"] = o.RouterNodes - } - if o.RouterPolicy != nil { - toSerialize["RouterPolicy"] = o.RouterPolicy - } - if o.VmanageAccount != nil { - toSerialize["VmanageAccount"] = o.VmanageAccount - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanProfileAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanProfileAllOf := _SdwanProfileAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanProfileAllOf); err == nil { - *o = SdwanProfileAllOf(varSdwanProfileAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "Organization") - delete(additionalProperties, "RouterNodes") - delete(additionalProperties, "RouterPolicy") - delete(additionalProperties, "VmanageAccount") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanProfileAllOf struct { - value *SdwanProfileAllOf - isSet bool -} - -func (v NullableSdwanProfileAllOf) Get() *SdwanProfileAllOf { - return v.value -} - -func (v *NullableSdwanProfileAllOf) Set(val *SdwanProfileAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanProfileAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanProfileAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanProfileAllOf(val *SdwanProfileAllOf) *NullableSdwanProfileAllOf { - return &NullableSdwanProfileAllOf{value: val, isSet: true} -} - -func (v NullableSdwanProfileAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanProfileAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_profile_list.go b/model_sdwan_profile_list.go deleted file mode 100644 index fda9bbdff5..0000000000 --- a/model_sdwan_profile_list.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanProfileList This resource list is returned as a response to a HTTP GET request that does not include a specific resource identifier. -type SdwanProfileList struct { - MoBaseResponse - // The total number of 'sdwan.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.Profile' resources matching the request. - Results []SdwanProfile `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanProfileList SdwanProfileList - -// NewSdwanProfileList instantiates a new SdwanProfileList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanProfileList(objectType string) *SdwanProfileList { - this := SdwanProfileList{} - this.ObjectType = objectType - return &this -} - -// NewSdwanProfileListWithDefaults instantiates a new SdwanProfileList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanProfileListWithDefaults() *SdwanProfileList { - this := SdwanProfileList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanProfileList) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfileList) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanProfileList) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanProfileList) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanProfileList) GetResults() []SdwanProfile { - if o == nil { - var ret []SdwanProfile - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanProfileList) GetResultsOk() (*[]SdwanProfile, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanProfileList) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanProfile and assigns it to the Results field. -func (o *SdwanProfileList) SetResults(v []SdwanProfile) { - o.Results = v -} - -func (o SdwanProfileList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseResponse, errMoBaseResponse := json.Marshal(o.MoBaseResponse) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - errMoBaseResponse = json.Unmarshal([]byte(serializedMoBaseResponse), &toSerialize) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanProfileList) UnmarshalJSON(bytes []byte) (err error) { - type SdwanProfileListWithoutEmbeddedStruct struct { - // The total number of 'sdwan.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.Profile' resources matching the request. - Results []SdwanProfile `json:"Results,omitempty"` - } - - varSdwanProfileListWithoutEmbeddedStruct := SdwanProfileListWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanProfileListWithoutEmbeddedStruct) - if err == nil { - varSdwanProfileList := _SdwanProfileList{} - varSdwanProfileList.Count = varSdwanProfileListWithoutEmbeddedStruct.Count - varSdwanProfileList.Results = varSdwanProfileListWithoutEmbeddedStruct.Results - *o = SdwanProfileList(varSdwanProfileList) - } else { - return err - } - - varSdwanProfileList := _SdwanProfileList{} - - err = json.Unmarshal(bytes, &varSdwanProfileList) - if err == nil { - o.MoBaseResponse = varSdwanProfileList.MoBaseResponse - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - - // remove fields from embedded structs - reflectMoBaseResponse := reflect.ValueOf(o.MoBaseResponse) - for i := 0; i < reflectMoBaseResponse.Type().NumField(); i++ { - t := reflectMoBaseResponse.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanProfileList struct { - value *SdwanProfileList - isSet bool -} - -func (v NullableSdwanProfileList) Get() *SdwanProfileList { - return v.value -} - -func (v *NullableSdwanProfileList) Set(val *SdwanProfileList) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanProfileList) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanProfileList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanProfileList(val *SdwanProfileList) *NullableSdwanProfileList { - return &NullableSdwanProfileList{value: val, isSet: true} -} - -func (v NullableSdwanProfileList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanProfileList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_profile_list_all_of.go b/model_sdwan_profile_list_all_of.go deleted file mode 100644 index 8e4356e8ba..0000000000 --- a/model_sdwan_profile_list_all_of.go +++ /dev/null @@ -1,181 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanProfileListAllOf struct for SdwanProfileListAllOf -type SdwanProfileListAllOf struct { - // The total number of 'sdwan.Profile' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.Profile' resources matching the request. - Results []SdwanProfile `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanProfileListAllOf SdwanProfileListAllOf - -// NewSdwanProfileListAllOf instantiates a new SdwanProfileListAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanProfileListAllOf() *SdwanProfileListAllOf { - this := SdwanProfileListAllOf{} - return &this -} - -// NewSdwanProfileListAllOfWithDefaults instantiates a new SdwanProfileListAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanProfileListAllOfWithDefaults() *SdwanProfileListAllOf { - this := SdwanProfileListAllOf{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanProfileListAllOf) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanProfileListAllOf) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanProfileListAllOf) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanProfileListAllOf) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanProfileListAllOf) GetResults() []SdwanProfile { - if o == nil { - var ret []SdwanProfile - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanProfileListAllOf) GetResultsOk() (*[]SdwanProfile, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanProfileListAllOf) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanProfile and assigns it to the Results field. -func (o *SdwanProfileListAllOf) SetResults(v []SdwanProfile) { - o.Results = v -} - -func (o SdwanProfileListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanProfileListAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanProfileListAllOf := _SdwanProfileListAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanProfileListAllOf); err == nil { - *o = SdwanProfileListAllOf(varSdwanProfileListAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanProfileListAllOf struct { - value *SdwanProfileListAllOf - isSet bool -} - -func (v NullableSdwanProfileListAllOf) Get() *SdwanProfileListAllOf { - return v.value -} - -func (v *NullableSdwanProfileListAllOf) Set(val *SdwanProfileListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanProfileListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanProfileListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanProfileListAllOf(val *SdwanProfileListAllOf) *NullableSdwanProfileListAllOf { - return &NullableSdwanProfileListAllOf{value: val, isSet: true} -} - -func (v NullableSdwanProfileListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanProfileListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_profile_relationship.go b/model_sdwan_profile_relationship.go deleted file mode 100644 index 1644b6e750..0000000000 --- a/model_sdwan_profile_relationship.go +++ /dev/null @@ -1,141 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanProfileRelationship - A relationship to the 'sdwan.Profile' resource, or the expanded 'sdwan.Profile' resource, or the 'null' value. -type SdwanProfileRelationship struct { - MoMoRef *MoMoRef - SdwanProfile *SdwanProfile -} - -// MoMoRefAsSdwanProfileRelationship is a convenience function that returns MoMoRef wrapped in SdwanProfileRelationship -func MoMoRefAsSdwanProfileRelationship(v *MoMoRef) SdwanProfileRelationship { - return SdwanProfileRelationship{ MoMoRef: v} -} - -// SdwanProfileAsSdwanProfileRelationship is a convenience function that returns SdwanProfile wrapped in SdwanProfileRelationship -func SdwanProfileAsSdwanProfileRelationship(v *SdwanProfile) SdwanProfileRelationship { - return SdwanProfileRelationship{ SdwanProfile: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanProfileRelationship) UnmarshalJSON(data []byte) error { - var err error - // this object is nullable so check if the payload is null or empty string - if string(data) == "" || string(data) == "{}" { - return nil - } - - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.MoRef' - if jsonDict["ClassId"] == "mo.MoRef" { - // try to unmarshal JSON data into MoMoRef - err = json.Unmarshal(data, &dst.MoMoRef) - if err == nil { - return nil // data stored in dst.MoMoRef, return on the first match - } else { - dst.MoMoRef = nil - return fmt.Errorf("Failed to unmarshal SdwanProfileRelationship as MoMoRef: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.Profile' - if jsonDict["ClassId"] == "sdwan.Profile" { - // try to unmarshal JSON data into SdwanProfile - err = json.Unmarshal(data, &dst.SdwanProfile) - if err == nil { - return nil // data stored in dst.SdwanProfile, return on the first match - } else { - dst.SdwanProfile = nil - return fmt.Errorf("Failed to unmarshal SdwanProfileRelationship as SdwanProfile: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanProfileRelationship) MarshalJSON() ([]byte, error) { - if src.MoMoRef != nil { - return json.Marshal(&src.MoMoRef) - } - - if src.SdwanProfile != nil { - return json.Marshal(&src.SdwanProfile) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanProfileRelationship) GetActualInstance() (interface{}) { - if obj.MoMoRef != nil { - return obj.MoMoRef - } - - if obj.SdwanProfile != nil { - return obj.SdwanProfile - } - - // all schemas are nil - return nil -} - -type NullableSdwanProfileRelationship struct { - value *SdwanProfileRelationship - isSet bool -} - -func (v NullableSdwanProfileRelationship) Get() *SdwanProfileRelationship { - return v.value -} - -func (v *NullableSdwanProfileRelationship) Set(val *SdwanProfileRelationship) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanProfileRelationship) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanProfileRelationship) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanProfileRelationship(val *SdwanProfileRelationship) *NullableSdwanProfileRelationship { - return &NullableSdwanProfileRelationship{value: val, isSet: true} -} - -func (v NullableSdwanProfileRelationship) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanProfileRelationship) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_profile_response.go b/model_sdwan_profile_response.go deleted file mode 100644 index 28c5e58808..0000000000 --- a/model_sdwan_profile_response.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanProfileResponse - The response body of a HTTP GET request for the 'sdwan.Profile' resource. The value may be one of the following types. 1. When 'tag' is specified in the URL query, the response schema is a summary of the tag usage. 1. When '$apply' is specified in the URL query, the response schema is dynamically-generated schema based on the $apply value. 1. When '$count' is specified in the URL query, the response is a simple object providing the count of the resources. 1. In all other cases, the response is a list of 'sdwan.Profile' resources. -type SdwanProfileResponse struct { - MoAggregateTransform *MoAggregateTransform - MoDocumentCount *MoDocumentCount - MoTagSummary *MoTagSummary - SdwanProfileList *SdwanProfileList -} - -// MoAggregateTransformAsSdwanProfileResponse is a convenience function that returns MoAggregateTransform wrapped in SdwanProfileResponse -func MoAggregateTransformAsSdwanProfileResponse(v *MoAggregateTransform) SdwanProfileResponse { - return SdwanProfileResponse{ MoAggregateTransform: v} -} - -// MoDocumentCountAsSdwanProfileResponse is a convenience function that returns MoDocumentCount wrapped in SdwanProfileResponse -func MoDocumentCountAsSdwanProfileResponse(v *MoDocumentCount) SdwanProfileResponse { - return SdwanProfileResponse{ MoDocumentCount: v} -} - -// MoTagSummaryAsSdwanProfileResponse is a convenience function that returns MoTagSummary wrapped in SdwanProfileResponse -func MoTagSummaryAsSdwanProfileResponse(v *MoTagSummary) SdwanProfileResponse { - return SdwanProfileResponse{ MoTagSummary: v} -} - -// SdwanProfileListAsSdwanProfileResponse is a convenience function that returns SdwanProfileList wrapped in SdwanProfileResponse -func SdwanProfileListAsSdwanProfileResponse(v *SdwanProfileList) SdwanProfileResponse { - return SdwanProfileResponse{ SdwanProfileList: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanProfileResponse) UnmarshalJSON(data []byte) error { - var err error - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.AggregateTransform' - if jsonDict["ObjectType"] == "mo.AggregateTransform" { - // try to unmarshal JSON data into MoAggregateTransform - err = json.Unmarshal(data, &dst.MoAggregateTransform) - if err == nil { - return nil // data stored in dst.MoAggregateTransform, return on the first match - } else { - dst.MoAggregateTransform = nil - return fmt.Errorf("Failed to unmarshal SdwanProfileResponse as MoAggregateTransform: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.DocumentCount' - if jsonDict["ObjectType"] == "mo.DocumentCount" { - // try to unmarshal JSON data into MoDocumentCount - err = json.Unmarshal(data, &dst.MoDocumentCount) - if err == nil { - return nil // data stored in dst.MoDocumentCount, return on the first match - } else { - dst.MoDocumentCount = nil - return fmt.Errorf("Failed to unmarshal SdwanProfileResponse as MoDocumentCount: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.TagSummary' - if jsonDict["ObjectType"] == "mo.TagSummary" { - // try to unmarshal JSON data into MoTagSummary - err = json.Unmarshal(data, &dst.MoTagSummary) - if err == nil { - return nil // data stored in dst.MoTagSummary, return on the first match - } else { - dst.MoTagSummary = nil - return fmt.Errorf("Failed to unmarshal SdwanProfileResponse as MoTagSummary: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.Profile.List' - if jsonDict["ObjectType"] == "sdwan.Profile.List" { - // try to unmarshal JSON data into SdwanProfileList - err = json.Unmarshal(data, &dst.SdwanProfileList) - if err == nil { - return nil // data stored in dst.SdwanProfileList, return on the first match - } else { - dst.SdwanProfileList = nil - return fmt.Errorf("Failed to unmarshal SdwanProfileResponse as SdwanProfileList: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanProfileResponse) MarshalJSON() ([]byte, error) { - if src.MoAggregateTransform != nil { - return json.Marshal(&src.MoAggregateTransform) - } - - if src.MoDocumentCount != nil { - return json.Marshal(&src.MoDocumentCount) - } - - if src.MoTagSummary != nil { - return json.Marshal(&src.MoTagSummary) - } - - if src.SdwanProfileList != nil { - return json.Marshal(&src.SdwanProfileList) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanProfileResponse) GetActualInstance() (interface{}) { - if obj.MoAggregateTransform != nil { - return obj.MoAggregateTransform - } - - if obj.MoDocumentCount != nil { - return obj.MoDocumentCount - } - - if obj.MoTagSummary != nil { - return obj.MoTagSummary - } - - if obj.SdwanProfileList != nil { - return obj.SdwanProfileList - } - - // all schemas are nil - return nil -} - -type NullableSdwanProfileResponse struct { - value *SdwanProfileResponse - isSet bool -} - -func (v NullableSdwanProfileResponse) Get() *SdwanProfileResponse { - return v.value -} - -func (v *NullableSdwanProfileResponse) Set(val *SdwanProfileResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanProfileResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanProfileResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanProfileResponse(val *SdwanProfileResponse) *NullableSdwanProfileResponse { - return &NullableSdwanProfileResponse{value: val, isSet: true} -} - -func (v NullableSdwanProfileResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanProfileResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_node.go b/model_sdwan_router_node.go deleted file mode 100644 index b8ab8ff7f6..0000000000 --- a/model_sdwan_router_node.go +++ /dev/null @@ -1,542 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanRouterNode Configuration settings for a SDWAN vEdge router. -type SdwanRouterNode struct { - MoBaseMo - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Name of the Cisco vManage device template that the current device should be attached to. A device template consists of many feature templates that contain SD-WAN vEdge router configuration. - DeviceTemplate *string `json:"DeviceTemplate,omitempty"` - // Name of the router node object. - Name *string `json:"Name,omitempty"` - NetworkConfiguration []SdwanNetworkConfigurationType `json:"NetworkConfiguration,omitempty"` - TemplateInputs []SdwanTemplateInputsType `json:"TemplateInputs,omitempty"` - // Uniquely identifies the router by its chassis number. - Uuid *string `json:"Uuid,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - Profile *SdwanProfileRelationship `json:"Profile,omitempty"` - ServerNode *AssetDeviceRegistrationRelationship `json:"ServerNode,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterNode SdwanRouterNode - -// NewSdwanRouterNode instantiates a new SdwanRouterNode object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterNode(classId string, objectType string) *SdwanRouterNode { - this := SdwanRouterNode{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewSdwanRouterNodeWithDefaults instantiates a new SdwanRouterNode object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterNodeWithDefaults() *SdwanRouterNode { - this := SdwanRouterNode{} - var classId string = "sdwan.RouterNode" - this.ClassId = classId - var objectType string = "sdwan.RouterNode" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanRouterNode) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanRouterNode) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanRouterNode) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanRouterNode) SetObjectType(v string) { - o.ObjectType = v -} - -// GetDeviceTemplate returns the DeviceTemplate field value if set, zero value otherwise. -func (o *SdwanRouterNode) GetDeviceTemplate() string { - if o == nil || o.DeviceTemplate == nil { - var ret string - return ret - } - return *o.DeviceTemplate -} - -// GetDeviceTemplateOk returns a tuple with the DeviceTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetDeviceTemplateOk() (*string, bool) { - if o == nil || o.DeviceTemplate == nil { - return nil, false - } - return o.DeviceTemplate, true -} - -// HasDeviceTemplate returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasDeviceTemplate() bool { - if o != nil && o.DeviceTemplate != nil { - return true - } - - return false -} - -// SetDeviceTemplate gets a reference to the given string and assigns it to the DeviceTemplate field. -func (o *SdwanRouterNode) SetDeviceTemplate(v string) { - o.DeviceTemplate = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *SdwanRouterNode) GetName() string { - if o == nil || o.Name == nil { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *SdwanRouterNode) SetName(v string) { - o.Name = &v -} - -// GetNetworkConfiguration returns the NetworkConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterNode) GetNetworkConfiguration() []SdwanNetworkConfigurationType { - if o == nil { - var ret []SdwanNetworkConfigurationType - return ret - } - return o.NetworkConfiguration -} - -// GetNetworkConfigurationOk returns a tuple with the NetworkConfiguration field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterNode) GetNetworkConfigurationOk() (*[]SdwanNetworkConfigurationType, bool) { - if o == nil || o.NetworkConfiguration == nil { - return nil, false - } - return &o.NetworkConfiguration, true -} - -// HasNetworkConfiguration returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasNetworkConfiguration() bool { - if o != nil && o.NetworkConfiguration != nil { - return true - } - - return false -} - -// SetNetworkConfiguration gets a reference to the given []SdwanNetworkConfigurationType and assigns it to the NetworkConfiguration field. -func (o *SdwanRouterNode) SetNetworkConfiguration(v []SdwanNetworkConfigurationType) { - o.NetworkConfiguration = v -} - -// GetTemplateInputs returns the TemplateInputs field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterNode) GetTemplateInputs() []SdwanTemplateInputsType { - if o == nil { - var ret []SdwanTemplateInputsType - return ret - } - return o.TemplateInputs -} - -// GetTemplateInputsOk returns a tuple with the TemplateInputs field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterNode) GetTemplateInputsOk() (*[]SdwanTemplateInputsType, bool) { - if o == nil || o.TemplateInputs == nil { - return nil, false - } - return &o.TemplateInputs, true -} - -// HasTemplateInputs returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasTemplateInputs() bool { - if o != nil && o.TemplateInputs != nil { - return true - } - - return false -} - -// SetTemplateInputs gets a reference to the given []SdwanTemplateInputsType and assigns it to the TemplateInputs field. -func (o *SdwanRouterNode) SetTemplateInputs(v []SdwanTemplateInputsType) { - o.TemplateInputs = v -} - -// GetUuid returns the Uuid field value if set, zero value otherwise. -func (o *SdwanRouterNode) GetUuid() string { - if o == nil || o.Uuid == nil { - var ret string - return ret - } - return *o.Uuid -} - -// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetUuidOk() (*string, bool) { - if o == nil || o.Uuid == nil { - return nil, false - } - return o.Uuid, true -} - -// HasUuid returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasUuid() bool { - if o != nil && o.Uuid != nil { - return true - } - - return false -} - -// SetUuid gets a reference to the given string and assigns it to the Uuid field. -func (o *SdwanRouterNode) SetUuid(v string) { - o.Uuid = &v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanRouterNode) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanRouterNode) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfile returns the Profile field value if set, zero value otherwise. -func (o *SdwanRouterNode) GetProfile() SdwanProfileRelationship { - if o == nil || o.Profile == nil { - var ret SdwanProfileRelationship - return ret - } - return *o.Profile -} - -// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetProfileOk() (*SdwanProfileRelationship, bool) { - if o == nil || o.Profile == nil { - return nil, false - } - return o.Profile, true -} - -// HasProfile returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasProfile() bool { - if o != nil && o.Profile != nil { - return true - } - - return false -} - -// SetProfile gets a reference to the given SdwanProfileRelationship and assigns it to the Profile field. -func (o *SdwanRouterNode) SetProfile(v SdwanProfileRelationship) { - o.Profile = &v -} - -// GetServerNode returns the ServerNode field value if set, zero value otherwise. -func (o *SdwanRouterNode) GetServerNode() AssetDeviceRegistrationRelationship { - if o == nil || o.ServerNode == nil { - var ret AssetDeviceRegistrationRelationship - return ret - } - return *o.ServerNode -} - -// GetServerNodeOk returns a tuple with the ServerNode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNode) GetServerNodeOk() (*AssetDeviceRegistrationRelationship, bool) { - if o == nil || o.ServerNode == nil { - return nil, false - } - return o.ServerNode, true -} - -// HasServerNode returns a boolean if a field has been set. -func (o *SdwanRouterNode) HasServerNode() bool { - if o != nil && o.ServerNode != nil { - return true - } - - return false -} - -// SetServerNode gets a reference to the given AssetDeviceRegistrationRelationship and assigns it to the ServerNode field. -func (o *SdwanRouterNode) SetServerNode(v AssetDeviceRegistrationRelationship) { - o.ServerNode = &v -} - -func (o SdwanRouterNode) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseMo, errMoBaseMo := json.Marshal(o.MoBaseMo) - if errMoBaseMo != nil { - return []byte{}, errMoBaseMo - } - errMoBaseMo = json.Unmarshal([]byte(serializedMoBaseMo), &toSerialize) - if errMoBaseMo != nil { - return []byte{}, errMoBaseMo - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.DeviceTemplate != nil { - toSerialize["DeviceTemplate"] = o.DeviceTemplate - } - if o.Name != nil { - toSerialize["Name"] = o.Name - } - if o.NetworkConfiguration != nil { - toSerialize["NetworkConfiguration"] = o.NetworkConfiguration - } - if o.TemplateInputs != nil { - toSerialize["TemplateInputs"] = o.TemplateInputs - } - if o.Uuid != nil { - toSerialize["Uuid"] = o.Uuid - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profile != nil { - toSerialize["Profile"] = o.Profile - } - if o.ServerNode != nil { - toSerialize["ServerNode"] = o.ServerNode - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterNode) UnmarshalJSON(bytes []byte) (err error) { - type SdwanRouterNodeWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Name of the Cisco vManage device template that the current device should be attached to. A device template consists of many feature templates that contain SD-WAN vEdge router configuration. - DeviceTemplate *string `json:"DeviceTemplate,omitempty"` - // Name of the router node object. - Name *string `json:"Name,omitempty"` - NetworkConfiguration []SdwanNetworkConfigurationType `json:"NetworkConfiguration,omitempty"` - TemplateInputs []SdwanTemplateInputsType `json:"TemplateInputs,omitempty"` - // Uniquely identifies the router by its chassis number. - Uuid *string `json:"Uuid,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - Profile *SdwanProfileRelationship `json:"Profile,omitempty"` - ServerNode *AssetDeviceRegistrationRelationship `json:"ServerNode,omitempty"` - } - - varSdwanRouterNodeWithoutEmbeddedStruct := SdwanRouterNodeWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanRouterNodeWithoutEmbeddedStruct) - if err == nil { - varSdwanRouterNode := _SdwanRouterNode{} - varSdwanRouterNode.ClassId = varSdwanRouterNodeWithoutEmbeddedStruct.ClassId - varSdwanRouterNode.ObjectType = varSdwanRouterNodeWithoutEmbeddedStruct.ObjectType - varSdwanRouterNode.DeviceTemplate = varSdwanRouterNodeWithoutEmbeddedStruct.DeviceTemplate - varSdwanRouterNode.Name = varSdwanRouterNodeWithoutEmbeddedStruct.Name - varSdwanRouterNode.NetworkConfiguration = varSdwanRouterNodeWithoutEmbeddedStruct.NetworkConfiguration - varSdwanRouterNode.TemplateInputs = varSdwanRouterNodeWithoutEmbeddedStruct.TemplateInputs - varSdwanRouterNode.Uuid = varSdwanRouterNodeWithoutEmbeddedStruct.Uuid - varSdwanRouterNode.Organization = varSdwanRouterNodeWithoutEmbeddedStruct.Organization - varSdwanRouterNode.Profile = varSdwanRouterNodeWithoutEmbeddedStruct.Profile - varSdwanRouterNode.ServerNode = varSdwanRouterNodeWithoutEmbeddedStruct.ServerNode - *o = SdwanRouterNode(varSdwanRouterNode) - } else { - return err - } - - varSdwanRouterNode := _SdwanRouterNode{} - - err = json.Unmarshal(bytes, &varSdwanRouterNode) - if err == nil { - o.MoBaseMo = varSdwanRouterNode.MoBaseMo - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "DeviceTemplate") - delete(additionalProperties, "Name") - delete(additionalProperties, "NetworkConfiguration") - delete(additionalProperties, "TemplateInputs") - delete(additionalProperties, "Uuid") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profile") - delete(additionalProperties, "ServerNode") - - // remove fields from embedded structs - reflectMoBaseMo := reflect.ValueOf(o.MoBaseMo) - for i := 0; i < reflectMoBaseMo.Type().NumField(); i++ { - t := reflectMoBaseMo.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterNode struct { - value *SdwanRouterNode - isSet bool -} - -func (v NullableSdwanRouterNode) Get() *SdwanRouterNode { - return v.value -} - -func (v *NullableSdwanRouterNode) Set(val *SdwanRouterNode) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterNode) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterNode) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterNode(val *SdwanRouterNode) *NullableSdwanRouterNode { - return &NullableSdwanRouterNode{value: val, isSet: true} -} - -func (v NullableSdwanRouterNode) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterNode) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_node_all_of.go b/model_sdwan_router_node_all_of.go deleted file mode 100644 index 85aa97e0d1..0000000000 --- a/model_sdwan_router_node_all_of.go +++ /dev/null @@ -1,471 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanRouterNodeAllOf Definition of the list of properties defined in 'sdwan.RouterNode', excluding properties defined in parent classes. -type SdwanRouterNodeAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Name of the Cisco vManage device template that the current device should be attached to. A device template consists of many feature templates that contain SD-WAN vEdge router configuration. - DeviceTemplate *string `json:"DeviceTemplate,omitempty"` - // Name of the router node object. - Name *string `json:"Name,omitempty"` - NetworkConfiguration []SdwanNetworkConfigurationType `json:"NetworkConfiguration,omitempty"` - TemplateInputs []SdwanTemplateInputsType `json:"TemplateInputs,omitempty"` - // Uniquely identifies the router by its chassis number. - Uuid *string `json:"Uuid,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - Profile *SdwanProfileRelationship `json:"Profile,omitempty"` - ServerNode *AssetDeviceRegistrationRelationship `json:"ServerNode,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterNodeAllOf SdwanRouterNodeAllOf - -// NewSdwanRouterNodeAllOf instantiates a new SdwanRouterNodeAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterNodeAllOf(classId string, objectType string) *SdwanRouterNodeAllOf { - this := SdwanRouterNodeAllOf{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewSdwanRouterNodeAllOfWithDefaults instantiates a new SdwanRouterNodeAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterNodeAllOfWithDefaults() *SdwanRouterNodeAllOf { - this := SdwanRouterNodeAllOf{} - var classId string = "sdwan.RouterNode" - this.ClassId = classId - var objectType string = "sdwan.RouterNode" - this.ObjectType = objectType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanRouterNodeAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanRouterNodeAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanRouterNodeAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanRouterNodeAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetDeviceTemplate returns the DeviceTemplate field value if set, zero value otherwise. -func (o *SdwanRouterNodeAllOf) GetDeviceTemplate() string { - if o == nil || o.DeviceTemplate == nil { - var ret string - return ret - } - return *o.DeviceTemplate -} - -// GetDeviceTemplateOk returns a tuple with the DeviceTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetDeviceTemplateOk() (*string, bool) { - if o == nil || o.DeviceTemplate == nil { - return nil, false - } - return o.DeviceTemplate, true -} - -// HasDeviceTemplate returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasDeviceTemplate() bool { - if o != nil && o.DeviceTemplate != nil { - return true - } - - return false -} - -// SetDeviceTemplate gets a reference to the given string and assigns it to the DeviceTemplate field. -func (o *SdwanRouterNodeAllOf) SetDeviceTemplate(v string) { - o.DeviceTemplate = &v -} - -// GetName returns the Name field value if set, zero value otherwise. -func (o *SdwanRouterNodeAllOf) GetName() string { - if o == nil || o.Name == nil { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasName() bool { - if o != nil && o.Name != nil { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *SdwanRouterNodeAllOf) SetName(v string) { - o.Name = &v -} - -// GetNetworkConfiguration returns the NetworkConfiguration field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterNodeAllOf) GetNetworkConfiguration() []SdwanNetworkConfigurationType { - if o == nil { - var ret []SdwanNetworkConfigurationType - return ret - } - return o.NetworkConfiguration -} - -// GetNetworkConfigurationOk returns a tuple with the NetworkConfiguration field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterNodeAllOf) GetNetworkConfigurationOk() (*[]SdwanNetworkConfigurationType, bool) { - if o == nil || o.NetworkConfiguration == nil { - return nil, false - } - return &o.NetworkConfiguration, true -} - -// HasNetworkConfiguration returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasNetworkConfiguration() bool { - if o != nil && o.NetworkConfiguration != nil { - return true - } - - return false -} - -// SetNetworkConfiguration gets a reference to the given []SdwanNetworkConfigurationType and assigns it to the NetworkConfiguration field. -func (o *SdwanRouterNodeAllOf) SetNetworkConfiguration(v []SdwanNetworkConfigurationType) { - o.NetworkConfiguration = v -} - -// GetTemplateInputs returns the TemplateInputs field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterNodeAllOf) GetTemplateInputs() []SdwanTemplateInputsType { - if o == nil { - var ret []SdwanTemplateInputsType - return ret - } - return o.TemplateInputs -} - -// GetTemplateInputsOk returns a tuple with the TemplateInputs field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterNodeAllOf) GetTemplateInputsOk() (*[]SdwanTemplateInputsType, bool) { - if o == nil || o.TemplateInputs == nil { - return nil, false - } - return &o.TemplateInputs, true -} - -// HasTemplateInputs returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasTemplateInputs() bool { - if o != nil && o.TemplateInputs != nil { - return true - } - - return false -} - -// SetTemplateInputs gets a reference to the given []SdwanTemplateInputsType and assigns it to the TemplateInputs field. -func (o *SdwanRouterNodeAllOf) SetTemplateInputs(v []SdwanTemplateInputsType) { - o.TemplateInputs = v -} - -// GetUuid returns the Uuid field value if set, zero value otherwise. -func (o *SdwanRouterNodeAllOf) GetUuid() string { - if o == nil || o.Uuid == nil { - var ret string - return ret - } - return *o.Uuid -} - -// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetUuidOk() (*string, bool) { - if o == nil || o.Uuid == nil { - return nil, false - } - return o.Uuid, true -} - -// HasUuid returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasUuid() bool { - if o != nil && o.Uuid != nil { - return true - } - - return false -} - -// SetUuid gets a reference to the given string and assigns it to the Uuid field. -func (o *SdwanRouterNodeAllOf) SetUuid(v string) { - o.Uuid = &v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanRouterNodeAllOf) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanRouterNodeAllOf) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfile returns the Profile field value if set, zero value otherwise. -func (o *SdwanRouterNodeAllOf) GetProfile() SdwanProfileRelationship { - if o == nil || o.Profile == nil { - var ret SdwanProfileRelationship - return ret - } - return *o.Profile -} - -// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetProfileOk() (*SdwanProfileRelationship, bool) { - if o == nil || o.Profile == nil { - return nil, false - } - return o.Profile, true -} - -// HasProfile returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasProfile() bool { - if o != nil && o.Profile != nil { - return true - } - - return false -} - -// SetProfile gets a reference to the given SdwanProfileRelationship and assigns it to the Profile field. -func (o *SdwanRouterNodeAllOf) SetProfile(v SdwanProfileRelationship) { - o.Profile = &v -} - -// GetServerNode returns the ServerNode field value if set, zero value otherwise. -func (o *SdwanRouterNodeAllOf) GetServerNode() AssetDeviceRegistrationRelationship { - if o == nil || o.ServerNode == nil { - var ret AssetDeviceRegistrationRelationship - return ret - } - return *o.ServerNode -} - -// GetServerNodeOk returns a tuple with the ServerNode field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeAllOf) GetServerNodeOk() (*AssetDeviceRegistrationRelationship, bool) { - if o == nil || o.ServerNode == nil { - return nil, false - } - return o.ServerNode, true -} - -// HasServerNode returns a boolean if a field has been set. -func (o *SdwanRouterNodeAllOf) HasServerNode() bool { - if o != nil && o.ServerNode != nil { - return true - } - - return false -} - -// SetServerNode gets a reference to the given AssetDeviceRegistrationRelationship and assigns it to the ServerNode field. -func (o *SdwanRouterNodeAllOf) SetServerNode(v AssetDeviceRegistrationRelationship) { - o.ServerNode = &v -} - -func (o SdwanRouterNodeAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.DeviceTemplate != nil { - toSerialize["DeviceTemplate"] = o.DeviceTemplate - } - if o.Name != nil { - toSerialize["Name"] = o.Name - } - if o.NetworkConfiguration != nil { - toSerialize["NetworkConfiguration"] = o.NetworkConfiguration - } - if o.TemplateInputs != nil { - toSerialize["TemplateInputs"] = o.TemplateInputs - } - if o.Uuid != nil { - toSerialize["Uuid"] = o.Uuid - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profile != nil { - toSerialize["Profile"] = o.Profile - } - if o.ServerNode != nil { - toSerialize["ServerNode"] = o.ServerNode - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterNodeAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanRouterNodeAllOf := _SdwanRouterNodeAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanRouterNodeAllOf); err == nil { - *o = SdwanRouterNodeAllOf(varSdwanRouterNodeAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "DeviceTemplate") - delete(additionalProperties, "Name") - delete(additionalProperties, "NetworkConfiguration") - delete(additionalProperties, "TemplateInputs") - delete(additionalProperties, "Uuid") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profile") - delete(additionalProperties, "ServerNode") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterNodeAllOf struct { - value *SdwanRouterNodeAllOf - isSet bool -} - -func (v NullableSdwanRouterNodeAllOf) Get() *SdwanRouterNodeAllOf { - return v.value -} - -func (v *NullableSdwanRouterNodeAllOf) Set(val *SdwanRouterNodeAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterNodeAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterNodeAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterNodeAllOf(val *SdwanRouterNodeAllOf) *NullableSdwanRouterNodeAllOf { - return &NullableSdwanRouterNodeAllOf{value: val, isSet: true} -} - -func (v NullableSdwanRouterNodeAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterNodeAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_node_list.go b/model_sdwan_router_node_list.go deleted file mode 100644 index 85bd41c617..0000000000 --- a/model_sdwan_router_node_list.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanRouterNodeList This resource list is returned as a response to a HTTP GET request that does not include a specific resource identifier. -type SdwanRouterNodeList struct { - MoBaseResponse - // The total number of 'sdwan.RouterNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.RouterNode' resources matching the request. - Results []SdwanRouterNode `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterNodeList SdwanRouterNodeList - -// NewSdwanRouterNodeList instantiates a new SdwanRouterNodeList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterNodeList(objectType string) *SdwanRouterNodeList { - this := SdwanRouterNodeList{} - this.ObjectType = objectType - return &this -} - -// NewSdwanRouterNodeListWithDefaults instantiates a new SdwanRouterNodeList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterNodeListWithDefaults() *SdwanRouterNodeList { - this := SdwanRouterNodeList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanRouterNodeList) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeList) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanRouterNodeList) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanRouterNodeList) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterNodeList) GetResults() []SdwanRouterNode { - if o == nil { - var ret []SdwanRouterNode - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterNodeList) GetResultsOk() (*[]SdwanRouterNode, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanRouterNodeList) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanRouterNode and assigns it to the Results field. -func (o *SdwanRouterNodeList) SetResults(v []SdwanRouterNode) { - o.Results = v -} - -func (o SdwanRouterNodeList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseResponse, errMoBaseResponse := json.Marshal(o.MoBaseResponse) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - errMoBaseResponse = json.Unmarshal([]byte(serializedMoBaseResponse), &toSerialize) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterNodeList) UnmarshalJSON(bytes []byte) (err error) { - type SdwanRouterNodeListWithoutEmbeddedStruct struct { - // The total number of 'sdwan.RouterNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.RouterNode' resources matching the request. - Results []SdwanRouterNode `json:"Results,omitempty"` - } - - varSdwanRouterNodeListWithoutEmbeddedStruct := SdwanRouterNodeListWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanRouterNodeListWithoutEmbeddedStruct) - if err == nil { - varSdwanRouterNodeList := _SdwanRouterNodeList{} - varSdwanRouterNodeList.Count = varSdwanRouterNodeListWithoutEmbeddedStruct.Count - varSdwanRouterNodeList.Results = varSdwanRouterNodeListWithoutEmbeddedStruct.Results - *o = SdwanRouterNodeList(varSdwanRouterNodeList) - } else { - return err - } - - varSdwanRouterNodeList := _SdwanRouterNodeList{} - - err = json.Unmarshal(bytes, &varSdwanRouterNodeList) - if err == nil { - o.MoBaseResponse = varSdwanRouterNodeList.MoBaseResponse - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - - // remove fields from embedded structs - reflectMoBaseResponse := reflect.ValueOf(o.MoBaseResponse) - for i := 0; i < reflectMoBaseResponse.Type().NumField(); i++ { - t := reflectMoBaseResponse.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterNodeList struct { - value *SdwanRouterNodeList - isSet bool -} - -func (v NullableSdwanRouterNodeList) Get() *SdwanRouterNodeList { - return v.value -} - -func (v *NullableSdwanRouterNodeList) Set(val *SdwanRouterNodeList) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterNodeList) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterNodeList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterNodeList(val *SdwanRouterNodeList) *NullableSdwanRouterNodeList { - return &NullableSdwanRouterNodeList{value: val, isSet: true} -} - -func (v NullableSdwanRouterNodeList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterNodeList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_node_list_all_of.go b/model_sdwan_router_node_list_all_of.go deleted file mode 100644 index 355db80e90..0000000000 --- a/model_sdwan_router_node_list_all_of.go +++ /dev/null @@ -1,181 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanRouterNodeListAllOf struct for SdwanRouterNodeListAllOf -type SdwanRouterNodeListAllOf struct { - // The total number of 'sdwan.RouterNode' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.RouterNode' resources matching the request. - Results []SdwanRouterNode `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterNodeListAllOf SdwanRouterNodeListAllOf - -// NewSdwanRouterNodeListAllOf instantiates a new SdwanRouterNodeListAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterNodeListAllOf() *SdwanRouterNodeListAllOf { - this := SdwanRouterNodeListAllOf{} - return &this -} - -// NewSdwanRouterNodeListAllOfWithDefaults instantiates a new SdwanRouterNodeListAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterNodeListAllOfWithDefaults() *SdwanRouterNodeListAllOf { - this := SdwanRouterNodeListAllOf{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanRouterNodeListAllOf) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterNodeListAllOf) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanRouterNodeListAllOf) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanRouterNodeListAllOf) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterNodeListAllOf) GetResults() []SdwanRouterNode { - if o == nil { - var ret []SdwanRouterNode - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterNodeListAllOf) GetResultsOk() (*[]SdwanRouterNode, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanRouterNodeListAllOf) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanRouterNode and assigns it to the Results field. -func (o *SdwanRouterNodeListAllOf) SetResults(v []SdwanRouterNode) { - o.Results = v -} - -func (o SdwanRouterNodeListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterNodeListAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanRouterNodeListAllOf := _SdwanRouterNodeListAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanRouterNodeListAllOf); err == nil { - *o = SdwanRouterNodeListAllOf(varSdwanRouterNodeListAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterNodeListAllOf struct { - value *SdwanRouterNodeListAllOf - isSet bool -} - -func (v NullableSdwanRouterNodeListAllOf) Get() *SdwanRouterNodeListAllOf { - return v.value -} - -func (v *NullableSdwanRouterNodeListAllOf) Set(val *SdwanRouterNodeListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterNodeListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterNodeListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterNodeListAllOf(val *SdwanRouterNodeListAllOf) *NullableSdwanRouterNodeListAllOf { - return &NullableSdwanRouterNodeListAllOf{value: val, isSet: true} -} - -func (v NullableSdwanRouterNodeListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterNodeListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_node_relationship.go b/model_sdwan_router_node_relationship.go deleted file mode 100644 index b72f00ed7a..0000000000 --- a/model_sdwan_router_node_relationship.go +++ /dev/null @@ -1,141 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanRouterNodeRelationship - A relationship to the 'sdwan.RouterNode' resource, or the expanded 'sdwan.RouterNode' resource, or the 'null' value. -type SdwanRouterNodeRelationship struct { - MoMoRef *MoMoRef - SdwanRouterNode *SdwanRouterNode -} - -// MoMoRefAsSdwanRouterNodeRelationship is a convenience function that returns MoMoRef wrapped in SdwanRouterNodeRelationship -func MoMoRefAsSdwanRouterNodeRelationship(v *MoMoRef) SdwanRouterNodeRelationship { - return SdwanRouterNodeRelationship{ MoMoRef: v} -} - -// SdwanRouterNodeAsSdwanRouterNodeRelationship is a convenience function that returns SdwanRouterNode wrapped in SdwanRouterNodeRelationship -func SdwanRouterNodeAsSdwanRouterNodeRelationship(v *SdwanRouterNode) SdwanRouterNodeRelationship { - return SdwanRouterNodeRelationship{ SdwanRouterNode: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanRouterNodeRelationship) UnmarshalJSON(data []byte) error { - var err error - // this object is nullable so check if the payload is null or empty string - if string(data) == "" || string(data) == "{}" { - return nil - } - - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.MoRef' - if jsonDict["ClassId"] == "mo.MoRef" { - // try to unmarshal JSON data into MoMoRef - err = json.Unmarshal(data, &dst.MoMoRef) - if err == nil { - return nil // data stored in dst.MoMoRef, return on the first match - } else { - dst.MoMoRef = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterNodeRelationship as MoMoRef: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.RouterNode' - if jsonDict["ClassId"] == "sdwan.RouterNode" { - // try to unmarshal JSON data into SdwanRouterNode - err = json.Unmarshal(data, &dst.SdwanRouterNode) - if err == nil { - return nil // data stored in dst.SdwanRouterNode, return on the first match - } else { - dst.SdwanRouterNode = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterNodeRelationship as SdwanRouterNode: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanRouterNodeRelationship) MarshalJSON() ([]byte, error) { - if src.MoMoRef != nil { - return json.Marshal(&src.MoMoRef) - } - - if src.SdwanRouterNode != nil { - return json.Marshal(&src.SdwanRouterNode) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanRouterNodeRelationship) GetActualInstance() (interface{}) { - if obj.MoMoRef != nil { - return obj.MoMoRef - } - - if obj.SdwanRouterNode != nil { - return obj.SdwanRouterNode - } - - // all schemas are nil - return nil -} - -type NullableSdwanRouterNodeRelationship struct { - value *SdwanRouterNodeRelationship - isSet bool -} - -func (v NullableSdwanRouterNodeRelationship) Get() *SdwanRouterNodeRelationship { - return v.value -} - -func (v *NullableSdwanRouterNodeRelationship) Set(val *SdwanRouterNodeRelationship) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterNodeRelationship) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterNodeRelationship) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterNodeRelationship(val *SdwanRouterNodeRelationship) *NullableSdwanRouterNodeRelationship { - return &NullableSdwanRouterNodeRelationship{value: val, isSet: true} -} - -func (v NullableSdwanRouterNodeRelationship) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterNodeRelationship) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_node_response.go b/model_sdwan_router_node_response.go deleted file mode 100644 index 77c34e0d89..0000000000 --- a/model_sdwan_router_node_response.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanRouterNodeResponse - The response body of a HTTP GET request for the 'sdwan.RouterNode' resource. The value may be one of the following types. 1. When 'tag' is specified in the URL query, the response schema is a summary of the tag usage. 1. When '$apply' is specified in the URL query, the response schema is dynamically-generated schema based on the $apply value. 1. When '$count' is specified in the URL query, the response is a simple object providing the count of the resources. 1. In all other cases, the response is a list of 'sdwan.RouterNode' resources. -type SdwanRouterNodeResponse struct { - MoAggregateTransform *MoAggregateTransform - MoDocumentCount *MoDocumentCount - MoTagSummary *MoTagSummary - SdwanRouterNodeList *SdwanRouterNodeList -} - -// MoAggregateTransformAsSdwanRouterNodeResponse is a convenience function that returns MoAggregateTransform wrapped in SdwanRouterNodeResponse -func MoAggregateTransformAsSdwanRouterNodeResponse(v *MoAggregateTransform) SdwanRouterNodeResponse { - return SdwanRouterNodeResponse{ MoAggregateTransform: v} -} - -// MoDocumentCountAsSdwanRouterNodeResponse is a convenience function that returns MoDocumentCount wrapped in SdwanRouterNodeResponse -func MoDocumentCountAsSdwanRouterNodeResponse(v *MoDocumentCount) SdwanRouterNodeResponse { - return SdwanRouterNodeResponse{ MoDocumentCount: v} -} - -// MoTagSummaryAsSdwanRouterNodeResponse is a convenience function that returns MoTagSummary wrapped in SdwanRouterNodeResponse -func MoTagSummaryAsSdwanRouterNodeResponse(v *MoTagSummary) SdwanRouterNodeResponse { - return SdwanRouterNodeResponse{ MoTagSummary: v} -} - -// SdwanRouterNodeListAsSdwanRouterNodeResponse is a convenience function that returns SdwanRouterNodeList wrapped in SdwanRouterNodeResponse -func SdwanRouterNodeListAsSdwanRouterNodeResponse(v *SdwanRouterNodeList) SdwanRouterNodeResponse { - return SdwanRouterNodeResponse{ SdwanRouterNodeList: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanRouterNodeResponse) UnmarshalJSON(data []byte) error { - var err error - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.AggregateTransform' - if jsonDict["ObjectType"] == "mo.AggregateTransform" { - // try to unmarshal JSON data into MoAggregateTransform - err = json.Unmarshal(data, &dst.MoAggregateTransform) - if err == nil { - return nil // data stored in dst.MoAggregateTransform, return on the first match - } else { - dst.MoAggregateTransform = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterNodeResponse as MoAggregateTransform: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.DocumentCount' - if jsonDict["ObjectType"] == "mo.DocumentCount" { - // try to unmarshal JSON data into MoDocumentCount - err = json.Unmarshal(data, &dst.MoDocumentCount) - if err == nil { - return nil // data stored in dst.MoDocumentCount, return on the first match - } else { - dst.MoDocumentCount = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterNodeResponse as MoDocumentCount: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.TagSummary' - if jsonDict["ObjectType"] == "mo.TagSummary" { - // try to unmarshal JSON data into MoTagSummary - err = json.Unmarshal(data, &dst.MoTagSummary) - if err == nil { - return nil // data stored in dst.MoTagSummary, return on the first match - } else { - dst.MoTagSummary = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterNodeResponse as MoTagSummary: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.RouterNode.List' - if jsonDict["ObjectType"] == "sdwan.RouterNode.List" { - // try to unmarshal JSON data into SdwanRouterNodeList - err = json.Unmarshal(data, &dst.SdwanRouterNodeList) - if err == nil { - return nil // data stored in dst.SdwanRouterNodeList, return on the first match - } else { - dst.SdwanRouterNodeList = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterNodeResponse as SdwanRouterNodeList: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanRouterNodeResponse) MarshalJSON() ([]byte, error) { - if src.MoAggregateTransform != nil { - return json.Marshal(&src.MoAggregateTransform) - } - - if src.MoDocumentCount != nil { - return json.Marshal(&src.MoDocumentCount) - } - - if src.MoTagSummary != nil { - return json.Marshal(&src.MoTagSummary) - } - - if src.SdwanRouterNodeList != nil { - return json.Marshal(&src.SdwanRouterNodeList) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanRouterNodeResponse) GetActualInstance() (interface{}) { - if obj.MoAggregateTransform != nil { - return obj.MoAggregateTransform - } - - if obj.MoDocumentCount != nil { - return obj.MoDocumentCount - } - - if obj.MoTagSummary != nil { - return obj.MoTagSummary - } - - if obj.SdwanRouterNodeList != nil { - return obj.SdwanRouterNodeList - } - - // all schemas are nil - return nil -} - -type NullableSdwanRouterNodeResponse struct { - value *SdwanRouterNodeResponse - isSet bool -} - -func (v NullableSdwanRouterNodeResponse) Get() *SdwanRouterNodeResponse { - return v.value -} - -func (v *NullableSdwanRouterNodeResponse) Set(val *SdwanRouterNodeResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterNodeResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterNodeResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterNodeResponse(val *SdwanRouterNodeResponse) *NullableSdwanRouterNodeResponse { - return &NullableSdwanRouterNodeResponse{value: val, isSet: true} -} - -func (v NullableSdwanRouterNodeResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterNodeResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_policy.go b/model_sdwan_router_policy.go deleted file mode 100644 index ed79c9cf30..0000000000 --- a/model_sdwan_router_policy.go +++ /dev/null @@ -1,477 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanRouterPolicy A policy specifying SD-WAN router details. -type SdwanRouterPolicy struct { - PolicyAbstractPolicy - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Scale of the SD-WAN router virtual machine deployment. * `Typical` - Typical deployment configuration with 4 vCPUs and 4GB RAM. * `Minimal` - Minimal deployment configuration with 2 vCPUs and 4GB RAM. - DeploymentSize *string `json:"DeploymentSize,omitempty"` - // Number of WAN connections across the SD-WAN site. - WanCount *int64 `json:"WanCount,omitempty"` - // Defines if the WAN networks are singly or dually terminated. Dually terminated WANs are configured on all the SD-WAN routers. Singly terminated WANs are configured only on one of the SD-WAN routers. * `Single` - Singly terminated WANs ar evenly distributed across SD-WAN router nodes. A given WAN connection is available only on one of the router nodes. * `Dual` - Dually terminated WANs are configured on all the SD-WAN routers. A given WAN connection is available on multiple router nodes. - WanTerminationType *string `json:"WanTerminationType,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanProfile resources. - Profiles []SdwanProfileRelationship `json:"Profiles,omitempty"` - SolutionImage *SoftwareSolutionDistributableRelationship `json:"SolutionImage,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterPolicy SdwanRouterPolicy - -// NewSdwanRouterPolicy instantiates a new SdwanRouterPolicy object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterPolicy(classId string, objectType string) *SdwanRouterPolicy { - this := SdwanRouterPolicy{} - this.ClassId = classId - this.ObjectType = objectType - var deploymentSize string = "Typical" - this.DeploymentSize = &deploymentSize - var wanCount int64 = 2 - this.WanCount = &wanCount - var wanTerminationType string = "Single" - this.WanTerminationType = &wanTerminationType - return &this -} - -// NewSdwanRouterPolicyWithDefaults instantiates a new SdwanRouterPolicy object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterPolicyWithDefaults() *SdwanRouterPolicy { - this := SdwanRouterPolicy{} - var classId string = "sdwan.RouterPolicy" - this.ClassId = classId - var objectType string = "sdwan.RouterPolicy" - this.ObjectType = objectType - var deploymentSize string = "Typical" - this.DeploymentSize = &deploymentSize - var wanCount int64 = 2 - this.WanCount = &wanCount - var wanTerminationType string = "Single" - this.WanTerminationType = &wanTerminationType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanRouterPolicy) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicy) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanRouterPolicy) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanRouterPolicy) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicy) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanRouterPolicy) SetObjectType(v string) { - o.ObjectType = v -} - -// GetDeploymentSize returns the DeploymentSize field value if set, zero value otherwise. -func (o *SdwanRouterPolicy) GetDeploymentSize() string { - if o == nil || o.DeploymentSize == nil { - var ret string - return ret - } - return *o.DeploymentSize -} - -// GetDeploymentSizeOk returns a tuple with the DeploymentSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicy) GetDeploymentSizeOk() (*string, bool) { - if o == nil || o.DeploymentSize == nil { - return nil, false - } - return o.DeploymentSize, true -} - -// HasDeploymentSize returns a boolean if a field has been set. -func (o *SdwanRouterPolicy) HasDeploymentSize() bool { - if o != nil && o.DeploymentSize != nil { - return true - } - - return false -} - -// SetDeploymentSize gets a reference to the given string and assigns it to the DeploymentSize field. -func (o *SdwanRouterPolicy) SetDeploymentSize(v string) { - o.DeploymentSize = &v -} - -// GetWanCount returns the WanCount field value if set, zero value otherwise. -func (o *SdwanRouterPolicy) GetWanCount() int64 { - if o == nil || o.WanCount == nil { - var ret int64 - return ret - } - return *o.WanCount -} - -// GetWanCountOk returns a tuple with the WanCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicy) GetWanCountOk() (*int64, bool) { - if o == nil || o.WanCount == nil { - return nil, false - } - return o.WanCount, true -} - -// HasWanCount returns a boolean if a field has been set. -func (o *SdwanRouterPolicy) HasWanCount() bool { - if o != nil && o.WanCount != nil { - return true - } - - return false -} - -// SetWanCount gets a reference to the given int64 and assigns it to the WanCount field. -func (o *SdwanRouterPolicy) SetWanCount(v int64) { - o.WanCount = &v -} - -// GetWanTerminationType returns the WanTerminationType field value if set, zero value otherwise. -func (o *SdwanRouterPolicy) GetWanTerminationType() string { - if o == nil || o.WanTerminationType == nil { - var ret string - return ret - } - return *o.WanTerminationType -} - -// GetWanTerminationTypeOk returns a tuple with the WanTerminationType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicy) GetWanTerminationTypeOk() (*string, bool) { - if o == nil || o.WanTerminationType == nil { - return nil, false - } - return o.WanTerminationType, true -} - -// HasWanTerminationType returns a boolean if a field has been set. -func (o *SdwanRouterPolicy) HasWanTerminationType() bool { - if o != nil && o.WanTerminationType != nil { - return true - } - - return false -} - -// SetWanTerminationType gets a reference to the given string and assigns it to the WanTerminationType field. -func (o *SdwanRouterPolicy) SetWanTerminationType(v string) { - o.WanTerminationType = &v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanRouterPolicy) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicy) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanRouterPolicy) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanRouterPolicy) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfiles returns the Profiles field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterPolicy) GetProfiles() []SdwanProfileRelationship { - if o == nil { - var ret []SdwanProfileRelationship - return ret - } - return o.Profiles -} - -// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterPolicy) GetProfilesOk() (*[]SdwanProfileRelationship, bool) { - if o == nil || o.Profiles == nil { - return nil, false - } - return &o.Profiles, true -} - -// HasProfiles returns a boolean if a field has been set. -func (o *SdwanRouterPolicy) HasProfiles() bool { - if o != nil && o.Profiles != nil { - return true - } - - return false -} - -// SetProfiles gets a reference to the given []SdwanProfileRelationship and assigns it to the Profiles field. -func (o *SdwanRouterPolicy) SetProfiles(v []SdwanProfileRelationship) { - o.Profiles = v -} - -// GetSolutionImage returns the SolutionImage field value if set, zero value otherwise. -func (o *SdwanRouterPolicy) GetSolutionImage() SoftwareSolutionDistributableRelationship { - if o == nil || o.SolutionImage == nil { - var ret SoftwareSolutionDistributableRelationship - return ret - } - return *o.SolutionImage -} - -// GetSolutionImageOk returns a tuple with the SolutionImage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicy) GetSolutionImageOk() (*SoftwareSolutionDistributableRelationship, bool) { - if o == nil || o.SolutionImage == nil { - return nil, false - } - return o.SolutionImage, true -} - -// HasSolutionImage returns a boolean if a field has been set. -func (o *SdwanRouterPolicy) HasSolutionImage() bool { - if o != nil && o.SolutionImage != nil { - return true - } - - return false -} - -// SetSolutionImage gets a reference to the given SoftwareSolutionDistributableRelationship and assigns it to the SolutionImage field. -func (o *SdwanRouterPolicy) SetSolutionImage(v SoftwareSolutionDistributableRelationship) { - o.SolutionImage = &v -} - -func (o SdwanRouterPolicy) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedPolicyAbstractPolicy, errPolicyAbstractPolicy := json.Marshal(o.PolicyAbstractPolicy) - if errPolicyAbstractPolicy != nil { - return []byte{}, errPolicyAbstractPolicy - } - errPolicyAbstractPolicy = json.Unmarshal([]byte(serializedPolicyAbstractPolicy), &toSerialize) - if errPolicyAbstractPolicy != nil { - return []byte{}, errPolicyAbstractPolicy - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.DeploymentSize != nil { - toSerialize["DeploymentSize"] = o.DeploymentSize - } - if o.WanCount != nil { - toSerialize["WanCount"] = o.WanCount - } - if o.WanTerminationType != nil { - toSerialize["WanTerminationType"] = o.WanTerminationType - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profiles != nil { - toSerialize["Profiles"] = o.Profiles - } - if o.SolutionImage != nil { - toSerialize["SolutionImage"] = o.SolutionImage - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterPolicy) UnmarshalJSON(bytes []byte) (err error) { - type SdwanRouterPolicyWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Scale of the SD-WAN router virtual machine deployment. * `Typical` - Typical deployment configuration with 4 vCPUs and 4GB RAM. * `Minimal` - Minimal deployment configuration with 2 vCPUs and 4GB RAM. - DeploymentSize *string `json:"DeploymentSize,omitempty"` - // Number of WAN connections across the SD-WAN site. - WanCount *int64 `json:"WanCount,omitempty"` - // Defines if the WAN networks are singly or dually terminated. Dually terminated WANs are configured on all the SD-WAN routers. Singly terminated WANs are configured only on one of the SD-WAN routers. * `Single` - Singly terminated WANs ar evenly distributed across SD-WAN router nodes. A given WAN connection is available only on one of the router nodes. * `Dual` - Dually terminated WANs are configured on all the SD-WAN routers. A given WAN connection is available on multiple router nodes. - WanTerminationType *string `json:"WanTerminationType,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanProfile resources. - Profiles []SdwanProfileRelationship `json:"Profiles,omitempty"` - SolutionImage *SoftwareSolutionDistributableRelationship `json:"SolutionImage,omitempty"` - } - - varSdwanRouterPolicyWithoutEmbeddedStruct := SdwanRouterPolicyWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanRouterPolicyWithoutEmbeddedStruct) - if err == nil { - varSdwanRouterPolicy := _SdwanRouterPolicy{} - varSdwanRouterPolicy.ClassId = varSdwanRouterPolicyWithoutEmbeddedStruct.ClassId - varSdwanRouterPolicy.ObjectType = varSdwanRouterPolicyWithoutEmbeddedStruct.ObjectType - varSdwanRouterPolicy.DeploymentSize = varSdwanRouterPolicyWithoutEmbeddedStruct.DeploymentSize - varSdwanRouterPolicy.WanCount = varSdwanRouterPolicyWithoutEmbeddedStruct.WanCount - varSdwanRouterPolicy.WanTerminationType = varSdwanRouterPolicyWithoutEmbeddedStruct.WanTerminationType - varSdwanRouterPolicy.Organization = varSdwanRouterPolicyWithoutEmbeddedStruct.Organization - varSdwanRouterPolicy.Profiles = varSdwanRouterPolicyWithoutEmbeddedStruct.Profiles - varSdwanRouterPolicy.SolutionImage = varSdwanRouterPolicyWithoutEmbeddedStruct.SolutionImage - *o = SdwanRouterPolicy(varSdwanRouterPolicy) - } else { - return err - } - - varSdwanRouterPolicy := _SdwanRouterPolicy{} - - err = json.Unmarshal(bytes, &varSdwanRouterPolicy) - if err == nil { - o.PolicyAbstractPolicy = varSdwanRouterPolicy.PolicyAbstractPolicy - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "DeploymentSize") - delete(additionalProperties, "WanCount") - delete(additionalProperties, "WanTerminationType") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profiles") - delete(additionalProperties, "SolutionImage") - - // remove fields from embedded structs - reflectPolicyAbstractPolicy := reflect.ValueOf(o.PolicyAbstractPolicy) - for i := 0; i < reflectPolicyAbstractPolicy.Type().NumField(); i++ { - t := reflectPolicyAbstractPolicy.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterPolicy struct { - value *SdwanRouterPolicy - isSet bool -} - -func (v NullableSdwanRouterPolicy) Get() *SdwanRouterPolicy { - return v.value -} - -func (v *NullableSdwanRouterPolicy) Set(val *SdwanRouterPolicy) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterPolicy) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterPolicy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterPolicy(val *SdwanRouterPolicy) *NullableSdwanRouterPolicy { - return &NullableSdwanRouterPolicy{value: val, isSet: true} -} - -func (v NullableSdwanRouterPolicy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterPolicy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_policy_all_of.go b/model_sdwan_router_policy_all_of.go deleted file mode 100644 index 75db93a9de..0000000000 --- a/model_sdwan_router_policy_all_of.go +++ /dev/null @@ -1,409 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanRouterPolicyAllOf Definition of the list of properties defined in 'sdwan.RouterPolicy', excluding properties defined in parent classes. -type SdwanRouterPolicyAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Scale of the SD-WAN router virtual machine deployment. * `Typical` - Typical deployment configuration with 4 vCPUs and 4GB RAM. * `Minimal` - Minimal deployment configuration with 2 vCPUs and 4GB RAM. - DeploymentSize *string `json:"DeploymentSize,omitempty"` - // Number of WAN connections across the SD-WAN site. - WanCount *int64 `json:"WanCount,omitempty"` - // Defines if the WAN networks are singly or dually terminated. Dually terminated WANs are configured on all the SD-WAN routers. Singly terminated WANs are configured only on one of the SD-WAN routers. * `Single` - Singly terminated WANs ar evenly distributed across SD-WAN router nodes. A given WAN connection is available only on one of the router nodes. * `Dual` - Dually terminated WANs are configured on all the SD-WAN routers. A given WAN connection is available on multiple router nodes. - WanTerminationType *string `json:"WanTerminationType,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanProfile resources. - Profiles []SdwanProfileRelationship `json:"Profiles,omitempty"` - SolutionImage *SoftwareSolutionDistributableRelationship `json:"SolutionImage,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterPolicyAllOf SdwanRouterPolicyAllOf - -// NewSdwanRouterPolicyAllOf instantiates a new SdwanRouterPolicyAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterPolicyAllOf(classId string, objectType string) *SdwanRouterPolicyAllOf { - this := SdwanRouterPolicyAllOf{} - this.ClassId = classId - this.ObjectType = objectType - var deploymentSize string = "Typical" - this.DeploymentSize = &deploymentSize - var wanCount int64 = 2 - this.WanCount = &wanCount - var wanTerminationType string = "Single" - this.WanTerminationType = &wanTerminationType - return &this -} - -// NewSdwanRouterPolicyAllOfWithDefaults instantiates a new SdwanRouterPolicyAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterPolicyAllOfWithDefaults() *SdwanRouterPolicyAllOf { - this := SdwanRouterPolicyAllOf{} - var classId string = "sdwan.RouterPolicy" - this.ClassId = classId - var objectType string = "sdwan.RouterPolicy" - this.ObjectType = objectType - var deploymentSize string = "Typical" - this.DeploymentSize = &deploymentSize - var wanCount int64 = 2 - this.WanCount = &wanCount - var wanTerminationType string = "Single" - this.WanTerminationType = &wanTerminationType - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanRouterPolicyAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanRouterPolicyAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanRouterPolicyAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanRouterPolicyAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetDeploymentSize returns the DeploymentSize field value if set, zero value otherwise. -func (o *SdwanRouterPolicyAllOf) GetDeploymentSize() string { - if o == nil || o.DeploymentSize == nil { - var ret string - return ret - } - return *o.DeploymentSize -} - -// GetDeploymentSizeOk returns a tuple with the DeploymentSize field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyAllOf) GetDeploymentSizeOk() (*string, bool) { - if o == nil || o.DeploymentSize == nil { - return nil, false - } - return o.DeploymentSize, true -} - -// HasDeploymentSize returns a boolean if a field has been set. -func (o *SdwanRouterPolicyAllOf) HasDeploymentSize() bool { - if o != nil && o.DeploymentSize != nil { - return true - } - - return false -} - -// SetDeploymentSize gets a reference to the given string and assigns it to the DeploymentSize field. -func (o *SdwanRouterPolicyAllOf) SetDeploymentSize(v string) { - o.DeploymentSize = &v -} - -// GetWanCount returns the WanCount field value if set, zero value otherwise. -func (o *SdwanRouterPolicyAllOf) GetWanCount() int64 { - if o == nil || o.WanCount == nil { - var ret int64 - return ret - } - return *o.WanCount -} - -// GetWanCountOk returns a tuple with the WanCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyAllOf) GetWanCountOk() (*int64, bool) { - if o == nil || o.WanCount == nil { - return nil, false - } - return o.WanCount, true -} - -// HasWanCount returns a boolean if a field has been set. -func (o *SdwanRouterPolicyAllOf) HasWanCount() bool { - if o != nil && o.WanCount != nil { - return true - } - - return false -} - -// SetWanCount gets a reference to the given int64 and assigns it to the WanCount field. -func (o *SdwanRouterPolicyAllOf) SetWanCount(v int64) { - o.WanCount = &v -} - -// GetWanTerminationType returns the WanTerminationType field value if set, zero value otherwise. -func (o *SdwanRouterPolicyAllOf) GetWanTerminationType() string { - if o == nil || o.WanTerminationType == nil { - var ret string - return ret - } - return *o.WanTerminationType -} - -// GetWanTerminationTypeOk returns a tuple with the WanTerminationType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyAllOf) GetWanTerminationTypeOk() (*string, bool) { - if o == nil || o.WanTerminationType == nil { - return nil, false - } - return o.WanTerminationType, true -} - -// HasWanTerminationType returns a boolean if a field has been set. -func (o *SdwanRouterPolicyAllOf) HasWanTerminationType() bool { - if o != nil && o.WanTerminationType != nil { - return true - } - - return false -} - -// SetWanTerminationType gets a reference to the given string and assigns it to the WanTerminationType field. -func (o *SdwanRouterPolicyAllOf) SetWanTerminationType(v string) { - o.WanTerminationType = &v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanRouterPolicyAllOf) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanRouterPolicyAllOf) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanRouterPolicyAllOf) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfiles returns the Profiles field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterPolicyAllOf) GetProfiles() []SdwanProfileRelationship { - if o == nil { - var ret []SdwanProfileRelationship - return ret - } - return o.Profiles -} - -// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterPolicyAllOf) GetProfilesOk() (*[]SdwanProfileRelationship, bool) { - if o == nil || o.Profiles == nil { - return nil, false - } - return &o.Profiles, true -} - -// HasProfiles returns a boolean if a field has been set. -func (o *SdwanRouterPolicyAllOf) HasProfiles() bool { - if o != nil && o.Profiles != nil { - return true - } - - return false -} - -// SetProfiles gets a reference to the given []SdwanProfileRelationship and assigns it to the Profiles field. -func (o *SdwanRouterPolicyAllOf) SetProfiles(v []SdwanProfileRelationship) { - o.Profiles = v -} - -// GetSolutionImage returns the SolutionImage field value if set, zero value otherwise. -func (o *SdwanRouterPolicyAllOf) GetSolutionImage() SoftwareSolutionDistributableRelationship { - if o == nil || o.SolutionImage == nil { - var ret SoftwareSolutionDistributableRelationship - return ret - } - return *o.SolutionImage -} - -// GetSolutionImageOk returns a tuple with the SolutionImage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyAllOf) GetSolutionImageOk() (*SoftwareSolutionDistributableRelationship, bool) { - if o == nil || o.SolutionImage == nil { - return nil, false - } - return o.SolutionImage, true -} - -// HasSolutionImage returns a boolean if a field has been set. -func (o *SdwanRouterPolicyAllOf) HasSolutionImage() bool { - if o != nil && o.SolutionImage != nil { - return true - } - - return false -} - -// SetSolutionImage gets a reference to the given SoftwareSolutionDistributableRelationship and assigns it to the SolutionImage field. -func (o *SdwanRouterPolicyAllOf) SetSolutionImage(v SoftwareSolutionDistributableRelationship) { - o.SolutionImage = &v -} - -func (o SdwanRouterPolicyAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.DeploymentSize != nil { - toSerialize["DeploymentSize"] = o.DeploymentSize - } - if o.WanCount != nil { - toSerialize["WanCount"] = o.WanCount - } - if o.WanTerminationType != nil { - toSerialize["WanTerminationType"] = o.WanTerminationType - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profiles != nil { - toSerialize["Profiles"] = o.Profiles - } - if o.SolutionImage != nil { - toSerialize["SolutionImage"] = o.SolutionImage - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterPolicyAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanRouterPolicyAllOf := _SdwanRouterPolicyAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanRouterPolicyAllOf); err == nil { - *o = SdwanRouterPolicyAllOf(varSdwanRouterPolicyAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "DeploymentSize") - delete(additionalProperties, "WanCount") - delete(additionalProperties, "WanTerminationType") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profiles") - delete(additionalProperties, "SolutionImage") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterPolicyAllOf struct { - value *SdwanRouterPolicyAllOf - isSet bool -} - -func (v NullableSdwanRouterPolicyAllOf) Get() *SdwanRouterPolicyAllOf { - return v.value -} - -func (v *NullableSdwanRouterPolicyAllOf) Set(val *SdwanRouterPolicyAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterPolicyAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterPolicyAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterPolicyAllOf(val *SdwanRouterPolicyAllOf) *NullableSdwanRouterPolicyAllOf { - return &NullableSdwanRouterPolicyAllOf{value: val, isSet: true} -} - -func (v NullableSdwanRouterPolicyAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterPolicyAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_policy_list.go b/model_sdwan_router_policy_list.go deleted file mode 100644 index c51891bad9..0000000000 --- a/model_sdwan_router_policy_list.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanRouterPolicyList This resource list is returned as a response to a HTTP GET request that does not include a specific resource identifier. -type SdwanRouterPolicyList struct { - MoBaseResponse - // The total number of 'sdwan.RouterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.RouterPolicy' resources matching the request. - Results []SdwanRouterPolicy `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterPolicyList SdwanRouterPolicyList - -// NewSdwanRouterPolicyList instantiates a new SdwanRouterPolicyList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterPolicyList(objectType string) *SdwanRouterPolicyList { - this := SdwanRouterPolicyList{} - this.ObjectType = objectType - return &this -} - -// NewSdwanRouterPolicyListWithDefaults instantiates a new SdwanRouterPolicyList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterPolicyListWithDefaults() *SdwanRouterPolicyList { - this := SdwanRouterPolicyList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanRouterPolicyList) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyList) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanRouterPolicyList) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanRouterPolicyList) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterPolicyList) GetResults() []SdwanRouterPolicy { - if o == nil { - var ret []SdwanRouterPolicy - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterPolicyList) GetResultsOk() (*[]SdwanRouterPolicy, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanRouterPolicyList) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanRouterPolicy and assigns it to the Results field. -func (o *SdwanRouterPolicyList) SetResults(v []SdwanRouterPolicy) { - o.Results = v -} - -func (o SdwanRouterPolicyList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseResponse, errMoBaseResponse := json.Marshal(o.MoBaseResponse) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - errMoBaseResponse = json.Unmarshal([]byte(serializedMoBaseResponse), &toSerialize) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterPolicyList) UnmarshalJSON(bytes []byte) (err error) { - type SdwanRouterPolicyListWithoutEmbeddedStruct struct { - // The total number of 'sdwan.RouterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.RouterPolicy' resources matching the request. - Results []SdwanRouterPolicy `json:"Results,omitempty"` - } - - varSdwanRouterPolicyListWithoutEmbeddedStruct := SdwanRouterPolicyListWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanRouterPolicyListWithoutEmbeddedStruct) - if err == nil { - varSdwanRouterPolicyList := _SdwanRouterPolicyList{} - varSdwanRouterPolicyList.Count = varSdwanRouterPolicyListWithoutEmbeddedStruct.Count - varSdwanRouterPolicyList.Results = varSdwanRouterPolicyListWithoutEmbeddedStruct.Results - *o = SdwanRouterPolicyList(varSdwanRouterPolicyList) - } else { - return err - } - - varSdwanRouterPolicyList := _SdwanRouterPolicyList{} - - err = json.Unmarshal(bytes, &varSdwanRouterPolicyList) - if err == nil { - o.MoBaseResponse = varSdwanRouterPolicyList.MoBaseResponse - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - - // remove fields from embedded structs - reflectMoBaseResponse := reflect.ValueOf(o.MoBaseResponse) - for i := 0; i < reflectMoBaseResponse.Type().NumField(); i++ { - t := reflectMoBaseResponse.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterPolicyList struct { - value *SdwanRouterPolicyList - isSet bool -} - -func (v NullableSdwanRouterPolicyList) Get() *SdwanRouterPolicyList { - return v.value -} - -func (v *NullableSdwanRouterPolicyList) Set(val *SdwanRouterPolicyList) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterPolicyList) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterPolicyList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterPolicyList(val *SdwanRouterPolicyList) *NullableSdwanRouterPolicyList { - return &NullableSdwanRouterPolicyList{value: val, isSet: true} -} - -func (v NullableSdwanRouterPolicyList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterPolicyList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_policy_list_all_of.go b/model_sdwan_router_policy_list_all_of.go deleted file mode 100644 index 80a179bb1f..0000000000 --- a/model_sdwan_router_policy_list_all_of.go +++ /dev/null @@ -1,181 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanRouterPolicyListAllOf struct for SdwanRouterPolicyListAllOf -type SdwanRouterPolicyListAllOf struct { - // The total number of 'sdwan.RouterPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.RouterPolicy' resources matching the request. - Results []SdwanRouterPolicy `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanRouterPolicyListAllOf SdwanRouterPolicyListAllOf - -// NewSdwanRouterPolicyListAllOf instantiates a new SdwanRouterPolicyListAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanRouterPolicyListAllOf() *SdwanRouterPolicyListAllOf { - this := SdwanRouterPolicyListAllOf{} - return &this -} - -// NewSdwanRouterPolicyListAllOfWithDefaults instantiates a new SdwanRouterPolicyListAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanRouterPolicyListAllOfWithDefaults() *SdwanRouterPolicyListAllOf { - this := SdwanRouterPolicyListAllOf{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanRouterPolicyListAllOf) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanRouterPolicyListAllOf) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanRouterPolicyListAllOf) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanRouterPolicyListAllOf) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanRouterPolicyListAllOf) GetResults() []SdwanRouterPolicy { - if o == nil { - var ret []SdwanRouterPolicy - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanRouterPolicyListAllOf) GetResultsOk() (*[]SdwanRouterPolicy, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanRouterPolicyListAllOf) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanRouterPolicy and assigns it to the Results field. -func (o *SdwanRouterPolicyListAllOf) SetResults(v []SdwanRouterPolicy) { - o.Results = v -} - -func (o SdwanRouterPolicyListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanRouterPolicyListAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanRouterPolicyListAllOf := _SdwanRouterPolicyListAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanRouterPolicyListAllOf); err == nil { - *o = SdwanRouterPolicyListAllOf(varSdwanRouterPolicyListAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanRouterPolicyListAllOf struct { - value *SdwanRouterPolicyListAllOf - isSet bool -} - -func (v NullableSdwanRouterPolicyListAllOf) Get() *SdwanRouterPolicyListAllOf { - return v.value -} - -func (v *NullableSdwanRouterPolicyListAllOf) Set(val *SdwanRouterPolicyListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterPolicyListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterPolicyListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterPolicyListAllOf(val *SdwanRouterPolicyListAllOf) *NullableSdwanRouterPolicyListAllOf { - return &NullableSdwanRouterPolicyListAllOf{value: val, isSet: true} -} - -func (v NullableSdwanRouterPolicyListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterPolicyListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_policy_relationship.go b/model_sdwan_router_policy_relationship.go deleted file mode 100644 index 0957181382..0000000000 --- a/model_sdwan_router_policy_relationship.go +++ /dev/null @@ -1,141 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanRouterPolicyRelationship - A relationship to the 'sdwan.RouterPolicy' resource, or the expanded 'sdwan.RouterPolicy' resource, or the 'null' value. -type SdwanRouterPolicyRelationship struct { - MoMoRef *MoMoRef - SdwanRouterPolicy *SdwanRouterPolicy -} - -// MoMoRefAsSdwanRouterPolicyRelationship is a convenience function that returns MoMoRef wrapped in SdwanRouterPolicyRelationship -func MoMoRefAsSdwanRouterPolicyRelationship(v *MoMoRef) SdwanRouterPolicyRelationship { - return SdwanRouterPolicyRelationship{ MoMoRef: v} -} - -// SdwanRouterPolicyAsSdwanRouterPolicyRelationship is a convenience function that returns SdwanRouterPolicy wrapped in SdwanRouterPolicyRelationship -func SdwanRouterPolicyAsSdwanRouterPolicyRelationship(v *SdwanRouterPolicy) SdwanRouterPolicyRelationship { - return SdwanRouterPolicyRelationship{ SdwanRouterPolicy: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanRouterPolicyRelationship) UnmarshalJSON(data []byte) error { - var err error - // this object is nullable so check if the payload is null or empty string - if string(data) == "" || string(data) == "{}" { - return nil - } - - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.MoRef' - if jsonDict["ClassId"] == "mo.MoRef" { - // try to unmarshal JSON data into MoMoRef - err = json.Unmarshal(data, &dst.MoMoRef) - if err == nil { - return nil // data stored in dst.MoMoRef, return on the first match - } else { - dst.MoMoRef = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterPolicyRelationship as MoMoRef: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.RouterPolicy' - if jsonDict["ClassId"] == "sdwan.RouterPolicy" { - // try to unmarshal JSON data into SdwanRouterPolicy - err = json.Unmarshal(data, &dst.SdwanRouterPolicy) - if err == nil { - return nil // data stored in dst.SdwanRouterPolicy, return on the first match - } else { - dst.SdwanRouterPolicy = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterPolicyRelationship as SdwanRouterPolicy: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanRouterPolicyRelationship) MarshalJSON() ([]byte, error) { - if src.MoMoRef != nil { - return json.Marshal(&src.MoMoRef) - } - - if src.SdwanRouterPolicy != nil { - return json.Marshal(&src.SdwanRouterPolicy) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanRouterPolicyRelationship) GetActualInstance() (interface{}) { - if obj.MoMoRef != nil { - return obj.MoMoRef - } - - if obj.SdwanRouterPolicy != nil { - return obj.SdwanRouterPolicy - } - - // all schemas are nil - return nil -} - -type NullableSdwanRouterPolicyRelationship struct { - value *SdwanRouterPolicyRelationship - isSet bool -} - -func (v NullableSdwanRouterPolicyRelationship) Get() *SdwanRouterPolicyRelationship { - return v.value -} - -func (v *NullableSdwanRouterPolicyRelationship) Set(val *SdwanRouterPolicyRelationship) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterPolicyRelationship) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterPolicyRelationship) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterPolicyRelationship(val *SdwanRouterPolicyRelationship) *NullableSdwanRouterPolicyRelationship { - return &NullableSdwanRouterPolicyRelationship{value: val, isSet: true} -} - -func (v NullableSdwanRouterPolicyRelationship) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterPolicyRelationship) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_router_policy_response.go b/model_sdwan_router_policy_response.go deleted file mode 100644 index 714690056a..0000000000 --- a/model_sdwan_router_policy_response.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanRouterPolicyResponse - The response body of a HTTP GET request for the 'sdwan.RouterPolicy' resource. The value may be one of the following types. 1. When 'tag' is specified in the URL query, the response schema is a summary of the tag usage. 1. When '$apply' is specified in the URL query, the response schema is dynamically-generated schema based on the $apply value. 1. When '$count' is specified in the URL query, the response is a simple object providing the count of the resources. 1. In all other cases, the response is a list of 'sdwan.RouterPolicy' resources. -type SdwanRouterPolicyResponse struct { - MoAggregateTransform *MoAggregateTransform - MoDocumentCount *MoDocumentCount - MoTagSummary *MoTagSummary - SdwanRouterPolicyList *SdwanRouterPolicyList -} - -// MoAggregateTransformAsSdwanRouterPolicyResponse is a convenience function that returns MoAggregateTransform wrapped in SdwanRouterPolicyResponse -func MoAggregateTransformAsSdwanRouterPolicyResponse(v *MoAggregateTransform) SdwanRouterPolicyResponse { - return SdwanRouterPolicyResponse{ MoAggregateTransform: v} -} - -// MoDocumentCountAsSdwanRouterPolicyResponse is a convenience function that returns MoDocumentCount wrapped in SdwanRouterPolicyResponse -func MoDocumentCountAsSdwanRouterPolicyResponse(v *MoDocumentCount) SdwanRouterPolicyResponse { - return SdwanRouterPolicyResponse{ MoDocumentCount: v} -} - -// MoTagSummaryAsSdwanRouterPolicyResponse is a convenience function that returns MoTagSummary wrapped in SdwanRouterPolicyResponse -func MoTagSummaryAsSdwanRouterPolicyResponse(v *MoTagSummary) SdwanRouterPolicyResponse { - return SdwanRouterPolicyResponse{ MoTagSummary: v} -} - -// SdwanRouterPolicyListAsSdwanRouterPolicyResponse is a convenience function that returns SdwanRouterPolicyList wrapped in SdwanRouterPolicyResponse -func SdwanRouterPolicyListAsSdwanRouterPolicyResponse(v *SdwanRouterPolicyList) SdwanRouterPolicyResponse { - return SdwanRouterPolicyResponse{ SdwanRouterPolicyList: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanRouterPolicyResponse) UnmarshalJSON(data []byte) error { - var err error - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.AggregateTransform' - if jsonDict["ObjectType"] == "mo.AggregateTransform" { - // try to unmarshal JSON data into MoAggregateTransform - err = json.Unmarshal(data, &dst.MoAggregateTransform) - if err == nil { - return nil // data stored in dst.MoAggregateTransform, return on the first match - } else { - dst.MoAggregateTransform = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterPolicyResponse as MoAggregateTransform: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.DocumentCount' - if jsonDict["ObjectType"] == "mo.DocumentCount" { - // try to unmarshal JSON data into MoDocumentCount - err = json.Unmarshal(data, &dst.MoDocumentCount) - if err == nil { - return nil // data stored in dst.MoDocumentCount, return on the first match - } else { - dst.MoDocumentCount = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterPolicyResponse as MoDocumentCount: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.TagSummary' - if jsonDict["ObjectType"] == "mo.TagSummary" { - // try to unmarshal JSON data into MoTagSummary - err = json.Unmarshal(data, &dst.MoTagSummary) - if err == nil { - return nil // data stored in dst.MoTagSummary, return on the first match - } else { - dst.MoTagSummary = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterPolicyResponse as MoTagSummary: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.RouterPolicy.List' - if jsonDict["ObjectType"] == "sdwan.RouterPolicy.List" { - // try to unmarshal JSON data into SdwanRouterPolicyList - err = json.Unmarshal(data, &dst.SdwanRouterPolicyList) - if err == nil { - return nil // data stored in dst.SdwanRouterPolicyList, return on the first match - } else { - dst.SdwanRouterPolicyList = nil - return fmt.Errorf("Failed to unmarshal SdwanRouterPolicyResponse as SdwanRouterPolicyList: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanRouterPolicyResponse) MarshalJSON() ([]byte, error) { - if src.MoAggregateTransform != nil { - return json.Marshal(&src.MoAggregateTransform) - } - - if src.MoDocumentCount != nil { - return json.Marshal(&src.MoDocumentCount) - } - - if src.MoTagSummary != nil { - return json.Marshal(&src.MoTagSummary) - } - - if src.SdwanRouterPolicyList != nil { - return json.Marshal(&src.SdwanRouterPolicyList) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanRouterPolicyResponse) GetActualInstance() (interface{}) { - if obj.MoAggregateTransform != nil { - return obj.MoAggregateTransform - } - - if obj.MoDocumentCount != nil { - return obj.MoDocumentCount - } - - if obj.MoTagSummary != nil { - return obj.MoTagSummary - } - - if obj.SdwanRouterPolicyList != nil { - return obj.SdwanRouterPolicyList - } - - // all schemas are nil - return nil -} - -type NullableSdwanRouterPolicyResponse struct { - value *SdwanRouterPolicyResponse - isSet bool -} - -func (v NullableSdwanRouterPolicyResponse) Get() *SdwanRouterPolicyResponse { - return v.value -} - -func (v *NullableSdwanRouterPolicyResponse) Set(val *SdwanRouterPolicyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanRouterPolicyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanRouterPolicyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanRouterPolicyResponse(val *SdwanRouterPolicyResponse) *NullableSdwanRouterPolicyResponse { - return &NullableSdwanRouterPolicyResponse{value: val, isSet: true} -} - -func (v NullableSdwanRouterPolicyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanRouterPolicyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_template_inputs_type.go b/model_sdwan_template_inputs_type.go deleted file mode 100644 index 90d602dcc0..0000000000 --- a/model_sdwan_template_inputs_type.go +++ /dev/null @@ -1,521 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanTemplateInputsType Inputs that form part of the vManage Template. -type SdwanTemplateInputsType struct { - MoBaseComplexType - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Defines if the input is editable. - Editable *bool `json:"Editable,omitempty"` - // Name of the dynamic input key specified in the vManage template. - Key *string `json:"Key,omitempty"` - // Defines if the input is optional or required. - Required *bool `json:"Required,omitempty"` - // Refers to the name of the vManage template that this inputs belongs to. - Template *string `json:"Template,omitempty"` - // Label for the property being saved in the current instance of template Input. - Title *string `json:"Title,omitempty"` - // Defines the object type for the input. - Type *string `json:"Type,omitempty"` - // Value of the dynamic input key specfied in the vManage template. - Value *string `json:"Value,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanTemplateInputsType SdwanTemplateInputsType - -// NewSdwanTemplateInputsType instantiates a new SdwanTemplateInputsType object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanTemplateInputsType(classId string, objectType string) *SdwanTemplateInputsType { - this := SdwanTemplateInputsType{} - this.ClassId = classId - this.ObjectType = objectType - var editable bool = false - this.Editable = &editable - var required bool = false - this.Required = &required - var type_ string = "string" - this.Type = &type_ - return &this -} - -// NewSdwanTemplateInputsTypeWithDefaults instantiates a new SdwanTemplateInputsType object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanTemplateInputsTypeWithDefaults() *SdwanTemplateInputsType { - this := SdwanTemplateInputsType{} - var classId string = "sdwan.TemplateInputsType" - this.ClassId = classId - var objectType string = "sdwan.TemplateInputsType" - this.ObjectType = objectType - var editable bool = false - this.Editable = &editable - var required bool = false - this.Required = &required - var type_ string = "string" - this.Type = &type_ - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanTemplateInputsType) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanTemplateInputsType) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanTemplateInputsType) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanTemplateInputsType) SetObjectType(v string) { - o.ObjectType = v -} - -// GetEditable returns the Editable field value if set, zero value otherwise. -func (o *SdwanTemplateInputsType) GetEditable() bool { - if o == nil || o.Editable == nil { - var ret bool - return ret - } - return *o.Editable -} - -// GetEditableOk returns a tuple with the Editable field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetEditableOk() (*bool, bool) { - if o == nil || o.Editable == nil { - return nil, false - } - return o.Editable, true -} - -// HasEditable returns a boolean if a field has been set. -func (o *SdwanTemplateInputsType) HasEditable() bool { - if o != nil && o.Editable != nil { - return true - } - - return false -} - -// SetEditable gets a reference to the given bool and assigns it to the Editable field. -func (o *SdwanTemplateInputsType) SetEditable(v bool) { - o.Editable = &v -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *SdwanTemplateInputsType) GetKey() string { - if o == nil || o.Key == nil { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetKeyOk() (*string, bool) { - if o == nil || o.Key == nil { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *SdwanTemplateInputsType) HasKey() bool { - if o != nil && o.Key != nil { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *SdwanTemplateInputsType) SetKey(v string) { - o.Key = &v -} - -// GetRequired returns the Required field value if set, zero value otherwise. -func (o *SdwanTemplateInputsType) GetRequired() bool { - if o == nil || o.Required == nil { - var ret bool - return ret - } - return *o.Required -} - -// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetRequiredOk() (*bool, bool) { - if o == nil || o.Required == nil { - return nil, false - } - return o.Required, true -} - -// HasRequired returns a boolean if a field has been set. -func (o *SdwanTemplateInputsType) HasRequired() bool { - if o != nil && o.Required != nil { - return true - } - - return false -} - -// SetRequired gets a reference to the given bool and assigns it to the Required field. -func (o *SdwanTemplateInputsType) SetRequired(v bool) { - o.Required = &v -} - -// GetTemplate returns the Template field value if set, zero value otherwise. -func (o *SdwanTemplateInputsType) GetTemplate() string { - if o == nil || o.Template == nil { - var ret string - return ret - } - return *o.Template -} - -// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetTemplateOk() (*string, bool) { - if o == nil || o.Template == nil { - return nil, false - } - return o.Template, true -} - -// HasTemplate returns a boolean if a field has been set. -func (o *SdwanTemplateInputsType) HasTemplate() bool { - if o != nil && o.Template != nil { - return true - } - - return false -} - -// SetTemplate gets a reference to the given string and assigns it to the Template field. -func (o *SdwanTemplateInputsType) SetTemplate(v string) { - o.Template = &v -} - -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *SdwanTemplateInputsType) GetTitle() string { - if o == nil || o.Title == nil { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetTitleOk() (*string, bool) { - if o == nil || o.Title == nil { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *SdwanTemplateInputsType) HasTitle() bool { - if o != nil && o.Title != nil { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *SdwanTemplateInputsType) SetTitle(v string) { - o.Title = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *SdwanTemplateInputsType) GetType() string { - if o == nil || o.Type == nil { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetTypeOk() (*string, bool) { - if o == nil || o.Type == nil { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *SdwanTemplateInputsType) HasType() bool { - if o != nil && o.Type != nil { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *SdwanTemplateInputsType) SetType(v string) { - o.Type = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *SdwanTemplateInputsType) GetValue() string { - if o == nil || o.Value == nil { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsType) GetValueOk() (*string, bool) { - if o == nil || o.Value == nil { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *SdwanTemplateInputsType) HasValue() bool { - if o != nil && o.Value != nil { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *SdwanTemplateInputsType) SetValue(v string) { - o.Value = &v -} - -func (o SdwanTemplateInputsType) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseComplexType, errMoBaseComplexType := json.Marshal(o.MoBaseComplexType) - if errMoBaseComplexType != nil { - return []byte{}, errMoBaseComplexType - } - errMoBaseComplexType = json.Unmarshal([]byte(serializedMoBaseComplexType), &toSerialize) - if errMoBaseComplexType != nil { - return []byte{}, errMoBaseComplexType - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.Editable != nil { - toSerialize["Editable"] = o.Editable - } - if o.Key != nil { - toSerialize["Key"] = o.Key - } - if o.Required != nil { - toSerialize["Required"] = o.Required - } - if o.Template != nil { - toSerialize["Template"] = o.Template - } - if o.Title != nil { - toSerialize["Title"] = o.Title - } - if o.Type != nil { - toSerialize["Type"] = o.Type - } - if o.Value != nil { - toSerialize["Value"] = o.Value - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanTemplateInputsType) UnmarshalJSON(bytes []byte) (err error) { - type SdwanTemplateInputsTypeWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Defines if the input is editable. - Editable *bool `json:"Editable,omitempty"` - // Name of the dynamic input key specified in the vManage template. - Key *string `json:"Key,omitempty"` - // Defines if the input is optional or required. - Required *bool `json:"Required,omitempty"` - // Refers to the name of the vManage template that this inputs belongs to. - Template *string `json:"Template,omitempty"` - // Label for the property being saved in the current instance of template Input. - Title *string `json:"Title,omitempty"` - // Defines the object type for the input. - Type *string `json:"Type,omitempty"` - // Value of the dynamic input key specfied in the vManage template. - Value *string `json:"Value,omitempty"` - } - - varSdwanTemplateInputsTypeWithoutEmbeddedStruct := SdwanTemplateInputsTypeWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanTemplateInputsTypeWithoutEmbeddedStruct) - if err == nil { - varSdwanTemplateInputsType := _SdwanTemplateInputsType{} - varSdwanTemplateInputsType.ClassId = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.ClassId - varSdwanTemplateInputsType.ObjectType = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.ObjectType - varSdwanTemplateInputsType.Editable = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.Editable - varSdwanTemplateInputsType.Key = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.Key - varSdwanTemplateInputsType.Required = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.Required - varSdwanTemplateInputsType.Template = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.Template - varSdwanTemplateInputsType.Title = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.Title - varSdwanTemplateInputsType.Type = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.Type - varSdwanTemplateInputsType.Value = varSdwanTemplateInputsTypeWithoutEmbeddedStruct.Value - *o = SdwanTemplateInputsType(varSdwanTemplateInputsType) - } else { - return err - } - - varSdwanTemplateInputsType := _SdwanTemplateInputsType{} - - err = json.Unmarshal(bytes, &varSdwanTemplateInputsType) - if err == nil { - o.MoBaseComplexType = varSdwanTemplateInputsType.MoBaseComplexType - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "Editable") - delete(additionalProperties, "Key") - delete(additionalProperties, "Required") - delete(additionalProperties, "Template") - delete(additionalProperties, "Title") - delete(additionalProperties, "Type") - delete(additionalProperties, "Value") - - // remove fields from embedded structs - reflectMoBaseComplexType := reflect.ValueOf(o.MoBaseComplexType) - for i := 0; i < reflectMoBaseComplexType.Type().NumField(); i++ { - t := reflectMoBaseComplexType.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanTemplateInputsType struct { - value *SdwanTemplateInputsType - isSet bool -} - -func (v NullableSdwanTemplateInputsType) Get() *SdwanTemplateInputsType { - return v.value -} - -func (v *NullableSdwanTemplateInputsType) Set(val *SdwanTemplateInputsType) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanTemplateInputsType) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanTemplateInputsType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanTemplateInputsType(val *SdwanTemplateInputsType) *NullableSdwanTemplateInputsType { - return &NullableSdwanTemplateInputsType{value: val, isSet: true} -} - -func (v NullableSdwanTemplateInputsType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanTemplateInputsType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_template_inputs_type_all_of.go b/model_sdwan_template_inputs_type_all_of.go deleted file mode 100644 index 0712d48e03..0000000000 --- a/model_sdwan_template_inputs_type_all_of.go +++ /dev/null @@ -1,448 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanTemplateInputsTypeAllOf Definition of the list of properties defined in 'sdwan.TemplateInputsType', excluding properties defined in parent classes. -type SdwanTemplateInputsTypeAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // Defines if the input is editable. - Editable *bool `json:"Editable,omitempty"` - // Name of the dynamic input key specified in the vManage template. - Key *string `json:"Key,omitempty"` - // Defines if the input is optional or required. - Required *bool `json:"Required,omitempty"` - // Refers to the name of the vManage template that this inputs belongs to. - Template *string `json:"Template,omitempty"` - // Label for the property being saved in the current instance of template Input. - Title *string `json:"Title,omitempty"` - // Defines the object type for the input. - Type *string `json:"Type,omitempty"` - // Value of the dynamic input key specfied in the vManage template. - Value *string `json:"Value,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanTemplateInputsTypeAllOf SdwanTemplateInputsTypeAllOf - -// NewSdwanTemplateInputsTypeAllOf instantiates a new SdwanTemplateInputsTypeAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanTemplateInputsTypeAllOf(classId string, objectType string) *SdwanTemplateInputsTypeAllOf { - this := SdwanTemplateInputsTypeAllOf{} - this.ClassId = classId - this.ObjectType = objectType - var editable bool = false - this.Editable = &editable - var required bool = false - this.Required = &required - var type_ string = "string" - this.Type = &type_ - return &this -} - -// NewSdwanTemplateInputsTypeAllOfWithDefaults instantiates a new SdwanTemplateInputsTypeAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanTemplateInputsTypeAllOfWithDefaults() *SdwanTemplateInputsTypeAllOf { - this := SdwanTemplateInputsTypeAllOf{} - var classId string = "sdwan.TemplateInputsType" - this.ClassId = classId - var objectType string = "sdwan.TemplateInputsType" - this.ObjectType = objectType - var editable bool = false - this.Editable = &editable - var required bool = false - this.Required = &required - var type_ string = "string" - this.Type = &type_ - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanTemplateInputsTypeAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanTemplateInputsTypeAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanTemplateInputsTypeAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanTemplateInputsTypeAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetEditable returns the Editable field value if set, zero value otherwise. -func (o *SdwanTemplateInputsTypeAllOf) GetEditable() bool { - if o == nil || o.Editable == nil { - var ret bool - return ret - } - return *o.Editable -} - -// GetEditableOk returns a tuple with the Editable field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetEditableOk() (*bool, bool) { - if o == nil || o.Editable == nil { - return nil, false - } - return o.Editable, true -} - -// HasEditable returns a boolean if a field has been set. -func (o *SdwanTemplateInputsTypeAllOf) HasEditable() bool { - if o != nil && o.Editable != nil { - return true - } - - return false -} - -// SetEditable gets a reference to the given bool and assigns it to the Editable field. -func (o *SdwanTemplateInputsTypeAllOf) SetEditable(v bool) { - o.Editable = &v -} - -// GetKey returns the Key field value if set, zero value otherwise. -func (o *SdwanTemplateInputsTypeAllOf) GetKey() string { - if o == nil || o.Key == nil { - var ret string - return ret - } - return *o.Key -} - -// GetKeyOk returns a tuple with the Key field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetKeyOk() (*string, bool) { - if o == nil || o.Key == nil { - return nil, false - } - return o.Key, true -} - -// HasKey returns a boolean if a field has been set. -func (o *SdwanTemplateInputsTypeAllOf) HasKey() bool { - if o != nil && o.Key != nil { - return true - } - - return false -} - -// SetKey gets a reference to the given string and assigns it to the Key field. -func (o *SdwanTemplateInputsTypeAllOf) SetKey(v string) { - o.Key = &v -} - -// GetRequired returns the Required field value if set, zero value otherwise. -func (o *SdwanTemplateInputsTypeAllOf) GetRequired() bool { - if o == nil || o.Required == nil { - var ret bool - return ret - } - return *o.Required -} - -// GetRequiredOk returns a tuple with the Required field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetRequiredOk() (*bool, bool) { - if o == nil || o.Required == nil { - return nil, false - } - return o.Required, true -} - -// HasRequired returns a boolean if a field has been set. -func (o *SdwanTemplateInputsTypeAllOf) HasRequired() bool { - if o != nil && o.Required != nil { - return true - } - - return false -} - -// SetRequired gets a reference to the given bool and assigns it to the Required field. -func (o *SdwanTemplateInputsTypeAllOf) SetRequired(v bool) { - o.Required = &v -} - -// GetTemplate returns the Template field value if set, zero value otherwise. -func (o *SdwanTemplateInputsTypeAllOf) GetTemplate() string { - if o == nil || o.Template == nil { - var ret string - return ret - } - return *o.Template -} - -// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetTemplateOk() (*string, bool) { - if o == nil || o.Template == nil { - return nil, false - } - return o.Template, true -} - -// HasTemplate returns a boolean if a field has been set. -func (o *SdwanTemplateInputsTypeAllOf) HasTemplate() bool { - if o != nil && o.Template != nil { - return true - } - - return false -} - -// SetTemplate gets a reference to the given string and assigns it to the Template field. -func (o *SdwanTemplateInputsTypeAllOf) SetTemplate(v string) { - o.Template = &v -} - -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *SdwanTemplateInputsTypeAllOf) GetTitle() string { - if o == nil || o.Title == nil { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetTitleOk() (*string, bool) { - if o == nil || o.Title == nil { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *SdwanTemplateInputsTypeAllOf) HasTitle() bool { - if o != nil && o.Title != nil { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *SdwanTemplateInputsTypeAllOf) SetTitle(v string) { - o.Title = &v -} - -// GetType returns the Type field value if set, zero value otherwise. -func (o *SdwanTemplateInputsTypeAllOf) GetType() string { - if o == nil || o.Type == nil { - var ret string - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetTypeOk() (*string, bool) { - if o == nil || o.Type == nil { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *SdwanTemplateInputsTypeAllOf) HasType() bool { - if o != nil && o.Type != nil { - return true - } - - return false -} - -// SetType gets a reference to the given string and assigns it to the Type field. -func (o *SdwanTemplateInputsTypeAllOf) SetType(v string) { - o.Type = &v -} - -// GetValue returns the Value field value if set, zero value otherwise. -func (o *SdwanTemplateInputsTypeAllOf) GetValue() string { - if o == nil || o.Value == nil { - var ret string - return ret - } - return *o.Value -} - -// GetValueOk returns a tuple with the Value field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanTemplateInputsTypeAllOf) GetValueOk() (*string, bool) { - if o == nil || o.Value == nil { - return nil, false - } - return o.Value, true -} - -// HasValue returns a boolean if a field has been set. -func (o *SdwanTemplateInputsTypeAllOf) HasValue() bool { - if o != nil && o.Value != nil { - return true - } - - return false -} - -// SetValue gets a reference to the given string and assigns it to the Value field. -func (o *SdwanTemplateInputsTypeAllOf) SetValue(v string) { - o.Value = &v -} - -func (o SdwanTemplateInputsTypeAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.Editable != nil { - toSerialize["Editable"] = o.Editable - } - if o.Key != nil { - toSerialize["Key"] = o.Key - } - if o.Required != nil { - toSerialize["Required"] = o.Required - } - if o.Template != nil { - toSerialize["Template"] = o.Template - } - if o.Title != nil { - toSerialize["Title"] = o.Title - } - if o.Type != nil { - toSerialize["Type"] = o.Type - } - if o.Value != nil { - toSerialize["Value"] = o.Value - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanTemplateInputsTypeAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanTemplateInputsTypeAllOf := _SdwanTemplateInputsTypeAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanTemplateInputsTypeAllOf); err == nil { - *o = SdwanTemplateInputsTypeAllOf(varSdwanTemplateInputsTypeAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "Editable") - delete(additionalProperties, "Key") - delete(additionalProperties, "Required") - delete(additionalProperties, "Template") - delete(additionalProperties, "Title") - delete(additionalProperties, "Type") - delete(additionalProperties, "Value") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanTemplateInputsTypeAllOf struct { - value *SdwanTemplateInputsTypeAllOf - isSet bool -} - -func (v NullableSdwanTemplateInputsTypeAllOf) Get() *SdwanTemplateInputsTypeAllOf { - return v.value -} - -func (v *NullableSdwanTemplateInputsTypeAllOf) Set(val *SdwanTemplateInputsTypeAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanTemplateInputsTypeAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanTemplateInputsTypeAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanTemplateInputsTypeAllOf(val *SdwanTemplateInputsTypeAllOf) *NullableSdwanTemplateInputsTypeAllOf { - return &NullableSdwanTemplateInputsTypeAllOf{value: val, isSet: true} -} - -func (v NullableSdwanTemplateInputsTypeAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanTemplateInputsTypeAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_vmanage_account_policy.go b/model_sdwan_vmanage_account_policy.go deleted file mode 100644 index f3b571ec5f..0000000000 --- a/model_sdwan_vmanage_account_policy.go +++ /dev/null @@ -1,512 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanVmanageAccountPolicy A policy specifying vManage account details. -type SdwanVmanageAccountPolicy struct { - PolicyAbstractPolicy - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // VManage server hostname (FQDN) that the acccount holds information for. - EndpointAddress *string `json:"EndpointAddress,omitempty"` - // Indicates whether the value of the 'password' property has been set. - IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` - // Local password for authenticating with the vManage server. - Password *string `json:"Password,omitempty"` - // VManage Port number on which the application is running. - Port *int64 `json:"Port,omitempty"` - // Local username for authenticating with the vManage server. - Username *string `json:"Username,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanProfile resources. - Profiles []SdwanProfileRelationship `json:"Profiles,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanVmanageAccountPolicy SdwanVmanageAccountPolicy - -// NewSdwanVmanageAccountPolicy instantiates a new SdwanVmanageAccountPolicy object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanVmanageAccountPolicy(classId string, objectType string) *SdwanVmanageAccountPolicy { - this := SdwanVmanageAccountPolicy{} - this.ClassId = classId - this.ObjectType = objectType - var port int64 = 8443 - this.Port = &port - return &this -} - -// NewSdwanVmanageAccountPolicyWithDefaults instantiates a new SdwanVmanageAccountPolicy object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanVmanageAccountPolicyWithDefaults() *SdwanVmanageAccountPolicy { - this := SdwanVmanageAccountPolicy{} - var classId string = "sdwan.VmanageAccountPolicy" - this.ClassId = classId - var objectType string = "sdwan.VmanageAccountPolicy" - this.ObjectType = objectType - var port int64 = 8443 - this.Port = &port - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanVmanageAccountPolicy) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanVmanageAccountPolicy) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanVmanageAccountPolicy) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanVmanageAccountPolicy) SetObjectType(v string) { - o.ObjectType = v -} - -// GetEndpointAddress returns the EndpointAddress field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicy) GetEndpointAddress() string { - if o == nil || o.EndpointAddress == nil { - var ret string - return ret - } - return *o.EndpointAddress -} - -// GetEndpointAddressOk returns a tuple with the EndpointAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetEndpointAddressOk() (*string, bool) { - if o == nil || o.EndpointAddress == nil { - return nil, false - } - return o.EndpointAddress, true -} - -// HasEndpointAddress returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicy) HasEndpointAddress() bool { - if o != nil && o.EndpointAddress != nil { - return true - } - - return false -} - -// SetEndpointAddress gets a reference to the given string and assigns it to the EndpointAddress field. -func (o *SdwanVmanageAccountPolicy) SetEndpointAddress(v string) { - o.EndpointAddress = &v -} - -// GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicy) GetIsPasswordSet() bool { - if o == nil || o.IsPasswordSet == nil { - var ret bool - return ret - } - return *o.IsPasswordSet -} - -// GetIsPasswordSetOk returns a tuple with the IsPasswordSet field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetIsPasswordSetOk() (*bool, bool) { - if o == nil || o.IsPasswordSet == nil { - return nil, false - } - return o.IsPasswordSet, true -} - -// HasIsPasswordSet returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicy) HasIsPasswordSet() bool { - if o != nil && o.IsPasswordSet != nil { - return true - } - - return false -} - -// SetIsPasswordSet gets a reference to the given bool and assigns it to the IsPasswordSet field. -func (o *SdwanVmanageAccountPolicy) SetIsPasswordSet(v bool) { - o.IsPasswordSet = &v -} - -// GetPassword returns the Password field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicy) GetPassword() string { - if o == nil || o.Password == nil { - var ret string - return ret - } - return *o.Password -} - -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetPasswordOk() (*string, bool) { - if o == nil || o.Password == nil { - return nil, false - } - return o.Password, true -} - -// HasPassword returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicy) HasPassword() bool { - if o != nil && o.Password != nil { - return true - } - - return false -} - -// SetPassword gets a reference to the given string and assigns it to the Password field. -func (o *SdwanVmanageAccountPolicy) SetPassword(v string) { - o.Password = &v -} - -// GetPort returns the Port field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicy) GetPort() int64 { - if o == nil || o.Port == nil { - var ret int64 - return ret - } - return *o.Port -} - -// GetPortOk returns a tuple with the Port field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetPortOk() (*int64, bool) { - if o == nil || o.Port == nil { - return nil, false - } - return o.Port, true -} - -// HasPort returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicy) HasPort() bool { - if o != nil && o.Port != nil { - return true - } - - return false -} - -// SetPort gets a reference to the given int64 and assigns it to the Port field. -func (o *SdwanVmanageAccountPolicy) SetPort(v int64) { - o.Port = &v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicy) GetUsername() string { - if o == nil || o.Username == nil { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetUsernameOk() (*string, bool) { - if o == nil || o.Username == nil { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicy) HasUsername() bool { - if o != nil && o.Username != nil { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *SdwanVmanageAccountPolicy) SetUsername(v string) { - o.Username = &v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicy) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicy) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicy) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanVmanageAccountPolicy) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfiles returns the Profiles field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanVmanageAccountPolicy) GetProfiles() []SdwanProfileRelationship { - if o == nil { - var ret []SdwanProfileRelationship - return ret - } - return o.Profiles -} - -// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanVmanageAccountPolicy) GetProfilesOk() (*[]SdwanProfileRelationship, bool) { - if o == nil || o.Profiles == nil { - return nil, false - } - return &o.Profiles, true -} - -// HasProfiles returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicy) HasProfiles() bool { - if o != nil && o.Profiles != nil { - return true - } - - return false -} - -// SetProfiles gets a reference to the given []SdwanProfileRelationship and assigns it to the Profiles field. -func (o *SdwanVmanageAccountPolicy) SetProfiles(v []SdwanProfileRelationship) { - o.Profiles = v -} - -func (o SdwanVmanageAccountPolicy) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedPolicyAbstractPolicy, errPolicyAbstractPolicy := json.Marshal(o.PolicyAbstractPolicy) - if errPolicyAbstractPolicy != nil { - return []byte{}, errPolicyAbstractPolicy - } - errPolicyAbstractPolicy = json.Unmarshal([]byte(serializedPolicyAbstractPolicy), &toSerialize) - if errPolicyAbstractPolicy != nil { - return []byte{}, errPolicyAbstractPolicy - } - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.EndpointAddress != nil { - toSerialize["EndpointAddress"] = o.EndpointAddress - } - if o.IsPasswordSet != nil { - toSerialize["IsPasswordSet"] = o.IsPasswordSet - } - if o.Password != nil { - toSerialize["Password"] = o.Password - } - if o.Port != nil { - toSerialize["Port"] = o.Port - } - if o.Username != nil { - toSerialize["Username"] = o.Username - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profiles != nil { - toSerialize["Profiles"] = o.Profiles - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanVmanageAccountPolicy) UnmarshalJSON(bytes []byte) (err error) { - type SdwanVmanageAccountPolicyWithoutEmbeddedStruct struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // VManage server hostname (FQDN) that the acccount holds information for. - EndpointAddress *string `json:"EndpointAddress,omitempty"` - // Indicates whether the value of the 'password' property has been set. - IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` - // Local password for authenticating with the vManage server. - Password *string `json:"Password,omitempty"` - // VManage Port number on which the application is running. - Port *int64 `json:"Port,omitempty"` - // Local username for authenticating with the vManage server. - Username *string `json:"Username,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanProfile resources. - Profiles []SdwanProfileRelationship `json:"Profiles,omitempty"` - } - - varSdwanVmanageAccountPolicyWithoutEmbeddedStruct := SdwanVmanageAccountPolicyWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanVmanageAccountPolicyWithoutEmbeddedStruct) - if err == nil { - varSdwanVmanageAccountPolicy := _SdwanVmanageAccountPolicy{} - varSdwanVmanageAccountPolicy.ClassId = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.ClassId - varSdwanVmanageAccountPolicy.ObjectType = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.ObjectType - varSdwanVmanageAccountPolicy.EndpointAddress = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.EndpointAddress - varSdwanVmanageAccountPolicy.IsPasswordSet = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.IsPasswordSet - varSdwanVmanageAccountPolicy.Password = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.Password - varSdwanVmanageAccountPolicy.Port = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.Port - varSdwanVmanageAccountPolicy.Username = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.Username - varSdwanVmanageAccountPolicy.Organization = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.Organization - varSdwanVmanageAccountPolicy.Profiles = varSdwanVmanageAccountPolicyWithoutEmbeddedStruct.Profiles - *o = SdwanVmanageAccountPolicy(varSdwanVmanageAccountPolicy) - } else { - return err - } - - varSdwanVmanageAccountPolicy := _SdwanVmanageAccountPolicy{} - - err = json.Unmarshal(bytes, &varSdwanVmanageAccountPolicy) - if err == nil { - o.PolicyAbstractPolicy = varSdwanVmanageAccountPolicy.PolicyAbstractPolicy - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "EndpointAddress") - delete(additionalProperties, "IsPasswordSet") - delete(additionalProperties, "Password") - delete(additionalProperties, "Port") - delete(additionalProperties, "Username") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profiles") - - // remove fields from embedded structs - reflectPolicyAbstractPolicy := reflect.ValueOf(o.PolicyAbstractPolicy) - for i := 0; i < reflectPolicyAbstractPolicy.Type().NumField(); i++ { - t := reflectPolicyAbstractPolicy.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanVmanageAccountPolicy struct { - value *SdwanVmanageAccountPolicy - isSet bool -} - -func (v NullableSdwanVmanageAccountPolicy) Get() *SdwanVmanageAccountPolicy { - return v.value -} - -func (v *NullableSdwanVmanageAccountPolicy) Set(val *SdwanVmanageAccountPolicy) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanVmanageAccountPolicy) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanVmanageAccountPolicy) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanVmanageAccountPolicy(val *SdwanVmanageAccountPolicy) *NullableSdwanVmanageAccountPolicy { - return &NullableSdwanVmanageAccountPolicy{value: val, isSet: true} -} - -func (v NullableSdwanVmanageAccountPolicy) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanVmanageAccountPolicy) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_vmanage_account_policy_all_of.go b/model_sdwan_vmanage_account_policy_all_of.go deleted file mode 100644 index c63f05f629..0000000000 --- a/model_sdwan_vmanage_account_policy_all_of.go +++ /dev/null @@ -1,440 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanVmanageAccountPolicyAllOf Definition of the list of properties defined in 'sdwan.VmanageAccountPolicy', excluding properties defined in parent classes. -type SdwanVmanageAccountPolicyAllOf struct { - // The fully-qualified name of the instantiated, concrete type. This property is used as a discriminator to identify the type of the payload when marshaling and unmarshaling data. - ClassId string `json:"ClassId"` - // The fully-qualified name of the instantiated, concrete type. The value should be the same as the 'ClassId' property. - ObjectType string `json:"ObjectType"` - // VManage server hostname (FQDN) that the acccount holds information for. - EndpointAddress *string `json:"EndpointAddress,omitempty"` - // Indicates whether the value of the 'password' property has been set. - IsPasswordSet *bool `json:"IsPasswordSet,omitempty"` - // Local password for authenticating with the vManage server. - Password *string `json:"Password,omitempty"` - // VManage Port number on which the application is running. - Port *int64 `json:"Port,omitempty"` - // Local username for authenticating with the vManage server. - Username *string `json:"Username,omitempty"` - Organization *OrganizationOrganizationRelationship `json:"Organization,omitempty"` - // An array of relationships to sdwanProfile resources. - Profiles []SdwanProfileRelationship `json:"Profiles,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanVmanageAccountPolicyAllOf SdwanVmanageAccountPolicyAllOf - -// NewSdwanVmanageAccountPolicyAllOf instantiates a new SdwanVmanageAccountPolicyAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanVmanageAccountPolicyAllOf(classId string, objectType string) *SdwanVmanageAccountPolicyAllOf { - this := SdwanVmanageAccountPolicyAllOf{} - this.ClassId = classId - this.ObjectType = objectType - var port int64 = 8443 - this.Port = &port - return &this -} - -// NewSdwanVmanageAccountPolicyAllOfWithDefaults instantiates a new SdwanVmanageAccountPolicyAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanVmanageAccountPolicyAllOfWithDefaults() *SdwanVmanageAccountPolicyAllOf { - this := SdwanVmanageAccountPolicyAllOf{} - var classId string = "sdwan.VmanageAccountPolicy" - this.ClassId = classId - var objectType string = "sdwan.VmanageAccountPolicy" - this.ObjectType = objectType - var port int64 = 8443 - this.Port = &port - return &this -} - -// GetClassId returns the ClassId field value -func (o *SdwanVmanageAccountPolicyAllOf) GetClassId() string { - if o == nil { - var ret string - return ret - } - - return o.ClassId -} - -// GetClassIdOk returns a tuple with the ClassId field value -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetClassIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ClassId, true -} - -// SetClassId sets field value -func (o *SdwanVmanageAccountPolicyAllOf) SetClassId(v string) { - o.ClassId = v -} - -// GetObjectType returns the ObjectType field value -func (o *SdwanVmanageAccountPolicyAllOf) GetObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.ObjectType -} - -// GetObjectTypeOk returns a tuple with the ObjectType field value -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.ObjectType, true -} - -// SetObjectType sets field value -func (o *SdwanVmanageAccountPolicyAllOf) SetObjectType(v string) { - o.ObjectType = v -} - -// GetEndpointAddress returns the EndpointAddress field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyAllOf) GetEndpointAddress() string { - if o == nil || o.EndpointAddress == nil { - var ret string - return ret - } - return *o.EndpointAddress -} - -// GetEndpointAddressOk returns a tuple with the EndpointAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetEndpointAddressOk() (*string, bool) { - if o == nil || o.EndpointAddress == nil { - return nil, false - } - return o.EndpointAddress, true -} - -// HasEndpointAddress returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyAllOf) HasEndpointAddress() bool { - if o != nil && o.EndpointAddress != nil { - return true - } - - return false -} - -// SetEndpointAddress gets a reference to the given string and assigns it to the EndpointAddress field. -func (o *SdwanVmanageAccountPolicyAllOf) SetEndpointAddress(v string) { - o.EndpointAddress = &v -} - -// GetIsPasswordSet returns the IsPasswordSet field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyAllOf) GetIsPasswordSet() bool { - if o == nil || o.IsPasswordSet == nil { - var ret bool - return ret - } - return *o.IsPasswordSet -} - -// GetIsPasswordSetOk returns a tuple with the IsPasswordSet field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetIsPasswordSetOk() (*bool, bool) { - if o == nil || o.IsPasswordSet == nil { - return nil, false - } - return o.IsPasswordSet, true -} - -// HasIsPasswordSet returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyAllOf) HasIsPasswordSet() bool { - if o != nil && o.IsPasswordSet != nil { - return true - } - - return false -} - -// SetIsPasswordSet gets a reference to the given bool and assigns it to the IsPasswordSet field. -func (o *SdwanVmanageAccountPolicyAllOf) SetIsPasswordSet(v bool) { - o.IsPasswordSet = &v -} - -// GetPassword returns the Password field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyAllOf) GetPassword() string { - if o == nil || o.Password == nil { - var ret string - return ret - } - return *o.Password -} - -// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetPasswordOk() (*string, bool) { - if o == nil || o.Password == nil { - return nil, false - } - return o.Password, true -} - -// HasPassword returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyAllOf) HasPassword() bool { - if o != nil && o.Password != nil { - return true - } - - return false -} - -// SetPassword gets a reference to the given string and assigns it to the Password field. -func (o *SdwanVmanageAccountPolicyAllOf) SetPassword(v string) { - o.Password = &v -} - -// GetPort returns the Port field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyAllOf) GetPort() int64 { - if o == nil || o.Port == nil { - var ret int64 - return ret - } - return *o.Port -} - -// GetPortOk returns a tuple with the Port field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetPortOk() (*int64, bool) { - if o == nil || o.Port == nil { - return nil, false - } - return o.Port, true -} - -// HasPort returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyAllOf) HasPort() bool { - if o != nil && o.Port != nil { - return true - } - - return false -} - -// SetPort gets a reference to the given int64 and assigns it to the Port field. -func (o *SdwanVmanageAccountPolicyAllOf) SetPort(v int64) { - o.Port = &v -} - -// GetUsername returns the Username field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyAllOf) GetUsername() string { - if o == nil || o.Username == nil { - var ret string - return ret - } - return *o.Username -} - -// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetUsernameOk() (*string, bool) { - if o == nil || o.Username == nil { - return nil, false - } - return o.Username, true -} - -// HasUsername returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyAllOf) HasUsername() bool { - if o != nil && o.Username != nil { - return true - } - - return false -} - -// SetUsername gets a reference to the given string and assigns it to the Username field. -func (o *SdwanVmanageAccountPolicyAllOf) SetUsername(v string) { - o.Username = &v -} - -// GetOrganization returns the Organization field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyAllOf) GetOrganization() OrganizationOrganizationRelationship { - if o == nil || o.Organization == nil { - var ret OrganizationOrganizationRelationship - return ret - } - return *o.Organization -} - -// GetOrganizationOk returns a tuple with the Organization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyAllOf) GetOrganizationOk() (*OrganizationOrganizationRelationship, bool) { - if o == nil || o.Organization == nil { - return nil, false - } - return o.Organization, true -} - -// HasOrganization returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyAllOf) HasOrganization() bool { - if o != nil && o.Organization != nil { - return true - } - - return false -} - -// SetOrganization gets a reference to the given OrganizationOrganizationRelationship and assigns it to the Organization field. -func (o *SdwanVmanageAccountPolicyAllOf) SetOrganization(v OrganizationOrganizationRelationship) { - o.Organization = &v -} - -// GetProfiles returns the Profiles field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanVmanageAccountPolicyAllOf) GetProfiles() []SdwanProfileRelationship { - if o == nil { - var ret []SdwanProfileRelationship - return ret - } - return o.Profiles -} - -// GetProfilesOk returns a tuple with the Profiles field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanVmanageAccountPolicyAllOf) GetProfilesOk() (*[]SdwanProfileRelationship, bool) { - if o == nil || o.Profiles == nil { - return nil, false - } - return &o.Profiles, true -} - -// HasProfiles returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyAllOf) HasProfiles() bool { - if o != nil && o.Profiles != nil { - return true - } - - return false -} - -// SetProfiles gets a reference to the given []SdwanProfileRelationship and assigns it to the Profiles field. -func (o *SdwanVmanageAccountPolicyAllOf) SetProfiles(v []SdwanProfileRelationship) { - o.Profiles = v -} - -func (o SdwanVmanageAccountPolicyAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["ClassId"] = o.ClassId - } - if true { - toSerialize["ObjectType"] = o.ObjectType - } - if o.EndpointAddress != nil { - toSerialize["EndpointAddress"] = o.EndpointAddress - } - if o.IsPasswordSet != nil { - toSerialize["IsPasswordSet"] = o.IsPasswordSet - } - if o.Password != nil { - toSerialize["Password"] = o.Password - } - if o.Port != nil { - toSerialize["Port"] = o.Port - } - if o.Username != nil { - toSerialize["Username"] = o.Username - } - if o.Organization != nil { - toSerialize["Organization"] = o.Organization - } - if o.Profiles != nil { - toSerialize["Profiles"] = o.Profiles - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanVmanageAccountPolicyAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanVmanageAccountPolicyAllOf := _SdwanVmanageAccountPolicyAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanVmanageAccountPolicyAllOf); err == nil { - *o = SdwanVmanageAccountPolicyAllOf(varSdwanVmanageAccountPolicyAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "ClassId") - delete(additionalProperties, "ObjectType") - delete(additionalProperties, "EndpointAddress") - delete(additionalProperties, "IsPasswordSet") - delete(additionalProperties, "Password") - delete(additionalProperties, "Port") - delete(additionalProperties, "Username") - delete(additionalProperties, "Organization") - delete(additionalProperties, "Profiles") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanVmanageAccountPolicyAllOf struct { - value *SdwanVmanageAccountPolicyAllOf - isSet bool -} - -func (v NullableSdwanVmanageAccountPolicyAllOf) Get() *SdwanVmanageAccountPolicyAllOf { - return v.value -} - -func (v *NullableSdwanVmanageAccountPolicyAllOf) Set(val *SdwanVmanageAccountPolicyAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanVmanageAccountPolicyAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanVmanageAccountPolicyAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanVmanageAccountPolicyAllOf(val *SdwanVmanageAccountPolicyAllOf) *NullableSdwanVmanageAccountPolicyAllOf { - return &NullableSdwanVmanageAccountPolicyAllOf{value: val, isSet: true} -} - -func (v NullableSdwanVmanageAccountPolicyAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanVmanageAccountPolicyAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_vmanage_account_policy_list.go b/model_sdwan_vmanage_account_policy_list.go deleted file mode 100644 index a678f4052b..0000000000 --- a/model_sdwan_vmanage_account_policy_list.go +++ /dev/null @@ -1,234 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// SdwanVmanageAccountPolicyList This resource list is returned as a response to a HTTP GET request that does not include a specific resource identifier. -type SdwanVmanageAccountPolicyList struct { - MoBaseResponse - // The total number of 'sdwan.VmanageAccountPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.VmanageAccountPolicy' resources matching the request. - Results []SdwanVmanageAccountPolicy `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanVmanageAccountPolicyList SdwanVmanageAccountPolicyList - -// NewSdwanVmanageAccountPolicyList instantiates a new SdwanVmanageAccountPolicyList object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanVmanageAccountPolicyList(objectType string) *SdwanVmanageAccountPolicyList { - this := SdwanVmanageAccountPolicyList{} - this.ObjectType = objectType - return &this -} - -// NewSdwanVmanageAccountPolicyListWithDefaults instantiates a new SdwanVmanageAccountPolicyList object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanVmanageAccountPolicyListWithDefaults() *SdwanVmanageAccountPolicyList { - this := SdwanVmanageAccountPolicyList{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyList) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyList) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyList) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanVmanageAccountPolicyList) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanVmanageAccountPolicyList) GetResults() []SdwanVmanageAccountPolicy { - if o == nil { - var ret []SdwanVmanageAccountPolicy - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanVmanageAccountPolicyList) GetResultsOk() (*[]SdwanVmanageAccountPolicy, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyList) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanVmanageAccountPolicy and assigns it to the Results field. -func (o *SdwanVmanageAccountPolicyList) SetResults(v []SdwanVmanageAccountPolicy) { - o.Results = v -} - -func (o SdwanVmanageAccountPolicyList) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedMoBaseResponse, errMoBaseResponse := json.Marshal(o.MoBaseResponse) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - errMoBaseResponse = json.Unmarshal([]byte(serializedMoBaseResponse), &toSerialize) - if errMoBaseResponse != nil { - return []byte{}, errMoBaseResponse - } - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanVmanageAccountPolicyList) UnmarshalJSON(bytes []byte) (err error) { - type SdwanVmanageAccountPolicyListWithoutEmbeddedStruct struct { - // The total number of 'sdwan.VmanageAccountPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.VmanageAccountPolicy' resources matching the request. - Results []SdwanVmanageAccountPolicy `json:"Results,omitempty"` - } - - varSdwanVmanageAccountPolicyListWithoutEmbeddedStruct := SdwanVmanageAccountPolicyListWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varSdwanVmanageAccountPolicyListWithoutEmbeddedStruct) - if err == nil { - varSdwanVmanageAccountPolicyList := _SdwanVmanageAccountPolicyList{} - varSdwanVmanageAccountPolicyList.Count = varSdwanVmanageAccountPolicyListWithoutEmbeddedStruct.Count - varSdwanVmanageAccountPolicyList.Results = varSdwanVmanageAccountPolicyListWithoutEmbeddedStruct.Results - *o = SdwanVmanageAccountPolicyList(varSdwanVmanageAccountPolicyList) - } else { - return err - } - - varSdwanVmanageAccountPolicyList := _SdwanVmanageAccountPolicyList{} - - err = json.Unmarshal(bytes, &varSdwanVmanageAccountPolicyList) - if err == nil { - o.MoBaseResponse = varSdwanVmanageAccountPolicyList.MoBaseResponse - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - - // remove fields from embedded structs - reflectMoBaseResponse := reflect.ValueOf(o.MoBaseResponse) - for i := 0; i < reflectMoBaseResponse.Type().NumField(); i++ { - t := reflectMoBaseResponse.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanVmanageAccountPolicyList struct { - value *SdwanVmanageAccountPolicyList - isSet bool -} - -func (v NullableSdwanVmanageAccountPolicyList) Get() *SdwanVmanageAccountPolicyList { - return v.value -} - -func (v *NullableSdwanVmanageAccountPolicyList) Set(val *SdwanVmanageAccountPolicyList) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanVmanageAccountPolicyList) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanVmanageAccountPolicyList) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanVmanageAccountPolicyList(val *SdwanVmanageAccountPolicyList) *NullableSdwanVmanageAccountPolicyList { - return &NullableSdwanVmanageAccountPolicyList{value: val, isSet: true} -} - -func (v NullableSdwanVmanageAccountPolicyList) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanVmanageAccountPolicyList) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_vmanage_account_policy_list_all_of.go b/model_sdwan_vmanage_account_policy_list_all_of.go deleted file mode 100644 index 2c8bdc67a7..0000000000 --- a/model_sdwan_vmanage_account_policy_list_all_of.go +++ /dev/null @@ -1,181 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" -) - -// SdwanVmanageAccountPolicyListAllOf struct for SdwanVmanageAccountPolicyListAllOf -type SdwanVmanageAccountPolicyListAllOf struct { - // The total number of 'sdwan.VmanageAccountPolicy' resources matching the request, accross all pages. The 'Count' attribute is included when the HTTP GET request includes the '$inlinecount' parameter. - Count *int32 `json:"Count,omitempty"` - // The array of 'sdwan.VmanageAccountPolicy' resources matching the request. - Results []SdwanVmanageAccountPolicy `json:"Results,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _SdwanVmanageAccountPolicyListAllOf SdwanVmanageAccountPolicyListAllOf - -// NewSdwanVmanageAccountPolicyListAllOf instantiates a new SdwanVmanageAccountPolicyListAllOf object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewSdwanVmanageAccountPolicyListAllOf() *SdwanVmanageAccountPolicyListAllOf { - this := SdwanVmanageAccountPolicyListAllOf{} - return &this -} - -// NewSdwanVmanageAccountPolicyListAllOfWithDefaults instantiates a new SdwanVmanageAccountPolicyListAllOf object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewSdwanVmanageAccountPolicyListAllOfWithDefaults() *SdwanVmanageAccountPolicyListAllOf { - this := SdwanVmanageAccountPolicyListAllOf{} - return &this -} - -// GetCount returns the Count field value if set, zero value otherwise. -func (o *SdwanVmanageAccountPolicyListAllOf) GetCount() int32 { - if o == nil || o.Count == nil { - var ret int32 - return ret - } - return *o.Count -} - -// GetCountOk returns a tuple with the Count field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SdwanVmanageAccountPolicyListAllOf) GetCountOk() (*int32, bool) { - if o == nil || o.Count == nil { - return nil, false - } - return o.Count, true -} - -// HasCount returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyListAllOf) HasCount() bool { - if o != nil && o.Count != nil { - return true - } - - return false -} - -// SetCount gets a reference to the given int32 and assigns it to the Count field. -func (o *SdwanVmanageAccountPolicyListAllOf) SetCount(v int32) { - o.Count = &v -} - -// GetResults returns the Results field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SdwanVmanageAccountPolicyListAllOf) GetResults() []SdwanVmanageAccountPolicy { - if o == nil { - var ret []SdwanVmanageAccountPolicy - return ret - } - return o.Results -} - -// GetResultsOk returns a tuple with the Results field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SdwanVmanageAccountPolicyListAllOf) GetResultsOk() (*[]SdwanVmanageAccountPolicy, bool) { - if o == nil || o.Results == nil { - return nil, false - } - return &o.Results, true -} - -// HasResults returns a boolean if a field has been set. -func (o *SdwanVmanageAccountPolicyListAllOf) HasResults() bool { - if o != nil && o.Results != nil { - return true - } - - return false -} - -// SetResults gets a reference to the given []SdwanVmanageAccountPolicy and assigns it to the Results field. -func (o *SdwanVmanageAccountPolicyListAllOf) SetResults(v []SdwanVmanageAccountPolicy) { - o.Results = v -} - -func (o SdwanVmanageAccountPolicyListAllOf) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if o.Count != nil { - toSerialize["Count"] = o.Count - } - if o.Results != nil { - toSerialize["Results"] = o.Results - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *SdwanVmanageAccountPolicyListAllOf) UnmarshalJSON(bytes []byte) (err error) { - varSdwanVmanageAccountPolicyListAllOf := _SdwanVmanageAccountPolicyListAllOf{} - - if err = json.Unmarshal(bytes, &varSdwanVmanageAccountPolicyListAllOf); err == nil { - *o = SdwanVmanageAccountPolicyListAllOf(varSdwanVmanageAccountPolicyListAllOf) - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "Count") - delete(additionalProperties, "Results") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableSdwanVmanageAccountPolicyListAllOf struct { - value *SdwanVmanageAccountPolicyListAllOf - isSet bool -} - -func (v NullableSdwanVmanageAccountPolicyListAllOf) Get() *SdwanVmanageAccountPolicyListAllOf { - return v.value -} - -func (v *NullableSdwanVmanageAccountPolicyListAllOf) Set(val *SdwanVmanageAccountPolicyListAllOf) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanVmanageAccountPolicyListAllOf) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanVmanageAccountPolicyListAllOf) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanVmanageAccountPolicyListAllOf(val *SdwanVmanageAccountPolicyListAllOf) *NullableSdwanVmanageAccountPolicyListAllOf { - return &NullableSdwanVmanageAccountPolicyListAllOf{value: val, isSet: true} -} - -func (v NullableSdwanVmanageAccountPolicyListAllOf) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanVmanageAccountPolicyListAllOf) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_vmanage_account_policy_relationship.go b/model_sdwan_vmanage_account_policy_relationship.go deleted file mode 100644 index e8e7594e7f..0000000000 --- a/model_sdwan_vmanage_account_policy_relationship.go +++ /dev/null @@ -1,141 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanVmanageAccountPolicyRelationship - A relationship to the 'sdwan.VmanageAccountPolicy' resource, or the expanded 'sdwan.VmanageAccountPolicy' resource, or the 'null' value. -type SdwanVmanageAccountPolicyRelationship struct { - MoMoRef *MoMoRef - SdwanVmanageAccountPolicy *SdwanVmanageAccountPolicy -} - -// MoMoRefAsSdwanVmanageAccountPolicyRelationship is a convenience function that returns MoMoRef wrapped in SdwanVmanageAccountPolicyRelationship -func MoMoRefAsSdwanVmanageAccountPolicyRelationship(v *MoMoRef) SdwanVmanageAccountPolicyRelationship { - return SdwanVmanageAccountPolicyRelationship{ MoMoRef: v} -} - -// SdwanVmanageAccountPolicyAsSdwanVmanageAccountPolicyRelationship is a convenience function that returns SdwanVmanageAccountPolicy wrapped in SdwanVmanageAccountPolicyRelationship -func SdwanVmanageAccountPolicyAsSdwanVmanageAccountPolicyRelationship(v *SdwanVmanageAccountPolicy) SdwanVmanageAccountPolicyRelationship { - return SdwanVmanageAccountPolicyRelationship{ SdwanVmanageAccountPolicy: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanVmanageAccountPolicyRelationship) UnmarshalJSON(data []byte) error { - var err error - // this object is nullable so check if the payload is null or empty string - if string(data) == "" || string(data) == "{}" { - return nil - } - - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.MoRef' - if jsonDict["ClassId"] == "mo.MoRef" { - // try to unmarshal JSON data into MoMoRef - err = json.Unmarshal(data, &dst.MoMoRef) - if err == nil { - return nil // data stored in dst.MoMoRef, return on the first match - } else { - dst.MoMoRef = nil - return fmt.Errorf("Failed to unmarshal SdwanVmanageAccountPolicyRelationship as MoMoRef: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.VmanageAccountPolicy' - if jsonDict["ClassId"] == "sdwan.VmanageAccountPolicy" { - // try to unmarshal JSON data into SdwanVmanageAccountPolicy - err = json.Unmarshal(data, &dst.SdwanVmanageAccountPolicy) - if err == nil { - return nil // data stored in dst.SdwanVmanageAccountPolicy, return on the first match - } else { - dst.SdwanVmanageAccountPolicy = nil - return fmt.Errorf("Failed to unmarshal SdwanVmanageAccountPolicyRelationship as SdwanVmanageAccountPolicy: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanVmanageAccountPolicyRelationship) MarshalJSON() ([]byte, error) { - if src.MoMoRef != nil { - return json.Marshal(&src.MoMoRef) - } - - if src.SdwanVmanageAccountPolicy != nil { - return json.Marshal(&src.SdwanVmanageAccountPolicy) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanVmanageAccountPolicyRelationship) GetActualInstance() (interface{}) { - if obj.MoMoRef != nil { - return obj.MoMoRef - } - - if obj.SdwanVmanageAccountPolicy != nil { - return obj.SdwanVmanageAccountPolicy - } - - // all schemas are nil - return nil -} - -type NullableSdwanVmanageAccountPolicyRelationship struct { - value *SdwanVmanageAccountPolicyRelationship - isSet bool -} - -func (v NullableSdwanVmanageAccountPolicyRelationship) Get() *SdwanVmanageAccountPolicyRelationship { - return v.value -} - -func (v *NullableSdwanVmanageAccountPolicyRelationship) Set(val *SdwanVmanageAccountPolicyRelationship) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanVmanageAccountPolicyRelationship) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanVmanageAccountPolicyRelationship) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanVmanageAccountPolicyRelationship(val *SdwanVmanageAccountPolicyRelationship) *NullableSdwanVmanageAccountPolicyRelationship { - return &NullableSdwanVmanageAccountPolicyRelationship{value: val, isSet: true} -} - -func (v NullableSdwanVmanageAccountPolicyRelationship) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanVmanageAccountPolicyRelationship) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_sdwan_vmanage_account_policy_response.go b/model_sdwan_vmanage_account_policy_response.go deleted file mode 100644 index 8fcd86b4fa..0000000000 --- a/model_sdwan_vmanage_account_policy_response.go +++ /dev/null @@ -1,188 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "fmt" -) - -// SdwanVmanageAccountPolicyResponse - The response body of a HTTP GET request for the 'sdwan.VmanageAccountPolicy' resource. The value may be one of the following types. 1. When 'tag' is specified in the URL query, the response schema is a summary of the tag usage. 1. When '$apply' is specified in the URL query, the response schema is dynamically-generated schema based on the $apply value. 1. When '$count' is specified in the URL query, the response is a simple object providing the count of the resources. 1. In all other cases, the response is a list of 'sdwan.VmanageAccountPolicy' resources. -type SdwanVmanageAccountPolicyResponse struct { - MoAggregateTransform *MoAggregateTransform - MoDocumentCount *MoDocumentCount - MoTagSummary *MoTagSummary - SdwanVmanageAccountPolicyList *SdwanVmanageAccountPolicyList -} - -// MoAggregateTransformAsSdwanVmanageAccountPolicyResponse is a convenience function that returns MoAggregateTransform wrapped in SdwanVmanageAccountPolicyResponse -func MoAggregateTransformAsSdwanVmanageAccountPolicyResponse(v *MoAggregateTransform) SdwanVmanageAccountPolicyResponse { - return SdwanVmanageAccountPolicyResponse{ MoAggregateTransform: v} -} - -// MoDocumentCountAsSdwanVmanageAccountPolicyResponse is a convenience function that returns MoDocumentCount wrapped in SdwanVmanageAccountPolicyResponse -func MoDocumentCountAsSdwanVmanageAccountPolicyResponse(v *MoDocumentCount) SdwanVmanageAccountPolicyResponse { - return SdwanVmanageAccountPolicyResponse{ MoDocumentCount: v} -} - -// MoTagSummaryAsSdwanVmanageAccountPolicyResponse is a convenience function that returns MoTagSummary wrapped in SdwanVmanageAccountPolicyResponse -func MoTagSummaryAsSdwanVmanageAccountPolicyResponse(v *MoTagSummary) SdwanVmanageAccountPolicyResponse { - return SdwanVmanageAccountPolicyResponse{ MoTagSummary: v} -} - -// SdwanVmanageAccountPolicyListAsSdwanVmanageAccountPolicyResponse is a convenience function that returns SdwanVmanageAccountPolicyList wrapped in SdwanVmanageAccountPolicyResponse -func SdwanVmanageAccountPolicyListAsSdwanVmanageAccountPolicyResponse(v *SdwanVmanageAccountPolicyList) SdwanVmanageAccountPolicyResponse { - return SdwanVmanageAccountPolicyResponse{ SdwanVmanageAccountPolicyList: v} -} - - -// Unmarshal JSON data into one of the pointers in the struct -func (dst *SdwanVmanageAccountPolicyResponse) UnmarshalJSON(data []byte) error { - var err error - // use discriminator value to speed up the lookup - var jsonDict map[string]interface{} - err = json.Unmarshal(data, &jsonDict) - if err != nil { - return fmt.Errorf("Failed to unmarshal JSON into map for the discriminator lookup.") - } - - // check if the discriminator value is 'mo.AggregateTransform' - if jsonDict["ObjectType"] == "mo.AggregateTransform" { - // try to unmarshal JSON data into MoAggregateTransform - err = json.Unmarshal(data, &dst.MoAggregateTransform) - if err == nil { - return nil // data stored in dst.MoAggregateTransform, return on the first match - } else { - dst.MoAggregateTransform = nil - return fmt.Errorf("Failed to unmarshal SdwanVmanageAccountPolicyResponse as MoAggregateTransform: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.DocumentCount' - if jsonDict["ObjectType"] == "mo.DocumentCount" { - // try to unmarshal JSON data into MoDocumentCount - err = json.Unmarshal(data, &dst.MoDocumentCount) - if err == nil { - return nil // data stored in dst.MoDocumentCount, return on the first match - } else { - dst.MoDocumentCount = nil - return fmt.Errorf("Failed to unmarshal SdwanVmanageAccountPolicyResponse as MoDocumentCount: %s", err.Error()) - } - } - - // check if the discriminator value is 'mo.TagSummary' - if jsonDict["ObjectType"] == "mo.TagSummary" { - // try to unmarshal JSON data into MoTagSummary - err = json.Unmarshal(data, &dst.MoTagSummary) - if err == nil { - return nil // data stored in dst.MoTagSummary, return on the first match - } else { - dst.MoTagSummary = nil - return fmt.Errorf("Failed to unmarshal SdwanVmanageAccountPolicyResponse as MoTagSummary: %s", err.Error()) - } - } - - // check if the discriminator value is 'sdwan.VmanageAccountPolicy.List' - if jsonDict["ObjectType"] == "sdwan.VmanageAccountPolicy.List" { - // try to unmarshal JSON data into SdwanVmanageAccountPolicyList - err = json.Unmarshal(data, &dst.SdwanVmanageAccountPolicyList) - if err == nil { - return nil // data stored in dst.SdwanVmanageAccountPolicyList, return on the first match - } else { - dst.SdwanVmanageAccountPolicyList = nil - return fmt.Errorf("Failed to unmarshal SdwanVmanageAccountPolicyResponse as SdwanVmanageAccountPolicyList: %s", err.Error()) - } - } - - return nil -} - -// Marshal data from the first non-nil pointers in the struct to JSON -func (src SdwanVmanageAccountPolicyResponse) MarshalJSON() ([]byte, error) { - if src.MoAggregateTransform != nil { - return json.Marshal(&src.MoAggregateTransform) - } - - if src.MoDocumentCount != nil { - return json.Marshal(&src.MoDocumentCount) - } - - if src.MoTagSummary != nil { - return json.Marshal(&src.MoTagSummary) - } - - if src.SdwanVmanageAccountPolicyList != nil { - return json.Marshal(&src.SdwanVmanageAccountPolicyList) - } - - return nil, nil // no data in oneOf schemas -} - -// Get the actual instance -func (obj *SdwanVmanageAccountPolicyResponse) GetActualInstance() (interface{}) { - if obj.MoAggregateTransform != nil { - return obj.MoAggregateTransform - } - - if obj.MoDocumentCount != nil { - return obj.MoDocumentCount - } - - if obj.MoTagSummary != nil { - return obj.MoTagSummary - } - - if obj.SdwanVmanageAccountPolicyList != nil { - return obj.SdwanVmanageAccountPolicyList - } - - // all schemas are nil - return nil -} - -type NullableSdwanVmanageAccountPolicyResponse struct { - value *SdwanVmanageAccountPolicyResponse - isSet bool -} - -func (v NullableSdwanVmanageAccountPolicyResponse) Get() *SdwanVmanageAccountPolicyResponse { - return v.value -} - -func (v *NullableSdwanVmanageAccountPolicyResponse) Set(val *SdwanVmanageAccountPolicyResponse) { - v.value = val - v.isSet = true -} - -func (v NullableSdwanVmanageAccountPolicyResponse) IsSet() bool { - return v.isSet -} - -func (v *NullableSdwanVmanageAccountPolicyResponse) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableSdwanVmanageAccountPolicyResponse(val *SdwanVmanageAccountPolicyResponse) *NullableSdwanVmanageAccountPolicyResponse { - return &NullableSdwanVmanageAccountPolicyResponse{value: val, isSet: true} -} - -func (v NullableSdwanVmanageAccountPolicyResponse) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableSdwanVmanageAccountPolicyResponse) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/model_storage_initiator.go b/model_storage_initiator.go deleted file mode 100644 index f46e53bce7..0000000000 --- a/model_storage_initiator.go +++ /dev/null @@ -1,152 +0,0 @@ -/* -Cisco Intersight - -Cisco Intersight is a management platform delivered as a service with embedded analytics for your Cisco and 3rd party IT infrastructure. This platform offers an intelligent level of management that enables IT organizations to analyze, simplify, and automate their environments in more advanced ways than the prior generations of tools. Cisco Intersight provides an integrated and intuitive management experience for resources in the traditional data center as well as at the edge. With flexible deployment options to address complex security needs, getting started with Intersight is quick and easy. Cisco Intersight has deep integration with Cisco UCS and HyperFlex systems allowing for remote deployment, configuration, and ongoing maintenance. The model-based deployment works for a single system in a remote location or hundreds of systems in a data center and enables rapid, standardized configuration and deployment. It also streamlines maintaining those systems whether you are working with small or very large configurations. The Intersight OpenAPI document defines the complete set of properties that are returned in the HTTP response. From that perspective, a client can expect that no additional properties are returned, unless these properties are explicitly defined in the OpenAPI document. However, when a client uses an older version of the Intersight OpenAPI document, the server may send additional properties because the software is more recent than the client. In that case, the client may receive properties that it does not know about. Some generated SDKs perform a strict validation of the HTTP response body against the OpenAPI document. - -API version: 1.0.9-4950 -Contact: intersight@cisco.com -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package intersight - -import ( - "encoding/json" - "reflect" - "strings" -) - -// StorageInitiator An initiator is the consumer of storage, typically a server with an adapter card in it called a Host Bus Adapter (HBA). The initiator \"initiates\" a connection over the fabric to one or more ports on storage system target ports. -type StorageInitiator struct { - StorageBaseInitiator - AdditionalProperties map[string]interface{} -} - -type _StorageInitiator StorageInitiator - -// NewStorageInitiator instantiates a new StorageInitiator object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewStorageInitiator(classId string, objectType string) *StorageInitiator { - this := StorageInitiator{} - this.ClassId = classId - this.ObjectType = objectType - return &this -} - -// NewStorageInitiatorWithDefaults instantiates a new StorageInitiator object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewStorageInitiatorWithDefaults() *StorageInitiator { - this := StorageInitiator{} - return &this -} - -func (o StorageInitiator) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - serializedStorageBaseInitiator, errStorageBaseInitiator := json.Marshal(o.StorageBaseInitiator) - if errStorageBaseInitiator != nil { - return []byte{}, errStorageBaseInitiator - } - errStorageBaseInitiator = json.Unmarshal([]byte(serializedStorageBaseInitiator), &toSerialize) - if errStorageBaseInitiator != nil { - return []byte{}, errStorageBaseInitiator - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return json.Marshal(toSerialize) -} - -func (o *StorageInitiator) UnmarshalJSON(bytes []byte) (err error) { - type StorageInitiatorWithoutEmbeddedStruct struct { - } - - varStorageInitiatorWithoutEmbeddedStruct := StorageInitiatorWithoutEmbeddedStruct{} - - err = json.Unmarshal(bytes, &varStorageInitiatorWithoutEmbeddedStruct) - if err == nil { - varStorageInitiator := _StorageInitiator{} - *o = StorageInitiator(varStorageInitiator) - } else { - return err - } - - varStorageInitiator := _StorageInitiator{} - - err = json.Unmarshal(bytes, &varStorageInitiator) - if err == nil { - o.StorageBaseInitiator = varStorageInitiator.StorageBaseInitiator - } else { - return err - } - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - - // remove fields from embedded structs - reflectStorageBaseInitiator := reflect.ValueOf(o.StorageBaseInitiator) - for i := 0; i < reflectStorageBaseInitiator.Type().NumField(); i++ { - t := reflectStorageBaseInitiator.Type().Field(i) - - if jsonTag := t.Tag.Get("json"); jsonTag != "" { - fieldName := "" - if commaIdx := strings.Index(jsonTag, ","); commaIdx > 0 { - fieldName = jsonTag[:commaIdx] - } else { - fieldName = jsonTag - } - if fieldName != "AdditionalProperties" { - delete(additionalProperties, fieldName) - } - } - } - - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableStorageInitiator struct { - value *StorageInitiator - isSet bool -} - -func (v NullableStorageInitiator) Get() *StorageInitiator { - return v.value -} - -func (v *NullableStorageInitiator) Set(val *StorageInitiator) { - v.value = val - v.isSet = true -} - -func (v NullableStorageInitiator) IsSet() bool { - return v.isSet -} - -func (v *NullableStorageInitiator) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStorageInitiator(val *StorageInitiator) *NullableStorageInitiator { - return &NullableStorageInitiator{value: val, isSet: true} -} - -func (v NullableStorageInitiator) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStorageInitiator) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - -