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 BaseInventoryItemPropertiesImpl
- 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 ListByVCenterCustomPager
- 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 BaseInventoryItemPropertiesImpl ¶ added in v0.20240920.1135249
type BaseInventoryItemPropertiesImpl struct { InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (BaseInventoryItemPropertiesImpl) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s BaseInventoryItemPropertiesImpl) InventoryItemProperties() BaseInventoryItemPropertiesImpl
type ClusterInventoryItem ¶
type ClusterInventoryItem struct { InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (ClusterInventoryItem) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s ClusterInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl
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"` InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (DatastoreInventoryItem) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s DatastoreInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl
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"` InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (HostInventoryItem) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s HostInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl
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) FromParseResult ¶
func (id *InventoryItemId) FromParseResult(input resourceids.ParseResult) error
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 {
InventoryItemProperties() BaseInventoryItemPropertiesImpl
}
func UnmarshalInventoryItemPropertiesImplementation ¶ added in v0.20240920.1135249
func UnmarshalInventoryItemPropertiesImplementation(input []byte) (InventoryItemProperties, error)
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 ¶
func (s *InventoryType) UnmarshalJSON(bytes []byte) error
type ListByVCenterCompleteResult ¶
type ListByVCenterCompleteResult struct { LatestHttpResponse *http.Response Items []InventoryItem }
type ListByVCenterCustomPager ¶ added in v0.20240628.1153531
func (*ListByVCenterCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByVCenterCustomPager) NextPageLink() *odata.Link
type ListByVCenterOperationResponse ¶
type ListByVCenterOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]InventoryItem }
type RawInventoryItemPropertiesImpl ¶
type RawInventoryItemPropertiesImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
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).
func (RawInventoryItemPropertiesImpl) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s RawInventoryItemPropertiesImpl) InventoryItemProperties() BaseInventoryItemPropertiesImpl
type ResourcePoolInventoryItem ¶
type ResourcePoolInventoryItem struct { Parent *InventoryItemDetails `json:"parent,omitempty"` InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (ResourcePoolInventoryItem) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s ResourcePoolInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl
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) FromParseResult ¶
func (id *VCenterId) FromParseResult(input resourceids.ParseResult) error
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"` InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (VirtualMachineInventoryItem) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s VirtualMachineInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl
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"` InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (VirtualMachineTemplateInventoryItem) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s VirtualMachineTemplateInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl
func (VirtualMachineTemplateInventoryItem) MarshalJSON ¶
func (s VirtualMachineTemplateInventoryItem) MarshalJSON() ([]byte, error)
type VirtualNetworkInventoryItem ¶
type VirtualNetworkInventoryItem struct { InventoryType InventoryType `json:"inventoryType"` ManagedResourceId *string `json:"managedResourceId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` }
func (VirtualNetworkInventoryItem) InventoryItemProperties ¶ added in v0.20240920.1135249
func (s VirtualNetworkInventoryItem) InventoryItemProperties() BaseInventoryItemPropertiesImpl
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