-
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_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
5246983
commit 365b0e0
Showing
20 changed files
with
1,684 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
services/vmwarecloud/vmc_aws_provider/VmcAwsProviderPackageTypes.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_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_provider |
94 changes: 94 additions & 0 deletions
94
...recloud/vmc_aws_provider/api/inventory/vmc_aws/clusters/ClusterIdmountDatastoresClient.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,94 @@ | ||
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
// Auto generated code. DO NOT EDIT. | ||
|
||
// Interface file for service: ClusterIdmountDatastores | ||
// Used by client-side stubs. | ||
|
||
package clusters | ||
|
||
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_providerModel "github.com/vmware/vsphere-automation-sdk-go/services/vmwarecloud/vmc_aws_provider/model" | ||
) | ||
|
||
const _ = vapiCore_.SupportedByRuntimeVersion2 | ||
|
||
type ClusterIdmountDatastoresClient interface { | ||
|
||
// Mount nfs datastore to a cluster | ||
// | ||
// @param orgIdParam organization identifier | ||
// @param clusterIdParam cluster identifier | ||
// @param mountNfsDatastoreIntentParam Payload for the Mount NFS datastores | ||
// @return Activity accepted for processing | ||
// | ||
// @throws InvalidRequest Bad Request | ||
// @throws Unauthenticated Unauthorized | ||
// @throws Unauthorized Forbidden | ||
// @throws NotFound Not Found | ||
MountDataStoresOnCluster(orgIdParam string, clusterIdParam string, mountNfsDatastoreIntentParam vmwarecloudVmc_aws_providerModel.MountNfsDatastoreIntent) (vmwarecloudVmc_aws_providerModel.ActivityResponse, error) | ||
} | ||
|
||
type clusterIdmountDatastoresClient struct { | ||
connector vapiProtocolClient_.Connector | ||
interfaceDefinition vapiCore_.InterfaceDefinition | ||
errorsBindingMap map[string]vapiBindings_.BindingType | ||
} | ||
|
||
func NewClusterIdmountDatastoresClient(connector vapiProtocolClient_.Connector) *clusterIdmountDatastoresClient { | ||
interfaceIdentifier := vapiCore_.NewInterfaceIdentifier("com.vmware.vmwarecloud.vmc_aws_provider.api.inventory.vmc_aws.clusters.cluster_idmount_datastores") | ||
methodIdentifiers := map[string]vapiCore_.MethodIdentifier{ | ||
"mount_data_stores_on_cluster": vapiCore_.NewMethodIdentifier(interfaceIdentifier, "mount_data_stores_on_cluster"), | ||
} | ||
interfaceDefinition := vapiCore_.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) | ||
errorsBindingMap := make(map[string]vapiBindings_.BindingType) | ||
|
||
cIface := clusterIdmountDatastoresClient{interfaceDefinition: interfaceDefinition, errorsBindingMap: errorsBindingMap, connector: connector} | ||
return &cIface | ||
} | ||
|
||
func (cIface *clusterIdmountDatastoresClient) GetErrorBindingType(errorName string) vapiBindings_.BindingType { | ||
if entry, ok := cIface.errorsBindingMap[errorName]; ok { | ||
return entry | ||
} | ||
return vapiStdErrors_.ERROR_BINDINGS_MAP[errorName] | ||
} | ||
|
||
func (cIface *clusterIdmountDatastoresClient) MountDataStoresOnCluster(orgIdParam string, clusterIdParam string, mountNfsDatastoreIntentParam vmwarecloudVmc_aws_providerModel.MountNfsDatastoreIntent) (vmwarecloudVmc_aws_providerModel.ActivityResponse, error) { | ||
typeConverter := cIface.connector.TypeConverter() | ||
executionContext := cIface.connector.NewExecutionContext() | ||
operationRestMetaData := clusterIdmountDatastoresMountDataStoresOnClusterRestMetadata() | ||
executionContext.SetConnectionMetadata(vapiCore_.RESTMetadataKey, operationRestMetaData) | ||
executionContext.SetConnectionMetadata(vapiCore_.ResponseTypeKey, vapiCore_.NewResponseType(true, false)) | ||
|
||
sv := vapiBindings_.NewStructValueBuilder(clusterIdmountDatastoresMountDataStoresOnClusterInputType(), typeConverter) | ||
sv.AddStructField("OrgId", orgIdParam) | ||
sv.AddStructField("ClusterId", clusterIdParam) | ||
sv.AddStructField("MountNfsDatastoreIntent", mountNfsDatastoreIntentParam) | ||
inputDataValue, inputError := sv.GetStructValue() | ||
if inputError != nil { | ||
var emptyOutput vmwarecloudVmc_aws_providerModel.ActivityResponse | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(inputError) | ||
} | ||
|
||
methodResult := cIface.connector.GetApiProvider().Invoke("com.vmware.vmwarecloud.vmc_aws_provider.api.inventory.vmc_aws.clusters.cluster_idmount_datastores", "mount_data_stores_on_cluster", inputDataValue, executionContext) | ||
var emptyOutput vmwarecloudVmc_aws_providerModel.ActivityResponse | ||
if methodResult.IsSuccess() { | ||
output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), ClusterIdmountDatastoresMountDataStoresOnClusterOutputType()) | ||
if errorInOutput != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInOutput) | ||
} | ||
return output.(vmwarecloudVmc_aws_providerModel.ActivityResponse), nil | ||
} else { | ||
methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), cIface.GetErrorBindingType(methodResult.Error().Name())) | ||
if errorInError != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInError) | ||
} | ||
return emptyOutput, methodError.(error) | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
...arecloud/vmc_aws_provider/api/inventory/vmc_aws/clusters/ClusterIdmountDatastoresTypes.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,83 @@ | ||
// 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: ClusterIdmountDatastores. | ||
// 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 clusters | ||
|
||
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_providerModel "github.com/vmware/vsphere-automation-sdk-go/services/vmwarecloud/vmc_aws_provider/model" | ||
"reflect" | ||
) | ||
|
||
func clusterIdmountDatastoresMountDataStoresOnClusterInputType() vapiBindings_.StructType { | ||
fields := make(map[string]vapiBindings_.BindingType) | ||
fieldNameMap := make(map[string]string) | ||
fields["org_id"] = vapiBindings_.NewStringType() | ||
fields["cluster_id"] = vapiBindings_.NewStringType() | ||
fields["mount_nfs_datastore_intent"] = vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.MountNfsDatastoreIntentBindingType) | ||
fieldNameMap["org_id"] = "OrgId" | ||
fieldNameMap["cluster_id"] = "ClusterId" | ||
fieldNameMap["mount_nfs_datastore_intent"] = "MountNfsDatastoreIntent" | ||
var validators = []vapiBindings_.Validator{} | ||
return vapiBindings_.NewStructType("operation-input", fields, reflect.TypeOf(vapiData_.StructValue{}), fieldNameMap, validators) | ||
} | ||
|
||
func ClusterIdmountDatastoresMountDataStoresOnClusterOutputType() vapiBindings_.BindingType { | ||
return vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.ActivityResponseBindingType) | ||
} | ||
|
||
func clusterIdmountDatastoresMountDataStoresOnClusterRestMetadata() 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["org_id"] = vapiBindings_.NewStringType() | ||
fields["cluster_id"] = vapiBindings_.NewStringType() | ||
fields["mount_nfs_datastore_intent"] = vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.MountNfsDatastoreIntentBindingType) | ||
fieldNameMap["org_id"] = "OrgId" | ||
fieldNameMap["cluster_id"] = "ClusterId" | ||
fieldNameMap["mount_nfs_datastore_intent"] = "MountNfsDatastoreIntent" | ||
paramsTypeMap["cluster_id"] = vapiBindings_.NewStringType() | ||
paramsTypeMap["org_id"] = vapiBindings_.NewStringType() | ||
paramsTypeMap["mount_nfs_datastore_intent"] = vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.MountNfsDatastoreIntentBindingType) | ||
paramsTypeMap["orgId"] = vapiBindings_.NewStringType() | ||
paramsTypeMap["clusterId"] = vapiBindings_.NewStringType() | ||
pathParams["cluster_id"] = "clusterId" | ||
pathParams["org_id"] = "orgId" | ||
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, | ||
"", | ||
"mount_nfs_datastore_intent", | ||
"POST", | ||
"/api/inventory/{orgId}/vmc-aws/clusters/{clusterId}:mount-datastores", | ||
"application/json", | ||
resultHeaders, | ||
200, | ||
"", | ||
errorHeaders, | ||
map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400, "com.vmware.vapi.std.errors.unauthenticated": 401, "com.vmware.vapi.std.errors.unauthorized": 403, "com.vmware.vapi.std.errors.not_found": 404}) | ||
} |
94 changes: 94 additions & 0 deletions
94
...warecloud/vmc_aws_provider/api/inventory/vmc_aws/clusters/ClusterIdmountPrecheckClient.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,94 @@ | ||
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved. | ||
// SPDX-License-Identifier: BSD-2-Clause | ||
|
||
// Auto generated code. DO NOT EDIT. | ||
|
||
// Interface file for service: ClusterIdmountPrecheck | ||
// Used by client-side stubs. | ||
|
||
package clusters | ||
|
||
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_providerModel "github.com/vmware/vsphere-automation-sdk-go/services/vmwarecloud/vmc_aws_provider/model" | ||
) | ||
|
||
const _ = vapiCore_.SupportedByRuntimeVersion2 | ||
|
||
type ClusterIdmountPrecheckClient interface { | ||
|
||
// Mount precheck on a cluster | ||
// | ||
// @param orgIdParam organization identifier | ||
// @param clusterIdParam cluster identifier | ||
// @param mountNfsDatastorePrecheckIntentParam Payload for the mount precheck | ||
// @return Activity accepted for processing | ||
// | ||
// @throws InvalidRequest Bad Request | ||
// @throws Unauthenticated Unauthorized | ||
// @throws Unauthorized Forbidden | ||
// @throws NotFound Not Found | ||
MountPrecheck(orgIdParam string, clusterIdParam string, mountNfsDatastorePrecheckIntentParam vmwarecloudVmc_aws_providerModel.MountNfsDatastorePrecheckIntent) (vmwarecloudVmc_aws_providerModel.ActivityResponse, error) | ||
} | ||
|
||
type clusterIdmountPrecheckClient struct { | ||
connector vapiProtocolClient_.Connector | ||
interfaceDefinition vapiCore_.InterfaceDefinition | ||
errorsBindingMap map[string]vapiBindings_.BindingType | ||
} | ||
|
||
func NewClusterIdmountPrecheckClient(connector vapiProtocolClient_.Connector) *clusterIdmountPrecheckClient { | ||
interfaceIdentifier := vapiCore_.NewInterfaceIdentifier("com.vmware.vmwarecloud.vmc_aws_provider.api.inventory.vmc_aws.clusters.cluster_idmount_precheck") | ||
methodIdentifiers := map[string]vapiCore_.MethodIdentifier{ | ||
"mount_precheck": vapiCore_.NewMethodIdentifier(interfaceIdentifier, "mount_precheck"), | ||
} | ||
interfaceDefinition := vapiCore_.NewInterfaceDefinition(interfaceIdentifier, methodIdentifiers) | ||
errorsBindingMap := make(map[string]vapiBindings_.BindingType) | ||
|
||
cIface := clusterIdmountPrecheckClient{interfaceDefinition: interfaceDefinition, errorsBindingMap: errorsBindingMap, connector: connector} | ||
return &cIface | ||
} | ||
|
||
func (cIface *clusterIdmountPrecheckClient) GetErrorBindingType(errorName string) vapiBindings_.BindingType { | ||
if entry, ok := cIface.errorsBindingMap[errorName]; ok { | ||
return entry | ||
} | ||
return vapiStdErrors_.ERROR_BINDINGS_MAP[errorName] | ||
} | ||
|
||
func (cIface *clusterIdmountPrecheckClient) MountPrecheck(orgIdParam string, clusterIdParam string, mountNfsDatastorePrecheckIntentParam vmwarecloudVmc_aws_providerModel.MountNfsDatastorePrecheckIntent) (vmwarecloudVmc_aws_providerModel.ActivityResponse, error) { | ||
typeConverter := cIface.connector.TypeConverter() | ||
executionContext := cIface.connector.NewExecutionContext() | ||
operationRestMetaData := clusterIdmountPrecheckMountPrecheckRestMetadata() | ||
executionContext.SetConnectionMetadata(vapiCore_.RESTMetadataKey, operationRestMetaData) | ||
executionContext.SetConnectionMetadata(vapiCore_.ResponseTypeKey, vapiCore_.NewResponseType(true, false)) | ||
|
||
sv := vapiBindings_.NewStructValueBuilder(clusterIdmountPrecheckMountPrecheckInputType(), typeConverter) | ||
sv.AddStructField("OrgId", orgIdParam) | ||
sv.AddStructField("ClusterId", clusterIdParam) | ||
sv.AddStructField("MountNfsDatastorePrecheckIntent", mountNfsDatastorePrecheckIntentParam) | ||
inputDataValue, inputError := sv.GetStructValue() | ||
if inputError != nil { | ||
var emptyOutput vmwarecloudVmc_aws_providerModel.ActivityResponse | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(inputError) | ||
} | ||
|
||
methodResult := cIface.connector.GetApiProvider().Invoke("com.vmware.vmwarecloud.vmc_aws_provider.api.inventory.vmc_aws.clusters.cluster_idmount_precheck", "mount_precheck", inputDataValue, executionContext) | ||
var emptyOutput vmwarecloudVmc_aws_providerModel.ActivityResponse | ||
if methodResult.IsSuccess() { | ||
output, errorInOutput := typeConverter.ConvertToGolang(methodResult.Output(), ClusterIdmountPrecheckMountPrecheckOutputType()) | ||
if errorInOutput != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInOutput) | ||
} | ||
return output.(vmwarecloudVmc_aws_providerModel.ActivityResponse), nil | ||
} else { | ||
methodError, errorInError := typeConverter.ConvertToGolang(methodResult.Error(), cIface.GetErrorBindingType(methodResult.Error().Name())) | ||
if errorInError != nil { | ||
return emptyOutput, vapiBindings_.VAPIerrorsToError(errorInError) | ||
} | ||
return emptyOutput, methodError.(error) | ||
} | ||
} |
83 changes: 83 additions & 0 deletions
83
...mwarecloud/vmc_aws_provider/api/inventory/vmc_aws/clusters/ClusterIdmountPrecheckTypes.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,83 @@ | ||
// 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: ClusterIdmountPrecheck. | ||
// 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 clusters | ||
|
||
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_providerModel "github.com/vmware/vsphere-automation-sdk-go/services/vmwarecloud/vmc_aws_provider/model" | ||
"reflect" | ||
) | ||
|
||
func clusterIdmountPrecheckMountPrecheckInputType() vapiBindings_.StructType { | ||
fields := make(map[string]vapiBindings_.BindingType) | ||
fieldNameMap := make(map[string]string) | ||
fields["org_id"] = vapiBindings_.NewStringType() | ||
fields["cluster_id"] = vapiBindings_.NewStringType() | ||
fields["mount_nfs_datastore_precheck_intent"] = vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.MountNfsDatastorePrecheckIntentBindingType) | ||
fieldNameMap["org_id"] = "OrgId" | ||
fieldNameMap["cluster_id"] = "ClusterId" | ||
fieldNameMap["mount_nfs_datastore_precheck_intent"] = "MountNfsDatastorePrecheckIntent" | ||
var validators = []vapiBindings_.Validator{} | ||
return vapiBindings_.NewStructType("operation-input", fields, reflect.TypeOf(vapiData_.StructValue{}), fieldNameMap, validators) | ||
} | ||
|
||
func ClusterIdmountPrecheckMountPrecheckOutputType() vapiBindings_.BindingType { | ||
return vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.ActivityResponseBindingType) | ||
} | ||
|
||
func clusterIdmountPrecheckMountPrecheckRestMetadata() 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["org_id"] = vapiBindings_.NewStringType() | ||
fields["cluster_id"] = vapiBindings_.NewStringType() | ||
fields["mount_nfs_datastore_precheck_intent"] = vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.MountNfsDatastorePrecheckIntentBindingType) | ||
fieldNameMap["org_id"] = "OrgId" | ||
fieldNameMap["cluster_id"] = "ClusterId" | ||
fieldNameMap["mount_nfs_datastore_precheck_intent"] = "MountNfsDatastorePrecheckIntent" | ||
paramsTypeMap["cluster_id"] = vapiBindings_.NewStringType() | ||
paramsTypeMap["mount_nfs_datastore_precheck_intent"] = vapiBindings_.NewReferenceType(vmwarecloudVmc_aws_providerModel.MountNfsDatastorePrecheckIntentBindingType) | ||
paramsTypeMap["org_id"] = vapiBindings_.NewStringType() | ||
paramsTypeMap["orgId"] = vapiBindings_.NewStringType() | ||
paramsTypeMap["clusterId"] = vapiBindings_.NewStringType() | ||
pathParams["cluster_id"] = "clusterId" | ||
pathParams["org_id"] = "orgId" | ||
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, | ||
"", | ||
"mount_nfs_datastore_precheck_intent", | ||
"POST", | ||
"/api/inventory/{orgId}/vmc-aws/clusters/{clusterId}:mount-precheck", | ||
"application/json", | ||
resultHeaders, | ||
200, | ||
"", | ||
errorHeaders, | ||
map[string]int{"com.vmware.vapi.std.errors.invalid_request": 400, "com.vmware.vapi.std.errors.unauthenticated": 401, "com.vmware.vapi.std.errors.unauthorized": 403, "com.vmware.vapi.std.errors.not_found": 404}) | ||
} |
Oops, something went wrong.