Documentation ¶
Index ¶
- type AvailableProviderOperation
- type AvailableProviderOperationDisplay
- type AvailableProviderOperations
- type ClientFactory
- func (c *ClientFactory) NewDataManagersClient() *DataManagersClient
- func (c *ClientFactory) NewDataServicesClient() *DataServicesClient
- func (c *ClientFactory) NewDataStoreTypesClient() *DataStoreTypesClient
- func (c *ClientFactory) NewDataStoresClient() *DataStoresClient
- func (c *ClientFactory) NewJobDefinitionsClient() *JobDefinitionsClient
- func (c *ClientFactory) NewJobsClient() *JobsClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPublicKeysClient() *PublicKeysClient
- type CustomerSecret
- type DataManager
- type DataManagerList
- type DataManagerUpdateParameter
- type DataManagersClient
- func (client *DataManagersClient) BeginCreate(ctx context.Context, resourceGroupName string, dataManagerName string, ...) (*runtime.Poller[DataManagersClientCreateResponse], error)
- func (client *DataManagersClient) BeginDelete(ctx context.Context, resourceGroupName string, dataManagerName string, ...) (*runtime.Poller[DataManagersClientDeleteResponse], error)
- func (client *DataManagersClient) BeginUpdate(ctx context.Context, resourceGroupName string, dataManagerName string, ...) (*runtime.Poller[DataManagersClientUpdateResponse], error)
- func (client *DataManagersClient) Get(ctx context.Context, resourceGroupName string, dataManagerName string, ...) (DataManagersClientGetResponse, error)
- func (client *DataManagersClient) NewListByResourceGroupPager(resourceGroupName string, ...) *runtime.Pager[DataManagersClientListByResourceGroupResponse]
- func (client *DataManagersClient) NewListPager(options *DataManagersClientListOptions) *runtime.Pager[DataManagersClientListResponse]
- type DataManagersClientBeginCreateOptions
- type DataManagersClientBeginDeleteOptions
- type DataManagersClientBeginUpdateOptions
- type DataManagersClientCreateResponse
- type DataManagersClientDeleteResponse
- type DataManagersClientGetOptions
- type DataManagersClientGetResponse
- type DataManagersClientListByResourceGroupOptions
- type DataManagersClientListByResourceGroupResponse
- type DataManagersClientListOptions
- type DataManagersClientListResponse
- type DataManagersClientUpdateResponse
- type DataService
- type DataServiceList
- type DataServiceProperties
- type DataServicesClient
- func (client *DataServicesClient) Get(ctx context.Context, dataServiceName string, resourceGroupName string, ...) (DataServicesClientGetResponse, error)
- func (client *DataServicesClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, ...) *runtime.Pager[DataServicesClientListByDataManagerResponse]
- type DataServicesClientGetOptions
- type DataServicesClientGetResponse
- type DataServicesClientListByDataManagerOptions
- type DataServicesClientListByDataManagerResponse
- type DataStore
- type DataStoreFilter
- type DataStoreList
- type DataStoreProperties
- type DataStoreType
- type DataStoreTypeList
- type DataStoreTypeProperties
- type DataStoreTypesClient
- func (client *DataStoreTypesClient) Get(ctx context.Context, dataStoreTypeName string, resourceGroupName string, ...) (DataStoreTypesClientGetResponse, error)
- func (client *DataStoreTypesClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, ...) *runtime.Pager[DataStoreTypesClientListByDataManagerResponse]
- type DataStoreTypesClientGetOptions
- type DataStoreTypesClientGetResponse
- type DataStoreTypesClientListByDataManagerOptions
- type DataStoreTypesClientListByDataManagerResponse
- type DataStoresClient
- func (client *DataStoresClient) BeginCreateOrUpdate(ctx context.Context, dataStoreName string, resourceGroupName string, ...) (*runtime.Poller[DataStoresClientCreateOrUpdateResponse], error)
- func (client *DataStoresClient) BeginDelete(ctx context.Context, dataStoreName string, resourceGroupName string, ...) (*runtime.Poller[DataStoresClientDeleteResponse], error)
- func (client *DataStoresClient) Get(ctx context.Context, dataStoreName string, resourceGroupName string, ...) (DataStoresClientGetResponse, error)
- func (client *DataStoresClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, ...) *runtime.Pager[DataStoresClientListByDataManagerResponse]
- type DataStoresClientBeginCreateOrUpdateOptions
- type DataStoresClientBeginDeleteOptions
- type DataStoresClientCreateOrUpdateResponse
- type DataStoresClientDeleteResponse
- type DataStoresClientGetOptions
- type DataStoresClientGetResponse
- type DataStoresClientListByDataManagerOptions
- type DataStoresClientListByDataManagerResponse
- type DmsBaseObject
- type Error
- type ErrorDetails
- type IsJobCancellable
- type Job
- type JobDefinition
- type JobDefinitionFilter
- type JobDefinitionList
- type JobDefinitionProperties
- type JobDefinitionsClient
- func (client *JobDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, dataServiceName string, jobDefinitionName string, ...) (*runtime.Poller[JobDefinitionsClientCreateOrUpdateResponse], error)
- func (client *JobDefinitionsClient) BeginDelete(ctx context.Context, dataServiceName string, jobDefinitionName string, ...) (*runtime.Poller[JobDefinitionsClientDeleteResponse], error)
- func (client *JobDefinitionsClient) BeginRun(ctx context.Context, dataServiceName string, jobDefinitionName string, ...) (*runtime.Poller[JobDefinitionsClientRunResponse], error)
- func (client *JobDefinitionsClient) Get(ctx context.Context, dataServiceName string, jobDefinitionName string, ...) (JobDefinitionsClientGetResponse, error)
- func (client *JobDefinitionsClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, ...) *runtime.Pager[JobDefinitionsClientListByDataManagerResponse]
- func (client *JobDefinitionsClient) NewListByDataServicePager(dataServiceName string, resourceGroupName string, dataManagerName string, ...) *runtime.Pager[JobDefinitionsClientListByDataServiceResponse]
- type JobDefinitionsClientBeginCreateOrUpdateOptions
- type JobDefinitionsClientBeginDeleteOptions
- type JobDefinitionsClientBeginRunOptions
- type JobDefinitionsClientCreateOrUpdateResponse
- type JobDefinitionsClientDeleteResponse
- type JobDefinitionsClientGetOptions
- type JobDefinitionsClientGetResponse
- type JobDefinitionsClientListByDataManagerOptions
- type JobDefinitionsClientListByDataManagerResponse
- type JobDefinitionsClientListByDataServiceOptions
- type JobDefinitionsClientListByDataServiceResponse
- type JobDefinitionsClientRunResponse
- type JobDetails
- type JobFilter
- type JobList
- type JobProperties
- type JobStages
- type JobStatus
- type JobsClient
- func (client *JobsClient) BeginCancel(ctx context.Context, dataServiceName string, jobDefinitionName string, ...) (*runtime.Poller[JobsClientCancelResponse], error)
- func (client *JobsClient) BeginResume(ctx context.Context, dataServiceName string, jobDefinitionName string, ...) (*runtime.Poller[JobsClientResumeResponse], error)
- func (client *JobsClient) Get(ctx context.Context, dataServiceName string, jobDefinitionName string, ...) (JobsClientGetResponse, error)
- func (client *JobsClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, ...) *runtime.Pager[JobsClientListByDataManagerResponse]
- func (client *JobsClient) NewListByDataServicePager(dataServiceName string, resourceGroupName string, dataManagerName string, ...) *runtime.Pager[JobsClientListByDataServiceResponse]
- func (client *JobsClient) NewListByJobDefinitionPager(dataServiceName string, jobDefinitionName string, resourceGroupName string, ...) *runtime.Pager[JobsClientListByJobDefinitionResponse]
- type JobsClientBeginCancelOptions
- type JobsClientBeginResumeOptions
- type JobsClientCancelResponse
- type JobsClientGetOptions
- type JobsClientGetResponse
- type JobsClientListByDataManagerOptions
- type JobsClientListByDataManagerResponse
- type JobsClientListByDataServiceOptions
- type JobsClientListByDataServiceResponse
- type JobsClientListByJobDefinitionOptions
- type JobsClientListByJobDefinitionResponse
- type JobsClientResumeResponse
- type Key
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type PublicKey
- type PublicKeyList
- type PublicKeyProperties
- type PublicKeysClient
- func (client *PublicKeysClient) Get(ctx context.Context, publicKeyName string, resourceGroupName string, ...) (PublicKeysClientGetResponse, error)
- func (client *PublicKeysClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, ...) *runtime.Pager[PublicKeysClientListByDataManagerResponse]
- type PublicKeysClientGetOptions
- type PublicKeysClientGetResponse
- type PublicKeysClientListByDataManagerOptions
- type PublicKeysClientListByDataManagerResponse
- type Resource
- type RunLocation
- type RunParameters
- type SKU
- type Schedule
- type State
- type SupportedAlgorithm
- type UserConfirmation
Examples ¶
- DataManagersClient.BeginCreate
- DataManagersClient.BeginDelete
- DataManagersClient.BeginUpdate
- DataManagersClient.Get
- DataManagersClient.NewListByResourceGroupPager
- DataManagersClient.NewListPager
- DataServicesClient.Get
- DataServicesClient.NewListByDataManagerPager
- DataStoreTypesClient.Get (DataStoreTypesGetGet182)
- DataStoreTypesClient.Get (DataStoreTypesGetGet183)
- DataStoreTypesClient.NewListByDataManagerPager
- DataStoresClient.BeginCreateOrUpdate (DataStoresCreateOrUpdateDataSinkPut162)
- DataStoresClient.BeginCreateOrUpdate (DataStoresCreateOrUpdateDataSourcePut162)
- DataStoresClient.BeginDelete (DataStoresDeleteDataSinkDelete161)
- DataStoresClient.BeginDelete (DataStoresDeleteDataSourceDelete161)
- DataStoresClient.Get (DataStoresGetGet161)
- DataStoresClient.Get (DataStoresGetGet162)
- DataStoresClient.NewListByDataManagerPager
- JobDefinitionsClient.BeginCreateOrUpdate
- JobDefinitionsClient.BeginDelete
- JobDefinitionsClient.BeginRun
- JobDefinitionsClient.Get
- JobDefinitionsClient.NewListByDataManagerPager
- JobDefinitionsClient.NewListByDataServicePager
- JobsClient.BeginCancel
- JobsClient.BeginResume
- JobsClient.Get
- JobsClient.NewListByDataManagerPager
- JobsClient.NewListByDataServicePager
- JobsClient.NewListByJobDefinitionPager
- OperationsClient.NewListPager
- PublicKeysClient.Get
- PublicKeysClient.NewListByDataManagerPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailableProviderOperation ¶
type AvailableProviderOperation struct { // REQUIRED; Gets or Sets Name of the operations Name *string // Gets or sets Display information Contains the localized display information for this particular operation/action Display *AvailableProviderOperationDisplay // Gets or sets Origin The intended executor of the operation; governs the display of the operation in the RBAC UX and the // audit logs UX. Default value is “user,system” Origin *string // Gets or sets Properties Reserved for future use Properties any }
AvailableProviderOperation - Class represents provider operation
func (AvailableProviderOperation) MarshalJSON ¶
func (a AvailableProviderOperation) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailableProviderOperation.
func (*AvailableProviderOperation) UnmarshalJSON ¶
func (a *AvailableProviderOperation) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailableProviderOperation.
type AvailableProviderOperationDisplay ¶
type AvailableProviderOperationDisplay struct { // Gets or sets Description The localized friendly description for the operation, as it should be shown to the user. It should // be thorough, yet concise – it will be used in tool tips and detailed views. Description *string // Gets or sets Operation The localized friendly name for the operation, as it should be shown to the user. It should be concise // (to fit in drop downs) but clear (i.e. self-documenting). It should use // Title Casing and include the entity/resource to which it applies. Operation *string // Gets or sets Provider The localized friendly form of the resource provider name – it is expected to also include the publisher/company // responsible. It should use Title Casing and begin with // “Microsoft” for 1st party services. Provider *string // Gets or sets Resource The localized friendly form of the resource type related to this action/operation – it should match // the public documentation for the resource provider. It should use Title Casing // – for examples, please refer to the “name” section. Resource *string }
AvailableProviderOperationDisplay - Contains the localized display information for this particular operation / action. These value will be used by several clients for (1) custom role definitions for RBAC; (2) complex query filters for the event service; and (3) audit history / records for management operations.
func (AvailableProviderOperationDisplay) MarshalJSON ¶
func (a AvailableProviderOperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailableProviderOperationDisplay.
func (*AvailableProviderOperationDisplay) UnmarshalJSON ¶
func (a *AvailableProviderOperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailableProviderOperationDisplay.
type AvailableProviderOperations ¶
type AvailableProviderOperations struct { // Link for the next set of operations. NextLink *string // List of operations. Value []*AvailableProviderOperation }
AvailableProviderOperations - Class for set of operations used for discovery of available provider operations.
func (AvailableProviderOperations) MarshalJSON ¶
func (a AvailableProviderOperations) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailableProviderOperations.
func (*AvailableProviderOperations) UnmarshalJSON ¶
func (a *AvailableProviderOperations) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailableProviderOperations.
type ClientFactory ¶
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 ¶
func NewClientFactory(subscriptionID 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.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewDataManagersClient ¶
func (c *ClientFactory) NewDataManagersClient() *DataManagersClient
NewDataManagersClient creates a new instance of DataManagersClient.
func (*ClientFactory) NewDataServicesClient ¶
func (c *ClientFactory) NewDataServicesClient() *DataServicesClient
NewDataServicesClient creates a new instance of DataServicesClient.
func (*ClientFactory) NewDataStoreTypesClient ¶
func (c *ClientFactory) NewDataStoreTypesClient() *DataStoreTypesClient
NewDataStoreTypesClient creates a new instance of DataStoreTypesClient.
func (*ClientFactory) NewDataStoresClient ¶
func (c *ClientFactory) NewDataStoresClient() *DataStoresClient
NewDataStoresClient creates a new instance of DataStoresClient.
func (*ClientFactory) NewJobDefinitionsClient ¶
func (c *ClientFactory) NewJobDefinitionsClient() *JobDefinitionsClient
NewJobDefinitionsClient creates a new instance of JobDefinitionsClient.
func (*ClientFactory) NewJobsClient ¶
func (c *ClientFactory) NewJobsClient() *JobsClient
NewJobsClient creates a new instance of JobsClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPublicKeysClient ¶
func (c *ClientFactory) NewPublicKeysClient() *PublicKeysClient
NewPublicKeysClient creates a new instance of PublicKeysClient.
type CustomerSecret ¶
type CustomerSecret struct { // REQUIRED; The encryption algorithm used to encrypt data. Algorithm *SupportedAlgorithm // REQUIRED; The identifier to the data service input object which this secret corresponds to. KeyIdentifier *string // REQUIRED; It contains the encrypted customer secret. KeyValue *string }
CustomerSecret - The pair of customer secret.
func (CustomerSecret) MarshalJSON ¶
func (c CustomerSecret) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CustomerSecret.
func (*CustomerSecret) UnmarshalJSON ¶
func (c *CustomerSecret) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CustomerSecret.
type DataManager ¶
type DataManager struct { // REQUIRED; The location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, // East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it // is created, but if an identical geo region is specified on update the request will succeed. Location *string // Etag of the Resource. Etag *string // The sku type. SKU *SKU // The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across // resource groups). Tags map[string]*string // READ-ONLY; The Resource Id. ID *string // READ-ONLY; The Resource Name. Name *string // READ-ONLY; The Resource type. Type *string }
DataManager - The DataManager resource.
func (DataManager) MarshalJSON ¶
func (d DataManager) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataManager.
func (*DataManager) UnmarshalJSON ¶
func (d *DataManager) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataManager.
type DataManagerList ¶
type DataManagerList struct { // Link for the next set of data stores. NextLink *string // List of data manager resources. Value []*DataManager }
DataManagerList - DataManager resources Collection.
func (DataManagerList) MarshalJSON ¶
func (d DataManagerList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataManagerList.
func (*DataManagerList) UnmarshalJSON ¶
func (d *DataManagerList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataManagerList.
type DataManagerUpdateParameter ¶
type DataManagerUpdateParameter struct { // The sku type. SKU *SKU // The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across // resource groups). Tags map[string]*string }
DataManagerUpdateParameter - The DataManagerUpdateParameter.
func (DataManagerUpdateParameter) MarshalJSON ¶
func (d DataManagerUpdateParameter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataManagerUpdateParameter.
func (*DataManagerUpdateParameter) UnmarshalJSON ¶
func (d *DataManagerUpdateParameter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataManagerUpdateParameter.
type DataManagersClient ¶
type DataManagersClient struct {
// contains filtered or unexported fields
}
DataManagersClient contains the methods for the DataManagers group. Don't use this type directly, use NewDataManagersClient() instead.
func NewDataManagersClient ¶
func NewDataManagersClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataManagersClient, error)
NewDataManagersClient creates a new instance of DataManagersClient with the specified values.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DataManagersClient) BeginCreate ¶
func (client *DataManagersClient) BeginCreate(ctx context.Context, resourceGroupName string, dataManagerName string, dataManager DataManager, options *DataManagersClientBeginCreateOptions) (*runtime.Poller[DataManagersClientCreateResponse], error)
BeginCreate - Creates a new data manager resource with the specified parameters. Existing resources cannot be updated with this API and should instead be updated with the Update data manager resource API. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- dataManager - Data manager resource details from request body.
- options - DataManagersClientBeginCreateOptions contains the optional parameters for the DataManagersClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Create-PUT-example-41.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDataManagersClient().BeginCreate(ctx, "ResourceGroupForSDKTest", "TestAzureSDKOperations", armhybriddatamanager.DataManager{ Location: to.Ptr("westus"), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataManager = armhybriddatamanager.DataManager{ // Name: to.Ptr("TestAzureSDKOperations"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2020-02-05T08%3A45%3A27.420781Z'\"_W/\"datetime'2020-02-05T08%3A45%3A27.4264561Z'\""), // } }
Output:
func (*DataManagersClient) BeginDelete ¶
func (client *DataManagersClient) BeginDelete(ctx context.Context, resourceGroupName string, dataManagerName string, options *DataManagersClientBeginDeleteOptions) (*runtime.Poller[DataManagersClientDeleteResponse], error)
BeginDelete - Deletes a data manager resource in Microsoft Azure. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataManagersClientBeginDeleteOptions contains the optional parameters for the DataManagersClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Delete-DELETE-example-41.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDataManagersClient().BeginDelete(ctx, "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DataManagersClient) BeginUpdate ¶
func (client *DataManagersClient) BeginUpdate(ctx context.Context, resourceGroupName string, dataManagerName string, dataManagerUpdateParameter DataManagerUpdateParameter, options *DataManagersClientBeginUpdateOptions) (*runtime.Poller[DataManagersClientUpdateResponse], error)
BeginUpdate - Updates the properties of an existing data manager resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- dataManagerUpdateParameter - Data manager resource details from request body.
- options - DataManagersClientBeginUpdateOptions contains the optional parameters for the DataManagersClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Update-PATCH-example-43.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDataManagersClient().BeginUpdate(ctx, "ResourceGroupForSDKTest", "TestAzureSDKOperations", armhybriddatamanager.DataManagerUpdateParameter{ SKU: &armhybriddatamanager.SKU{ Name: to.Ptr("DS0"), Tier: to.Ptr("Standard"), }, Tags: map[string]*string{ "UpdateDateTime": to.Ptr("05-Feb-20 2:17:22 PM"), }, }, &armhybriddatamanager.DataManagersClientBeginUpdateOptions{IfMatch: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataManager = armhybriddatamanager.DataManager{ // Name: to.Ptr("TestAzureSDKOperations"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // "updateDateTime": to.Ptr("05-Feb-20 2:17:22 PM"), // }, // Etag: to.Ptr("W/\"datetime'2020-02-05T08%3A47%3A23.8171822Z'\"_W/\"datetime'2020-02-05T08%3A47%3A23.8361957Z'\""), // } }
Output:
func (*DataManagersClient) Get ¶
func (client *DataManagersClient) Get(ctx context.Context, resourceGroupName string, dataManagerName string, options *DataManagersClientGetOptions) (DataManagersClientGetResponse, error)
Get - Gets information about the specified data manager resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataManagersClientGetOptions contains the optional parameters for the DataManagersClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_Get-GET-example-41.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataManagersClient().Get(ctx, "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataManager = armhybriddatamanager.DataManager{ // Name: to.Ptr("TestAzureSDKOperations"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2020-02-05T04%3A22%3A40.6354864Z'\"_W/\"datetime'2020-02-05T04%3A22%3A40.7912864Z'\""), // } }
Output:
func (*DataManagersClient) NewListByResourceGroupPager ¶
func (client *DataManagersClient) NewListByResourceGroupPager(resourceGroupName string, options *DataManagersClientListByResourceGroupOptions) *runtime.Pager[DataManagersClientListByResourceGroupResponse]
NewListByResourceGroupPager - Lists all the data manager resources available under the given resource group.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- options - DataManagersClientListByResourceGroupOptions contains the optional parameters for the DataManagersClient.NewListByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_ListByResourceGroup-GET-example-31.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDataManagersClient().NewListByResourceGroupPager("ResourceGroupForSDKTest", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DataManagerList = armhybriddatamanager.DataManagerList{ // Value: []*armhybriddatamanager.DataManager{ // { // Name: to.Ptr("AzureSDKOperations"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/AzureSDKOperations"), // Location: to.Ptr("westus2"), // SKU: &armhybriddatamanager.SKU{ // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-02-17T14%3A50%3A37.866739Z'\"_W/\"datetime'2019-02-17T14%3A50%3A38.038859Z'\""), // }, // { // Name: to.Ptr("AzSDKOps"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/AzSDKOps"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // "helL00000": to.Ptr("dlrow"), // "hello": to.Ptr("World"), // "new": to.Ptr("true"), // }, // Etag: to.Ptr("W/\"datetime'2019-03-30T06%3A35%3A01.1816182Z'\"_W/\"datetime'2019-03-30T06%3A35%3A01.2846913Z'\""), // }, // { // Name: to.Ptr("TestAzureSDKOperations"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2020-02-05T04%3A22%3A40.6354864Z'\"_W/\"datetime'2020-02-05T04%3A22%3A40.7912864Z'\""), // }, // { // Name: to.Ptr("EcyTestDMSRes"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/EcyTestDMSRes"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-08-12T10%3A20%3A40.4679832Z'\"_W/\"datetime'2019-08-12T10%3A20%3A40.6030796Z'\""), // }, // { // Name: to.Ptr("CcyTestDMSRes2"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/CcyTestDMSRes2"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-08-13T04%3A47%3A07.5063631Z'\"_W/\"datetime'2019-08-13T04%3A47%3A07.5113667Z'\""), // }}, // } } }
Output:
func (*DataManagersClient) NewListPager ¶
func (client *DataManagersClient) NewListPager(options *DataManagersClientListOptions) *runtime.Pager[DataManagersClientListResponse]
NewListPager - Lists all the data manager resources available under the subscription.
Generated from API version 2019-06-01
- options - DataManagersClientListOptions contains the optional parameters for the DataManagersClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataManagers_List-GET-example-21.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDataManagersClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DataManagerList = armhybriddatamanager.DataManagerList{ // Value: []*armhybriddatamanager.DataManager{ // { // Name: to.Ptr("batchcertneafterdep1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertneafterdep1"), // Location: to.Ptr("northeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-23T09%3A58%3A15.3299896Z'\"_W/\"datetime'2018-07-23T09%3A58%3A15.3500041Z'\""), // }, // { // Name: to.Ptr("batchcertneold"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertneold"), // Location: to.Ptr("northeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-16T09%3A46%3A06.3239385Z'\"_W/\"datetime'2018-07-16T09%3A46%3A06.3289422Z'\""), // }, // { // Name: to.Ptr("dmsnesmoketest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dmsnesmoketest"), // Location: to.Ptr("northeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-03-15T10%3A53%3A10.0933461Z'\"_W/\"datetime'2018-03-15T10%3A53%3A10.1213654Z'\""), // }, // { // Name: to.Ptr("ne-07-10"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/ne-07-10"), // Location: to.Ptr("northeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-10T06%3A36%3A18.0878861Z'\"_W/\"datetime'2018-07-10T06%3A36%3A18.1139046Z'\""), // }, // { // Name: to.Ptr("dms-04-10"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dms-04-10"), // Location: to.Ptr("eastus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-04-10T06%3A09%3A32.3093315Z'\"_W/\"datetime'2018-04-10T06%3A09%3A32.3243425Z'\""), // }, // { // Name: to.Ptr("eus-07-08"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/eus-07-08"), // Location: to.Ptr("eastus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-07T19%3A05%3A00.7594128Z'\"_W/\"datetime'2018-07-07T19%3A05%3A00.7664174Z'\""), // }, // { // Name: to.Ptr("eus-07-10"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/eus-07-10"), // Location: to.Ptr("eastus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-10T06%3A36%3A46.642745Z'\"_W/\"datetime'2018-07-10T06%3A36%3A46.7658314Z'\""), // }, // { // Name: to.Ptr("batchcertwus2afterdep1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertwus2afterdep1"), // Location: to.Ptr("westus2"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-23T07%3A44%3A12.1141909Z'\"_W/\"datetime'2018-07-23T07%3A44%3A12.1432118Z'\""), // }, // { // Name: to.Ptr("batchcertwus2old"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertwus2old"), // Location: to.Ptr("westus2"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-16T09%3A44%3A49.261222Z'\"_W/\"datetime'2018-07-16T09%3A44%3A49.2702259Z'\""), // }, // { // Name: to.Ptr("smoketestwus2"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/smoketestwus2"), // Location: to.Ptr("westus2"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-03-20T08%3A08%3A52.7007451Z'\"_W/\"datetime'2018-03-20T08%3A08%3A52.7207592Z'\""), // }, // { // Name: to.Ptr("AzureSDKOperations"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/AzureSDKOperations"), // Location: to.Ptr("westus2"), // SKU: &armhybriddatamanager.SKU{ // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-02-17T14%3A50%3A37.866739Z'\"_W/\"datetime'2019-02-17T14%3A50%3A38.038859Z'\""), // }, // { // Name: to.Ptr("batchcertwcusafterdep1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertwcusafterdep1"), // Location: to.Ptr("westcentralus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-18T04%3A48%3A50.1962283Z'\"_W/\"datetime'2018-07-18T04%3A48%3A50.3433306Z'\""), // }, // { // Name: to.Ptr("batchcertwcusold"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertwcusold"), // Location: to.Ptr("westcentralus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-16T09%3A43%3A43.569014Z'\"_W/\"datetime'2018-07-16T09%3A43%3A43.5740171Z'\""), // }, // { // Name: to.Ptr("smoketestwcus"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/smoketestwcus"), // Location: to.Ptr("westcentralus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-03-20T08%3A08%3A11.5901685Z'\"_W/\"datetime'2018-03-20T08%3A08%3A11.6161871Z'\""), // }, // { // Name: to.Ptr("wcus04-13"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/wcus04-13"), // Location: to.Ptr("westcentralus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-04-13T09%3A17%3A33.9031753Z'\"_W/\"datetime'2018-04-13T09%3A17%3A33.9301949Z'\""), // }, // { // Name: to.Ptr("wcus07-05"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/wcus07-05"), // Location: to.Ptr("westcentralus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-05T14%3A40%3A04.7506699Z'\"_W/\"datetime'2018-07-05T14%3A40%3A04.7776888Z'\""), // }, // { // Name: to.Ptr("wcussmoketest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/wcussmoketest"), // Location: to.Ptr("westcentralus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-05T11%3A17%3A08.7276428Z'\"_W/\"datetime'2018-06-05T11%3A17%3A08.7336469Z'\""), // }, // { // Name: to.Ptr("smoketest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ForDMS/providers/Microsoft.HybridData/dataManagers/smoketest"), // Location: to.Ptr("westcentralus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-05-17T09%3A53%3A29.1283879Z'\"_W/\"datetime'2019-05-17T09%3A53%3A29.1844278Z'\""), // }, // { // Name: to.Ptr("seasmoketestresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/amemigration/providers/Microsoft.HybridData/dataManagers/seasmoketestresource"), // Location: to.Ptr("southeastasia"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-07-06T16%3A47%3A17.0360354Z'\"_W/\"datetime'2019-07-06T16%3A47%3A17.2111588Z'\""), // }, // { // Name: to.Ptr("batchcertseaafterdep1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertseaafterdep1"), // Location: to.Ptr("southeastasia"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-23T08%3A24%3A48.4779951Z'\"_W/\"datetime'2018-07-23T08%3A24%3A48.5120189Z'\""), // }, // { // Name: to.Ptr("batchcertseaold"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertseaold"), // Location: to.Ptr("southeastasia"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-16T10%3A00%3A28.3513242Z'\"_W/\"datetime'2018-07-16T10%3A00%3A28.3583291Z'\""), // }, // { // Name: to.Ptr("testresourceon613"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/testresourceon613"), // Location: to.Ptr("southeastasia"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-13T18%3A04%3A02.4340032Z'\"_W/\"datetime'2018-06-13T18%3A04%3A02.4430097Z'\""), // }, // { // Name: to.Ptr("copyexp-wus-int"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/copyspeedexp/providers/Microsoft.HybridData/dataManagers/copyexp-wus-int"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-05-24T10%3A28%3A41.92206Z'\"_W/\"datetime'2019-05-24T10%3A28%3A42.0641646Z'\""), // }, // { // Name: to.Ptr("testServiceIncident"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/DmsBvtRG3/providers/Microsoft.HybridData/dataManagers/testServiceIncident"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-02-22T11%3A13%3A22.4906285Z'\"_W/\"datetime'2018-02-22T11%3A13%3A22.6667555Z'\""), // }, // { // Name: to.Ptr("prtankWusTestRes"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/DmsBvtRG/providers/Microsoft.HybridData/dataManagers/prtankWusTestRes"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-11-29T04%3A12%3A49.3583436Z'\"_W/\"datetime'2019-11-29T04%3A12%3A49.5344699Z'\""), // }, // { // Name: to.Ptr("storagemanagerresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/DmsBvtRG/providers/Microsoft.HybridData/dataManagers/storagemanagerresource"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // "doNotDelete": to.Ptr("Yes"), // }, // Etag: to.Ptr("W/\"datetime'2019-11-19T08%3A06%3A46.7263604Z'\"_W/\"datetime'2019-11-19T08%3A06%3A46.7824012Z'\""), // }, // { // Name: to.Ptr("sdf"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsdatasource/providers/Microsoft.HybridData/dataManagers/sdf"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-05-27T05%3A27%3A35.150482Z'\"_W/\"datetime'2019-05-27T05%3A27%3A35.3105951Z'\""), // }, // { // Name: to.Ptr("int-wus-11-29"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsintrg/providers/Microsoft.HybridData/dataManagers/int-wus-11-29"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-11-29T07%3A55%3A30.6749871Z'\"_W/\"datetime'2018-11-29T07%3A55%3A30.6809932Z'\""), // }, // { // Name: to.Ptr("intnewresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsintrg/providers/Microsoft.HybridData/dataManagers/intnewresource"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-03-17T15%3A03%3A36.5993632Z'\"_W/\"datetime'2018-03-17T15%3A03%3A36.7594788Z'\""), // }, // { // Name: to.Ptr("intresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsintrg/providers/Microsoft.HybridData/dataManagers/intresource"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-03-13T08%3A11%3A39.9025375Z'\"_W/\"datetime'2018-03-13T08%3A11%3A40.1036797Z'\""), // }, // { // Name: to.Ptr("intresource-10-30"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsintrg/providers/Microsoft.HybridData/dataManagers/intresource-10-30"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-10-30T09%3A56%3A32.9053638Z'\"_W/\"datetime'2018-10-30T09%3A56%3A33.0704765Z'\""), // }, // { // Name: to.Ptr("testresourceint"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsintrg/providers/Microsoft.HybridData/dataManagers/testresourceint"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-03-13T08%3A11%3A40.1389003Z'\"_W/\"datetime'2018-03-13T08%3A11%3A40.2479789Z'\""), // }, // { // Name: to.Ptr("batchcertoldresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertoldresource"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-12T09%3A46%3A50.1774789Z'\"_W/\"datetime'2018-07-12T09%3A46%3A50.3215821Z'\""), // }, // { // Name: to.Ptr("dmswusresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dmswusresource"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-03-01T11%3A52%3A02.7715263Z'\"_W/\"datetime'2018-03-01T11%3A52%3A02.7765292Z'\""), // }, // { // Name: to.Ptr("dsmsnodebinarytest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dsmsnodebinarytest"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-07T13%3A08%3A29.4575101Z'\"_W/\"datetime'2018-06-07T13%3A08%3A29.629632Z'\""), // }, // { // Name: to.Ptr("dsmsresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dsmsresource"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-05-23T08%3A45%3A40.8795252Z'\"_W/\"datetime'2018-05-23T08%3A45%3A41.0666584Z'\""), // }, // { // Name: to.Ptr("dsmsresource1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dsmsresource1"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-05T05%3A02%3A54.5475181Z'\"_W/\"datetime'2018-06-05T05%3A02%3A54.73265Z'\""), // }, // { // Name: to.Ptr("dsmsresource2"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dsmsresource2"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-05T05%3A34%3A59.227556Z'\"_W/\"datetime'2018-06-05T05%3A34%3A59.4357029Z'\""), // }, // { // Name: to.Ptr("dsmsresource3"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dsmsresource3"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-05T11%3A02%3A52.3744002Z'\"_W/\"datetime'2018-06-05T11%3A02%3A52.5365141Z'\""), // }, // { // Name: to.Ptr("dsmsresource4"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/dsmsresource4"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-08T15%3A58%3A07.1761866Z'\"_W/\"datetime'2018-06-08T15%3A58%3A07.3703309Z'\""), // }, // { // Name: to.Ptr("govtcloudtest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/govtcloudtest"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-10-03T08%3A03%3A21.5040402Z'\"_W/\"datetime'2018-10-03T08%3A03%3A21.6421388Z'\""), // }, // { // Name: to.Ptr("intresource2"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/intresource2"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-02-01T10%3A38%3A07.9487894Z'\"_W/\"datetime'2018-02-01T10%3A38%3A08.1499556Z'\""), // }, // { // Name: to.Ptr("intresource3rdjuly"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/intresource3rdjuly"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-03T15%3A33%3A45.7585904Z'\"_W/\"datetime'2018-07-03T15%3A33%3A45.932713Z'\""), // }, // { // Name: to.Ptr("intsmallfiles"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/intsmallfiles"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-09-24T12%3A01%3A29.4312765Z'\"_W/\"datetime'2018-09-24T12%3A01%3A29.489317Z'\""), // }, // { // Name: to.Ptr("longrunningjob"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/longrunningjob"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-05-31T09%3A41%3A28.6739766Z'\"_W/\"datetime'2018-05-31T09%3A41%3A28.8551054Z'\""), // }, // { // Name: to.Ptr("sampleclientdatamanager"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/sampleclientdatamanager"), // Location: to.Ptr("WestUS"), // SKU: &armhybriddatamanager.SKU{ // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-02-21T10%3A06%3A55.2175183Z'\"_W/\"datetime'2018-02-21T10%3A06%3A55.2235223Z'\""), // }, // { // Name: to.Ptr("ssdmbcdrresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/ssdmbcdrresource"), // Location: to.Ptr("westus"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-04-23T10%3A16%3A00.5751127Z'\"_W/\"datetime'2018-04-23T10%3A16%3A00.5841193Z'\""), // }, // { // Name: to.Ptr("copyexp-we-int1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/copyspeedexp/providers/Microsoft.HybridData/dataManagers/copyexp-we-int1"), // Location: to.Ptr("westeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-12-06T05%3A48%3A21.5818324Z'\"_W/\"datetime'2018-12-06T05%3A48%3A21.7748343Z'\""), // }, // { // Name: to.Ptr("prtankbvttest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/DmsBvtRG/providers/Microsoft.HybridData/dataManagers/prtankbvttest"), // Location: to.Ptr("westeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // "doNotDelete": to.Ptr("yes"), // "test": to.Ptr("true"), // }, // Etag: to.Ptr("W/\"datetime'2019-11-19T08%3A08%3A48.3033932Z'\"_W/\"datetime'2019-11-19T08%3A08%3A48.319407Z'\""), // }, // { // Name: to.Ptr("prtankBvtWeTest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/DmsBvtRG/providers/Microsoft.HybridData/dataManagers/prtankBvtWeTest"), // Location: to.Ptr("westeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2020-01-30T10%3A18%3A35.3300821Z'\"_W/\"datetime'2020-01-30T10%3A18%3A35.3460951Z'\""), // }, // { // Name: to.Ptr("we-int-1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/we-int-1"), // Location: to.Ptr("westeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-11-28T10%3A55%3A58.530785Z'\"_W/\"datetime'2018-11-28T10%3A55%3A58.8107858Z'\""), // }, // { // Name: to.Ptr("mrinsaha-dms-we"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ForDMS/providers/Microsoft.HybridData/dataManagers/mrinsaha-dms-we"), // Location: to.Ptr("westeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-08-06T11%3A48%3A28.3406561Z'\"_W/\"datetime'2019-08-06T11%3A48%3A28.5107985Z'\""), // }, // { // Name: to.Ptr("testdurga2"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ForDMS/providers/Microsoft.HybridData/dataManagers/testdurga2"), // Location: to.Ptr("westeurope"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-05-14T09%3A07%3A12.3469862Z'\"_W/\"datetime'2019-05-14T09%3A07%3A12.3589889Z'\""), // }, // { // Name: to.Ptr("ecy-aftermigration"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/amemigration/providers/Microsoft.HybridData/dataManagers/ecy-aftermigration"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-11-14T02%3A42%3A38.6041538Z'\"_W/\"datetime'2018-11-14T02%3A42%3A38.6081571Z'\""), // }, // { // Name: to.Ptr("ecy-ame"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/amemigration/providers/Microsoft.HybridData/dataManagers/ecy-ame"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-11-11T03%3A11%3A40.5411975Z'\"_W/\"datetime'2018-11-11T03%3A11%3A40.6752923Z'\""), // }, // { // Name: to.Ptr("ecysmoketest"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/cleanupservice/providers/Microsoft.HybridData/dataManagers/ecysmoketest"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-04-15T09%3A05%3A36.2264018Z'\"_W/\"datetime'2019-04-15T09%3A05%3A36.2854433Z'\""), // }, // { // Name: to.Ptr("copyspeed-ecy"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/copyspeedexp/providers/Microsoft.HybridData/dataManagers/copyspeed-ecy"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-05-09T09%3A51%3A11.720705Z'\"_W/\"datetime'2019-05-09T09%3A51%3A11.8728117Z'\""), // }, // { // Name: to.Ptr("ecyresource-04-10"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/ecyresource-04-10"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-04-10T09%3A41%3A03.749493Z'\"_W/\"datetime'2018-04-10T09%3A41%3A03.8805855Z'\""), // }, // { // Name: to.Ptr("feb20ecyresource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/feb20ecyresource"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-02-20T10%3A01%3A55.2712681Z'\"_W/\"datetime'2018-02-20T10%3A01%3A55.441388Z'\""), // }, // { // Name: to.Ptr("hari-dms-analysis-ecy"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/hari-dms-analysis-ecy"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-02-06T08%3A37%3A23.6486177Z'\"_W/\"datetime'2018-02-06T08%3A37%3A23.7857152Z'\""), // }, // { // Name: to.Ptr("EcySmoke"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ForDMS/providers/Microsoft.HybridData/dataManagers/EcySmoke"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-01-14T05%3A16%3A38.9573714Z'\"_W/\"datetime'2019-01-14T05%3A16%3A39.0774564Z'\""), // }, // { // Name: to.Ptr("EcyTestDMSRes"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/EcyTestDMSRes"), // Location: to.Ptr("eastus2euap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-08-12T10%3A20%3A40.4679832Z'\"_W/\"datetime'2019-08-12T10%3A20%3A40.6030796Z'\""), // }, // { // Name: to.Ptr("ccy-ame"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/amemigration/providers/Microsoft.HybridData/dataManagers/ccy-ame"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-11-11T03%3A13%3A19.0340832Z'\"_W/\"datetime'2018-11-11T03%3A13%3A19.038086Z'\""), // }, // { // Name: to.Ptr("ccytest-26-march"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/amemigration/providers/Microsoft.HybridData/dataManagers/ccytest-26-march"), // Location: to.Ptr("Central US EUAP"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-03-26T04%3A54%3A23.06065Z'\"_W/\"datetime'2019-03-26T04%3A54%3A23.1216929Z'\""), // }, // { // Name: to.Ptr("batchcertoldccy"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/batchcertoldccy"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-07-12T09%3A47%3A44.2155827Z'\"_W/\"datetime'2018-07-12T09%3A47%3A44.2235883Z'\""), // }, // { // Name: to.Ptr("ccylargenumberoffiles"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/ccylargenumberoffiles"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-09-04T06%3A47%3A31.8676921Z'\"_W/\"datetime'2018-09-04T06%3A47%3A32.0268062Z'\""), // }, // { // Name: to.Ptr("feb20ccyresoirce"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/feb20ccyresoirce"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-02-20T10%3A02%3A19.8430119Z'\"_W/\"datetime'2018-02-20T10%3A02%3A20.0291444Z'\""), // }, // { // Name: to.Ptr("smallfilesccyjob"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/dmsResourceGroup/providers/Microsoft.HybridData/dataManagers/smallfilesccyjob"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-09-24T05%3A24%3A44.2753634Z'\"_W/\"datetime'2018-09-24T05%3A24%3A44.4114594Z'\""), // }, // { // Name: to.Ptr("MSCCY"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ForDMS/providers/Microsoft.HybridData/dataManagers/MSCCY"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-04-22T07%3A45%3A22.6635575Z'\"_W/\"datetime'2019-04-22T07%3A45%3A22.8346781Z'\""), // }, // { // Name: to.Ptr("res4ccyBCDR"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ForDMS/providers/Microsoft.HybridData/dataManagers/res4ccyBCDR"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-02-07T09%3A38%3A22.6976591Z'\"_W/\"datetime'2019-02-07T09%3A38%3A22.8767865Z'\""), // }, // { // Name: to.Ptr("prpare50lakhsmallfiles"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/prpare/providers/Microsoft.HybridData/dataManagers/prpare50lakhsmallfiles"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-09-25T07%3A11%3A55.7616108Z'\"_W/\"datetime'2018-09-25T07%3A11%3A55.8957061Z'\""), // }, // { // Name: to.Ptr("CcyTestDMSRes2"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/CcyTestDMSRes2"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2019-08-13T04%3A47%3A07.5063631Z'\"_W/\"datetime'2019-08-13T04%3A47%3A07.5113667Z'\""), // }, // { // Name: to.Ptr("ccytestingpav2"), // Type: to.Ptr("Microsoft.HybridData/dataManagers"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourcegroups/test-varavi/providers/Microsoft.HybridData/dataManagers/ccytestingpav2"), // Location: to.Ptr("centraluseuap"), // SKU: &armhybriddatamanager.SKU{ // Name: to.Ptr("DS0"), // Tier: to.Ptr("Standard"), // }, // Tags: map[string]*string{ // }, // Etag: to.Ptr("W/\"datetime'2018-06-15T07%3A04%3A34.2882012Z'\"_W/\"datetime'2018-06-15T07%3A04%3A34.3472441Z'\""), // }}, // } } }
Output:
type DataManagersClientBeginCreateOptions ¶
type DataManagersClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DataManagersClientBeginCreateOptions contains the optional parameters for the DataManagersClient.BeginCreate method.
type DataManagersClientBeginDeleteOptions ¶
type DataManagersClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DataManagersClientBeginDeleteOptions contains the optional parameters for the DataManagersClient.BeginDelete method.
type DataManagersClientBeginUpdateOptions ¶
type DataManagersClientBeginUpdateOptions struct { // Defines the If-Match condition. The patch will be performed only if the ETag of the data manager resource on the server // matches this value. IfMatch *string // Resumes the LRO from the provided token. ResumeToken string }
DataManagersClientBeginUpdateOptions contains the optional parameters for the DataManagersClient.BeginUpdate method.
type DataManagersClientCreateResponse ¶
type DataManagersClientCreateResponse struct { // The DataManager resource. DataManager }
DataManagersClientCreateResponse contains the response from method DataManagersClient.BeginCreate.
type DataManagersClientDeleteResponse ¶
type DataManagersClientDeleteResponse struct { }
DataManagersClientDeleteResponse contains the response from method DataManagersClient.BeginDelete.
type DataManagersClientGetOptions ¶
type DataManagersClientGetOptions struct { }
DataManagersClientGetOptions contains the optional parameters for the DataManagersClient.Get method.
type DataManagersClientGetResponse ¶
type DataManagersClientGetResponse struct { // The DataManager resource. DataManager }
DataManagersClientGetResponse contains the response from method DataManagersClient.Get.
type DataManagersClientListByResourceGroupOptions ¶
type DataManagersClientListByResourceGroupOptions struct { }
DataManagersClientListByResourceGroupOptions contains the optional parameters for the DataManagersClient.NewListByResourceGroupPager method.
type DataManagersClientListByResourceGroupResponse ¶
type DataManagersClientListByResourceGroupResponse struct { // DataManager resources Collection. DataManagerList }
DataManagersClientListByResourceGroupResponse contains the response from method DataManagersClient.NewListByResourceGroupPager.
type DataManagersClientListOptions ¶
type DataManagersClientListOptions struct { }
DataManagersClientListOptions contains the optional parameters for the DataManagersClient.NewListPager method.
type DataManagersClientListResponse ¶
type DataManagersClientListResponse struct { // DataManager resources Collection. DataManagerList }
DataManagersClientListResponse contains the response from method DataManagersClient.NewListPager.
type DataManagersClientUpdateResponse ¶
type DataManagersClientUpdateResponse struct { // The DataManager resource. DataManager }
DataManagersClientUpdateResponse contains the response from method DataManagersClient.BeginUpdate.
type DataService ¶
type DataService struct { // REQUIRED; DataService properties. Properties *DataServiceProperties // READ-ONLY; Id of the object. ID *string // READ-ONLY; Name of the object. Name *string // READ-ONLY; Type of the object. Type *string }
DataService - Data Service.
func (DataService) MarshalJSON ¶
func (d DataService) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataService.
func (*DataService) UnmarshalJSON ¶
func (d *DataService) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataService.
type DataServiceList ¶
type DataServiceList struct { // Link for the next set of data services. NextLink *string // List of data services. Value []*DataService }
DataServiceList - Data Service Collection.
func (DataServiceList) MarshalJSON ¶
func (d DataServiceList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataServiceList.
func (*DataServiceList) UnmarshalJSON ¶
func (d *DataServiceList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataServiceList.
type DataServiceProperties ¶
type DataServiceProperties struct { // REQUIRED; State of the data service. State *State // Supported data store types which can be used as a sink. SupportedDataSinkTypes []*string // Supported data store types which can be used as a source. SupportedDataSourceTypes []*string }
DataServiceProperties - Data Service properties.
func (DataServiceProperties) MarshalJSON ¶
func (d DataServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataServiceProperties.
func (*DataServiceProperties) UnmarshalJSON ¶
func (d *DataServiceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataServiceProperties.
type DataServicesClient ¶
type DataServicesClient struct {
// contains filtered or unexported fields
}
DataServicesClient contains the methods for the DataServices group. Don't use this type directly, use NewDataServicesClient() instead.
func NewDataServicesClient ¶
func NewDataServicesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataServicesClient, error)
NewDataServicesClient creates a new instance of DataServicesClient with the specified values.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DataServicesClient) Get ¶
func (client *DataServicesClient) Get(ctx context.Context, dataServiceName string, resourceGroupName string, dataManagerName string, options *DataServicesClientGetOptions) (DataServicesClientGetResponse, error)
Get - Gets the data service that matches the data service name given. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The name of the data service that is being queried.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataServicesClientGetOptions contains the optional parameters for the DataServicesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataServices_Get-GET-example-62.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataServicesClient().Get(ctx, "DataTransformation", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataService = armhybriddatamanager.DataService{ // Name: to.Ptr("DataTransformation"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataSinkTypes: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureMediaServicesAccount")}, // SupportedDataSourceTypes: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series")}, // }, // } }
Output:
func (*DataServicesClient) NewListByDataManagerPager ¶
func (client *DataServicesClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, options *DataServicesClientListByDataManagerOptions) *runtime.Pager[DataServicesClientListByDataManagerResponse]
NewListByDataManagerPager - This method gets all the data services.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataServicesClientListByDataManagerOptions contains the optional parameters for the DataServicesClient.NewListByDataManagerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataServices_ListByDataManager-GET-example-51.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDataServicesClient().NewListByDataManagerPager("ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DataServiceList = armhybriddatamanager.DataServiceList{ // Value: []*armhybriddatamanager.DataService{ // { // Name: to.Ptr("DataTransformation"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataSinkTypes: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureMediaServicesAccount")}, // SupportedDataSourceTypes: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series")}, // }, // }, // { // Name: to.Ptr("KeyRollover"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/KeyRollover"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateSupported), // SupportedDataSinkTypes: []*string{ // }, // SupportedDataSourceTypes: []*string{ // }, // }, // }, // { // Name: to.Ptr("DataSecurity"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataSecurity"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateSupported), // SupportedDataSinkTypes: []*string{ // }, // SupportedDataSourceTypes: []*string{ // }, // }, // }, // { // Name: to.Ptr("DataInsights"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataInsights"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateSupported), // SupportedDataSinkTypes: []*string{ // }, // SupportedDataSourceTypes: []*string{ // }, // }, // }, // { // Name: to.Ptr("DataHealth"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataHealth"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateSupported), // SupportedDataSinkTypes: []*string{ // }, // SupportedDataSourceTypes: []*string{ // }, // }, // }, // { // Name: to.Ptr("RunnerService"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/RunnerService"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateSupported), // SupportedDataSinkTypes: []*string{ // }, // SupportedDataSourceTypes: []*string{ // }, // }, // }, // { // Name: to.Ptr("IndexingAndSearch"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/IndexingAndSearch"), // Properties: &armhybriddatamanager.DataServiceProperties{ // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataSinkTypes: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/SqlServer")}, // SupportedDataSourceTypes: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"), // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount")}, // }, // }}, // } } }
Output:
type DataServicesClientGetOptions ¶
type DataServicesClientGetOptions struct { }
DataServicesClientGetOptions contains the optional parameters for the DataServicesClient.Get method.
type DataServicesClientGetResponse ¶
type DataServicesClientGetResponse struct { // Data Service. DataService }
DataServicesClientGetResponse contains the response from method DataServicesClient.Get.
type DataServicesClientListByDataManagerOptions ¶
type DataServicesClientListByDataManagerOptions struct { }
DataServicesClientListByDataManagerOptions contains the optional parameters for the DataServicesClient.NewListByDataManagerPager method.
type DataServicesClientListByDataManagerResponse ¶
type DataServicesClientListByDataManagerResponse struct { // Data Service Collection. DataServiceList }
DataServicesClientListByDataManagerResponse contains the response from method DataServicesClient.NewListByDataManagerPager.
type DataStore ¶
type DataStore struct { // REQUIRED; DataStore properties. Properties *DataStoreProperties // READ-ONLY; Id of the object. ID *string // READ-ONLY; Name of the object. Name *string // READ-ONLY; Type of the object. Type *string }
DataStore - Data store.
func (DataStore) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type DataStore.
func (*DataStore) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type DataStore.
type DataStoreFilter ¶
type DataStoreFilter struct { // The data store type id. DataStoreTypeID *string }
DataStoreFilter - Contains the information about the filters for the DataStore.
func (DataStoreFilter) MarshalJSON ¶
func (d DataStoreFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataStoreFilter.
func (*DataStoreFilter) UnmarshalJSON ¶
func (d *DataStoreFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataStoreFilter.
type DataStoreList ¶
type DataStoreList struct { // Link for the next set of data stores. NextLink *string // List of data stores. Value []*DataStore }
DataStoreList - Data Store Collection.
func (DataStoreList) MarshalJSON ¶
func (d DataStoreList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataStoreList.
func (*DataStoreList) UnmarshalJSON ¶
func (d *DataStoreList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataStoreList.
type DataStoreProperties ¶
type DataStoreProperties struct { // REQUIRED; The arm id of the data store type. DataStoreTypeID *string // REQUIRED; State of the data source. State *State // List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source // to understand the key. Value contains customer secret encrypted by the // encryptionKeys. CustomerSecrets []*CustomerSecret // A generic json used differently by each data source type. ExtendedProperties any // Arm Id for the manager resource to which the data source is associated. This is optional. RepositoryID *string }
DataStoreProperties - Data Store for sources and sinks
func (DataStoreProperties) MarshalJSON ¶
func (d DataStoreProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataStoreProperties.
func (*DataStoreProperties) UnmarshalJSON ¶
func (d *DataStoreProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataStoreProperties.
type DataStoreType ¶
type DataStoreType struct { // REQUIRED; DataStoreType properties. Properties *DataStoreTypeProperties // READ-ONLY; Id of the object. ID *string // READ-ONLY; Name of the object. Name *string // READ-ONLY; Type of the object. Type *string }
DataStoreType - Data Store Type.
func (DataStoreType) MarshalJSON ¶
func (d DataStoreType) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataStoreType.
func (*DataStoreType) UnmarshalJSON ¶
func (d *DataStoreType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataStoreType.
type DataStoreTypeList ¶
type DataStoreTypeList struct { // Link for the next set of data store types. NextLink *string // List of DataStoreType. Value []*DataStoreType }
DataStoreTypeList - Data Store Type Collection.
func (DataStoreTypeList) MarshalJSON ¶
func (d DataStoreTypeList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataStoreTypeList.
func (*DataStoreTypeList) UnmarshalJSON ¶
func (d *DataStoreTypeList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataStoreTypeList.
type DataStoreTypeProperties ¶
type DataStoreTypeProperties struct { // REQUIRED; State of the data store type. State *State // Arm type for the manager resource to which the data source type is associated. This is optional. RepositoryType *string // Supported data services where it can be used as a sink. SupportedDataServicesAsSink []*string // Supported data services where it can be used as a source. SupportedDataServicesAsSource []*string }
DataStoreTypeProperties - Data Store Type properties.
func (DataStoreTypeProperties) MarshalJSON ¶
func (d DataStoreTypeProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DataStoreTypeProperties.
func (*DataStoreTypeProperties) UnmarshalJSON ¶
func (d *DataStoreTypeProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DataStoreTypeProperties.
type DataStoreTypesClient ¶
type DataStoreTypesClient struct {
// contains filtered or unexported fields
}
DataStoreTypesClient contains the methods for the DataStoreTypes group. Don't use this type directly, use NewDataStoreTypesClient() instead.
func NewDataStoreTypesClient ¶
func NewDataStoreTypesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataStoreTypesClient, error)
NewDataStoreTypesClient creates a new instance of DataStoreTypesClient with the specified values.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DataStoreTypesClient) Get ¶
func (client *DataStoreTypesClient) Get(ctx context.Context, dataStoreTypeName string, resourceGroupName string, dataManagerName string, options *DataStoreTypesClientGetOptions) (DataStoreTypesClientGetResponse, error)
Get - Gets the data store/repository type given its name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataStoreTypeName - The data store/repository type name for which details are needed.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataStoreTypesClientGetOptions contains the optional parameters for the DataStoreTypesClient.Get method.
Example (DataStoreTypesGetGet182) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-182.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataStoreTypesClient().Get(ctx, "StorSimple8000Series", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataStoreType = armhybriddatamanager.DataStoreType{ // Name: to.Ptr("StorSimple8000Series"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // RepositoryType: to.Ptr("Microsoft.StorSimple/managers"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // }, // SupportedDataServicesAsSource: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation"), // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/IndexingAndSearch")}, // }, // } }
Output:
Example (DataStoreTypesGetGet183) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_Get-GET-example-183.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataStoreTypesClient().Get(ctx, "AzureStorageAccount", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataStoreType = armhybriddatamanager.DataStoreType{ // Name: to.Ptr("AzureStorageAccount"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // RepositoryType: to.Ptr("Microsoft.Storage/storageAccounts"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation")}, // SupportedDataServicesAsSource: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/IndexingAndSearch")}, // }, // } }
Output:
func (*DataStoreTypesClient) NewListByDataManagerPager ¶
func (client *DataStoreTypesClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, options *DataStoreTypesClientListByDataManagerOptions) *runtime.Pager[DataStoreTypesClientListByDataManagerResponse]
NewListByDataManagerPager - Gets all the data store/repository types that the resource supports.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataStoreTypesClientListByDataManagerOptions contains the optional parameters for the DataStoreTypesClient.NewListByDataManagerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStoreTypes_ListByDataManager-GET-example-171.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDataStoreTypesClient().NewListByDataManagerPager("ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DataStoreTypeList = armhybriddatamanager.DataStoreTypeList{ // Value: []*armhybriddatamanager.DataStoreType{ // { // Name: to.Ptr("StorSimple8000Series"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // RepositoryType: to.Ptr("Microsoft.StorSimple/managers"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // }, // SupportedDataServicesAsSource: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation"), // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/IndexingAndSearch")}, // }, // }, // { // Name: to.Ptr("AzureStorageAccount"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // RepositoryType: to.Ptr("Microsoft.Storage/storageAccounts"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation")}, // SupportedDataServicesAsSource: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/IndexingAndSearch")}, // }, // }, // { // Name: to.Ptr("AzureMediaServicesAccount"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureMediaServicesAccount"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // RepositoryType: to.Ptr("Microsoft.Media/mediaservices"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation")}, // SupportedDataServicesAsSource: []*string{ // }, // }, // }, // { // Name: to.Ptr("RunnerDataSource"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/RunnerDataSource"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // }, // SupportedDataServicesAsSource: []*string{ // }, // }, // }, // { // Name: to.Ptr("RunnerDataSink"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/RunnerDataSink"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // }, // SupportedDataServicesAsSource: []*string{ // }, // }, // }, // { // Name: to.Ptr("SqlServer"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/SqlServer"), // Properties: &armhybriddatamanager.DataStoreTypeProperties{ // RepositoryType: to.Ptr("Microsoft.Sql/servers"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // SupportedDataServicesAsSink: []*string{ // to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/IndexingAndSearch")}, // SupportedDataServicesAsSource: []*string{ // }, // }, // }}, // } } }
Output:
type DataStoreTypesClientGetOptions ¶
type DataStoreTypesClientGetOptions struct { }
DataStoreTypesClientGetOptions contains the optional parameters for the DataStoreTypesClient.Get method.
type DataStoreTypesClientGetResponse ¶
type DataStoreTypesClientGetResponse struct { // Data Store Type. DataStoreType }
DataStoreTypesClientGetResponse contains the response from method DataStoreTypesClient.Get.
type DataStoreTypesClientListByDataManagerOptions ¶
type DataStoreTypesClientListByDataManagerOptions struct { }
DataStoreTypesClientListByDataManagerOptions contains the optional parameters for the DataStoreTypesClient.NewListByDataManagerPager method.
type DataStoreTypesClientListByDataManagerResponse ¶
type DataStoreTypesClientListByDataManagerResponse struct { // Data Store Type Collection. DataStoreTypeList }
DataStoreTypesClientListByDataManagerResponse contains the response from method DataStoreTypesClient.NewListByDataManagerPager.
type DataStoresClient ¶
type DataStoresClient struct {
// contains filtered or unexported fields
}
DataStoresClient contains the methods for the DataStores group. Don't use this type directly, use NewDataStoresClient() instead.
func NewDataStoresClient ¶
func NewDataStoresClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DataStoresClient, error)
NewDataStoresClient creates a new instance of DataStoresClient with the specified values.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DataStoresClient) BeginCreateOrUpdate ¶
func (client *DataStoresClient) BeginCreateOrUpdate(ctx context.Context, dataStoreName string, resourceGroupName string, dataManagerName string, dataStore DataStore, options *DataStoresClientBeginCreateOrUpdateOptions) (*runtime.Poller[DataStoresClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates the data store/repository in the data manager. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataStoreName - The data store/repository name to be created or updated.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- dataStore - The data store/repository object to be created or updated.
- options - DataStoresClientBeginCreateOrUpdateOptions contains the optional parameters for the DataStoresClient.BeginCreateOrUpdate method.
Example (DataStoresCreateOrUpdateDataSinkPut162) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_CreateOrUpdate_DataSink-PUT-example-162.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDataStoresClient().BeginCreateOrUpdate(ctx, "TestAzureStorage1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", armhybriddatamanager.DataStore{ Properties: &armhybriddatamanager.DataStoreProperties{ CustomerSecrets: []*armhybriddatamanager.CustomerSecret{ { Algorithm: to.Ptr(armhybriddatamanager.SupportedAlgorithmRSA15), KeyIdentifier: to.Ptr("StorageAccountAccessKey"), KeyValue: to.Ptr("Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A=="), }, { Algorithm: to.Ptr(armhybriddatamanager.SupportedAlgorithmRSA15), KeyIdentifier: to.Ptr("StorageAccountAccessKeyForQueue"), KeyValue: to.Ptr("Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A=="), }}, DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), ExtendedProperties: map[string]any{ "extendedSaKey": nil, "extendedSaName": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink", "storageAccountNameForQueue": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink", }, RepositoryID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"), State: to.Ptr(armhybriddatamanager.StateEnabled), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataStore = armhybriddatamanager.DataStore{ // Name: to.Ptr("TestAzureStorage1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStores"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), // Properties: &armhybriddatamanager.DataStoreProperties{ // DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), // ExtendedProperties: map[string]any{ // "StorageAccountNameForQueue": "dmsdatasink", // }, // RepositoryID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // }, // } }
Output:
Example (DataStoresCreateOrUpdateDataSourcePut162) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_CreateOrUpdate_DataSource-PUT-example-162.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDataStoresClient().BeginCreateOrUpdate(ctx, "TestStorSimpleSource1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", armhybriddatamanager.DataStore{ Properties: &armhybriddatamanager.DataStoreProperties{ CustomerSecrets: []*armhybriddatamanager.CustomerSecret{ { Algorithm: to.Ptr(armhybriddatamanager.SupportedAlgorithmRSA15), KeyIdentifier: to.Ptr("ServiceEncryptionKey"), KeyValue: to.Ptr("EVuEBV40qv23xDRL4NZBuMms4e3So6ikHjrQYRvG9NloqxdgPOg+ZYzpho5lytI4fmv0ANmRIvDiDboRXcUVSjbB9T2gm19fMIuwZa4FK2+LYEgMqKK1GaLkk7xC8f5IeFUXLo6KyBBpaAiayTnWDcHuYEpMiGrV7trDDcbhMRefO3CHecmH3Z7ye8L0RQ/e7WW8GlCKZj3m0BaG7OrJgjai8gyDfMfGAG5rTqEhDVh2hLQ+TjvUjcOFwHvJusqKTENtbJTNQYmL9wZXsnwBvUwxqrGieILNB7V3GD1Ow9OiV0UCDW1e9LnMueukg+l7YJCU9FUhIPh/nSif6p32zw==:jCfio+pDtY3BSPZDpDJ0L6QdXLYMeOmxaFWtYTOZkNqNTgT8Loc/KSQRjtWS5K4N4btbznuSJ/dzg0aZEzlXgKDSuZgMfd4Ch92ZwAC/BkeCmVrTjiKJsoQXO1IICCUf7GHGBbYnnpsNJcEn4vyc9NXyKwOBjeU+I9AyK7PtYiC03RLpTS6xttFCICteBV0uoBHAiV0chZ5VIIUUMjO9u8EhHqRY7NNcGbWdVJeAb6J3vH4E/DHkQj+DXlpjcLvmK/uqBwxfNju30RJhR04Nmz6zcv/zTcvS0uN5hEPQoHLyv84hjnc4omg/gmNjo2cDW64QxA3RTJ5Sl///4xTBkg=="), }}, DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"), ExtendedProperties: map[string]any{ "extendedSaKey": nil, "resourceId": "/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600", }, RepositoryID: to.Ptr("/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"), State: to.Ptr(armhybriddatamanager.StateEnabled), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataStore = armhybriddatamanager.DataStore{ // Name: to.Ptr("TestStorSimpleSource1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStores"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), // Properties: &armhybriddatamanager.DataStoreProperties{ // DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"), // ExtendedProperties: map[string]any{ // "extendedSaKey": nil, // "resourceId": "/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600", // }, // RepositoryID: to.Ptr("/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // }, // } }
Output:
func (*DataStoresClient) BeginDelete ¶
func (client *DataStoresClient) BeginDelete(ctx context.Context, dataStoreName string, resourceGroupName string, dataManagerName string, options *DataStoresClientBeginDeleteOptions) (*runtime.Poller[DataStoresClientDeleteResponse], error)
BeginDelete - This method deletes the given data store/repository. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataStoreName - The data store/repository name to be deleted.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataStoresClientBeginDeleteOptions contains the optional parameters for the DataStoresClient.BeginDelete method.
Example (DataStoresDeleteDataSinkDelete161) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Delete_DataSink-DELETE-example-161.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDataStoresClient().BeginDelete(ctx, "TestAzureStorage1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
Example (DataStoresDeleteDataSourceDelete161) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Delete_DataSource-DELETE-example-161.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDataStoresClient().BeginDelete(ctx, "TestStorSimpleSource1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*DataStoresClient) Get ¶
func (client *DataStoresClient) Get(ctx context.Context, dataStoreName string, resourceGroupName string, dataManagerName string, options *DataStoresClientGetOptions) (DataStoresClientGetResponse, error)
Get - This method gets the data store/repository by name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataStoreName - The data store/repository name queried.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataStoresClientGetOptions contains the optional parameters for the DataStoresClient.Get method.
Example (DataStoresGetGet161) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-161.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataStoresClient().Get(ctx, "TestStorSimpleSource1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataStore = armhybriddatamanager.DataStore{ // Name: to.Ptr("TestStorSimpleSource1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStores"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), // Properties: &armhybriddatamanager.DataStoreProperties{ // DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"), // ExtendedProperties: map[string]any{ // "extendedSaKey": nil, // "resourceId": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600", // }, // RepositoryID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // }, // } }
Output:
Example (DataStoresGetGet162) ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_Get-GET-example-162.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDataStoresClient().Get(ctx, "TestAzureStorage1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.DataStore = armhybriddatamanager.DataStore{ // Name: to.Ptr("TestAzureStorage1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStores"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), // Properties: &armhybriddatamanager.DataStoreProperties{ // DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), // ExtendedProperties: map[string]any{ // "StorageAccountNameForQueue": "dmsdatasink", // }, // RepositoryID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // }, // } }
Output:
func (*DataStoresClient) NewListByDataManagerPager ¶
func (client *DataStoresClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, options *DataStoresClientListByDataManagerOptions) *runtime.Pager[DataStoresClientListByDataManagerResponse]
NewListByDataManagerPager - Gets all the data stores/repositories in the given resource.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - DataStoresClientListByDataManagerOptions contains the optional parameters for the DataStoresClient.NewListByDataManagerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/DataStores_ListByDataManager-GET-example-151.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDataStoresClient().NewListByDataManagerPager("ResourceGroupForSDKTest", "TestAzureSDKOperations", &armhybriddatamanager.DataStoresClientListByDataManagerOptions{Filter: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.DataStoreList = armhybriddatamanager.DataStoreList{ // Value: []*armhybriddatamanager.DataStore{ // { // Name: to.Ptr("TestAzureStorage1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStores"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), // Properties: &armhybriddatamanager.DataStoreProperties{ // DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount"), // ExtendedProperties: map[string]any{ // "StorageAccountNameForQueue": "dmsdatasink", // }, // RepositoryID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // }, // }, // { // Name: to.Ptr("TestStorSimpleSource1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataStores"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), // Properties: &armhybriddatamanager.DataStoreProperties{ // DataStoreTypeID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series"), // ExtendedProperties: map[string]any{ // "extendedSaKey": nil, // "resourceId": "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600", // }, // RepositoryID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600"), // State: to.Ptr(armhybriddatamanager.StateEnabled), // }, // }}, // } } }
Output:
type DataStoresClientBeginCreateOrUpdateOptions ¶
type DataStoresClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DataStoresClientBeginCreateOrUpdateOptions contains the optional parameters for the DataStoresClient.BeginCreateOrUpdate method.
type DataStoresClientBeginDeleteOptions ¶
type DataStoresClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DataStoresClientBeginDeleteOptions contains the optional parameters for the DataStoresClient.BeginDelete method.
type DataStoresClientCreateOrUpdateResponse ¶
type DataStoresClientCreateOrUpdateResponse struct { // Data store. DataStore }
DataStoresClientCreateOrUpdateResponse contains the response from method DataStoresClient.BeginCreateOrUpdate.
type DataStoresClientDeleteResponse ¶
type DataStoresClientDeleteResponse struct { }
DataStoresClientDeleteResponse contains the response from method DataStoresClient.BeginDelete.
type DataStoresClientGetOptions ¶
type DataStoresClientGetOptions struct { }
DataStoresClientGetOptions contains the optional parameters for the DataStoresClient.Get method.
type DataStoresClientGetResponse ¶
type DataStoresClientGetResponse struct { // Data store. DataStore }
DataStoresClientGetResponse contains the response from method DataStoresClient.Get.
type DataStoresClientListByDataManagerOptions ¶
type DataStoresClientListByDataManagerOptions struct { // OData Filter options Filter *string }
DataStoresClientListByDataManagerOptions contains the optional parameters for the DataStoresClient.NewListByDataManagerPager method.
type DataStoresClientListByDataManagerResponse ¶
type DataStoresClientListByDataManagerResponse struct { // Data Store Collection. DataStoreList }
DataStoresClientListByDataManagerResponse contains the response from method DataStoresClient.NewListByDataManagerPager.
type DmsBaseObject ¶
type DmsBaseObject struct { // READ-ONLY; Id of the object. ID *string // READ-ONLY; Name of the object. Name *string // READ-ONLY; Type of the object. Type *string }
DmsBaseObject - Base class for all objects under DataManager Service
func (DmsBaseObject) MarshalJSON ¶
func (d DmsBaseObject) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DmsBaseObject.
func (*DmsBaseObject) UnmarshalJSON ¶
func (d *DmsBaseObject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DmsBaseObject.
type Error ¶
type Error struct { // REQUIRED; Error code that can be used to programmatically identify the error. Code *string // Describes the error in detail and provides debugging information. Message *string }
Error - Top level error for the job.
func (Error) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Error.
func (*Error) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Error.
type ErrorDetails ¶
type ErrorDetails struct { // Error code. ErrorCode *int32 // Error message. ErrorMessage *string // Contains the non localized exception message ExceptionMessage *string // Recommended action for the error. RecommendedAction *string }
ErrorDetails - Error Details
func (ErrorDetails) MarshalJSON ¶
func (e ErrorDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorDetails.
func (*ErrorDetails) UnmarshalJSON ¶
func (e *ErrorDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorDetails.
type IsJobCancellable ¶
type IsJobCancellable string
IsJobCancellable - Describes whether the job is cancellable.
const ( IsJobCancellableCancellable IsJobCancellable = "Cancellable" IsJobCancellableNotCancellable IsJobCancellable = "NotCancellable" )
func PossibleIsJobCancellableValues ¶
func PossibleIsJobCancellableValues() []IsJobCancellable
PossibleIsJobCancellableValues returns the possible values for the IsJobCancellable const type.
type Job ¶
type Job struct { // REQUIRED; Job properties. Properties *JobProperties // REQUIRED; Time at which the job was started in UTC ISO 8601 format. StartTime *time.Time // REQUIRED; Status of the job. Status *JobStatus // Time at which the job ended in UTC ISO 8601 format. EndTime *time.Time // Top level error for the job. Error *Error // READ-ONLY; Id of the object. ID *string // READ-ONLY; Name of the object. Name *string // READ-ONLY; Type of the object. Type *string }
Job - Data service job.
func (Job) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Job.
func (*Job) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Job.
type JobDefinition ¶
type JobDefinition struct { // REQUIRED; JobDefinition properties. Properties *JobDefinitionProperties // READ-ONLY; Id of the object. ID *string // READ-ONLY; Name of the object. Name *string // READ-ONLY; Type of the object. Type *string }
JobDefinition - Job Definition.
func (JobDefinition) MarshalJSON ¶
func (j JobDefinition) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JobDefinition.
func (*JobDefinition) UnmarshalJSON ¶
func (j *JobDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinition.
type JobDefinitionFilter ¶
type JobDefinitionFilter struct { // REQUIRED; The state of the job definition. State *State // The data source associated with the job definition DataSource *string // The last modified date time of the data source. LastModified *time.Time }
JobDefinitionFilter - Contains the supported job definition filters.
func (JobDefinitionFilter) MarshalJSON ¶
func (j JobDefinitionFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JobDefinitionFilter.
func (*JobDefinitionFilter) UnmarshalJSON ¶
func (j *JobDefinitionFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinitionFilter.
type JobDefinitionList ¶
type JobDefinitionList struct { // Link for the next set of job definitions. NextLink *string // List of job definitions. Value []*JobDefinition }
JobDefinitionList - Job Definition Collection.
func (JobDefinitionList) MarshalJSON ¶
func (j JobDefinitionList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JobDefinitionList.
func (*JobDefinitionList) UnmarshalJSON ¶
func (j *JobDefinitionList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinitionList.
type JobDefinitionProperties ¶
type JobDefinitionProperties struct { // REQUIRED; Data Sink Id associated to the job definition. DataSinkID *string // REQUIRED; Data Source Id associated to the job definition. DataSourceID *string // REQUIRED; State of the job definition. State *State // List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source // to understand the key. Value contains customer secret encrypted by the // encryptionKeys. CustomerSecrets []*CustomerSecret // A generic json used differently by each data service type. DataServiceInput any // Last modified time of the job definition. LastModifiedTime *time.Time // This is the preferred geo location for the job to run. RunLocation *RunLocation // Schedule for running the job definition Schedules []*Schedule // Enum to detect if user confirmation is required. If not passed will default to NotRequired. UserConfirmation *UserConfirmation }
JobDefinitionProperties - Job Definition
func (JobDefinitionProperties) MarshalJSON ¶
func (j JobDefinitionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JobDefinitionProperties.
func (*JobDefinitionProperties) UnmarshalJSON ¶
func (j *JobDefinitionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JobDefinitionProperties.
type JobDefinitionsClient ¶
type JobDefinitionsClient struct {
// contains filtered or unexported fields
}
JobDefinitionsClient contains the methods for the JobDefinitions group. Don't use this type directly, use NewJobDefinitionsClient() instead.
func NewJobDefinitionsClient ¶
func NewJobDefinitionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobDefinitionsClient, error)
NewJobDefinitionsClient creates a new instance of JobDefinitionsClient with the specified values.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*JobDefinitionsClient) BeginCreateOrUpdate ¶
func (client *JobDefinitionsClient) BeginCreateOrUpdate(ctx context.Context, dataServiceName string, jobDefinitionName string, resourceGroupName string, dataManagerName string, jobDefinition JobDefinition, options *JobDefinitionsClientBeginCreateOrUpdateOptions) (*runtime.Poller[JobDefinitionsClientCreateOrUpdateResponse], error)
BeginCreateOrUpdate - Creates or updates a job definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The data service type of the job definition.
- jobDefinitionName - The job definition name to be created or updated.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- jobDefinition - Job Definition object to be created or updated.
- options - JobDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the JobDefinitionsClient.BeginCreateOrUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_CreateOrUpdate-PUT-example-83.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewJobDefinitionsClient().BeginCreateOrUpdate(ctx, "DataTransformation", "jobdeffromtestcode1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", armhybriddatamanager.JobDefinition{ Properties: &armhybriddatamanager.JobDefinitionProperties{ DataServiceInput: map[string]any{ "AzureStorageType": "Blob", "BackupChoice": "UseExistingLatest", "ContainerName": "containerfromtest", "DeviceName": "8600-SHG0997877L71FC", "FileNameFilter": "*", "IsDirectoryMode": false, "RootDirectories": []any{ "\\", }, "VolumeNames": []any{ "TestAutomation", }, }, DataSinkID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), DataSourceID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), RunLocation: to.Ptr(armhybriddatamanager.RunLocationWestus), State: to.Ptr(armhybriddatamanager.StateEnabled), UserConfirmation: to.Ptr(armhybriddatamanager.UserConfirmationRequired), }, }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } res, err := poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.JobDefinition = armhybriddatamanager.JobDefinition{ // Name: to.Ptr("jobdeffromtestcode1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1"), // Properties: &armhybriddatamanager.JobDefinitionProperties{ // DataServiceInput: map[string]any{ // "AzureStorageType": "Blob", // "BackupChoice": "UseExistingLatest", // "ContainerName": "containerfromtest", // "DeviceName": "8600-SHG0997877L71FC", // "FileNameFilter": "*", // "IsDirectoryMode": false, // "RootDirectories":[]any{ // "\\", // }, // "VolumeNames":[]any{ // "TestAutomation", // }, // }, // DataSinkID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), // DataSourceID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T08:51:43.366Z"); return t}()), // RunLocation: to.Ptr(armhybriddatamanager.RunLocationWestus), // Schedules: []*armhybriddatamanager.Schedule{ // }, // State: to.Ptr(armhybriddatamanager.StateEnabled), // UserConfirmation: to.Ptr(armhybriddatamanager.UserConfirmationRequired), // }, // } }
Output:
func (*JobDefinitionsClient) BeginDelete ¶
func (client *JobDefinitionsClient) BeginDelete(ctx context.Context, dataServiceName string, jobDefinitionName string, resourceGroupName string, dataManagerName string, options *JobDefinitionsClientBeginDeleteOptions) (*runtime.Poller[JobDefinitionsClientDeleteResponse], error)
BeginDelete - This method deletes the given job definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The data service type of the job definition.
- jobDefinitionName - The job definition name to be deleted.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobDefinitionsClientBeginDeleteOptions contains the optional parameters for the JobDefinitionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Delete-DELETE-example-81.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewJobDefinitionsClient().BeginDelete(ctx, "DataTransformation", "jobdeffromtestcode1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*JobDefinitionsClient) BeginRun ¶
func (client *JobDefinitionsClient) BeginRun(ctx context.Context, dataServiceName string, jobDefinitionName string, resourceGroupName string, dataManagerName string, runParameters RunParameters, options *JobDefinitionsClientBeginRunOptions) (*runtime.Poller[JobDefinitionsClientRunResponse], error)
BeginRun - This method runs a job instance of the given job definition. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The data service type of the job definition.
- jobDefinitionName - Name of the job definition.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- runParameters - Run time parameters for the job definition.
- options - JobDefinitionsClientBeginRunOptions contains the optional parameters for the JobDefinitionsClient.BeginRun method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Run-POST-example-132.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewJobDefinitionsClient().BeginRun(ctx, "DataTransformation", "jobdeffromtestcode1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", armhybriddatamanager.RunParameters{ CustomerSecrets: []*armhybriddatamanager.CustomerSecret{}, DataServiceInput: map[string]any{ "AzureStorageType": "Blob", "BackupChoice": "UseExistingLatest", "ContainerName": "containerfromtest", "DeviceName": "8600-SHG0997877L71FC", "FileNameFilter": "*", "IsDirectoryMode": false, "RootDirectories": []any{ "\\", }, "VolumeNames": []any{ "TestAutomation", }, }, UserConfirmation: to.Ptr(armhybriddatamanager.UserConfirmationNotRequired), }, nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*JobDefinitionsClient) Get ¶
func (client *JobDefinitionsClient) Get(ctx context.Context, dataServiceName string, jobDefinitionName string, resourceGroupName string, dataManagerName string, options *JobDefinitionsClientGetOptions) (JobDefinitionsClientGetResponse, error)
Get - This method gets job definition object by name. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The data service name of the job definition
- jobDefinitionName - The job definition name that is being queried.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobDefinitionsClientGetOptions contains the optional parameters for the JobDefinitionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_Get-GET-example-81.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewJobDefinitionsClient().Get(ctx, "DataTransformation", "jobdeffromtestcode1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.JobDefinition = armhybriddatamanager.JobDefinition{ // Name: to.Ptr("jobdeffromtestcode1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1"), // Properties: &armhybriddatamanager.JobDefinitionProperties{ // DataServiceInput: map[string]any{ // "AzureStorageType": "Blob", // "BackupChoice": "UseExistingLatest", // "ContainerName": "containerfromtest", // "DeviceName": "8600-SHG0997877L71FC", // "FileNameFilter": "*", // "IsDirectoryMode": false, // "RootDirectories":[]any{ // "\\", // }, // "VolumeNames":[]any{ // "TestAutomation", // }, // }, // DataSinkID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), // DataSourceID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T08:51:43.366Z"); return t}()), // RunLocation: to.Ptr(armhybriddatamanager.RunLocationWestus), // Schedules: []*armhybriddatamanager.Schedule{ // }, // State: to.Ptr(armhybriddatamanager.StateEnabled), // UserConfirmation: to.Ptr(armhybriddatamanager.UserConfirmationRequired), // }, // } }
Output:
func (*JobDefinitionsClient) NewListByDataManagerPager ¶
func (client *JobDefinitionsClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, options *JobDefinitionsClientListByDataManagerOptions) *runtime.Pager[JobDefinitionsClientListByDataManagerResponse]
NewListByDataManagerPager - This method gets all the job definitions of the given data manager resource.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobDefinitionsClientListByDataManagerOptions contains the optional parameters for the JobDefinitionsClient.NewListByDataManagerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_ListByDataManager-GET-example-191.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewJobDefinitionsClient().NewListByDataManagerPager("ResourceGroupForSDKTest", "TestAzureSDKOperations", &armhybriddatamanager.JobDefinitionsClientListByDataManagerOptions{Filter: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.JobDefinitionList = armhybriddatamanager.JobDefinitionList{ // Value: []*armhybriddatamanager.JobDefinition{ // { // Name: to.Ptr("jobdeffromtestcode1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1"), // Properties: &armhybriddatamanager.JobDefinitionProperties{ // DataServiceInput: map[string]any{ // "AzureStorageType": "Blob", // "BackupChoice": "UseExistingLatest", // "ContainerName": "containerfromtest", // "DeviceName": "8600-SHG0997877L71FC", // "FileNameFilter": "*", // "IsDirectoryMode": false, // "RootDirectories":[]any{ // "\\", // }, // "VolumeNames":[]any{ // "TestAutomation", // }, // }, // DataSinkID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), // DataSourceID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T08:51:43.366Z"); return t}()), // RunLocation: to.Ptr(armhybriddatamanager.RunLocationWestus), // Schedules: []*armhybriddatamanager.Schedule{ // }, // State: to.Ptr(armhybriddatamanager.StateEnabled), // UserConfirmation: to.Ptr(armhybriddatamanager.UserConfirmationRequired), // }, // }}, // } } }
Output:
func (*JobDefinitionsClient) NewListByDataServicePager ¶
func (client *JobDefinitionsClient) NewListByDataServicePager(dataServiceName string, resourceGroupName string, dataManagerName string, options *JobDefinitionsClientListByDataServiceOptions) *runtime.Pager[JobDefinitionsClientListByDataServiceResponse]
NewListByDataServicePager - This method gets all the job definitions of the given data service name.
Generated from API version 2019-06-01
- dataServiceName - The data service type of interest.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobDefinitionsClientListByDataServiceOptions contains the optional parameters for the JobDefinitionsClient.NewListByDataServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/JobDefinitions_ListByDataService-GET-example-71.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewJobDefinitionsClient().NewListByDataServicePager("DataTransformation", "ResourceGroupForSDKTest", "TestAzureSDKOperations", &armhybriddatamanager.JobDefinitionsClientListByDataServiceOptions{Filter: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.JobDefinitionList = armhybriddatamanager.JobDefinitionList{ // Value: []*armhybriddatamanager.JobDefinition{ // { // Name: to.Ptr("jobdeffromtestcode1"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1"), // Properties: &armhybriddatamanager.JobDefinitionProperties{ // DataServiceInput: map[string]any{ // "AzureStorageType": "Blob", // "BackupChoice": "UseExistingLatest", // "ContainerName": "containerfromtest", // "DeviceName": "8600-SHG0997877L71FC", // "FileNameFilter": "*", // "IsDirectoryMode": false, // "RootDirectories":[]any{ // "\\", // }, // "VolumeNames":[]any{ // "TestAutomation", // }, // }, // DataSinkID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestAzureStorage1"), // DataSourceID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStores/TestStorSimpleSource1"), // LastModifiedTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T08:51:43.366Z"); return t}()), // RunLocation: to.Ptr(armhybriddatamanager.RunLocationWestus), // Schedules: []*armhybriddatamanager.Schedule{ // }, // State: to.Ptr(armhybriddatamanager.StateEnabled), // UserConfirmation: to.Ptr(armhybriddatamanager.UserConfirmationRequired), // }, // }}, // } } }
Output:
type JobDefinitionsClientBeginCreateOrUpdateOptions ¶
type JobDefinitionsClientBeginCreateOrUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
JobDefinitionsClientBeginCreateOrUpdateOptions contains the optional parameters for the JobDefinitionsClient.BeginCreateOrUpdate method.
type JobDefinitionsClientBeginDeleteOptions ¶
type JobDefinitionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
JobDefinitionsClientBeginDeleteOptions contains the optional parameters for the JobDefinitionsClient.BeginDelete method.
type JobDefinitionsClientBeginRunOptions ¶
type JobDefinitionsClientBeginRunOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
JobDefinitionsClientBeginRunOptions contains the optional parameters for the JobDefinitionsClient.BeginRun method.
type JobDefinitionsClientCreateOrUpdateResponse ¶
type JobDefinitionsClientCreateOrUpdateResponse struct { // Job Definition. JobDefinition }
JobDefinitionsClientCreateOrUpdateResponse contains the response from method JobDefinitionsClient.BeginCreateOrUpdate.
type JobDefinitionsClientDeleteResponse ¶
type JobDefinitionsClientDeleteResponse struct { }
JobDefinitionsClientDeleteResponse contains the response from method JobDefinitionsClient.BeginDelete.
type JobDefinitionsClientGetOptions ¶
type JobDefinitionsClientGetOptions struct { }
JobDefinitionsClientGetOptions contains the optional parameters for the JobDefinitionsClient.Get method.
type JobDefinitionsClientGetResponse ¶
type JobDefinitionsClientGetResponse struct { // Job Definition. JobDefinition }
JobDefinitionsClientGetResponse contains the response from method JobDefinitionsClient.Get.
type JobDefinitionsClientListByDataManagerOptions ¶
type JobDefinitionsClientListByDataManagerOptions struct { // OData Filter options Filter *string }
JobDefinitionsClientListByDataManagerOptions contains the optional parameters for the JobDefinitionsClient.NewListByDataManagerPager method.
type JobDefinitionsClientListByDataManagerResponse ¶
type JobDefinitionsClientListByDataManagerResponse struct { // Job Definition Collection. JobDefinitionList }
JobDefinitionsClientListByDataManagerResponse contains the response from method JobDefinitionsClient.NewListByDataManagerPager.
type JobDefinitionsClientListByDataServiceOptions ¶
type JobDefinitionsClientListByDataServiceOptions struct { // OData Filter options Filter *string }
JobDefinitionsClientListByDataServiceOptions contains the optional parameters for the JobDefinitionsClient.NewListByDataServicePager method.
type JobDefinitionsClientListByDataServiceResponse ¶
type JobDefinitionsClientListByDataServiceResponse struct { // Job Definition Collection. JobDefinitionList }
JobDefinitionsClientListByDataServiceResponse contains the response from method JobDefinitionsClient.NewListByDataServicePager.
type JobDefinitionsClientRunResponse ¶
type JobDefinitionsClientRunResponse struct { }
JobDefinitionsClientRunResponse contains the response from method JobDefinitionsClient.BeginRun.
type JobDetails ¶
type JobDetails struct { // Error details for failure. This is optional. ErrorDetails []*ErrorDetails // Item Details Link to download files or see details ItemDetailsLink *string // JobDefinition at the time of the run JobDefinition *JobDefinition // List of stages that ran in the job JobStages []*JobStages }
JobDetails - Job details.
func (JobDetails) MarshalJSON ¶
func (j JobDetails) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JobDetails.
func (*JobDetails) UnmarshalJSON ¶
func (j *JobDetails) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JobDetails.
type JobFilter ¶
type JobFilter struct { // REQUIRED; The status of the job. Status *JobStatus // The start time of the job. StartTime *time.Time }
JobFilter - Contains the information about the filters for the job.
func (JobFilter) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type JobFilter.
func (*JobFilter) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type JobFilter.
type JobList ¶
type JobList struct { // Link for the next set of jobs. NextLink *string // List of jobs. Value []*Job }
JobList - Job Collection.
func (JobList) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type JobList.
func (*JobList) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type JobList.
type JobProperties ¶
type JobProperties struct { // REQUIRED; Describes whether the job is cancellable. IsCancellable *IsJobCancellable // Number of bytes processed by the job as of now. BytesProcessed *int64 // Name of the data sink on which the job was triggered. DataSinkName *string // Name of the data source on which the job was triggered. DataSourceName *string // Details of a job run. This field will only be sent for expand details filter. Details *JobDetails // Number of items processed by the job as of now ItemsProcessed *int64 // Number of bytes to be processed by the job in total. TotalBytesToProcess *int64 // Number of items to be processed by the job in total TotalItemsToProcess *int64 }
JobProperties - Job Properties
func (JobProperties) MarshalJSON ¶
func (j JobProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type JobProperties.
func (*JobProperties) UnmarshalJSON ¶
func (j *JobProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type JobProperties.
type JobStages ¶
type JobStages struct { // REQUIRED; Status of the job stage. StageStatus *JobStatus // Error details for the stage. This is optional ErrorDetails []*ErrorDetails // Job Stage Details JobStageDetails any // Name of the job stage. StageName *string }
JobStages - Job stages.
func (JobStages) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type JobStages.
func (*JobStages) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type JobStages.
type JobStatus ¶
type JobStatus string
JobStatus - Status of the job.
const ( JobStatusCancelled JobStatus = "Cancelled" JobStatusCancelling JobStatus = "Cancelling" JobStatusFailed JobStatus = "Failed" JobStatusInProgress JobStatus = "InProgress" JobStatusNone JobStatus = "None" JobStatusPartiallySucceeded JobStatus = "PartiallySucceeded" JobStatusSucceeded JobStatus = "Succeeded" JobStatusWaitingForAction JobStatus = "WaitingForAction" )
func PossibleJobStatusValues ¶
func PossibleJobStatusValues() []JobStatus
PossibleJobStatusValues returns the possible values for the JobStatus const type.
type JobsClient ¶
type JobsClient struct {
// contains filtered or unexported fields
}
JobsClient contains the methods for the Jobs group. Don't use this type directly, use NewJobsClient() instead.
func NewJobsClient ¶
func NewJobsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*JobsClient, error)
NewJobsClient creates a new instance of JobsClient with the specified values.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*JobsClient) BeginCancel ¶
func (client *JobsClient) BeginCancel(ctx context.Context, dataServiceName string, jobDefinitionName string, jobID string, resourceGroupName string, dataManagerName string, options *JobsClientBeginCancelOptions) (*runtime.Poller[JobsClientCancelResponse], error)
BeginCancel - Cancels the given job. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The name of the data service of the job definition.
- jobDefinitionName - The name of the job definition of the job.
- jobID - The job id of the job queried.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobsClientBeginCancelOptions contains the optional parameters for the JobsClient.BeginCancel method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Cancel-POST-example-111.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewJobsClient().BeginCancel(ctx, "DataTransformation", "jobdeffromtestcode1", "6eca9b3d-5ffe-4b44-9607-1ba838371ff7", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*JobsClient) BeginResume ¶
func (client *JobsClient) BeginResume(ctx context.Context, dataServiceName string, jobDefinitionName string, jobID string, resourceGroupName string, dataManagerName string, options *JobsClientBeginResumeOptions) (*runtime.Poller[JobsClientResumeResponse], error)
BeginResume - Resumes the given job. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The name of the data service of the job definition.
- jobDefinitionName - The name of the job definition of the job.
- jobID - The job id of the job queried.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobsClientBeginResumeOptions contains the optional parameters for the JobsClient.BeginResume method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Resume-POST-example-121.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewJobsClient().BeginResume(ctx, "DataTransformation", "jobdeffromtestcode1", "99ef93fe-36be-43e4-bebf-de6746730601", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } _, err = poller.PollUntilDone(ctx, nil) if err != nil { log.Fatalf("failed to pull the result: %v", err) } }
Output:
func (*JobsClient) Get ¶
func (client *JobsClient) Get(ctx context.Context, dataServiceName string, jobDefinitionName string, jobID string, resourceGroupName string, dataManagerName string, options *JobsClientGetOptions) (JobsClientGetResponse, error)
Get - This method gets a data manager job given the jobId. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- dataServiceName - The name of the data service of the job definition.
- jobDefinitionName - The name of the job definition of the job.
- jobID - The job id of the job queried.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobsClientGetOptions contains the optional parameters for the JobsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_Get-GET-example-101.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewJobsClient().Get(ctx, "DataTransformation", "jobdeffromtestcode1", "99ef93fe-36be-43e4-bebf-de6746730601", "ResourceGroupForSDKTest", "TestAzureSDKOperations", &armhybriddatamanager.JobsClientGetOptions{Expand: nil}) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.Job = armhybriddatamanager.Job{ // Name: to.Ptr("99ef93fe-36be-43e4-bebf-de6746730601"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/jobs"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1/jobs/99ef93fe-36be-43e4-bebf-de6746730601"), // Properties: &armhybriddatamanager.JobProperties{ // BytesProcessed: to.Ptr[int64](0), // IsCancellable: to.Ptr(armhybriddatamanager.IsJobCancellableCancellable), // ItemsProcessed: to.Ptr[int64](0), // TotalBytesToProcess: to.Ptr[int64](0), // TotalItemsToProcess: to.Ptr[int64](0), // }, // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T04:42:59.277Z"); return t}()), // Status: to.Ptr(armhybriddatamanager.JobStatusInProgress), // } }
Output:
func (*JobsClient) NewListByDataManagerPager ¶
func (client *JobsClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, options *JobsClientListByDataManagerOptions) *runtime.Pager[JobsClientListByDataManagerResponse]
NewListByDataManagerPager - This method gets all the jobs at the data manager resource level.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobsClientListByDataManagerOptions contains the optional parameters for the JobsClient.NewListByDataManagerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_ListByDataManager-GET-example-201.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewJobsClient().NewListByDataManagerPager("ResourceGroupForSDKTest", "TestAzureSDKOperations", &armhybriddatamanager.JobsClientListByDataManagerOptions{Filter: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.JobList = armhybriddatamanager.JobList{ // Value: []*armhybriddatamanager.Job{ // { // Name: to.Ptr("99ef93fe-36be-43e4-bebf-de6746730601"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/jobs"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1/jobs/99ef93fe-36be-43e4-bebf-de6746730601"), // Properties: &armhybriddatamanager.JobProperties{ // BytesProcessed: to.Ptr[int64](0), // IsCancellable: to.Ptr(armhybriddatamanager.IsJobCancellableCancellable), // ItemsProcessed: to.Ptr[int64](0), // TotalBytesToProcess: to.Ptr[int64](0), // TotalItemsToProcess: to.Ptr[int64](0), // }, // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T04:42:59.277Z"); return t}()), // Status: to.Ptr(armhybriddatamanager.JobStatusInProgress), // }, // { // Name: to.Ptr("aeb6aa32-cf46-4fa0-819f-48e0fe376f6e"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/jobs"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1/jobs/aeb6aa32-cf46-4fa0-819f-48e0fe376f6e"), // Properties: &armhybriddatamanager.JobProperties{ // BytesProcessed: to.Ptr[int64](0), // IsCancellable: to.Ptr(armhybriddatamanager.IsJobCancellableCancellable), // ItemsProcessed: to.Ptr[int64](0), // TotalBytesToProcess: to.Ptr[int64](0), // TotalItemsToProcess: to.Ptr[int64](0), // }, // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T04:42:10.605Z"); return t}()), // Status: to.Ptr(armhybriddatamanager.JobStatusInProgress), // }}, // } } }
Output:
func (*JobsClient) NewListByDataServicePager ¶
func (client *JobsClient) NewListByDataServicePager(dataServiceName string, resourceGroupName string, dataManagerName string, options *JobsClientListByDataServiceOptions) *runtime.Pager[JobsClientListByDataServiceResponse]
NewListByDataServicePager - This method gets all the jobs of a data service type in a given resource.
Generated from API version 2019-06-01
- dataServiceName - The name of the data service of interest.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobsClientListByDataServiceOptions contains the optional parameters for the JobsClient.NewListByDataServicePager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_ListByDataService-GET-example-141.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewJobsClient().NewListByDataServicePager("DataTransformation", "ResourceGroupForSDKTest", "TestAzureSDKOperations", &armhybriddatamanager.JobsClientListByDataServiceOptions{Filter: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.JobList = armhybriddatamanager.JobList{ // Value: []*armhybriddatamanager.Job{ // { // Name: to.Ptr("99ef93fe-36be-43e4-bebf-de6746730601"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/jobs"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1/jobs/99ef93fe-36be-43e4-bebf-de6746730601"), // Properties: &armhybriddatamanager.JobProperties{ // BytesProcessed: to.Ptr[int64](0), // IsCancellable: to.Ptr(armhybriddatamanager.IsJobCancellableCancellable), // ItemsProcessed: to.Ptr[int64](0), // TotalBytesToProcess: to.Ptr[int64](0), // TotalItemsToProcess: to.Ptr[int64](0), // }, // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T04:42:59.277Z"); return t}()), // Status: to.Ptr(armhybriddatamanager.JobStatusInProgress), // }, // { // Name: to.Ptr("aeb6aa32-cf46-4fa0-819f-48e0fe376f6e"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/jobs"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1/jobs/aeb6aa32-cf46-4fa0-819f-48e0fe376f6e"), // Properties: &armhybriddatamanager.JobProperties{ // BytesProcessed: to.Ptr[int64](0), // IsCancellable: to.Ptr(armhybriddatamanager.IsJobCancellableCancellable), // ItemsProcessed: to.Ptr[int64](0), // TotalBytesToProcess: to.Ptr[int64](0), // TotalItemsToProcess: to.Ptr[int64](0), // }, // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T04:42:10.605Z"); return t}()), // Status: to.Ptr(armhybriddatamanager.JobStatusInProgress), // }}, // } } }
Output:
func (*JobsClient) NewListByJobDefinitionPager ¶
func (client *JobsClient) NewListByJobDefinitionPager(dataServiceName string, jobDefinitionName string, resourceGroupName string, dataManagerName string, options *JobsClientListByJobDefinitionOptions) *runtime.Pager[JobsClientListByJobDefinitionResponse]
NewListByJobDefinitionPager - This method gets all the jobs of a given job definition.
Generated from API version 2019-06-01
- dataServiceName - The name of the data service of the job definition.
- jobDefinitionName - The name of the job definition for which jobs are needed.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - JobsClientListByJobDefinitionOptions contains the optional parameters for the JobsClient.NewListByJobDefinitionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Jobs_ListByJobDefinition-GET-example-91.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewJobsClient().NewListByJobDefinitionPager("DataTransformation", "jobdeffromtestcode1", "ResourceGroupForSDKTest", "TestAzureSDKOperations", &armhybriddatamanager.JobsClientListByJobDefinitionOptions{Filter: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.JobList = armhybriddatamanager.JobList{ // Value: []*armhybriddatamanager.Job{ // { // Name: to.Ptr("99ef93fe-36be-43e4-bebf-de6746730601"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/jobs"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1/jobs/99ef93fe-36be-43e4-bebf-de6746730601"), // Properties: &armhybriddatamanager.JobProperties{ // BytesProcessed: to.Ptr[int64](0), // IsCancellable: to.Ptr(armhybriddatamanager.IsJobCancellableCancellable), // ItemsProcessed: to.Ptr[int64](0), // TotalBytesToProcess: to.Ptr[int64](0), // TotalItemsToProcess: to.Ptr[int64](0), // }, // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T04:42:59.277Z"); return t}()), // Status: to.Ptr(armhybriddatamanager.JobStatusInProgress), // }, // { // Name: to.Ptr("aeb6aa32-cf46-4fa0-819f-48e0fe376f6e"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/jobs"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataServices/DataTransformation/jobDefinitions/jobdeffromtestcode1/jobs/aeb6aa32-cf46-4fa0-819f-48e0fe376f6e"), // Properties: &armhybriddatamanager.JobProperties{ // BytesProcessed: to.Ptr[int64](0), // IsCancellable: to.Ptr(armhybriddatamanager.IsJobCancellableCancellable), // ItemsProcessed: to.Ptr[int64](0), // TotalBytesToProcess: to.Ptr[int64](0), // TotalItemsToProcess: to.Ptr[int64](0), // }, // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2020-02-05T04:42:10.605Z"); return t}()), // Status: to.Ptr(armhybriddatamanager.JobStatusInProgress), // }}, // } } }
Output:
type JobsClientBeginCancelOptions ¶
type JobsClientBeginCancelOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
JobsClientBeginCancelOptions contains the optional parameters for the JobsClient.BeginCancel method.
type JobsClientBeginResumeOptions ¶
type JobsClientBeginResumeOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
JobsClientBeginResumeOptions contains the optional parameters for the JobsClient.BeginResume method.
type JobsClientCancelResponse ¶
type JobsClientCancelResponse struct { }
JobsClientCancelResponse contains the response from method JobsClient.BeginCancel.
type JobsClientGetOptions ¶
type JobsClientGetOptions struct { // $expand is supported on details parameter for job, which provides details on the job stages. Expand *string }
JobsClientGetOptions contains the optional parameters for the JobsClient.Get method.
type JobsClientGetResponse ¶
type JobsClientGetResponse struct { // Data service job. Job }
JobsClientGetResponse contains the response from method JobsClient.Get.
type JobsClientListByDataManagerOptions ¶
type JobsClientListByDataManagerOptions struct { // OData Filter options Filter *string }
JobsClientListByDataManagerOptions contains the optional parameters for the JobsClient.NewListByDataManagerPager method.
type JobsClientListByDataManagerResponse ¶
type JobsClientListByDataManagerResponse struct { // Job Collection. JobList }
JobsClientListByDataManagerResponse contains the response from method JobsClient.NewListByDataManagerPager.
type JobsClientListByDataServiceOptions ¶
type JobsClientListByDataServiceOptions struct { // OData Filter options Filter *string }
JobsClientListByDataServiceOptions contains the optional parameters for the JobsClient.NewListByDataServicePager method.
type JobsClientListByDataServiceResponse ¶
type JobsClientListByDataServiceResponse struct { // Job Collection. JobList }
JobsClientListByDataServiceResponse contains the response from method JobsClient.NewListByDataServicePager.
type JobsClientListByJobDefinitionOptions ¶
type JobsClientListByJobDefinitionOptions struct { // OData Filter options Filter *string }
JobsClientListByJobDefinitionOptions contains the optional parameters for the JobsClient.NewListByJobDefinitionPager method.
type JobsClientListByJobDefinitionResponse ¶
type JobsClientListByJobDefinitionResponse struct { // Job Collection. JobList }
JobsClientListByJobDefinitionResponse contains the response from method JobsClient.NewListByJobDefinitionPager.
type JobsClientResumeResponse ¶
type JobsClientResumeResponse struct { }
JobsClientResumeResponse contains the response from method JobsClient.BeginResume.
type Key ¶
type Key struct { // REQUIRED; The maximum byte size that can be encrypted by the key. For a key size larger than the size, break into chunks // and encrypt each chunk, append each encrypted chunk with : to mark the end of the chunk. EncryptionChunkSizeInBytes *int32 // REQUIRED; Exponent of the encryption key. KeyExponent *string // REQUIRED; Modulus of the encryption key. KeyModulus *string }
Key - Encryption Key.
func (Key) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Key.
func (*Key) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Key.
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 ¶
func (client *OperationsClient) NewListPager(options *OperationsClientListOptions) *runtime.Pager[OperationsClientListResponse]
NewListPager - The list of operations for Microsoft.HybridData provider.
Generated from API version 2019-06-01
- options - OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/Operations_List-GET-example-11.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewOperationsClient().NewListPager(nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.AvailableProviderOperations = armhybriddatamanager.AvailableProviderOperations{ // Value: []*armhybriddatamanager.AvailableProviderOperation{ // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/write"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Create or update Job definitions"), // Operation: to.Ptr("Creates or updates Job definitions"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Job definitions"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/delete"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Delete Job definitions"), // Operation: to.Ptr("Delete Job definitions"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Job definitions"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Job definitions"), // Operation: to.Ptr("Get Job definitions"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Job definitions"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/jobDefinitions/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Job definitions"), // Operation: to.Ptr("Get Job definitions"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Job definitions"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/listResults/action"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Get job defintions"), // Operation: to.Ptr("Get job definitions"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Job definitions"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/run/action"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Run job defintions"), // Operation: to.Ptr("Run job definitions"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Job definitions"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataStores/operationResults/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Operation results"), // Operation: to.Ptr("Get Operation results"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Operation results"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/operationResults/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Operation results"), // Operation: to.Ptr("Get Operation results"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Operation results"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/jobs/operationResults/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Operation results"), // Operation: to.Ptr("Get Operation results"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Operation results"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/operationResults/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Operation results"), // Operation: to.Ptr("Get Operation results"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Operation results"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/publicKeys/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Public keys"), // Operation: to.Ptr("Get Public keys"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Public keys"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Data services"), // Operation: to.Ptr("Get Data services"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Data services"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataStores/write"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Create or update Datastores"), // Operation: to.Ptr("Creates or updates Datastores"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Datastores"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataStores/delete"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Delete Datastores"), // Operation: to.Ptr("Delete Datastores"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Datastores"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataStores/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Datastores"), // Operation: to.Ptr("Get Datastores"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Datastores"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataStoreTypes/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Datastore types"), // Operation: to.Ptr("Get Datastore types"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Datastore types"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/delete"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Delete Data managers"), // Operation: to.Ptr("Delete Data managers"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Data managers"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Data managers"), // Operation: to.Ptr("Get Data managers"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Data managers"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/write"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Create or update Data managers"), // Operation: to.Ptr("Creates or updates Data managers"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Data managers"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/jobs/cancel/action"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Cancel jobs"), // Operation: to.Ptr("Cancel jobs"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Jobs"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/jobs/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Jobs"), // Operation: to.Ptr("Get Jobs"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Jobs"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/jobs/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Jobs"), // Operation: to.Ptr("Get Jobs"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Jobs"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobs/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read Jobs"), // Operation: to.Ptr("Get Jobs"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Jobs"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/dataManagers/dataServices/jobDefinitions/jobs/resume/action"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Resume jobs"), // Operation: to.Ptr("Resumes jobs"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("Jobs"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }, // { // Name: to.Ptr("Microsoft.HybridData/read"), // Display: &armhybriddatamanager.AvailableProviderOperationDisplay{ // Description: to.Ptr("Read ArmApiRes_Microsoft.HybridData"), // Operation: to.Ptr("Get ArmApiRes_Microsoft.HybridData"), // Provider: to.Ptr("Microsoft.HybridData"), // Resource: to.Ptr("ArmApiRes_Microsoft.HybridData"), // }, // Origin: to.Ptr("user"), // Properties: map[string]any{ // }, // }}, // } } }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // Class for set of operations used for discovery of available provider operations. AvailableProviderOperations }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type PublicKey ¶
type PublicKey struct { // REQUIRED; Public key property. Properties *PublicKeyProperties // READ-ONLY; Id of the object. ID *string // READ-ONLY; Name of the object. Name *string // READ-ONLY; Type of the object. Type *string }
PublicKey - Public key
func (PublicKey) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type PublicKey.
func (*PublicKey) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type PublicKey.
type PublicKeyList ¶
type PublicKeyList struct { // Link for the next set of public keys. NextLink *string // List of public keys. Value []*PublicKey }
PublicKeyList - PublicKey Collection
func (PublicKeyList) MarshalJSON ¶
func (p PublicKeyList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicKeyList.
func (*PublicKeyList) UnmarshalJSON ¶
func (p *PublicKeyList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PublicKeyList.
type PublicKeyProperties ¶
type PublicKeyProperties struct { // REQUIRED; Level one public key for encryption DataServiceLevel1Key *Key // REQUIRED; Level two public key for encryption DataServiceLevel2Key *Key }
PublicKeyProperties - PublicKey Properties
func (PublicKeyProperties) MarshalJSON ¶
func (p PublicKeyProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicKeyProperties.
func (*PublicKeyProperties) UnmarshalJSON ¶
func (p *PublicKeyProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PublicKeyProperties.
type PublicKeysClient ¶
type PublicKeysClient struct {
// contains filtered or unexported fields
}
PublicKeysClient contains the methods for the PublicKeys group. Don't use this type directly, use NewPublicKeysClient() instead.
func NewPublicKeysClient ¶
func NewPublicKeysClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PublicKeysClient, error)
NewPublicKeysClient creates a new instance of PublicKeysClient with the specified values.
- subscriptionID - The Subscription Id
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PublicKeysClient) Get ¶
func (client *PublicKeysClient) Get(ctx context.Context, publicKeyName string, resourceGroupName string, dataManagerName string, options *PublicKeysClientGetOptions) (PublicKeysClientGetResponse, error)
Get - This method gets the public keys. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2019-06-01
- publicKeyName - Name of the public key.
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - PublicKeysClientGetOptions contains the optional parameters for the PublicKeysClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/PublicKeys_Get-GET-example-222.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPublicKeysClient().Get(ctx, "default", "ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) if err != nil { log.Fatalf("failed to finish the request: %v", err) } // You could use response here. We use blank identifier for just demo purposes. _ = res // If the HTTP response code is 200 as defined in example definition, your response structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // res.PublicKey = armhybriddatamanager.PublicKey{ // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/publicKeys"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/publicKeys/default"), // Properties: &armhybriddatamanager.PublicKeyProperties{ // DataServiceLevel1Key: &armhybriddatamanager.Key{ // EncryptionChunkSizeInBytes: to.Ptr[int32](245), // KeyExponent: to.Ptr("AQAB"), // KeyModulus: to.Ptr("mjDxqxGmawhC15TUM/oKCe2rRg6nM+IEqujgn17vc1litm3TPmv7rtDr4Y/L/t+tYCug7aXxJtwGA9ETOUF9iUoGPE3zBKMGPJhO5nRF3IW27OzYUNTdHgUjlV0ba5QlZQ/f5ideEboJvdlw05ofPVQKZ9Hh95/9sOFYuNBKP0LPwKz1VrrhvM7tVgdIhZdekuIOt4S+7WjRV5J+XT0jlhwUBEIxx8knRPagmxygSZM3h/FbX+mEbduIwVy+y1HwtfwVq3PyR9YIDjVDuc3+6VNZd69TEIHqRQlbwb2jkitgEHx/Vs32KtDyfRZgkhA6ZGZRlnEiX3R0YRzjCt5xCw=="), // }, // DataServiceLevel2Key: &armhybriddatamanager.Key{ // EncryptionChunkSizeInBytes: to.Ptr[int32](245), // KeyExponent: to.Ptr("AQAB"), // KeyModulus: to.Ptr("rtCsQNdCaDwLHIvgkhkKldvUNjili+rsj8CVaKGTwAyQGvAIwKOe3zfwW3TFaeycTFAQ1payBjY2tW9uWSWDTJRpHZVYTTX/1mjnXHTqcZYsgSkblt0PhLWbbYATGMmyBie0XM3Xfy1ilwAMYNHu+YaW56NyFpepyNcheZbmkD4/Vveh+5JStwObqEp1vsagraQ/IqUDCAETRxFc3iIWJZnqW2yfIWZshky20fkmyBnRrpe5fexpj6Xz4VHT76Lj+7bTEbsFSq7fNUjRcCIf2gat8bBN4HD2w//GZVCKarQG6G0kilA0bDZHFAzVeTs2+UYB+1GA+r+Uy3SOEIdLPw=="), // }, // }, // } }
Output:
func (*PublicKeysClient) NewListByDataManagerPager ¶
func (client *PublicKeysClient) NewListByDataManagerPager(resourceGroupName string, dataManagerName string, options *PublicKeysClientListByDataManagerOptions) *runtime.Pager[PublicKeysClientListByDataManagerResponse]
NewListByDataManagerPager - This method gets the list view of public keys, however it will only have one element.
Generated from API version 2019-06-01
- resourceGroupName - The Resource Group Name
- dataManagerName - The name of the DataManager Resource within the specified resource group. DataManager names must be between 3 and 24 characters in length and use any alphanumeric and underscore only
- options - PublicKeysClientListByDataManagerOptions contains the optional parameters for the PublicKeysClient.NewListByDataManagerPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/hybriddatamanager/resource-manager/Microsoft.HybridData/stable/2019-06-01/examples/PublicKeys_ListByDataManager-GET-example-211.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/hybriddatamanager/armhybriddatamanager" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armhybriddatamanager.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPublicKeysClient().NewListByDataManagerPager("ResourceGroupForSDKTest", "TestAzureSDKOperations", nil) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.PublicKeyList = armhybriddatamanager.PublicKeyList{ // Value: []*armhybriddatamanager.PublicKey{ // { // Name: to.Ptr("default"), // Type: to.Ptr("Microsoft.HybridData/dataManagers/publicKeys"), // ID: to.Ptr("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/publicKeys/default"), // Properties: &armhybriddatamanager.PublicKeyProperties{ // DataServiceLevel1Key: &armhybriddatamanager.Key{ // EncryptionChunkSizeInBytes: to.Ptr[int32](245), // KeyExponent: to.Ptr("AQAB"), // KeyModulus: to.Ptr("mjDxqxGmawhC15TUM/oKCe2rRg6nM+IEqujgn17vc1litm3TPmv7rtDr4Y/L/t+tYCug7aXxJtwGA9ETOUF9iUoGPE3zBKMGPJhO5nRF3IW27OzYUNTdHgUjlV0ba5QlZQ/f5ideEboJvdlw05ofPVQKZ9Hh95/9sOFYuNBKP0LPwKz1VrrhvM7tVgdIhZdekuIOt4S+7WjRV5J+XT0jlhwUBEIxx8knRPagmxygSZM3h/FbX+mEbduIwVy+y1HwtfwVq3PyR9YIDjVDuc3+6VNZd69TEIHqRQlbwb2jkitgEHx/Vs32KtDyfRZgkhA6ZGZRlnEiX3R0YRzjCt5xCw=="), // }, // DataServiceLevel2Key: &armhybriddatamanager.Key{ // EncryptionChunkSizeInBytes: to.Ptr[int32](245), // KeyExponent: to.Ptr("AQAB"), // KeyModulus: to.Ptr("rtCsQNdCaDwLHIvgkhkKldvUNjili+rsj8CVaKGTwAyQGvAIwKOe3zfwW3TFaeycTFAQ1payBjY2tW9uWSWDTJRpHZVYTTX/1mjnXHTqcZYsgSkblt0PhLWbbYATGMmyBie0XM3Xfy1ilwAMYNHu+YaW56NyFpepyNcheZbmkD4/Vveh+5JStwObqEp1vsagraQ/IqUDCAETRxFc3iIWJZnqW2yfIWZshky20fkmyBnRrpe5fexpj6Xz4VHT76Lj+7bTEbsFSq7fNUjRcCIf2gat8bBN4HD2w//GZVCKarQG6G0kilA0bDZHFAzVeTs2+UYB+1GA+r+Uy3SOEIdLPw=="), // }, // }, // }}, // } } }
Output:
type PublicKeysClientGetOptions ¶
type PublicKeysClientGetOptions struct { }
PublicKeysClientGetOptions contains the optional parameters for the PublicKeysClient.Get method.
type PublicKeysClientGetResponse ¶
type PublicKeysClientGetResponse struct { // Public key PublicKey }
PublicKeysClientGetResponse contains the response from method PublicKeysClient.Get.
type PublicKeysClientListByDataManagerOptions ¶
type PublicKeysClientListByDataManagerOptions struct { }
PublicKeysClientListByDataManagerOptions contains the optional parameters for the PublicKeysClient.NewListByDataManagerPager method.
type PublicKeysClientListByDataManagerResponse ¶
type PublicKeysClientListByDataManagerResponse struct { // PublicKey Collection PublicKeyList }
PublicKeysClientListByDataManagerResponse contains the response from method PublicKeysClient.NewListByDataManagerPager.
type Resource ¶
type Resource struct { // REQUIRED; The location of the resource. This will be one of the supported and registered Azure Geo Regions (e.g. West US, // East US, Southeast Asia, etc.). The geo region of a resource cannot be changed once it // is created, but if an identical geo region is specified on update the request will succeed. Location *string // The sku type. SKU *SKU // The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across // resource groups). Tags map[string]*string // READ-ONLY; The Resource Id. ID *string // READ-ONLY; The Resource Name. Name *string // READ-ONLY; The Resource type. Type *string }
Resource - Model of the Resource.
func (Resource) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Resource.
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Resource.
type RunLocation ¶
type RunLocation string
RunLocation - This is the preferred geo location for the job to run.
const ( RunLocationAustraliaeast RunLocation = "australiaeast" RunLocationAustraliasoutheast RunLocation = "australiasoutheast" RunLocationBrazilsouth RunLocation = "brazilsouth" RunLocationCanadacentral RunLocation = "canadacentral" RunLocationCanadaeast RunLocation = "canadaeast" RunLocationCentralindia RunLocation = "centralindia" RunLocationCentralus RunLocation = "centralus" RunLocationEastasia RunLocation = "eastasia" RunLocationEastus RunLocation = "eastus" RunLocationEastus2 RunLocation = "eastus2" RunLocationJapaneast RunLocation = "japaneast" RunLocationJapanwest RunLocation = "japanwest" RunLocationKoreacentral RunLocation = "koreacentral" RunLocationKoreasouth RunLocation = "koreasouth" RunLocationNone RunLocation = "none" RunLocationNorthcentralus RunLocation = "northcentralus" RunLocationNortheurope RunLocation = "northeurope" RunLocationSouthcentralus RunLocation = "southcentralus" RunLocationSoutheastasia RunLocation = "southeastasia" RunLocationSouthindia RunLocation = "southindia" RunLocationUksouth RunLocation = "uksouth" RunLocationUkwest RunLocation = "ukwest" RunLocationWestcentralus RunLocation = "westcentralus" RunLocationWesteurope RunLocation = "westeurope" RunLocationWestindia RunLocation = "westindia" RunLocationWestus RunLocation = "westus" RunLocationWestus2 RunLocation = "westus2" )
func PossibleRunLocationValues ¶
func PossibleRunLocationValues() []RunLocation
PossibleRunLocationValues returns the possible values for the RunLocation const type.
type RunParameters ¶
type RunParameters struct { // List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source // to understand the key. Value contains customer secret encrypted by the // encryptionKeys. CustomerSecrets []*CustomerSecret // A generic json used differently by each data service type. DataServiceInput any // Enum to detect if user confirmation is required. If not passed will default to NotRequired. UserConfirmation *UserConfirmation }
RunParameters - Run parameters for a job.
func (RunParameters) MarshalJSON ¶
func (r RunParameters) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RunParameters.
func (*RunParameters) UnmarshalJSON ¶
func (r *RunParameters) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RunParameters.
type SKU ¶
type SKU struct { // The sku name. Required for data manager creation, optional for update. Name *string // The sku tier. This is based on the SKU name. Tier *string }
SKU - The sku type.
func (SKU) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type SKU.
func (*SKU) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type SKU.
type Schedule ¶
type Schedule struct { // Name of the schedule. Name *string // A list of repetition intervals in ISO 8601 format. PolicyList []*string }
Schedule for the job run.
func (Schedule) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Schedule.
func (*Schedule) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Schedule.
type State ¶
type State string
State - State of the data service.
func PossibleStateValues ¶
func PossibleStateValues() []State
PossibleStateValues returns the possible values for the State const type.
type SupportedAlgorithm ¶
type SupportedAlgorithm string
SupportedAlgorithm - The encryption algorithm used to encrypt data.
const ( SupportedAlgorithmNone SupportedAlgorithm = "None" SupportedAlgorithmPlainText SupportedAlgorithm = "PlainText" SupportedAlgorithmRSA15 SupportedAlgorithm = "RSA1_5" SupportedAlgorithmRSAOAEP SupportedAlgorithm = "RSA_OAEP" )
func PossibleSupportedAlgorithmValues ¶
func PossibleSupportedAlgorithmValues() []SupportedAlgorithm
PossibleSupportedAlgorithmValues returns the possible values for the SupportedAlgorithm const type.
type UserConfirmation ¶
type UserConfirmation string
UserConfirmation - Enum to detect if user confirmation is required. If not passed will default to NotRequired.
const ( UserConfirmationNotRequired UserConfirmation = "NotRequired" UserConfirmationRequired UserConfirmation = "Required" )
func PossibleUserConfirmationValues ¶
func PossibleUserConfirmationValues() []UserConfirmation
PossibleUserConfirmationValues returns the possible values for the UserConfirmation const type.