Documentation ¶
Index ¶
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type ResourceLink
- type ResourceLinkFilter
- type ResourceLinkProperties
- type ResourceLinkResult
- type ResourceLinksClient
- func (client *ResourceLinksClient) CreateOrUpdate(ctx context.Context, linkID string, parameters ResourceLink, ...) (ResourceLinksClientCreateOrUpdateResponse, error)
- func (client *ResourceLinksClient) Delete(ctx context.Context, linkID string, options *ResourceLinksClientDeleteOptions) (ResourceLinksClientDeleteResponse, error)
- func (client *ResourceLinksClient) Get(ctx context.Context, linkID string, options *ResourceLinksClientGetOptions) (ResourceLinksClientGetResponse, error)
- func (client *ResourceLinksClient) NewListAtSourceScopePager(scope string, options *ResourceLinksClientListAtSourceScopeOptions) *runtime.Pager[ResourceLinksClientListAtSourceScopeResponse]
- func (client *ResourceLinksClient) NewListAtSubscriptionPager(options *ResourceLinksClientListAtSubscriptionOptions) *runtime.Pager[ResourceLinksClientListAtSubscriptionResponse]
- type ResourceLinksClientCreateOrUpdateOptions
- type ResourceLinksClientCreateOrUpdateResponse
- type ResourceLinksClientDeleteOptions
- type ResourceLinksClientDeleteResponse
- type ResourceLinksClientGetOptions
- type ResourceLinksClientGetResponse
- type ResourceLinksClientListAtSourceScopeOptions
- type ResourceLinksClientListAtSourceScopeResponse
- type ResourceLinksClientListAtSubscriptionOptions
- type ResourceLinksClientListAtSubscriptionResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operation ¶
type Operation struct { // The object that represents the operation. Display *OperationDisplay `json:"display,omitempty"` // Operation name: {provider}/{resource}/{operation} Name *string `json:"name,omitempty"` }
Operation - Microsoft.Resources operation
type OperationDisplay ¶
type OperationDisplay struct { // Description of the operation. Description *string `json:"description,omitempty"` // Operation type: Read, write, delete, etc. Operation *string `json:"operation,omitempty"` // Service provider: Microsoft.Resources Provider *string `json:"provider,omitempty"` // Resource on which the operation is performed: Profile, endpoint, etc. Resource *string `json:"resource,omitempty"` }
OperationDisplay - The object that represents the operation.
type OperationListResult ¶
type OperationListResult struct { // URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` // List of Microsoft.Resources operations. Value []*Operation `json:"value,omitempty"` }
OperationListResult - Result of the request to list Microsoft.Resources operations. It contains a list of operations and a URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
type OperationsClient ¶
type OperationsClient struct {
// contains filtered or unexported fields
}
OperationsClient contains the methods for the Operations group. Don't use this type directly, use NewOperationsClient() instead.
func NewOperationsClient ¶
func NewOperationsClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsClient, error)
NewOperationsClient creates a new instance of OperationsClient with the specified values. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*OperationsClient) NewListPager ¶ added in v0.4.0
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - Lists all of the available Microsoft.Resources REST API operations. If the operation fails it returns an *azcore.ResponseError type. options - OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListOptions ¶ added in v0.2.0
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.List method.
type OperationsClientListResponse ¶ added in v0.2.0
type OperationsClientListResponse struct {
OperationListResult
}
OperationsClientListResponse contains the response from method OperationsClient.List.
type ResourceLink ¶
type ResourceLink struct { // Properties for resource link. Properties *ResourceLinkProperties `json:"properties,omitempty"` // READ-ONLY; The fully qualified ID of the resource link. ID *string `json:"id,omitempty" azure:"ro"` // READ-ONLY; The name of the resource link. Name *string `json:"name,omitempty" azure:"ro"` // READ-ONLY; The resource link object. Type interface{} `json:"type,omitempty" azure:"ro"` }
ResourceLink - The resource link.
type ResourceLinkFilter ¶
type ResourceLinkFilter struct { // REQUIRED; The ID of the target resource. TargetID *string `json:"targetId,omitempty"` }
ResourceLinkFilter - Resource link filter.
type ResourceLinkProperties ¶
type ResourceLinkProperties struct { // REQUIRED; The fully qualified ID of the target resource in the link. TargetID *string `json:"targetId,omitempty"` // Notes about the resource link. Notes *string `json:"notes,omitempty"` // READ-ONLY; The fully qualified ID of the source resource in the link. SourceID *string `json:"sourceId,omitempty" azure:"ro"` }
ResourceLinkProperties - The resource link properties.
type ResourceLinkResult ¶
type ResourceLinkResult struct { // REQUIRED; An array of resource links. Value []*ResourceLink `json:"value,omitempty"` // READ-ONLY; The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty" azure:"ro"` }
ResourceLinkResult - List of resource links.
func (ResourceLinkResult) MarshalJSON ¶
func (r ResourceLinkResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceLinkResult.
type ResourceLinksClient ¶
type ResourceLinksClient struct {
// contains filtered or unexported fields
}
ResourceLinksClient contains the methods for the ResourceLinks group. Don't use this type directly, use NewResourceLinksClient() instead.
func NewResourceLinksClient ¶
func NewResourceLinksClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ResourceLinksClient, error)
NewResourceLinksClient creates a new instance of ResourceLinksClient with the specified values. subscriptionID - The ID of the target subscription. credential - used to authorize requests. Usually a credential from azidentity. options - pass nil to accept the default values.
func (*ResourceLinksClient) CreateOrUpdate ¶
func (client *ResourceLinksClient) CreateOrUpdate(ctx context.Context, linkID string, parameters ResourceLink, options *ResourceLinksClientCreateOrUpdateOptions) (ResourceLinksClientCreateOrUpdateResponse, error)
CreateOrUpdate - Creates or updates a resource link between the specified resources. If the operation fails it returns an *azcore.ResponseError type. linkID - The fully qualified ID of the resource link. Use the format, /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink parameters - Parameters for creating or updating a resource link. options - ResourceLinksClientCreateOrUpdateOptions contains the optional parameters for the ResourceLinksClient.CreateOrUpdate method.
func (*ResourceLinksClient) Delete ¶
func (client *ResourceLinksClient) Delete(ctx context.Context, linkID string, options *ResourceLinksClientDeleteOptions) (ResourceLinksClientDeleteResponse, error)
Delete - Deletes a resource link with the specified ID. If the operation fails it returns an *azcore.ResponseError type. linkID - The fully qualified ID of the resource link. Use the format, /subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/{provider-namespace}/{resource-type}/{resource-name}/Microsoft.Resources/links/{link-name}. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink options - ResourceLinksClientDeleteOptions contains the optional parameters for the ResourceLinksClient.Delete method.
func (*ResourceLinksClient) Get ¶
func (client *ResourceLinksClient) Get(ctx context.Context, linkID string, options *ResourceLinksClientGetOptions) (ResourceLinksClientGetResponse, error)
Get - Gets a resource link with the specified ID. If the operation fails it returns an *azcore.ResponseError type. linkID - The fully qualified Id of the resource link. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup/Microsoft.Web/sites/mySite/Microsoft.Resources/links/myLink options - ResourceLinksClientGetOptions contains the optional parameters for the ResourceLinksClient.Get method.
func (*ResourceLinksClient) NewListAtSourceScopePager ¶ added in v0.4.0
func (client *ResourceLinksClient) NewListAtSourceScopePager(scope string, options *ResourceLinksClientListAtSourceScopeOptions) *runtime.Pager[ResourceLinksClientListAtSourceScopeResponse]
NewListAtSourceScopePager - Gets a list of resource links at and below the specified source scope. If the operation fails it returns an *azcore.ResponseError type. scope - The fully qualified ID of the scope for getting the resource links. For example, to list resource links at and under a resource group, set the scope to /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myGroup. options - ResourceLinksClientListAtSourceScopeOptions contains the optional parameters for the ResourceLinksClient.ListAtSourceScope method.
func (*ResourceLinksClient) NewListAtSubscriptionPager ¶ added in v0.4.0
func (client *ResourceLinksClient) NewListAtSubscriptionPager(options *ResourceLinksClientListAtSubscriptionOptions) *runtime.Pager[ResourceLinksClientListAtSubscriptionResponse]
NewListAtSubscriptionPager - Gets all the linked resources for the subscription. If the operation fails it returns an *azcore.ResponseError type. options - ResourceLinksClientListAtSubscriptionOptions contains the optional parameters for the ResourceLinksClient.ListAtSubscription method.
type ResourceLinksClientCreateOrUpdateOptions ¶ added in v0.2.0
type ResourceLinksClientCreateOrUpdateOptions struct { }
ResourceLinksClientCreateOrUpdateOptions contains the optional parameters for the ResourceLinksClient.CreateOrUpdate method.
type ResourceLinksClientCreateOrUpdateResponse ¶ added in v0.2.0
type ResourceLinksClientCreateOrUpdateResponse struct {
ResourceLink
}
ResourceLinksClientCreateOrUpdateResponse contains the response from method ResourceLinksClient.CreateOrUpdate.
type ResourceLinksClientDeleteOptions ¶ added in v0.2.0
type ResourceLinksClientDeleteOptions struct { }
ResourceLinksClientDeleteOptions contains the optional parameters for the ResourceLinksClient.Delete method.
type ResourceLinksClientDeleteResponse ¶ added in v0.2.0
type ResourceLinksClientDeleteResponse struct { }
ResourceLinksClientDeleteResponse contains the response from method ResourceLinksClient.Delete.
type ResourceLinksClientGetOptions ¶ added in v0.2.0
type ResourceLinksClientGetOptions struct { }
ResourceLinksClientGetOptions contains the optional parameters for the ResourceLinksClient.Get method.
type ResourceLinksClientGetResponse ¶ added in v0.2.0
type ResourceLinksClientGetResponse struct {
ResourceLink
}
ResourceLinksClientGetResponse contains the response from method ResourceLinksClient.Get.
type ResourceLinksClientListAtSourceScopeOptions ¶ added in v0.2.0
type ResourceLinksClientListAtSourceScopeOptions struct { // The filter to apply when getting resource links. To get links only at the specified scope (not below the scope), use Filter.atScope().. // Specifying any value will set the value to atScope(). Filter *string }
ResourceLinksClientListAtSourceScopeOptions contains the optional parameters for the ResourceLinksClient.ListAtSourceScope method.
type ResourceLinksClientListAtSourceScopeResponse ¶ added in v0.2.0
type ResourceLinksClientListAtSourceScopeResponse struct {
ResourceLinkResult
}
ResourceLinksClientListAtSourceScopeResponse contains the response from method ResourceLinksClient.ListAtSourceScope.
type ResourceLinksClientListAtSubscriptionOptions ¶ added in v0.2.0
type ResourceLinksClientListAtSubscriptionOptions struct { // The filter to apply on the list resource links operation. The supported filter for list resource links is targetId. For // example, $filter=targetId eq {value} Filter *string }
ResourceLinksClientListAtSubscriptionOptions contains the optional parameters for the ResourceLinksClient.ListAtSubscription method.
type ResourceLinksClientListAtSubscriptionResponse ¶ added in v0.2.0
type ResourceLinksClientListAtSubscriptionResponse struct {
ResourceLinkResult
}
ResourceLinksClientListAtSubscriptionResponse contains the response from method ResourceLinksClient.ListAtSubscription.