Skip to content

Commit

Permalink
Merge pull request #3232 from akutz/feature/data-struct-comments
Browse files Browse the repository at this point in the history
  • Loading branch information
akutz authored Sep 18, 2023
2 parents cd6389f + ccd07a0 commit a83ec3f
Show file tree
Hide file tree
Showing 31 changed files with 55,484 additions and 10,787 deletions.
42 changes: 1 addition & 41 deletions eam/methods/methods.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2021 VMware, Inc. All Rights Reserved.
Copyright (c) 2021-2023 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -183,26 +183,6 @@ func DestroyAgency(ctx context.Context, r soap.RoundTripper, req *types.DestroyA
return resBody.Res, nil
}

type GetMaintenanceModePolicyBody struct {
Req *types.GetMaintenanceModePolicy `xml:"urn:eam GetMaintenanceModePolicy,omitempty"`
Res *types.GetMaintenanceModePolicyResponse `xml:"urn:eam GetMaintenanceModePolicyResponse,omitempty"`
Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"`
}

func (b *GetMaintenanceModePolicyBody) Fault() *soap.Fault { return b.Fault_ }

func GetMaintenanceModePolicy(ctx context.Context, r soap.RoundTripper, req *types.GetMaintenanceModePolicy) (*types.GetMaintenanceModePolicyResponse, error) {
var reqBody, resBody GetMaintenanceModePolicyBody

reqBody.Req = req

if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
return nil, err
}

return resBody.Res, nil
}

type MarkAsAvailableBody struct {
Req *types.MarkAsAvailable `xml:"urn:eam MarkAsAvailable,omitempty"`
Res *types.MarkAsAvailableResponse `xml:"urn:eam MarkAsAvailableResponse,omitempty"`
Expand Down Expand Up @@ -403,26 +383,6 @@ func ScanForUnknownAgentVm(ctx context.Context, r soap.RoundTripper, req *types.
return resBody.Res, nil
}

type SetMaintenanceModePolicyBody struct {
Req *types.SetMaintenanceModePolicy `xml:"urn:eam SetMaintenanceModePolicy,omitempty"`
Res *types.SetMaintenanceModePolicyResponse `xml:"urn:eam SetMaintenanceModePolicyResponse,omitempty"`
Fault_ *soap.Fault `xml:"http://schemas.xmlsoap.org/soap/envelope/ Fault,omitempty"`
}

func (b *SetMaintenanceModePolicyBody) Fault() *soap.Fault { return b.Fault_ }

func SetMaintenanceModePolicy(ctx context.Context, r soap.RoundTripper, req *types.SetMaintenanceModePolicy) (*types.SetMaintenanceModePolicyResponse, error) {
var reqBody, resBody SetMaintenanceModePolicyBody

reqBody.Req = req

if err := r.RoundTrip(ctx, &reqBody, &resBody); err != nil {
return nil, err
}

return resBody.Res, nil
}

type UninstallBody struct {
Req *types.Uninstall `xml:"urn:eam Uninstall,omitempty"`
Res *types.UninstallResponse `xml:"urn:eam UninstallResponse,omitempty"`
Expand Down
80 changes: 79 additions & 1 deletion eam/types/enum.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2021 VMware, Inc. All Rights Reserved.
Copyright (c) 2021-2023 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -102,3 +102,81 @@ const (
func init() {
types.Add("eam:EsxAgentManagerMaintenanceModePolicy", reflect.TypeOf((*EsxAgentManagerMaintenanceModePolicy)(nil)).Elem())
}

type HooksExternalProcessingResult string

const (
HooksExternalProcessingResultSUCCESS = HooksExternalProcessingResult("SUCCESS")
HooksExternalProcessingResultUNKNOWN_ERROR = HooksExternalProcessingResult("UNKNOWN_ERROR")
HooksExternalProcessingResultVM_CONFIG_ERROR = HooksExternalProcessingResult("VM_CONFIG_ERROR")
)

func init() {
types.Add("eam:HooksExternalProcessingResult", reflect.TypeOf((*HooksExternalProcessingResult)(nil)).Elem())
}

type HooksHookType string

const (
HooksHookTypePOST_PROVISIONING = HooksHookType("POST_PROVISIONING")
HooksHookTypePRE_POWER_ON = HooksHookType("PRE_POWER_ON")
HooksHookTypePOST_POWER_ON = HooksHookType("POST_POWER_ON")
)

func init() {
types.Add("eam:HooksHookType", reflect.TypeOf((*HooksHookType)(nil)).Elem())
}

type SolutionsInvalidReason string

const (
SolutionsInvalidReasonINVALID_OVF_DESCRIPTOR = SolutionsInvalidReason("INVALID_OVF_DESCRIPTOR")
SolutionsInvalidReasonINACCESSBLE_VM_SOURCE = SolutionsInvalidReason("INACCESSBLE_VM_SOURCE")
SolutionsInvalidReasonINVALID_NETWORKS = SolutionsInvalidReason("INVALID_NETWORKS")
SolutionsInvalidReasonINVALID_DATASTORES = SolutionsInvalidReason("INVALID_DATASTORES")
SolutionsInvalidReasonINVALID_RESOURCE_POOL = SolutionsInvalidReason("INVALID_RESOURCE_POOL")
SolutionsInvalidReasonINVALID_FOLDER = SolutionsInvalidReason("INVALID_FOLDER")
SolutionsInvalidReasonINVALID_PROPERTIES = SolutionsInvalidReason("INVALID_PROPERTIES")
SolutionsInvalidReasonINVALID_TRANSITION = SolutionsInvalidReason("INVALID_TRANSITION")
)

func init() {
types.Add("eam:SolutionsInvalidReason", reflect.TypeOf((*SolutionsInvalidReason)(nil)).Elem())
}

type SolutionsNonComplianceReason string

const (
SolutionsNonComplianceReasonWORKING = SolutionsNonComplianceReason("WORKING")
SolutionsNonComplianceReasonISSUE = SolutionsNonComplianceReason("ISSUE")
SolutionsNonComplianceReasonIN_HOOK = SolutionsNonComplianceReason("IN_HOOK")
SolutionsNonComplianceReasonOBSOLETE_SPEC = SolutionsNonComplianceReason("OBSOLETE_SPEC")
SolutionsNonComplianceReasonNO_SPEC = SolutionsNonComplianceReason("NO_SPEC")
)

func init() {
types.Add("eam:SolutionsNonComplianceReason", reflect.TypeOf((*SolutionsNonComplianceReason)(nil)).Elem())
}

type SolutionsVMDeploymentOptimization string

const (
SolutionsVMDeploymentOptimizationALL_CLONES = SolutionsVMDeploymentOptimization("ALL_CLONES")
SolutionsVMDeploymentOptimizationFULL_CLONES_ONLY = SolutionsVMDeploymentOptimization("FULL_CLONES_ONLY")
SolutionsVMDeploymentOptimizationNO_CLONES = SolutionsVMDeploymentOptimization("NO_CLONES")
)

func init() {
types.Add("eam:SolutionsVMDeploymentOptimization", reflect.TypeOf((*SolutionsVMDeploymentOptimization)(nil)).Elem())
}

type SolutionsVMDiskProvisioning string

const (
SolutionsVMDiskProvisioningTHIN = SolutionsVMDiskProvisioning("THIN")
SolutionsVMDiskProvisioningTHICK = SolutionsVMDiskProvisioning("THICK")
)

func init() {
types.Add("eam:SolutionsVMDiskProvisioning", reflect.TypeOf((*SolutionsVMDiskProvisioning)(nil)).Elem())
}
46 changes: 45 additions & 1 deletion eam/types/if.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2021 VMware, Inc. All Rights Reserved.
Copyright (c) 2021-2023 VMware, Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -236,6 +236,50 @@ func init() {
types.Add("BasePersonalityAgentPMIssue", reflect.TypeOf((*PersonalityAgentPMIssue)(nil)).Elem())
}

func (b *SolutionsHookAcknowledgeConfig) GetSolutionsHookAcknowledgeConfig() *SolutionsHookAcknowledgeConfig {
return b
}

type BaseSolutionsHookAcknowledgeConfig interface {
GetSolutionsHookAcknowledgeConfig() *SolutionsHookAcknowledgeConfig
}

func init() {
types.Add("BaseSolutionsHookAcknowledgeConfig", reflect.TypeOf((*SolutionsHookAcknowledgeConfig)(nil)).Elem())
}

func (b *SolutionsStoragePolicy) GetSolutionsStoragePolicy() *SolutionsStoragePolicy { return b }

type BaseSolutionsStoragePolicy interface {
GetSolutionsStoragePolicy() *SolutionsStoragePolicy
}

func init() {
types.Add("BaseSolutionsStoragePolicy", reflect.TypeOf((*SolutionsStoragePolicy)(nil)).Elem())
}

func (b *SolutionsTypeSpecificSolutionConfig) GetSolutionsTypeSpecificSolutionConfig() *SolutionsTypeSpecificSolutionConfig {
return b
}

type BaseSolutionsTypeSpecificSolutionConfig interface {
GetSolutionsTypeSpecificSolutionConfig() *SolutionsTypeSpecificSolutionConfig
}

func init() {
types.Add("BaseSolutionsTypeSpecificSolutionConfig", reflect.TypeOf((*SolutionsTypeSpecificSolutionConfig)(nil)).Elem())
}

func (b *SolutionsVMSource) GetSolutionsVMSource() *SolutionsVMSource { return b }

type BaseSolutionsVMSource interface {
GetSolutionsVMSource() *SolutionsVMSource
}

func init() {
types.Add("BaseSolutionsVMSource", reflect.TypeOf((*SolutionsVMSource)(nil)).Elem())
}

func (b *VibIssue) GetVibIssue() *VibIssue { return b }

type BaseVibIssue interface {
Expand Down
Loading

0 comments on commit a83ec3f

Please sign in to comment.