Documentation ¶
Index ¶
- func PossibleValuesForInventoryType() []string
- func PossibleValuesForOsType() []string
- func ValidateInventoryItemID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVCenterID(input interface{}, key string) (warnings []string, errors []error)
- type ClusterInventoryItem
- type CreateOperationResponse
- type DatastoreInventoryItem
- type DeleteOperationResponse
- type GetOperationResponse
- type HostInventoryItem
- type InventoryItem
- type InventoryItemDetails
- type InventoryItemId
- type InventoryItemOperationPredicate
- type InventoryItemProperties
- type InventoryItemsClient
- func (c InventoryItemsClient) Create(ctx context.Context, id InventoryItemId, input InventoryItem) (result CreateOperationResponse, err error)
- func (c InventoryItemsClient) Delete(ctx context.Context, id InventoryItemId) (result DeleteOperationResponse, err error)
- func (c InventoryItemsClient) Get(ctx context.Context, id InventoryItemId) (result GetOperationResponse, err error)
- func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) (result ListByVCenterOperationResponse, err error)
- func (c InventoryItemsClient) ListByVCenterComplete(ctx context.Context, id VCenterId) (ListByVCenterCompleteResult, error)
- func (c InventoryItemsClient) ListByVCenterCompleteMatchingPredicate(ctx context.Context, id VCenterId, predicate InventoryItemOperationPredicate) (result ListByVCenterCompleteResult, err error)
- type InventoryType
- type ListByVCenterCompleteResult
- type ListByVCenterOperationResponse
- type OsType
- type RawInventoryItemPropertiesImpl
- type ResourcePoolInventoryItem
- type VCenterId
- type VirtualMachineInventoryItem
- type VirtualMachineTemplateInventoryItem
- type VirtualNetworkInventoryItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForInventoryType ¶
func PossibleValuesForInventoryType() []string
func PossibleValuesForOsType ¶
func PossibleValuesForOsType() []string
func ValidateInventoryItemID ¶
ValidateInventoryItemID checks that 'input' can be parsed as a Inventory Item ID
func ValidateVCenterID ¶
ValidateVCenterID checks that 'input' can be parsed as a V Center ID
Types ¶
type ClusterInventoryItem ¶
type ClusterInventoryItem struct { // Fields inherited from InventoryItemProperties ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (ClusterInventoryItem) MarshalJSON ¶
func (s ClusterInventoryItem) MarshalJSON() ([]byte, error)
type CreateOperationResponse ¶
type CreateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *InventoryItem }
type DatastoreInventoryItem ¶
type DatastoreInventoryItem struct { CapacityGB *int64 `json:"capacityGB,omitempty"` FreeSpaceGB *int64 `json:"freeSpaceGB,omitempty"` // Fields inherited from InventoryItemProperties ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (DatastoreInventoryItem) MarshalJSON ¶
func (s DatastoreInventoryItem) MarshalJSON() ([]byte, error)
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *InventoryItem }
type HostInventoryItem ¶
type HostInventoryItem struct { Parent *InventoryItemDetails `json:"parent,omitempty"` // Fields inherited from InventoryItemProperties ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (HostInventoryItem) MarshalJSON ¶
func (s HostInventoryItem) MarshalJSON() ([]byte, error)
type InventoryItem ¶
type InventoryItem struct { Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Name *string `json:"name,omitempty"` Properties InventoryItemProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
func (*InventoryItem) UnmarshalJSON ¶
func (s *InventoryItem) UnmarshalJSON(bytes []byte) error
type InventoryItemDetails ¶
type InventoryItemId ¶
type InventoryItemId struct { SubscriptionId string ResourceGroupName string VCenterName string InventoryItemName string }
InventoryItemId is a struct representing the Resource ID for a Inventory Item
func NewInventoryItemID ¶
func NewInventoryItemID(subscriptionId string, resourceGroupName string, vCenterName string, inventoryItemName string) InventoryItemId
NewInventoryItemID returns a new InventoryItemId struct
func ParseInventoryItemID ¶
func ParseInventoryItemID(input string) (*InventoryItemId, error)
ParseInventoryItemID parses 'input' into a InventoryItemId
func ParseInventoryItemIDInsensitively ¶
func ParseInventoryItemIDInsensitively(input string) (*InventoryItemId, error)
ParseInventoryItemIDInsensitively parses 'input' case-insensitively into a InventoryItemId note: this method should only be used for API response data and not user input
func (InventoryItemId) ID ¶
func (id InventoryItemId) ID() string
ID returns the formatted Inventory Item ID
func (InventoryItemId) Segments ¶
func (id InventoryItemId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Inventory Item ID
func (InventoryItemId) String ¶
func (id InventoryItemId) String() string
String returns a human-readable description of this Inventory Item ID
type InventoryItemOperationPredicate ¶
func (InventoryItemOperationPredicate) Matches ¶
func (p InventoryItemOperationPredicate) Matches(input InventoryItem) bool
type InventoryItemProperties ¶
type InventoryItemProperties interface { }
type InventoryItemsClient ¶
type InventoryItemsClient struct {
Client *resourcemanager.Client
}
func NewInventoryItemsClientWithBaseURI ¶
func NewInventoryItemsClientWithBaseURI(sdkApi sdkEnv.Api) (*InventoryItemsClient, error)
func (InventoryItemsClient) Create ¶
func (c InventoryItemsClient) Create(ctx context.Context, id InventoryItemId, input InventoryItem) (result CreateOperationResponse, err error)
Create ...
func (InventoryItemsClient) Delete ¶
func (c InventoryItemsClient) Delete(ctx context.Context, id InventoryItemId) (result DeleteOperationResponse, err error)
Delete ...
func (InventoryItemsClient) Get ¶
func (c InventoryItemsClient) Get(ctx context.Context, id InventoryItemId) (result GetOperationResponse, err error)
Get ...
func (InventoryItemsClient) ListByVCenter ¶
func (c InventoryItemsClient) ListByVCenter(ctx context.Context, id VCenterId) (result ListByVCenterOperationResponse, err error)
ListByVCenter ...
func (InventoryItemsClient) ListByVCenterComplete ¶
func (c InventoryItemsClient) ListByVCenterComplete(ctx context.Context, id VCenterId) (ListByVCenterCompleteResult, error)
ListByVCenterComplete retrieves all the results into a single object
func (InventoryItemsClient) ListByVCenterCompleteMatchingPredicate ¶
func (c InventoryItemsClient) ListByVCenterCompleteMatchingPredicate(ctx context.Context, id VCenterId, predicate InventoryItemOperationPredicate) (result ListByVCenterCompleteResult, err error)
ListByVCenterCompleteMatchingPredicate retrieves all the results and then applies the predicate
type InventoryType ¶
type InventoryType string
const ( InventoryTypeCluster InventoryType = "Cluster" InventoryTypeDatastore InventoryType = "Datastore" InventoryTypeHost InventoryType = "Host" InventoryTypeResourcePool InventoryType = "ResourcePool" InventoryTypeVirtualMachine InventoryType = "VirtualMachine" InventoryTypeVirtualMachineTemplate InventoryType = "VirtualMachineTemplate" InventoryTypeVirtualNetwork InventoryType = "VirtualNetwork" )
func (*InventoryType) UnmarshalJSON ¶ added in v0.20230406.1124617
func (s *InventoryType) UnmarshalJSON(bytes []byte) error
type ListByVCenterCompleteResult ¶
type ListByVCenterCompleteResult struct {
Items []InventoryItem
}
type ListByVCenterOperationResponse ¶
type ListByVCenterOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]InventoryItem }
type RawInventoryItemPropertiesImpl ¶ added in v0.20230807.1063129
RawInventoryItemPropertiesImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type ResourcePoolInventoryItem ¶
type ResourcePoolInventoryItem struct { Parent *InventoryItemDetails `json:"parent,omitempty"` // Fields inherited from InventoryItemProperties ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (ResourcePoolInventoryItem) MarshalJSON ¶
func (s ResourcePoolInventoryItem) MarshalJSON() ([]byte, error)
type VCenterId ¶
VCenterId is a struct representing the Resource ID for a V Center
func NewVCenterID ¶
NewVCenterID returns a new VCenterId struct
func ParseVCenterID ¶
ParseVCenterID parses 'input' into a VCenterId
func ParseVCenterIDInsensitively ¶
ParseVCenterIDInsensitively parses 'input' case-insensitively into a VCenterId note: this method should only be used for API response data and not user input
func (VCenterId) Segments ¶
func (id VCenterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this V Center ID
type VirtualMachineInventoryItem ¶
type VirtualMachineInventoryItem struct { FolderPath *string `json:"folderPath,omitempty"` Host *InventoryItemDetails `json:"host,omitempty"` IPAddresses *[]string `json:"ipAddresses,omitempty"` InstanceUuid *string `json:"instanceUuid,omitempty"` OsName *string `json:"osName,omitempty"` OsType *OsType `json:"osType,omitempty"` PowerState *string `json:"powerState,omitempty"` ResourcePool *InventoryItemDetails `json:"resourcePool,omitempty"` SmbiosUuid *string `json:"smbiosUuid,omitempty"` ToolsRunningStatus *string `json:"toolsRunningStatus,omitempty"` ToolsVersion *string `json:"toolsVersion,omitempty"` ToolsVersionStatus *string `json:"toolsVersionStatus,omitempty"` // Fields inherited from InventoryItemProperties ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (VirtualMachineInventoryItem) MarshalJSON ¶
func (s VirtualMachineInventoryItem) MarshalJSON() ([]byte, error)
type VirtualMachineTemplateInventoryItem ¶
type VirtualMachineTemplateInventoryItem struct { FolderPath *string `json:"folderPath,omitempty"` MemorySizeMB *int64 `json:"memorySizeMB,omitempty"` NumCPUs *int64 `json:"numCPUs,omitempty"` NumCoresPerSocket *int64 `json:"numCoresPerSocket,omitempty"` OsName *string `json:"osName,omitempty"` OsType *OsType `json:"osType,omitempty"` // Fields inherited from InventoryItemProperties ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (VirtualMachineTemplateInventoryItem) MarshalJSON ¶
func (s VirtualMachineTemplateInventoryItem) MarshalJSON() ([]byte, error)
type VirtualNetworkInventoryItem ¶
type VirtualNetworkInventoryItem struct { // Fields inherited from InventoryItemProperties ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (VirtualNetworkInventoryItem) MarshalJSON ¶
func (s VirtualNetworkInventoryItem) MarshalJSON() ([]byte, error)
Source Files ¶
- client.go
- constants.go
- id_inventoryitem.go
- id_vcenter.go
- method_create.go
- method_delete.go
- method_get.go
- method_listbyvcenter.go
- model_clusterinventoryitem.go
- model_datastoreinventoryitem.go
- model_hostinventoryitem.go
- model_inventoryitem.go
- model_inventoryitemdetails.go
- model_inventoryitemproperties.go
- model_resourcepoolinventoryitem.go
- model_virtualmachineinventoryitem.go
- model_virtualmachinetemplateinventoryitem.go
- model_virtualnetworkinventoryitem.go
- predicates.go
- version.go