Documentation
¶
Index ¶
- type ClientFactory
- type CreatedByType
- type GenericResource
- type GenericResourcesClient
- func (client *GenericResourcesClient) BeginCreateOrUpdate(ctx context.Context, resourceName string, ...) (*runtime.Poller[GenericResourcesClientCreateOrUpdateResponse], error)
- func (client *GenericResourcesClient) BeginDelete(ctx context.Context, resourceName string, ...) (*runtime.Poller[GenericResourcesClientDeleteResponse], error)
- func (client *GenericResourcesClient) Get(ctx context.Context, resourceName string, ...) (GenericResourcesClientGetResponse, error)
- func (client *GenericResourcesClient) ListSecrets(ctx context.Context, resourceName string, ...) (GenericResourcesClientListSecretsResponse, error)
- func (client *GenericResourcesClient) NewListByRootScopePager(options *GenericResourcesClientListByRootScopeOptions) *runtime.Pager[GenericResourcesClientListByRootScopeResponse]
- type GenericResourcesClientBeginCreateOrUpdateOptions
- type GenericResourcesClientBeginDeleteOptions
- type GenericResourcesClientCreateOrUpdateResponse
- type GenericResourcesClientDeleteResponse
- type GenericResourcesClientGetOptions
- type GenericResourcesClientGetResponse
- type GenericResourcesClientListByRootScopeOptions
- type GenericResourcesClientListByRootScopeResponse
- type GenericResourcesClientListSecretsOptions
- type GenericResourcesClientListSecretsResponse
- type GenericResourcesList
- type SystemData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientFactory ¶ added in v0.53.0
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶ added in v0.53.0
func NewClientFactory(resourceType string, rootScope string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- resourceType - The azure resource type. For example RedisCache, RabbitMQ and other
- rootScope - The scope in which the resource is present.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewGenericResourcesClient ¶ added in v0.53.0
func (c *ClientFactory) NewGenericResourcesClient() *GenericResourcesClient
NewGenericResourcesClient creates a new instance of GenericResourcesClient.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created/modified the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type GenericResource ¶
type GenericResource struct {
// REQUIRED; The geo-location where the resource lives
Location *string
// REQUIRED; Any object
Properties map[string]any
// Resource tags.
Tags map[string]*string
// READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
ID *string
// READ-ONLY; The name of the resource
Name *string
// READ-ONLY; Metadata pertaining to creation and last modification of the resource.
SystemData *SystemData
// READ-ONLY; The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Type *string
}
GenericResource - Generic resource
func (GenericResource) MarshalJSON ¶
func (g GenericResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GenericResource.
func (*GenericResource) UnmarshalJSON ¶
func (g *GenericResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GenericResource.
type GenericResourcesClient ¶
type GenericResourcesClient struct {
// contains filtered or unexported fields
}
GenericResourcesClient contains the methods for the GenericResources group. Don't use this type directly, use NewGenericResourcesClient() instead.
Generated from API version 2023-10-01-preview
func NewGenericResourcesClient ¶
func NewGenericResourcesClient(resourceType string, rootScope string, credential azcore.TokenCredential, options *arm.ClientOptions) (*GenericResourcesClient, error)
NewGenericResourcesClient creates a new instance of GenericResourcesClient with the specified values.
- resourceType - The azure resource type. For example RedisCache, RabbitMQ and other
- rootScope - The scope in which the resource is present.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - Contains optional client configuration. Pass nil to accept the default values.
func (*GenericResourcesClient) BeginCreateOrUpdate ¶ added in v0.26.0
func (client *GenericResourcesClient) BeginCreateOrUpdate(ctx context.Context, resourceName string, genericResourceParameters GenericResource, options *GenericResourcesClientBeginCreateOrUpdateOptions) (*runtime.Poller[GenericResourcesClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a Generic resource If the operation fails it returns an *azcore.ResponseError type.
- resourceName - The name of the generic resource
- options - GenericResourcesClientBeginCreateOrUpdateOptions contains the optional parameters for the GenericResourcesClient.BeginCreateOrUpdate method.
func (*GenericResourcesClient) BeginDelete ¶
func (client *GenericResourcesClient) BeginDelete(ctx context.Context, resourceName string, options *GenericResourcesClientBeginDeleteOptions) (*runtime.Poller[GenericResourcesClientDeleteResponse], error)
BeginDelete - Deletes an existing Generic resource If the operation fails it returns an *azcore.ResponseError type.
- resourceName - The name of the generic resource
- options - GenericResourcesClientBeginDeleteOptions contains the optional parameters for the GenericResourcesClient.BeginDelete method.
func (*GenericResourcesClient) Get ¶
func (client *GenericResourcesClient) Get(ctx context.Context, resourceName string, options *GenericResourcesClientGetOptions) (GenericResourcesClientGetResponse, error)
Get - Retrieves information about a generic resource with the name given of the type given within the root scope If the operation fails it returns an *azcore.ResponseError type.
- resourceName - The name of the generic resource
- options - GenericResourcesClientGetOptions contains the optional parameters for the GenericResourcesClient.Get method.
func (*GenericResourcesClient) ListSecrets ¶ added in v0.26.0
func (client *GenericResourcesClient) ListSecrets(ctx context.Context, resourceName string, options *GenericResourcesClientListSecretsOptions) (GenericResourcesClientListSecretsResponse, error)
ListSecrets - Lists secrets for a resource If the operation fails it returns an *azcore.ResponseError type.
- resourceName - The name of the generic resource
- options - GenericResourcesClientListSecretsOptions contains the optional parameters for the GenericResourcesClient.ListSecrets method.
func (*GenericResourcesClient) NewListByRootScopePager ¶
func (client *GenericResourcesClient) NewListByRootScopePager(options *GenericResourcesClientListByRootScopeOptions) *runtime.Pager[GenericResourcesClientListByRootScopeResponse]
NewListByRootScopePager - Lists information about all resources of the given resource type in the given root scope
- options - GenericResourcesClientListByRootScopeOptions contains the optional parameters for the GenericResourcesClient.NewListByRootScopePager method.
type GenericResourcesClientBeginCreateOrUpdateOptions ¶ added in v0.26.0
type GenericResourcesClientBeginCreateOrUpdateOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
GenericResourcesClientBeginCreateOrUpdateOptions contains the optional parameters for the GenericResourcesClient.BeginCreateOrUpdate method.
type GenericResourcesClientBeginDeleteOptions ¶
type GenericResourcesClientBeginDeleteOptions struct {
// Resumes the long-running operation from the provided token.
ResumeToken string
}
GenericResourcesClientBeginDeleteOptions contains the optional parameters for the GenericResourcesClient.BeginDelete method.
type GenericResourcesClientCreateOrUpdateResponse ¶
type GenericResourcesClientCreateOrUpdateResponse struct {
// Generic resource
GenericResource
}
GenericResourcesClientCreateOrUpdateResponse contains the response from method GenericResourcesClient.BeginCreateOrUpdate.
type GenericResourcesClientDeleteResponse ¶
type GenericResourcesClientDeleteResponse struct {
}
GenericResourcesClientDeleteResponse contains the response from method GenericResourcesClient.BeginDelete.
type GenericResourcesClientGetOptions ¶
type GenericResourcesClientGetOptions struct {
}
GenericResourcesClientGetOptions contains the optional parameters for the GenericResourcesClient.Get method.
type GenericResourcesClientGetResponse ¶
type GenericResourcesClientGetResponse struct {
// Generic resource
GenericResource
}
GenericResourcesClientGetResponse contains the response from method GenericResourcesClient.Get.
type GenericResourcesClientListByRootScopeOptions ¶
type GenericResourcesClientListByRootScopeOptions struct {
}
GenericResourcesClientListByRootScopeOptions contains the optional parameters for the GenericResourcesClient.NewListByRootScopePager method.
type GenericResourcesClientListByRootScopeResponse ¶
type GenericResourcesClientListByRootScopeResponse struct {
// Object that includes an array of GenericResources and a possible link for next set
GenericResourcesList
}
GenericResourcesClientListByRootScopeResponse contains the response from method GenericResourcesClient.NewListByRootScopePager.
type GenericResourcesClientListSecretsOptions ¶ added in v0.26.0
type GenericResourcesClientListSecretsOptions struct {
}
GenericResourcesClientListSecretsOptions contains the optional parameters for the GenericResourcesClient.ListSecrets method.
type GenericResourcesClientListSecretsResponse ¶ added in v0.26.0
GenericResourcesClientListSecretsResponse contains the response from method GenericResourcesClient.ListSecrets.
type GenericResourcesList ¶
type GenericResourcesList struct {
// The link used to fetch the next page of resource list.
NextLink *string
// List of GenericResources resources
Value []*GenericResource
}
GenericResourcesList - Object that includes an array of GenericResources and a possible link for next set
func (GenericResourcesList) MarshalJSON ¶
func (g GenericResourcesList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type GenericResourcesList.
func (*GenericResourcesList) UnmarshalJSON ¶
func (g *GenericResourcesList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type GenericResourcesList.
type SystemData ¶
type SystemData struct {
// The timestamp of resource creation (UTC).
CreatedAt *time.Time
// The identity that created the resource.
CreatedBy *string
// The type of identity that created the resource.
CreatedByType *CreatedByType
// The timestamp of resource last modification (UTC)
LastModifiedAt *time.Time
// The identity that last modified the resource.
LastModifiedBy *string
// The type of identity that last modified the resource.
LastModifiedByType *CreatedByType
}
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.