Skip to content

Commit

Permalink
Updated client bindings for services/vmc/v0.14.0. Signed-off-by: sdk …
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk team committed Jan 2, 2024
1 parent a429b26 commit 8843b77
Show file tree
Hide file tree
Showing 17 changed files with 476 additions and 300 deletions.
2 changes: 1 addition & 1 deletion services/vmc/draas/DraasPackageTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/ReplicaDiskCollectionsClient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/ReplicaDiskCollectionsTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
12 changes: 5 additions & 7 deletions services/vmc/draas/SiteRecoveryClient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand All @@ -24,15 +24,14 @@ type SiteRecoveryClient interface {
//
// @param orgParam Organization identifier (required)
// @param sddcParam sddc identifier (required)
// @param forceParam If = 'true', will deactivate site recovery forcefully. (optional)
// @param deactivateHcxParam If = 'true', will deactivate HCX. (optional)
// @param deleteConfigInternalParam Customization, for example if deactivate site recovery forcefully and the CSSD/CSCM ticket number and the confirmation code. (optional)
// @return com.vmware.vmc.draas.model.Task
//
// @throws Unauthenticated Unauthorized
// @throws InvalidRequest Invalid action or bad argument
// @throws Unauthorized Forbidden
// @throws NotFound Cannot find site recovery configuration for sddc identifier
Delete(orgParam string, sddcParam string, forceParam *bool, deactivateHcxParam *bool) (vmcDraasModel.Task, error)
Delete(orgParam string, sddcParam string, deleteConfigInternalParam *vmcDraasModel.DeleteConfigInternal) (vmcDraasModel.Task, error)

// Query site recovery configuration for the specified sddc
//
Expand Down Expand Up @@ -86,7 +85,7 @@ func (sIface *siteRecoveryClient) GetErrorBindingType(errorName string) vapiBind
return vapiStdErrors_.ERROR_BINDINGS_MAP[errorName]
}

func (sIface *siteRecoveryClient) Delete(orgParam string, sddcParam string, forceParam *bool, deactivateHcxParam *bool) (vmcDraasModel.Task, error) {
func (sIface *siteRecoveryClient) Delete(orgParam string, sddcParam string, deleteConfigInternalParam *vmcDraasModel.DeleteConfigInternal) (vmcDraasModel.Task, error) {
typeConverter := sIface.connector.TypeConverter()
executionContext := sIface.connector.NewExecutionContext()
operationRestMetaData := siteRecoveryDeleteRestMetadata()
Expand All @@ -96,8 +95,7 @@ func (sIface *siteRecoveryClient) Delete(orgParam string, sddcParam string, forc
sv := vapiBindings_.NewStructValueBuilder(siteRecoveryDeleteInputType(), typeConverter)
sv.AddStructField("Org", orgParam)
sv.AddStructField("Sddc", sddcParam)
sv.AddStructField("Force", forceParam)
sv.AddStructField("DeactivateHcx", deactivateHcxParam)
sv.AddStructField("DeleteConfigInternal", deleteConfigInternalParam)
inputDataValue, inputError := sv.GetStructValue()
if inputError != nil {
var emptyOutput vmcDraasModel.Task
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/SiteRecoverySrmNodesClient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/SiteRecoverySrmNodesTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
21 changes: 7 additions & 14 deletions services/vmc/draas/SiteRecoveryTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand All @@ -23,12 +23,10 @@ func siteRecoveryDeleteInputType() vapiBindings_.StructType {
fieldNameMap := make(map[string]string)
fields["org"] = vapiBindings_.NewStringType()
fields["sddc"] = vapiBindings_.NewStringType()
fields["force"] = vapiBindings_.NewOptionalType(vapiBindings_.NewBooleanType())
fields["deactivate_hcx"] = vapiBindings_.NewOptionalType(vapiBindings_.NewBooleanType())
fields["delete_config_internal"] = vapiBindings_.NewOptionalType(vapiBindings_.NewReferenceType(vmcDraasModel.DeleteConfigInternalBindingType))
fieldNameMap["org"] = "Org"
fieldNameMap["sddc"] = "Sddc"
fieldNameMap["force"] = "Force"
fieldNameMap["deactivate_hcx"] = "DeactivateHcx"
fieldNameMap["delete_config_internal"] = "DeleteConfigInternal"
var validators = []vapiBindings_.Validator{}
return vapiBindings_.NewStructType("operation-input", fields, reflect.TypeOf(vapiData_.StructValue{}), fieldNameMap, validators)
}
Expand All @@ -48,22 +46,17 @@ func siteRecoveryDeleteRestMetadata() vapiProtocol_.OperationRestMetadata {
bodyFieldsMap := map[string]string{}
fields["org"] = vapiBindings_.NewStringType()
fields["sddc"] = vapiBindings_.NewStringType()
fields["force"] = vapiBindings_.NewOptionalType(vapiBindings_.NewBooleanType())
fields["deactivate_hcx"] = vapiBindings_.NewOptionalType(vapiBindings_.NewBooleanType())
fields["delete_config_internal"] = vapiBindings_.NewOptionalType(vapiBindings_.NewReferenceType(vmcDraasModel.DeleteConfigInternalBindingType))
fieldNameMap["org"] = "Org"
fieldNameMap["sddc"] = "Sddc"
fieldNameMap["force"] = "Force"
fieldNameMap["deactivate_hcx"] = "DeactivateHcx"
paramsTypeMap["deactivate_hcx"] = vapiBindings_.NewOptionalType(vapiBindings_.NewBooleanType())
fieldNameMap["delete_config_internal"] = "DeleteConfigInternal"
paramsTypeMap["org"] = vapiBindings_.NewStringType()
paramsTypeMap["sddc"] = vapiBindings_.NewStringType()
paramsTypeMap["force"] = vapiBindings_.NewOptionalType(vapiBindings_.NewBooleanType())
paramsTypeMap["delete_config_internal"] = vapiBindings_.NewOptionalType(vapiBindings_.NewReferenceType(vmcDraasModel.DeleteConfigInternalBindingType))
paramsTypeMap["org"] = vapiBindings_.NewStringType()
paramsTypeMap["sddc"] = vapiBindings_.NewStringType()
pathParams["org"] = "org"
pathParams["sddc"] = "sddc"
queryParams["deactivate_hcx"] = "deactivate_hcx"
queryParams["force"] = "force"
resultHeaders := map[string]string{}
errorHeaders := map[string]map[string]string{}
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"] = make(map[string]string)
Expand All @@ -78,7 +71,7 @@ func siteRecoveryDeleteRestMetadata() vapiProtocol_.OperationRestMetadata {
dispatchHeaderParams,
bodyFieldsMap,
"",
"",
"delete_config_internal",
"DELETE",
"/vmc/draas/api/orgs/{org}/sddcs/{sddc}/site-recovery",
"",
Expand Down
8 changes: 3 additions & 5 deletions services/vmc/draas/SiteRecoveryVersionsClient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand All @@ -24,14 +24,13 @@ type SiteRecoveryVersionsClient interface {
//
// @param orgParam Organization identifier (required)
// @param sddcParam sddc identifier (required)
// @param versionSourceParam Represents the source for getting the version from. (optional)
// @return com.vmware.vmc.draas.model.SiteRecoveryVersions
//
// @throws Unauthenticated Unauthorized
// @throws InvalidRequest Invalid action or bad argument
// @throws Unauthorized Forbidden
// @throws NotFound Cannot find site recovery versions for sddc identifier
Get(orgParam string, sddcParam string, versionSourceParam *string) (vmcDraasModel.SiteRecoveryVersions, error)
Get(orgParam string, sddcParam string) (vmcDraasModel.SiteRecoveryVersions, error)
}

type siteRecoveryVersionsClient struct {
Expand Down Expand Up @@ -59,7 +58,7 @@ func (sIface *siteRecoveryVersionsClient) GetErrorBindingType(errorName string)
return vapiStdErrors_.ERROR_BINDINGS_MAP[errorName]
}

func (sIface *siteRecoveryVersionsClient) Get(orgParam string, sddcParam string, versionSourceParam *string) (vmcDraasModel.SiteRecoveryVersions, error) {
func (sIface *siteRecoveryVersionsClient) Get(orgParam string, sddcParam string) (vmcDraasModel.SiteRecoveryVersions, error) {
typeConverter := sIface.connector.TypeConverter()
executionContext := sIface.connector.NewExecutionContext()
operationRestMetaData := siteRecoveryVersionsGetRestMetadata()
Expand All @@ -69,7 +68,6 @@ func (sIface *siteRecoveryVersionsClient) Get(orgParam string, sddcParam string,
sv := vapiBindings_.NewStructValueBuilder(siteRecoveryVersionsGetInputType(), typeConverter)
sv.AddStructField("Org", orgParam)
sv.AddStructField("Sddc", sddcParam)
sv.AddStructField("VersionSource", versionSourceParam)
inputDataValue, inputError := sv.GetStructValue()
if inputError != nil {
var emptyOutput vmcDraasModel.SiteRecoveryVersions
Expand Down
14 changes: 1 addition & 13 deletions services/vmc/draas/SiteRecoveryVersionsTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand All @@ -18,21 +18,13 @@ import (
"reflect"
)

// Possible value for ``versionSource`` of method SiteRecoveryVersions#get.
const SiteRecoveryVersions_GET_VERSION_SOURCE_VAMICLI = "vamicli"

// Possible value for ``versionSource`` of method SiteRecoveryVersions#get.
const SiteRecoveryVersions_GET_VERSION_SOURCE_LS = "ls"

func siteRecoveryVersionsGetInputType() vapiBindings_.StructType {
fields := make(map[string]vapiBindings_.BindingType)
fieldNameMap := make(map[string]string)
fields["org"] = vapiBindings_.NewStringType()
fields["sddc"] = vapiBindings_.NewStringType()
fields["version_source"] = vapiBindings_.NewOptionalType(vapiBindings_.NewStringType())
fieldNameMap["org"] = "Org"
fieldNameMap["sddc"] = "Sddc"
fieldNameMap["version_source"] = "VersionSource"
var validators = []vapiBindings_.Validator{}
return vapiBindings_.NewStructType("operation-input", fields, reflect.TypeOf(vapiData_.StructValue{}), fieldNameMap, validators)
}
Expand All @@ -52,18 +44,14 @@ func siteRecoveryVersionsGetRestMetadata() vapiProtocol_.OperationRestMetadata {
bodyFieldsMap := map[string]string{}
fields["org"] = vapiBindings_.NewStringType()
fields["sddc"] = vapiBindings_.NewStringType()
fields["version_source"] = vapiBindings_.NewOptionalType(vapiBindings_.NewStringType())
fieldNameMap["org"] = "Org"
fieldNameMap["sddc"] = "Sddc"
fieldNameMap["version_source"] = "VersionSource"
paramsTypeMap["version_source"] = vapiBindings_.NewOptionalType(vapiBindings_.NewStringType())
paramsTypeMap["org"] = vapiBindings_.NewStringType()
paramsTypeMap["sddc"] = vapiBindings_.NewStringType()
paramsTypeMap["org"] = vapiBindings_.NewStringType()
paramsTypeMap["sddc"] = vapiBindings_.NewStringType()
pathParams["org"] = "org"
pathParams["sddc"] = "sddc"
queryParams["version_source"] = "version_source"
resultHeaders := map[string]string{}
errorHeaders := map[string]map[string]string{}
errorHeaders["com.vmware.vapi.std.errors.unauthenticated"] = make(map[string]string)
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/TaskClient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/TaskTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/VrReplicationIssuesClient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/VrReplicationIssuesTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/VrSiteIssuesClient.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
2 changes: 1 addition & 1 deletion services/vmc/draas/VrSiteIssuesTypes.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright © 2019-2021 VMware, Inc. All Rights Reserved.
// Copyright © 2019-2023 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: BSD-2-Clause

// Auto generated code. DO NOT EDIT.
Expand Down
Loading

0 comments on commit 8843b77

Please sign in to comment.