-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated client bindings for services/vmwarecloud/vmc_aws_cho_provider…
…/v0.1.0. Signed-off-by: sdk team <dx-sdk-team@vmware.com>
- Loading branch information
sdk team
committed
Nov 20, 2023
1 parent
365b0e0
commit a429b26
Showing
26 changed files
with
2,651 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
services/vmwarecloud/vmc_aws_cho_provider/VmcAwsChoProviderPackageTypes.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
// Auto generated code. DO NOT EDIT. | ||
|
||
// Data type definitions file for package: com.vmware.vmwarecloud.vmc_aws_cho_provider. | ||
// Includes binding types of a top level structures and enumerations. | ||
// Shared by client-side stubs and server-side skeletons to ensure type | ||
// compatibility. | ||
|
||
package vmc_aws_cho_provider |
170 changes: 170 additions & 0 deletions
170
...es/vmwarecloud/vmc_aws_cho_provider/api/inventory/operator/spla/MaintenanceHostsClient.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
// Auto generated code. DO NOT EDIT. | ||
|
||
// Interface file for service: MaintenanceHosts | ||
// Used by client-side stubs. | ||
|
||
package spla | ||
|
||
import ( | ||
vapiStdErrors_ "github.com/vmware/vsphere-automation-sdk-go/lib/vapi/std/errors" | ||
vapiBindings_ "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" | ||
vapiCore_ "github.com/vmware/vsphere-automation-sdk-go/runtime/core" | ||
vapiProtocolClient_ "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol/client" | ||
vmwarecloudVmc_aws_cho_providerModel "github.com/vmware/vsphere-automation-sdk-go/services/vmwarecloud/vmc_aws_cho_provider/model" | ||
) | ||
|
||
const _ = vapiCore_.SupportedByRuntimeVersion2 | ||
|
||
type MaintenanceHostsClient interface { | ||
|
||
// Get SPLA maintenance hosts info for given region. Shall be used by operator. | ||
// | ||
// @param awsRegionParam AWS Region | ||
// @return OK | ||
// | ||
// @throws Unauthenticated Unauthorized | ||
// @throws Unauthorized Forbidden | ||
GetSplaMaintenanceHostsInfo(awsRegionParam string) (vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo, error) | ||
|
||
// Add maintenance hosts for SPLA info with given region. Shall be used by operator. | ||
// | ||
// @param addSplaMaintenanceHostsInfoRequestBodyParam Payload for updating SplaMaintenanceHostsInfo | ||
// @param awsRegionParam AWS Region | ||
// @return OK | ||
// | ||
// @throws Unauthenticated Unauthorized | ||
// @throws Unauthorized Forbidden | ||
AddSplaMaintenanceHostsInfo(addSplaMaintenanceHostsInfoRequestBodyParam []vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost, awsRegionParam string) (vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo, error) | ||
|
||
// Delete maintenance hosts for SPLA info with given region. Shall be used by operator. | ||
// | ||
// @param removeSplaMaintenanceHostsInfoRequestBodyParam Payload for updating SplaMaintenanceHostsInfo | ||
// @param awsRegionParam AWS Region | ||
// @return OK | ||
// | ||
// @throws Unauthenticated Unauthorized | ||
// @throws Unauthorized Forbidden | ||
RemoveSplaMaintenanceHostsInfo(removeSplaMaintenanceHostsInfoRequestBodyParam []vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost, awsRegionParam string) error | ||
} | ||
|
||
type maintenanceHostsClient struct { | ||
connector vapiProtocolClient_.Connector | ||
interfaceDefinition vapiCore_.InterfaceDefinition | ||
errorsBindingMap map[string]vapiBindings_.BindingType | ||
} | ||
|
||
func NewMaintenanceHostsClient(connector vapiProtocolClient_.Connector) *maintenanceHostsClient { | ||
interfaceIdentifier := vapiCore_.NewInterfaceIdentifier("com.vmware.vmwarecloud.vmc_aws_cho_provider.api.inventory.operator.spla.maintenance_hosts") | ||
methodIdentifiers := map[string]vapiCore_.MethodIdentifier{ | ||
"get_spla_maintenance_hosts_info": vapiCore_.NewMethodIdentifier(interfaceIdentifier, "get_spla_maintenance_hosts_info"), | ||
"add_spla_maintenance_hosts_info": vapiCore_.NewMethodIdentifier(interfaceIdentifier, "add_spla_maintenance_hosts_info"), | ||
"remove_spla_maintenance_hosts_info": vapiCore_.NewMethodIdentifier(interfaceIdentifier, "remove_spla_maintenance_hosts_info"), | ||
} | ||
interfaceDefinition := vapiCore_.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) | ||
errorsBindingMap := make(map[string]vapiBindings_.BindingType) | ||
|
||
mIface := maintenanceHostsClient{interfaceDefinition: interfaceDefinition, errorsBindingMap: errorsBindingMap, connector: connector} | ||
return &mIface | ||
} | ||
|
||
func (mIface *maintenanceHostsClient) GetErrorBindingType(errorName string) vapiBindings_.BindingType { | ||
if entry, ok := mIface.errorsBindingMap[errorName]; ok { | ||
return entry | ||
} | ||
return vapiStdErrors_.ERROR_BINDINGS_MAP[errorName] | ||
} | ||
|
||
func (mIface *maintenanceHostsClient) GetSplaMaintenanceHostsInfo(awsRegionParam string) (vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo, error) { | ||
typeConverter := mIface.connector.TypeConverter() | ||
executionContext := mIface.connector.NewExecutionContext() | ||
operationRestMetaData := maintenanceHostsGetSplaMaintenanceHostsInfoRestMetadata() | ||
executionContext.SetConnectionMetadata(vapiCore_.RESTMetadataKey, operationRestMetaData) | ||
executionContext.SetConnectionMetadata(vapiCore_.ResponseTypeKey, vapiCore_.NewResponseType(true, false)) | ||
|
||
sv := vapiBindings_.NewStructValueBuilder(maintenanceHostsGetSplaMaintenanceHostsInfoInputType(), typeConverter) | ||
sv.AddStructField("AwsRegion", awsRegionParam) | ||
inputDataValue, inputError := sv.GetStructValue() | ||
if inputError != nil { | ||
var emptyOutput vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(inputError) | ||
} | ||
|
||
methodResult := mIface.connector.GetApiProvider().Invoke("com.vmware.vmwarecloud.vmc_aws_cho_provider.api.inventory.operator.spla.maintenance_hosts", "get_spla_maintenance_hosts_info", inputDataValue, executionContext) | ||
var emptyOutput vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo | ||
if methodResult.IsSuccess() { | ||
output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), MaintenanceHostsGetSplaMaintenanceHostsInfoOutputType()) | ||
if errorInOutput != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInOutput) | ||
} | ||
return output.(vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo), nil | ||
} else { | ||
methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), mIface.GetErrorBindingType(methodResult.Error().Name())) | ||
if errorInError != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInError) | ||
} | ||
return emptyOutput, methodError.(error) | ||
} | ||
} | ||
|
||
func (mIface *maintenanceHostsClient) AddSplaMaintenanceHostsInfo(addSplaMaintenanceHostsInfoRequestBodyParam []vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost, awsRegionParam string) (vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo, error) { | ||
typeConverter := mIface.connector.TypeConverter() | ||
executionContext := mIface.connector.NewExecutionContext() | ||
operationRestMetaData := maintenanceHostsAddSplaMaintenanceHostsInfoRestMetadata() | ||
executionContext.SetConnectionMetadata(vapiCore_.RESTMetadataKey, operationRestMetaData) | ||
executionContext.SetConnectionMetadata(vapiCore_.ResponseTypeKey, vapiCore_.NewResponseType(true, false)) | ||
|
||
sv := vapiBindings_.NewStructValueBuilder(maintenanceHostsAddSplaMaintenanceHostsInfoInputType(), typeConverter) | ||
sv.AddStructField("AddSplaMaintenanceHostsInfoRequestBody", addSplaMaintenanceHostsInfoRequestBodyParam) | ||
sv.AddStructField("AwsRegion", awsRegionParam) | ||
inputDataValue, inputError := sv.GetStructValue() | ||
if inputError != nil { | ||
var emptyOutput vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(inputError) | ||
} | ||
|
||
methodResult := mIface.connector.GetApiProvider().Invoke("com.vmware.vmwarecloud.vmc_aws_cho_provider.api.inventory.operator.spla.maintenance_hosts", "add_spla_maintenance_hosts_info", inputDataValue, executionContext) | ||
var emptyOutput vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo | ||
if methodResult.IsSuccess() { | ||
output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), MaintenanceHostsAddSplaMaintenanceHostsInfoOutputType()) | ||
if errorInOutput != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInOutput) | ||
} | ||
return output.(vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfo), nil | ||
} else { | ||
methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), mIface.GetErrorBindingType(methodResult.Error().Name())) | ||
if errorInError != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInError) | ||
} | ||
return emptyOutput, methodError.(error) | ||
} | ||
} | ||
|
||
func (mIface *maintenanceHostsClient) RemoveSplaMaintenanceHostsInfo(removeSplaMaintenanceHostsInfoRequestBodyParam []vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost, awsRegionParam string) error { | ||
typeConverter := mIface.connector.TypeConverter() | ||
executionContext := mIface.connector.NewExecutionContext() | ||
operationRestMetaData := maintenanceHostsRemoveSplaMaintenanceHostsInfoRestMetadata() | ||
executionContext.SetConnectionMetadata(vapiCore_.RESTMetadataKey, operationRestMetaData) | ||
executionContext.SetConnectionMetadata(vapiCore_.ResponseTypeKey, vapiCore_.NewResponseType(true, false)) | ||
|
||
sv := vapiBindings_.NewStructValueBuilder(maintenanceHostsRemoveSplaMaintenanceHostsInfoInputType(), typeConverter) | ||
sv.AddStructField("RemoveSplaMaintenanceHostsInfoRequestBody", removeSplaMaintenanceHostsInfoRequestBodyParam) | ||
sv.AddStructField("AwsRegion", awsRegionParam) | ||
inputDataValue, inputError := sv.GetStructValue() | ||
if inputError != nil { | ||
return vapiBindings_.VAPIerrorsToError(inputError) | ||
} | ||
|
||
methodResult := mIface.connector.GetApiProvider().Invoke("com.vmware.vmwarecloud.vmc_aws_cho_provider.api.inventory.operator.spla.maintenance_hosts", "remove_spla_maintenance_hosts_info", inputDataValue, executionContext) | ||
if methodResult.IsSuccess() { | ||
return nil | ||
} else { | ||
methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), mIface.GetErrorBindingType(methodResult.Error().Name())) | ||
if errorInError != nil { | ||
return vapiBindings_.VAPIerrorsToError(errorInError) | ||
} | ||
return methodError.(error) | ||
} | ||
} |
182 changes: 182 additions & 0 deletions
182
...ces/vmwarecloud/vmc_aws_cho_provider/api/inventory/operator/spla/MaintenanceHostsTypes.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
// Auto generated code. DO NOT EDIT. | ||
|
||
// Data type definitions file for service: MaintenanceHosts. | ||
// Includes binding types of a structures and enumerations defined in the service. | ||
// Shared by client-side stubs and server-side skeletons to ensure type | ||
// compatibility. | ||
|
||
package spla | ||
|
||
import ( | ||
vapiBindings_ "github.com/vmware/vsphere-automation-sdk-go/runtime/bindings" | ||
vapiData_ "github.com/vmware/vsphere-automation-sdk-go/runtime/data" | ||
vapiProtocol_ "github.com/vmware/vsphere-automation-sdk-go/runtime/protocol" | ||
vmwarecloudVmc_aws_cho_providerModel "github.com/vmware/vsphere-automation-sdk-go/services/vmwarecloud/vmc_aws_cho_provider/model" | ||
"reflect" | ||
) | ||
|
||
func maintenanceHostsGetSplaMaintenanceHostsInfoInputType() vapiBindings_.StructType { | ||
fields := make(map[string]vapiBindings_.BindingType) | ||
fieldNameMap := make(map[string]string) | ||
fields["aws_region"] = vapiBindings_.NewStringType() | ||
fieldNameMap["aws_region"] = "AwsRegion" | ||
var validators = []vapiBindings_.Validator{} | ||
return vapiBindings_.NewStructType("operation-input", fields, reflect.TypeOf(vapiData_.StructValue{}), fieldNameMap, validators) | ||
} | ||
|
||
func MaintenanceHostsGetSplaMaintenanceHostsInfoOutputType() vapiBindings_.BindingType { | ||
return vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfoBindingType) | ||
} | ||
|
||
func maintenanceHostsGetSplaMaintenanceHostsInfoRestMetadata() vapiProtocol_.OperationRestMetadata { | ||
fields := map[string]vapiBindings_.BindingType{} | ||
fieldNameMap := map[string]string{} | ||
paramsTypeMap := map[string]vapiBindings_.BindingType{} | ||
pathParams := map[string]string{} | ||
queryParams := map[string]string{} | ||
headerParams := map[string]string{} | ||
dispatchHeaderParams := map[string]string{} | ||
bodyFieldsMap := map[string]string{} | ||
fields["aws_region"] = vapiBindings_.NewStringType() | ||
fieldNameMap["aws_region"] = "AwsRegion" | ||
paramsTypeMap["aws_region"] = vapiBindings_.NewStringType() | ||
queryParams["aws_region"] = "aws_region" | ||
resultHeaders := map[string]string{} | ||
errorHeaders := map[string]map[string]string{} | ||
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"] = make(map[string]string) | ||
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"]["challenge"] = "WWW-Authenticate" | ||
return vapiProtocol_.NewOperationRestMetadata( | ||
fields, | ||
fieldNameMap, | ||
paramsTypeMap, | ||
pathParams, | ||
queryParams, | ||
headerParams, | ||
dispatchHeaderParams, | ||
bodyFieldsMap, | ||
"", | ||
"", | ||
"GET", | ||
"/api/inventory/operator/spla/maintenance-hosts", | ||
"", | ||
resultHeaders, | ||
200, | ||
"", | ||
errorHeaders, | ||
map[string]int{"com.vmware.vapi.std.errors.unauthenticated": 401, "com.vmware.vapi.std.errors.unauthorized": 403}) | ||
} | ||
|
||
func maintenanceHostsAddSplaMaintenanceHostsInfoInputType() vapiBindings_.StructType { | ||
fields := make(map[string]vapiBindings_.BindingType) | ||
fieldNameMap := make(map[string]string) | ||
fields["add_spla_maintenance_hosts_info_request_body"] = vapiBindings_.NewListType(vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.MaintenanceHostBindingType), reflect.TypeOf([]vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost{})) | ||
fields["aws_region"] = vapiBindings_.NewStringType() | ||
fieldNameMap["add_spla_maintenance_hosts_info_request_body"] = "AddSplaMaintenanceHostsInfoRequestBody" | ||
fieldNameMap["aws_region"] = "AwsRegion" | ||
var validators = []vapiBindings_.Validator{} | ||
return vapiBindings_.NewStructType("operation-input", fields, reflect.TypeOf(vapiData_.StructValue{}), fieldNameMap, validators) | ||
} | ||
|
||
func MaintenanceHostsAddSplaMaintenanceHostsInfoOutputType() vapiBindings_.BindingType { | ||
return vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.SplaMaintenanceHostsInfoBindingType) | ||
} | ||
|
||
func maintenanceHostsAddSplaMaintenanceHostsInfoRestMetadata() vapiProtocol_.OperationRestMetadata { | ||
fields := map[string]vapiBindings_.BindingType{} | ||
fieldNameMap := map[string]string{} | ||
paramsTypeMap := map[string]vapiBindings_.BindingType{} | ||
pathParams := map[string]string{} | ||
queryParams := map[string]string{} | ||
headerParams := map[string]string{} | ||
dispatchHeaderParams := map[string]string{} | ||
bodyFieldsMap := map[string]string{} | ||
fields["add_spla_maintenance_hosts_info_request_body"] = vapiBindings_.NewListType(vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.MaintenanceHostBindingType), reflect.TypeOf([]vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost{})) | ||
fields["aws_region"] = vapiBindings_.NewStringType() | ||
fieldNameMap["add_spla_maintenance_hosts_info_request_body"] = "AddSplaMaintenanceHostsInfoRequestBody" | ||
fieldNameMap["aws_region"] = "AwsRegion" | ||
paramsTypeMap["aws_region"] = vapiBindings_.NewStringType() | ||
paramsTypeMap["add_spla_maintenance_hosts_info_request_body"] = vapiBindings_.NewListType(vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.MaintenanceHostBindingType), reflect.TypeOf([]vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost{})) | ||
queryParams["aws_region"] = "aws_region" | ||
resultHeaders := map[string]string{} | ||
errorHeaders := map[string]map[string]string{} | ||
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"] = make(map[string]string) | ||
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"]["challenge"] = "WWW-Authenticate" | ||
return vapiProtocol_.NewOperationRestMetadata( | ||
fields, | ||
fieldNameMap, | ||
paramsTypeMap, | ||
pathParams, | ||
queryParams, | ||
headerParams, | ||
dispatchHeaderParams, | ||
bodyFieldsMap, | ||
"", | ||
"add_spla_maintenance_hosts_info_request_body", | ||
"POST", | ||
"/api/inventory/operator/spla/maintenance-hosts", | ||
"application/json", | ||
resultHeaders, | ||
200, | ||
"", | ||
errorHeaders, | ||
map[string]int{"com.vmware.vapi.std.errors.unauthenticated": 401, "com.vmware.vapi.std.errors.unauthorized": 403}) | ||
} | ||
|
||
func maintenanceHostsRemoveSplaMaintenanceHostsInfoInputType() vapiBindings_.StructType { | ||
fields := make(map[string]vapiBindings_.BindingType) | ||
fieldNameMap := make(map[string]string) | ||
fields["remove_spla_maintenance_hosts_info_request_body"] = vapiBindings_.NewListType(vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.MaintenanceHostBindingType), reflect.TypeOf([]vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost{})) | ||
fields["aws_region"] = vapiBindings_.NewStringType() | ||
fieldNameMap["remove_spla_maintenance_hosts_info_request_body"] = "RemoveSplaMaintenanceHostsInfoRequestBody" | ||
fieldNameMap["aws_region"] = "AwsRegion" | ||
var validators = []vapiBindings_.Validator{} | ||
return vapiBindings_.NewStructType("operation-input", fields, reflect.TypeOf(vapiData_.StructValue{}), fieldNameMap, validators) | ||
} | ||
|
||
func MaintenanceHostsRemoveSplaMaintenanceHostsInfoOutputType() vapiBindings_.BindingType { | ||
return vapiBindings_.NewVoidType() | ||
} | ||
|
||
func maintenanceHostsRemoveSplaMaintenanceHostsInfoRestMetadata() vapiProtocol_.OperationRestMetadata { | ||
fields := map[string]vapiBindings_.BindingType{} | ||
fieldNameMap := map[string]string{} | ||
paramsTypeMap := map[string]vapiBindings_.BindingType{} | ||
pathParams := map[string]string{} | ||
queryParams := map[string]string{} | ||
headerParams := map[string]string{} | ||
dispatchHeaderParams := map[string]string{} | ||
bodyFieldsMap := map[string]string{} | ||
fields["remove_spla_maintenance_hosts_info_request_body"] = vapiBindings_.NewListType(vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.MaintenanceHostBindingType), reflect.TypeOf([]vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost{})) | ||
fields["aws_region"] = vapiBindings_.NewStringType() | ||
fieldNameMap["remove_spla_maintenance_hosts_info_request_body"] = "RemoveSplaMaintenanceHostsInfoRequestBody" | ||
fieldNameMap["aws_region"] = "AwsRegion" | ||
paramsTypeMap["remove_spla_maintenance_hosts_info_request_body"] = vapiBindings_.NewListType(vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_cho_providerModel.MaintenanceHostBindingType), reflect.TypeOf([]vmwarecloudVmc_aws_cho_providerModel.MaintenanceHost{})) | ||
paramsTypeMap["aws_region"] = vapiBindings_.NewStringType() | ||
queryParams["aws_region"] = "aws_region" | ||
resultHeaders := map[string]string{} | ||
errorHeaders := map[string]map[string]string{} | ||
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"] = make(map[string]string) | ||
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"]["challenge"] = "WWW-Authenticate" | ||
return vapiProtocol_.NewOperationRestMetadata( | ||
fields, | ||
fieldNameMap, | ||
paramsTypeMap, | ||
pathParams, | ||
queryParams, | ||
headerParams, | ||
dispatchHeaderParams, | ||
bodyFieldsMap, | ||
"", | ||
"remove_spla_maintenance_hosts_info_request_body", | ||
"DELETE", | ||
"/api/inventory/operator/spla/maintenance-hosts", | ||
"", | ||
resultHeaders, | ||
204, | ||
"", | ||
errorHeaders, | ||
map[string]int{"com.vmware.vapi.std.errors.unauthenticated": 401, "com.vmware.vapi.std.errors.unauthorized": 403}) | ||
} |
11 changes: 11 additions & 0 deletions
11
services/vmwarecloud/vmc_aws_cho_provider/api/inventory/operator/spla/SplaPackageTypes.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
// Auto generated code. DO NOT EDIT. | ||
|
||
// Data type definitions file for package: com.vmware.vmwarecloud.vmc_aws_cho_provider.api.inventory.operator.spla. | ||
// Includes binding types of a top level structures and enumerations. | ||
// Shared by client-side stubs and server-side skeletons to ensure type | ||
// compatibility. | ||
|
||
package spla |
11 changes: 11 additions & 0 deletions
11
services/vmwarecloud/vmc_aws_cho_provider/api/inventory/vmc_aws/VmcAwsPackageTypes.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
// Auto generated code. DO NOT EDIT. | ||
|
||
// Data type definitions file for package: com.vmware.vmwarecloud.vmc_aws_cho_provider.api.inventory.vmc_aws. | ||
// Includes binding types of a top level structures and enumerations. | ||
// Shared by client-side stubs and server-side skeletons to ensure type | ||
// compatibility. | ||
|
||
package vmc_aws |
Oops, something went wrong.