Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*Client, error)
NewClient creates a new instance of Client with the specified values. subscriptionID - The Microsoft Azure subscription ID. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*Client) NewListChildPager ¶
func (client *Client) NewListChildPager(resourceID, resourceType, apiVersion string) *runtime.Pager[ClientListResponse]
NewListChildPager - Get all the child resources under a given resource. If the operation fails it returns an *azcore.ResponseError type.
type ClientListResponse ¶
type ClientListResponse struct {
ResourceListResult
}
type ExtendedLocation ¶
type ExtendedLocation struct { // The extended location name. Name *string `json:"name,omitempty"` // The extended location type. Type *ExtendedLocationType `json:"type,omitempty"` }
ExtendedLocation - Resource extended location.
type ExtendedLocationType ¶
type ExtendedLocationType string
ExtendedLocationType - The extended location type.
const (
ExtendedLocationTypeEdgeZone ExtendedLocationType = "EdgeZone"
)
func PossibleExtendedLocationTypeValues ¶
func PossibleExtendedLocationTypeValues() []ExtendedLocationType
PossibleExtendedLocationTypeValues returns the possible values for the ExtendedLocationType const type.
type GenericResourceExpanded ¶
type GenericResourceExpanded struct { // Resource extended location. ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` // The identity of the resource. Identity *Identity `json:"identity,omitempty"` // The kind of the resource. Kind *string `json:"kind,omitempty"` // Resource location Location *string `json:"location,omitempty"` // ID of the resource that manages this resource. ManagedBy *string `json:"managedBy,omitempty"` // The plan of the resource. Plan *Plan `json:"plan,omitempty"` // The resource properties. Properties interface{} `json:"properties,omitempty"` // The SKU of the resource. SKU *SKU `json:"sku,omitempty"` // Resource tags Tags map[string]*string `json:"tags,omitempty"` // READ-ONLY; The changed time of the resource. This is only present if requested via the $expand query parameter. ChangedTime *time.Time `json:"changedTime,omitempty" azure:"ro"` // READ-ONLY; The created time of the resource. This is only present if requested via the $expand query parameter. CreatedTime *time.Time `json:"createdTime,omitempty" azure:"ro"` // READ-ONLY; Resource ID ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; Resource name Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The provisioning state of the resource. This is only present if requested via the $expand query parameter. ProvisioningState *string `json:"provisioningState,omitempty" azure:"ro"` // READ-ONLY; Resource type Type *string `json:"type,omitempty" azure:"ro"` }
GenericResourceExpanded - Resource information.
type Identity ¶
type Identity struct { // The identity type. Type *ResourceIdentityType `json:"type,omitempty"` // The list of user identities associated with the resource. The user identity dictionary key references will be ARM resource // ids in the form: // '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'. UserAssignedIdentities map[string]*IdentityUserAssignedIdentitiesValue `json:"userAssignedIdentities,omitempty"` // READ-ONLY; The principal ID of resource identity. PrincipalID *string `json:"principalId,omitempty" azure:"ro"` // READ-ONLY; The tenant ID of resource. TenantID *string `json:"tenantId,omitempty" azure:"ro"` }
Identity for the resource.
type Plan ¶
type Plan struct { // The plan ID. Name *string `json:"name,omitempty"` // The offer ID. Product *string `json:"product,omitempty"` // The promotion code. PromotionCode *string `json:"promotionCode,omitempty"` // The publisher ID. Publisher *string `json:"publisher,omitempty"` // The plan's version. Version *string `json:"version,omitempty"` }
Plan for the resource.
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType - The identity type.
const ( ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned" ResourceIdentityTypeNone ResourceIdentityType = "None" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
type ResourceListResult ¶
type ResourceListResult struct { // An array of resources. Value []*GenericResourceExpanded `json:"value,omitempty"` // READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ResourceListResult - List of resource groups.
type SKU ¶
type SKU struct { // The SKU capacity. Capacity *int32 `json:"capacity,omitempty"` // The SKU family. Family *string `json:"family,omitempty"` // The SKU model. Model *string `json:"model,omitempty"` // The SKU name. Name *string `json:"name,omitempty"` // The SKU size. Size *string `json:"size,omitempty"` // The SKU tier. Tier *string `json:"tier,omitempty"` }
SKU for the resource.