Documentation ¶
Index ¶
- type ActionType
- type AzStackHCIClusterProperties
- type AzStackHCIFabricModelCustomProperties
- type AzureSiteRecoveryManagementServiceAPIClient
- func (client *AzureSiteRecoveryManagementServiceAPIClient) CheckNameAvailability(ctx context.Context, location string, ...) (AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityResponse, ...)
- func (client *AzureSiteRecoveryManagementServiceAPIClient) DeploymentPreflight(ctx context.Context, resourceGroupName string, deploymentID string, ...) (AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightResponse, error)
- type AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityOptions
- type AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityResponse
- type AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightOptions
- type AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightResponse
- type CheckNameAvailabilityModel
- type CheckNameAvailabilityResponseModel
- type ClientFactory
- func (c *ClientFactory) NewAzureSiteRecoveryManagementServiceAPIClient() *AzureSiteRecoveryManagementServiceAPIClient
- func (c *ClientFactory) NewDraClient() *DraClient
- func (c *ClientFactory) NewDraOperationStatusClient() *DraOperationStatusClient
- func (c *ClientFactory) NewEmailConfigurationClient() *EmailConfigurationClient
- func (c *ClientFactory) NewEventClient() *EventClient
- func (c *ClientFactory) NewFabricClient() *FabricClient
- func (c *ClientFactory) NewFabricOperationsStatusClient() *FabricOperationsStatusClient
- func (c *ClientFactory) NewOperationsClient() *OperationsClient
- func (c *ClientFactory) NewPolicyClient() *PolicyClient
- func (c *ClientFactory) NewPolicyOperationStatusClient() *PolicyOperationStatusClient
- func (c *ClientFactory) NewProtectedItemClient() *ProtectedItemClient
- func (c *ClientFactory) NewProtectedItemOperationStatusClient() *ProtectedItemOperationStatusClient
- func (c *ClientFactory) NewRecoveryPointsClient() *RecoveryPointsClient
- func (c *ClientFactory) NewReplicationExtensionClient() *ReplicationExtensionClient
- func (c *ClientFactory) NewReplicationExtensionOperationStatusClient() *ReplicationExtensionOperationStatusClient
- func (c *ClientFactory) NewVaultClient() *VaultClient
- func (c *ClientFactory) NewVaultOperationStatusClient() *VaultOperationStatusClient
- func (c *ClientFactory) NewWorkflowClient() *WorkflowClient
- func (c *ClientFactory) NewWorkflowOperationStatusClient() *WorkflowOperationStatusClient
- type DeploymentPreflightModel
- type DeploymentPreflightResource
- type DraClient
- func (client *DraClient) BeginCreate(ctx context.Context, resourceGroupName string, fabricName string, ...) (*runtime.Poller[DraClientCreateResponse], error)
- func (client *DraClient) BeginDelete(ctx context.Context, resourceGroupName string, fabricName string, ...) (*runtime.Poller[DraClientDeleteResponse], error)
- func (client *DraClient) Get(ctx context.Context, resourceGroupName string, fabricName string, ...) (DraClientGetResponse, error)
- func (client *DraClient) NewListPager(resourceGroupName string, fabricName string, options *DraClientListOptions) *runtime.Pager[DraClientListResponse]
- type DraClientBeginCreateOptions
- type DraClientBeginDeleteOptions
- type DraClientCreateResponse
- type DraClientDeleteResponse
- type DraClientGetOptions
- type DraClientGetResponse
- type DraClientListOptions
- type DraClientListResponse
- type DraModel
- type DraModelCollection
- type DraModelCustomProperties
- type DraModelCustomPropertiesClassification
- type DraModelProperties
- type DraModelSystemData
- type DraOperationStatusClient
- type DraOperationStatusClientGetOptions
- type DraOperationStatusClientGetResponse
- type EmailConfigurationClient
- func (client *EmailConfigurationClient) Create(ctx context.Context, resourceGroupName string, vaultName string, ...) (EmailConfigurationClientCreateResponse, error)
- func (client *EmailConfigurationClient) Get(ctx context.Context, resourceGroupName string, vaultName string, ...) (EmailConfigurationClientGetResponse, error)
- func (client *EmailConfigurationClient) NewListPager(resourceGroupName string, vaultName string, ...) *runtime.Pager[EmailConfigurationClientListResponse]
- type EmailConfigurationClientCreateOptions
- type EmailConfigurationClientCreateResponse
- type EmailConfigurationClientGetOptions
- type EmailConfigurationClientGetResponse
- type EmailConfigurationClientListOptions
- type EmailConfigurationClientListResponse
- type EmailConfigurationModel
- type EmailConfigurationModelCollection
- type EmailConfigurationModelProperties
- type EmailConfigurationModelSystemData
- type ErrorModel
- type EventClient
- type EventClientGetOptions
- type EventClientGetResponse
- type EventClientListOptions
- type EventClientListResponse
- type EventModel
- type EventModelCollection
- type EventModelCustomProperties
- type EventModelCustomPropertiesClassification
- type EventModelProperties
- type EventModelSystemData
- type FabricClient
- func (client *FabricClient) BeginCreate(ctx context.Context, resourceGroupName string, fabricName string, ...) (*runtime.Poller[FabricClientCreateResponse], error)
- func (client *FabricClient) BeginDelete(ctx context.Context, resourceGroupName string, fabricName string, ...) (*runtime.Poller[FabricClientDeleteResponse], error)
- func (client *FabricClient) BeginUpdate(ctx context.Context, resourceGroupName string, fabricName string, ...) (*runtime.Poller[FabricClientUpdateResponse], error)
- func (client *FabricClient) Get(ctx context.Context, resourceGroupName string, fabricName string, ...) (FabricClientGetResponse, error)
- func (client *FabricClient) NewListBySubscriptionPager(options *FabricClientListBySubscriptionOptions) *runtime.Pager[FabricClientListBySubscriptionResponse]
- func (client *FabricClient) NewListPager(resourceGroupName string, options *FabricClientListOptions) *runtime.Pager[FabricClientListResponse]
- type FabricClientBeginCreateOptions
- type FabricClientBeginDeleteOptions
- type FabricClientBeginUpdateOptions
- type FabricClientCreateResponse
- type FabricClientDeleteResponse
- type FabricClientGetOptions
- type FabricClientGetResponse
- type FabricClientListBySubscriptionOptions
- type FabricClientListBySubscriptionResponse
- type FabricClientListOptions
- type FabricClientListResponse
- type FabricClientUpdateResponse
- type FabricModel
- type FabricModelCollection
- type FabricModelCustomProperties
- type FabricModelCustomPropertiesClassification
- type FabricModelProperties
- type FabricModelSystemData
- type FabricModelUpdate
- type FabricModelUpdateSystemData
- type FabricOperationsStatusClient
- type FabricOperationsStatusClientGetOptions
- type FabricOperationsStatusClientGetResponse
- type FailoverProtectedItemProperties
- type FailoverWorkflowModelCustomProperties
- type HealthErrorModel
- type HealthStatus
- type HyperVMigrateFabricModelCustomProperties
- type HyperVToAzStackHCIDiskInput
- type HyperVToAzStackHCIEventModelCustomProperties
- type HyperVToAzStackHCINicInput
- type HyperVToAzStackHCIPlannedFailoverModelCustomProperties
- func (h *HyperVToAzStackHCIPlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties() *PlannedFailoverModelCustomProperties
- func (h HyperVToAzStackHCIPlannedFailoverModelCustomProperties) MarshalJSON() ([]byte, error)
- func (h *HyperVToAzStackHCIPlannedFailoverModelCustomProperties) UnmarshalJSON(data []byte) error
- type HyperVToAzStackHCIPolicyModelCustomProperties
- type HyperVToAzStackHCIProtectedDiskProperties
- type HyperVToAzStackHCIProtectedItemModelCustomProperties
- func (h *HyperVToAzStackHCIProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties() *ProtectedItemModelCustomProperties
- func (h HyperVToAzStackHCIProtectedItemModelCustomProperties) MarshalJSON() ([]byte, error)
- func (h *HyperVToAzStackHCIProtectedItemModelCustomProperties) UnmarshalJSON(data []byte) error
- type HyperVToAzStackHCIProtectedNicProperties
- type HyperVToAzStackHCIRecoveryPointModelCustomProperties
- func (h *HyperVToAzStackHCIRecoveryPointModelCustomProperties) GetRecoveryPointModelCustomProperties() *RecoveryPointModelCustomProperties
- func (h HyperVToAzStackHCIRecoveryPointModelCustomProperties) MarshalJSON() ([]byte, error)
- func (h *HyperVToAzStackHCIRecoveryPointModelCustomProperties) UnmarshalJSON(data []byte) error
- type HyperVToAzStackHCIReplicationExtensionModelCustomProperties
- func (h *HyperVToAzStackHCIReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties() *ReplicationExtensionModelCustomProperties
- func (h HyperVToAzStackHCIReplicationExtensionModelCustomProperties) MarshalJSON() ([]byte, error)
- func (h *HyperVToAzStackHCIReplicationExtensionModelCustomProperties) UnmarshalJSON(data []byte) error
- type IdentityModel
- type InnerHealthErrorModel
- type Operation
- type OperationDisplay
- type OperationListResult
- type OperationStatus
- type OperationsClient
- type OperationsClientListOptions
- type OperationsClientListResponse
- type Origin
- type PlannedFailoverModel
- type PlannedFailoverModelCustomProperties
- type PlannedFailoverModelCustomPropertiesClassification
- type PlannedFailoverModelProperties
- type PolicyClient
- func (client *PolicyClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[PolicyClientCreateResponse], error)
- func (client *PolicyClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[PolicyClientDeleteResponse], error)
- func (client *PolicyClient) Get(ctx context.Context, resourceGroupName string, vaultName string, ...) (PolicyClientGetResponse, error)
- func (client *PolicyClient) NewListPager(resourceGroupName string, vaultName string, options *PolicyClientListOptions) *runtime.Pager[PolicyClientListResponse]
- type PolicyClientBeginCreateOptions
- type PolicyClientBeginDeleteOptions
- type PolicyClientCreateResponse
- type PolicyClientDeleteResponse
- type PolicyClientGetOptions
- type PolicyClientGetResponse
- type PolicyClientListOptions
- type PolicyClientListResponse
- type PolicyModel
- type PolicyModelCollection
- type PolicyModelCustomProperties
- type PolicyModelCustomPropertiesClassification
- type PolicyModelProperties
- type PolicyModelSystemData
- type PolicyOperationStatusClient
- type PolicyOperationStatusClientGetOptions
- type PolicyOperationStatusClientGetResponse
- type ProtectedItemActiveLocation
- type ProtectedItemClient
- func (client *ProtectedItemClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[ProtectedItemClientCreateResponse], error)
- func (client *ProtectedItemClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[ProtectedItemClientDeleteResponse], error)
- func (client *ProtectedItemClient) BeginPlannedFailover(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[ProtectedItemClientPlannedFailoverResponse], error)
- func (client *ProtectedItemClient) Get(ctx context.Context, resourceGroupName string, vaultName string, ...) (ProtectedItemClientGetResponse, error)
- func (client *ProtectedItemClient) NewListPager(resourceGroupName string, vaultName string, ...) *runtime.Pager[ProtectedItemClientListResponse]
- type ProtectedItemClientBeginCreateOptions
- type ProtectedItemClientBeginDeleteOptions
- type ProtectedItemClientBeginPlannedFailoverOptions
- type ProtectedItemClientCreateResponse
- type ProtectedItemClientDeleteResponse
- type ProtectedItemClientGetOptions
- type ProtectedItemClientGetResponse
- type ProtectedItemClientListOptions
- type ProtectedItemClientListResponse
- type ProtectedItemClientPlannedFailoverResponse
- type ProtectedItemDynamicMemoryConfig
- type ProtectedItemModel
- type ProtectedItemModelCollection
- type ProtectedItemModelCustomProperties
- type ProtectedItemModelCustomPropertiesClassification
- type ProtectedItemModelProperties
- type ProtectedItemModelPropertiesCurrentJob
- type ProtectedItemModelPropertiesLastFailedEnableProtectionJob
- type ProtectedItemModelPropertiesLastFailedPlannedFailoverJob
- type ProtectedItemModelPropertiesLastTestFailoverJob
- type ProtectedItemModelSystemData
- type ProtectedItemOperationStatusClient
- type ProtectedItemOperationStatusClientGetOptions
- type ProtectedItemOperationStatusClientGetResponse
- type ProtectionState
- type ProvisioningState
- type RecoveryPointModel
- type RecoveryPointModelCollection
- type RecoveryPointModelCustomProperties
- type RecoveryPointModelCustomPropertiesClassification
- type RecoveryPointModelProperties
- type RecoveryPointModelSystemData
- type RecoveryPointType
- type RecoveryPointsClient
- func (client *RecoveryPointsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, ...) (RecoveryPointsClientGetResponse, error)
- func (client *RecoveryPointsClient) NewListPager(resourceGroupName string, vaultName string, protectedItemName string, ...) *runtime.Pager[RecoveryPointsClientListResponse]
- type RecoveryPointsClientGetOptions
- type RecoveryPointsClientGetResponse
- type RecoveryPointsClientListOptions
- type RecoveryPointsClientListResponse
- type ReplicationExtensionClient
- func (client *ReplicationExtensionClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[ReplicationExtensionClientCreateResponse], error)
- func (client *ReplicationExtensionClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[ReplicationExtensionClientDeleteResponse], error)
- func (client *ReplicationExtensionClient) Get(ctx context.Context, resourceGroupName string, vaultName string, ...) (ReplicationExtensionClientGetResponse, error)
- func (client *ReplicationExtensionClient) NewListPager(resourceGroupName string, vaultName string, ...) *runtime.Pager[ReplicationExtensionClientListResponse]
- type ReplicationExtensionClientBeginCreateOptions
- type ReplicationExtensionClientBeginDeleteOptions
- type ReplicationExtensionClientCreateResponse
- type ReplicationExtensionClientDeleteResponse
- type ReplicationExtensionClientGetOptions
- type ReplicationExtensionClientGetResponse
- type ReplicationExtensionClientListOptions
- type ReplicationExtensionClientListResponse
- type ReplicationExtensionModel
- type ReplicationExtensionModelCollection
- type ReplicationExtensionModelCustomProperties
- func (r *ReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties() *ReplicationExtensionModelCustomProperties
- func (r ReplicationExtensionModelCustomProperties) MarshalJSON() ([]byte, error)
- func (r *ReplicationExtensionModelCustomProperties) UnmarshalJSON(data []byte) error
- type ReplicationExtensionModelCustomPropertiesClassification
- type ReplicationExtensionModelProperties
- type ReplicationExtensionModelSystemData
- type ReplicationExtensionOperationStatusClient
- type ReplicationExtensionOperationStatusClientGetOptions
- type ReplicationExtensionOperationStatusClientGetResponse
- type ReplicationVaultType
- type ResynchronizationState
- type StorageContainerProperties
- type TaskModel
- type TaskModelCustomProperties
- type TaskState
- type TestFailoverCleanupWorkflowModelCustomProperties
- func (t *TestFailoverCleanupWorkflowModelCustomProperties) GetWorkflowModelCustomProperties() *WorkflowModelCustomProperties
- func (t TestFailoverCleanupWorkflowModelCustomProperties) MarshalJSON() ([]byte, error)
- func (t *TestFailoverCleanupWorkflowModelCustomProperties) UnmarshalJSON(data []byte) error
- type TestFailoverState
- type TestFailoverWorkflowModelCustomProperties
- type VMNicSelection
- type VMwareDraModelCustomProperties
- type VMwareMigrateFabricModelCustomProperties
- type VMwareToAzStackHCIDiskInput
- type VMwareToAzStackHCINicInput
- type VMwareToAzStackHCIPlannedFailoverModelCustomProperties
- func (v *VMwareToAzStackHCIPlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties() *PlannedFailoverModelCustomProperties
- func (v VMwareToAzStackHCIPlannedFailoverModelCustomProperties) MarshalJSON() ([]byte, error)
- func (v *VMwareToAzStackHCIPlannedFailoverModelCustomProperties) UnmarshalJSON(data []byte) error
- type VMwareToAzStackHCIPolicyModelCustomProperties
- type VMwareToAzStackHCIProtectedDiskProperties
- type VMwareToAzStackHCIProtectedItemModelCustomProperties
- func (v *VMwareToAzStackHCIProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties() *ProtectedItemModelCustomProperties
- func (v VMwareToAzStackHCIProtectedItemModelCustomProperties) MarshalJSON() ([]byte, error)
- func (v *VMwareToAzStackHCIProtectedItemModelCustomProperties) UnmarshalJSON(data []byte) error
- type VMwareToAzStackHCIProtectedNicProperties
- type VMwareToAzStackHCIReplicationExtensionModelCustomProperties
- func (v *VMwareToAzStackHCIReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties() *ReplicationExtensionModelCustomProperties
- func (v VMwareToAzStackHCIReplicationExtensionModelCustomProperties) MarshalJSON() ([]byte, error)
- func (v *VMwareToAzStackHCIReplicationExtensionModelCustomProperties) UnmarshalJSON(data []byte) error
- type VMwareToAzureMigrateResyncState
- type VaultClient
- func (client *VaultClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[VaultClientCreateResponse], error)
- func (client *VaultClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[VaultClientDeleteResponse], error)
- func (client *VaultClient) BeginUpdate(ctx context.Context, resourceGroupName string, vaultName string, ...) (*runtime.Poller[VaultClientUpdateResponse], error)
- func (client *VaultClient) Get(ctx context.Context, resourceGroupName string, vaultName string, ...) (VaultClientGetResponse, error)
- func (client *VaultClient) NewListBySubscriptionPager(options *VaultClientListBySubscriptionOptions) *runtime.Pager[VaultClientListBySubscriptionResponse]
- func (client *VaultClient) NewListPager(resourceGroupName string, options *VaultClientListOptions) *runtime.Pager[VaultClientListResponse]
- type VaultClientBeginCreateOptions
- type VaultClientBeginDeleteOptions
- type VaultClientBeginUpdateOptions
- type VaultClientCreateResponse
- type VaultClientDeleteResponse
- type VaultClientGetOptions
- type VaultClientGetResponse
- type VaultClientListBySubscriptionOptions
- type VaultClientListBySubscriptionResponse
- type VaultClientListOptions
- type VaultClientListResponse
- type VaultClientUpdateResponse
- type VaultModel
- type VaultModelCollection
- type VaultModelProperties
- type VaultModelSystemData
- type VaultModelUpdate
- type VaultModelUpdateSystemData
- type VaultOperationStatusClient
- type VaultOperationStatusClientGetOptions
- type VaultOperationStatusClientGetResponse
- type WorkflowClient
- func (client *WorkflowClient) Get(ctx context.Context, resourceGroupName string, vaultName string, ...) (WorkflowClientGetResponse, error)
- func (client *WorkflowClient) NewListPager(resourceGroupName string, vaultName string, options *WorkflowClientListOptions) *runtime.Pager[WorkflowClientListResponse]
- type WorkflowClientGetOptions
- type WorkflowClientGetResponse
- type WorkflowClientListOptions
- type WorkflowClientListResponse
- type WorkflowModel
- type WorkflowModelCollection
- type WorkflowModelCustomProperties
- type WorkflowModelCustomPropertiesClassification
- type WorkflowModelProperties
- type WorkflowModelSystemData
- type WorkflowObjectType
- type WorkflowOperationStatusClient
- type WorkflowOperationStatusClientGetOptions
- type WorkflowOperationStatusClientGetResponse
- type WorkflowState
Examples ¶
- AzureSiteRecoveryManagementServiceAPIClient.CheckNameAvailability
- AzureSiteRecoveryManagementServiceAPIClient.DeploymentPreflight
- DraClient.BeginCreate
- DraClient.BeginDelete
- DraClient.Get
- DraClient.NewListPager
- DraOperationStatusClient.Get
- EmailConfigurationClient.Create
- EmailConfigurationClient.Get
- EmailConfigurationClient.NewListPager
- EventClient.Get
- EventClient.NewListPager
- FabricClient.BeginCreate
- FabricClient.BeginDelete
- FabricClient.BeginUpdate
- FabricClient.Get
- FabricClient.NewListBySubscriptionPager
- FabricClient.NewListPager
- FabricOperationsStatusClient.Get
- OperationsClient.NewListPager
- PolicyClient.BeginCreate
- PolicyClient.BeginDelete
- PolicyClient.Get
- PolicyClient.NewListPager
- PolicyOperationStatusClient.Get
- ProtectedItemClient.BeginCreate
- ProtectedItemClient.BeginDelete
- ProtectedItemClient.BeginPlannedFailover
- ProtectedItemClient.Get
- ProtectedItemClient.NewListPager
- ProtectedItemOperationStatusClient.Get
- RecoveryPointsClient.Get
- RecoveryPointsClient.NewListPager
- ReplicationExtensionClient.BeginCreate
- ReplicationExtensionClient.BeginDelete
- ReplicationExtensionClient.Get
- ReplicationExtensionClient.NewListPager
- ReplicationExtensionOperationStatusClient.Get
- VaultClient.BeginCreate
- VaultClient.BeginDelete
- VaultClient.BeginUpdate
- VaultClient.Get
- VaultClient.NewListBySubscriptionPager
- VaultClient.NewListPager
- VaultOperationStatusClient.Get
- WorkflowClient.Get
- WorkflowClient.NewListPager
- WorkflowOperationStatusClient.Get
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType string
ActionType - Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
const (
ActionTypeInternal ActionType = "Internal"
)
func PossibleActionTypeValues ¶
func PossibleActionTypeValues() []ActionType
PossibleActionTypeValues returns the possible values for the ActionType const type.
type AzStackHCIClusterProperties ¶
type AzStackHCIClusterProperties struct { // REQUIRED; Gets or sets the AzStackHCICluster FQDN name. ClusterName *string // REQUIRED; Gets or sets the AzStackHCICluster resource name. ResourceName *string // REQUIRED; Gets or sets the Storage account name. StorageAccountName *string // REQUIRED; Gets or sets the list of AzStackHCICluster Storage Container. StorageContainers []*StorageContainerProperties }
AzStackHCIClusterProperties - AzStackHCI cluster properties.
func (AzStackHCIClusterProperties) MarshalJSON ¶
func (a AzStackHCIClusterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzStackHCIClusterProperties.
func (*AzStackHCIClusterProperties) UnmarshalJSON ¶
func (a *AzStackHCIClusterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzStackHCIClusterProperties.
type AzStackHCIFabricModelCustomProperties ¶
type AzStackHCIFabricModelCustomProperties struct { // REQUIRED; Gets or sets the ARM Id of the AzStackHCI site. AzStackHciSiteID *string // REQUIRED; AzStackHCI cluster properties. Cluster *AzStackHCIClusterProperties // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the Migration solution ARM Id. MigrationSolutionID *string // READ-ONLY; Gets or sets the Appliance name. ApplianceName []*string // READ-ONLY; Gets or sets the fabric container Id. FabricContainerID *string // READ-ONLY; Gets or sets the fabric resource Id. FabricResourceID *string // READ-ONLY; Gets or sets the migration hub Uri. MigrationHubURI *string }
AzStackHCIFabricModelCustomProperties - AzStackHCI fabric model custom properties.
func (*AzStackHCIFabricModelCustomProperties) GetFabricModelCustomProperties ¶
func (a *AzStackHCIFabricModelCustomProperties) GetFabricModelCustomProperties() *FabricModelCustomProperties
GetFabricModelCustomProperties implements the FabricModelCustomPropertiesClassification interface for type AzStackHCIFabricModelCustomProperties.
func (AzStackHCIFabricModelCustomProperties) MarshalJSON ¶
func (a AzStackHCIFabricModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AzStackHCIFabricModelCustomProperties.
func (*AzStackHCIFabricModelCustomProperties) UnmarshalJSON ¶
func (a *AzStackHCIFabricModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AzStackHCIFabricModelCustomProperties.
type AzureSiteRecoveryManagementServiceAPIClient ¶
type AzureSiteRecoveryManagementServiceAPIClient struct {
// contains filtered or unexported fields
}
AzureSiteRecoveryManagementServiceAPIClient contains the methods for the AzureSiteRecoveryManagementServiceAPI group. Don't use this type directly, use NewAzureSiteRecoveryManagementServiceAPIClient() instead.
func NewAzureSiteRecoveryManagementServiceAPIClient ¶
func NewAzureSiteRecoveryManagementServiceAPIClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*AzureSiteRecoveryManagementServiceAPIClient, error)
NewAzureSiteRecoveryManagementServiceAPIClient creates a new instance of AzureSiteRecoveryManagementServiceAPIClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*AzureSiteRecoveryManagementServiceAPIClient) CheckNameAvailability ¶
func (client *AzureSiteRecoveryManagementServiceAPIClient) CheckNameAvailability(ctx context.Context, location string, options *AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityOptions) (AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityResponse, error)
CheckNameAvailability - Checks the resource name availability. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- location - The name of the Azure region.
- options - AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityOptions contains the optional parameters for the AzureSiteRecoveryManagementServiceAPIClient.CheckNameAvailability method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/CheckNameAvailability.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAzureSiteRecoveryManagementServiceAPIClient().CheckNameAvailability(ctx, "trfqtbtmusswpibw", &armrecoveryservicesdatareplication.AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityOptions{Body: &armrecoveryservicesdatareplication.CheckNameAvailabilityModel{ Name: to.Ptr("updkdcixs"), Type: to.Ptr("gngmcancdauwhdixjjvqnfkvqc"), }, }) 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.CheckNameAvailabilityResponseModel = armrecoveryservicesdatareplication.CheckNameAvailabilityResponseModel{ // Message: to.Ptr("gddmrunlrhtuhm"), // NameAvailable: to.Ptr(true), // Reason: to.Ptr("wwbvswyrmghbmv"), // } }
Output:
func (*AzureSiteRecoveryManagementServiceAPIClient) DeploymentPreflight ¶
func (client *AzureSiteRecoveryManagementServiceAPIClient) DeploymentPreflight(ctx context.Context, resourceGroupName string, deploymentID string, options *AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightOptions) (AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightResponse, error)
DeploymentPreflight - Performs resource deployment validation. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- deploymentID - Deployment Id.
- options - AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightOptions contains the optional parameters for the AzureSiteRecoveryManagementServiceAPIClient.DeploymentPreflight method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/DeploymentPreflight.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewAzureSiteRecoveryManagementServiceAPIClient().DeploymentPreflight(ctx, "rgrecoveryservicesdatareplication", "kjoiahxljomjcmvabaobumg", &armrecoveryservicesdatareplication.AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightOptions{Body: &armrecoveryservicesdatareplication.DeploymentPreflightModel{ Resources: []*armrecoveryservicesdatareplication.DeploymentPreflightResource{ { Name: to.Ptr("xtgugoflfc"), Type: to.Ptr("nsnaptduolqcxsikrewvgjbxqpt"), APIVersion: to.Ptr("otihymhvzblycdoxo"), Location: to.Ptr("cbsgtxkjdzwbyp"), }}, }, }) 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.DeploymentPreflightModel = armrecoveryservicesdatareplication.DeploymentPreflightModel{ // Resources: []*armrecoveryservicesdatareplication.DeploymentPreflightResource{ // { // Name: to.Ptr("xtgugoflfc"), // Type: to.Ptr("nsnaptduolqcxsikrewvgjbxqpt"), // APIVersion: to.Ptr("otihymhvzblycdoxo"), // Location: to.Ptr("cbsgtxkjdzwbyp"), // }}, // } }
Output:
type AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityOptions ¶
type AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityOptions struct { // Resource details. Body *CheckNameAvailabilityModel }
AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityOptions contains the optional parameters for the AzureSiteRecoveryManagementServiceAPIClient.CheckNameAvailability method.
type AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityResponse ¶
type AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityResponse struct { // Check name availability response model. CheckNameAvailabilityResponseModel }
AzureSiteRecoveryManagementServiceAPIClientCheckNameAvailabilityResponse contains the response from method AzureSiteRecoveryManagementServiceAPIClient.CheckNameAvailability.
type AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightOptions ¶
type AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightOptions struct { // Deployment preflight model. Body *DeploymentPreflightModel }
AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightOptions contains the optional parameters for the AzureSiteRecoveryManagementServiceAPIClient.DeploymentPreflight method.
type AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightResponse ¶
type AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightResponse struct { // Deployment preflight model. DeploymentPreflightModel }
AzureSiteRecoveryManagementServiceAPIClientDeploymentPreflightResponse contains the response from method AzureSiteRecoveryManagementServiceAPIClient.DeploymentPreflight.
type CheckNameAvailabilityModel ¶
type CheckNameAvailabilityModel struct { // Gets or sets the resource name. Name *string // Gets or sets the resource type. Type *string }
CheckNameAvailabilityModel - Check name availability model.
func (CheckNameAvailabilityModel) MarshalJSON ¶
func (c CheckNameAvailabilityModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityModel.
func (*CheckNameAvailabilityModel) UnmarshalJSON ¶
func (c *CheckNameAvailabilityModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityModel.
type CheckNameAvailabilityResponseModel ¶
type CheckNameAvailabilityResponseModel struct { // Gets or sets the message for resource name unavailability. Message *string // Gets or sets a value indicating whether resource name is available or not. NameAvailable *bool // Gets or sets the reason for resource name unavailability. Reason *string }
CheckNameAvailabilityResponseModel - Check name availability response model.
func (CheckNameAvailabilityResponseModel) MarshalJSON ¶
func (c CheckNameAvailabilityResponseModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CheckNameAvailabilityResponseModel.
func (*CheckNameAvailabilityResponseModel) UnmarshalJSON ¶
func (c *CheckNameAvailabilityResponseModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CheckNameAvailabilityResponseModel.
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 ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewAzureSiteRecoveryManagementServiceAPIClient ¶
func (c *ClientFactory) NewAzureSiteRecoveryManagementServiceAPIClient() *AzureSiteRecoveryManagementServiceAPIClient
NewAzureSiteRecoveryManagementServiceAPIClient creates a new instance of AzureSiteRecoveryManagementServiceAPIClient.
func (*ClientFactory) NewDraClient ¶
func (c *ClientFactory) NewDraClient() *DraClient
NewDraClient creates a new instance of DraClient.
func (*ClientFactory) NewDraOperationStatusClient ¶
func (c *ClientFactory) NewDraOperationStatusClient() *DraOperationStatusClient
NewDraOperationStatusClient creates a new instance of DraOperationStatusClient.
func (*ClientFactory) NewEmailConfigurationClient ¶
func (c *ClientFactory) NewEmailConfigurationClient() *EmailConfigurationClient
NewEmailConfigurationClient creates a new instance of EmailConfigurationClient.
func (*ClientFactory) NewEventClient ¶
func (c *ClientFactory) NewEventClient() *EventClient
NewEventClient creates a new instance of EventClient.
func (*ClientFactory) NewFabricClient ¶
func (c *ClientFactory) NewFabricClient() *FabricClient
NewFabricClient creates a new instance of FabricClient.
func (*ClientFactory) NewFabricOperationsStatusClient ¶
func (c *ClientFactory) NewFabricOperationsStatusClient() *FabricOperationsStatusClient
NewFabricOperationsStatusClient creates a new instance of FabricOperationsStatusClient.
func (*ClientFactory) NewOperationsClient ¶
func (c *ClientFactory) NewOperationsClient() *OperationsClient
NewOperationsClient creates a new instance of OperationsClient.
func (*ClientFactory) NewPolicyClient ¶
func (c *ClientFactory) NewPolicyClient() *PolicyClient
NewPolicyClient creates a new instance of PolicyClient.
func (*ClientFactory) NewPolicyOperationStatusClient ¶
func (c *ClientFactory) NewPolicyOperationStatusClient() *PolicyOperationStatusClient
NewPolicyOperationStatusClient creates a new instance of PolicyOperationStatusClient.
func (*ClientFactory) NewProtectedItemClient ¶
func (c *ClientFactory) NewProtectedItemClient() *ProtectedItemClient
NewProtectedItemClient creates a new instance of ProtectedItemClient.
func (*ClientFactory) NewProtectedItemOperationStatusClient ¶
func (c *ClientFactory) NewProtectedItemOperationStatusClient() *ProtectedItemOperationStatusClient
NewProtectedItemOperationStatusClient creates a new instance of ProtectedItemOperationStatusClient.
func (*ClientFactory) NewRecoveryPointsClient ¶
func (c *ClientFactory) NewRecoveryPointsClient() *RecoveryPointsClient
NewRecoveryPointsClient creates a new instance of RecoveryPointsClient.
func (*ClientFactory) NewReplicationExtensionClient ¶
func (c *ClientFactory) NewReplicationExtensionClient() *ReplicationExtensionClient
NewReplicationExtensionClient creates a new instance of ReplicationExtensionClient.
func (*ClientFactory) NewReplicationExtensionOperationStatusClient ¶
func (c *ClientFactory) NewReplicationExtensionOperationStatusClient() *ReplicationExtensionOperationStatusClient
NewReplicationExtensionOperationStatusClient creates a new instance of ReplicationExtensionOperationStatusClient.
func (*ClientFactory) NewVaultClient ¶
func (c *ClientFactory) NewVaultClient() *VaultClient
NewVaultClient creates a new instance of VaultClient.
func (*ClientFactory) NewVaultOperationStatusClient ¶
func (c *ClientFactory) NewVaultOperationStatusClient() *VaultOperationStatusClient
NewVaultOperationStatusClient creates a new instance of VaultOperationStatusClient.
func (*ClientFactory) NewWorkflowClient ¶
func (c *ClientFactory) NewWorkflowClient() *WorkflowClient
NewWorkflowClient creates a new instance of WorkflowClient.
func (*ClientFactory) NewWorkflowOperationStatusClient ¶
func (c *ClientFactory) NewWorkflowOperationStatusClient() *WorkflowOperationStatusClient
NewWorkflowOperationStatusClient creates a new instance of WorkflowOperationStatusClient.
type DeploymentPreflightModel ¶
type DeploymentPreflightModel struct { // Gets or sets the list of resources. Resources []*DeploymentPreflightResource }
DeploymentPreflightModel - Deployment preflight model.
func (DeploymentPreflightModel) MarshalJSON ¶
func (d DeploymentPreflightModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentPreflightModel.
func (*DeploymentPreflightModel) UnmarshalJSON ¶
func (d *DeploymentPreflightModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentPreflightModel.
type DeploymentPreflightResource ¶
type DeploymentPreflightResource struct { // Gets or sets the Api version. APIVersion *string // Gets or sets the location of the resource. Location *string // Gets or sets the resource name. Name *string // Gets or sets the resource type. Type *string }
DeploymentPreflightResource - Deployment preflight resource.
func (DeploymentPreflightResource) MarshalJSON ¶
func (d DeploymentPreflightResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DeploymentPreflightResource.
func (*DeploymentPreflightResource) UnmarshalJSON ¶
func (d *DeploymentPreflightResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DeploymentPreflightResource.
type DraClient ¶
type DraClient struct {
// contains filtered or unexported fields
}
DraClient contains the methods for the Dra group. Don't use this type directly, use NewDraClient() instead.
func NewDraClient ¶
func NewDraClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DraClient, error)
NewDraClient creates a new instance of DraClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DraClient) BeginCreate ¶
func (client *DraClient) BeginCreate(ctx context.Context, resourceGroupName string, fabricName string, fabricAgentName string, body DraModel, options *DraClientBeginCreateOptions) (*runtime.Poller[DraClientCreateResponse], error)
BeginCreate - Creates the fabric agent. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- fabricAgentName - The fabric agent (Dra) name.
- body - Dra model.
- options - DraClientBeginCreateOptions contains the optional parameters for the DraClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Dra_Create.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDraClient().BeginCreate(ctx, "rgrecoveryservicesdatareplication", "wPR", "M", armrecoveryservicesdatareplication.DraModel{ Properties: &armrecoveryservicesdatareplication.DraModelProperties{ AuthenticationIdentity: &armrecoveryservicesdatareplication.IdentityModel{ AADAuthority: to.Ptr("bubwwbowfhdmujrt"), ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), ObjectID: to.Ptr("khsiaqfbpuhp"), TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), }, CustomProperties: &armrecoveryservicesdatareplication.DraModelCustomProperties{ InstanceType: to.Ptr("DraModelCustomProperties"), }, MachineID: to.Ptr("envzcoijbqhtrpncbjbhk"), MachineName: to.Ptr("y"), ResourceAccessIdentity: &armrecoveryservicesdatareplication.IdentityModel{ AADAuthority: to.Ptr("bubwwbowfhdmujrt"), ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), ObjectID: to.Ptr("khsiaqfbpuhp"), TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), }, }, }, 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.DraModel = armrecoveryservicesdatareplication.DraModel{ // Name: to.Ptr("ioxmwhzrzdilxivkvhpvzexl"), // Type: to.Ptr("ptgmahzsyv"), // ID: to.Ptr("anp"), // Properties: &armrecoveryservicesdatareplication.DraModelProperties{ // AuthenticationIdentity: &armrecoveryservicesdatareplication.IdentityModel{ // AADAuthority: to.Ptr("bubwwbowfhdmujrt"), // ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), // Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), // ObjectID: to.Ptr("khsiaqfbpuhp"), // TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), // }, // CorrelationID: to.Ptr("t"), // CustomProperties: &armrecoveryservicesdatareplication.DraModelCustomProperties{ // InstanceType: to.Ptr("DraModelCustomProperties"), // }, // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // IsResponsive: to.Ptr(true), // LastHeartbeat: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.127Z"); return t}()), // MachineID: to.Ptr("envzcoijbqhtrpncbjbhk"), // MachineName: to.Ptr("y"), // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ResourceAccessIdentity: &armrecoveryservicesdatareplication.IdentityModel{ // AADAuthority: to.Ptr("bubwwbowfhdmujrt"), // ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), // Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), // ObjectID: to.Ptr("khsiaqfbpuhp"), // TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), // }, // VersionNumber: to.Ptr("wnksfnisrhs"), // }, // SystemData: &armrecoveryservicesdatareplication.DraModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // CreatedBy: to.Ptr("fazidmklka"), // CreatedByType: to.Ptr("obpndgkaeyklqzmpjh"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // LastModifiedBy: to.Ptr("cfoopkrisaroztncgss"), // LastModifiedByType: to.Ptr("dysxbvohxhrpl"), // }, // } }
Output:
func (*DraClient) BeginDelete ¶
func (client *DraClient) BeginDelete(ctx context.Context, resourceGroupName string, fabricName string, fabricAgentName string, options *DraClientBeginDeleteOptions) (*runtime.Poller[DraClientDeleteResponse], error)
BeginDelete - Deletes the fabric agent. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- fabricAgentName - The fabric agent (Dra) name.
- options - DraClientBeginDeleteOptions contains the optional parameters for the DraClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Dra_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewDraClient().BeginDelete(ctx, "rgrecoveryservicesdatareplication", "wPR", "M", 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 (*DraClient) Get ¶
func (client *DraClient) Get(ctx context.Context, resourceGroupName string, fabricName string, fabricAgentName string, options *DraClientGetOptions) (DraClientGetResponse, error)
Get - Gets the details of the fabric agent. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- fabricAgentName - The fabric agent (Dra) name.
- options - DraClientGetOptions contains the optional parameters for the DraClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Dra_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDraClient().Get(ctx, "rgrecoveryservicesdatareplication", "wPR", "M", 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.DraModel = armrecoveryservicesdatareplication.DraModel{ // Name: to.Ptr("ioxmwhzrzdilxivkvhpvzexl"), // Type: to.Ptr("ptgmahzsyv"), // ID: to.Ptr("anp"), // Properties: &armrecoveryservicesdatareplication.DraModelProperties{ // AuthenticationIdentity: &armrecoveryservicesdatareplication.IdentityModel{ // AADAuthority: to.Ptr("bubwwbowfhdmujrt"), // ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), // Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), // ObjectID: to.Ptr("khsiaqfbpuhp"), // TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), // }, // CorrelationID: to.Ptr("t"), // CustomProperties: &armrecoveryservicesdatareplication.DraModelCustomProperties{ // InstanceType: to.Ptr("DraModelCustomProperties"), // }, // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // IsResponsive: to.Ptr(true), // LastHeartbeat: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.127Z"); return t}()), // MachineID: to.Ptr("envzcoijbqhtrpncbjbhk"), // MachineName: to.Ptr("y"), // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ResourceAccessIdentity: &armrecoveryservicesdatareplication.IdentityModel{ // AADAuthority: to.Ptr("bubwwbowfhdmujrt"), // ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), // Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), // ObjectID: to.Ptr("khsiaqfbpuhp"), // TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), // }, // VersionNumber: to.Ptr("wnksfnisrhs"), // }, // SystemData: &armrecoveryservicesdatareplication.DraModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // CreatedBy: to.Ptr("fazidmklka"), // CreatedByType: to.Ptr("obpndgkaeyklqzmpjh"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // LastModifiedBy: to.Ptr("cfoopkrisaroztncgss"), // LastModifiedByType: to.Ptr("dysxbvohxhrpl"), // }, // } }
Output:
func (*DraClient) NewListPager ¶
func (client *DraClient) NewListPager(resourceGroupName string, fabricName string, options *DraClientListOptions) *runtime.Pager[DraClientListResponse]
NewListPager - Gets the list of fabric agents in the given fabric.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- options - DraClientListOptions contains the optional parameters for the DraClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Dra_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewDraClient().NewListPager("rgrecoveryservicesdatareplication", "wPR", 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.DraModelCollection = armrecoveryservicesdatareplication.DraModelCollection{ // Value: []*armrecoveryservicesdatareplication.DraModel{ // { // Name: to.Ptr("ioxmwhzrzdilxivkvhpvzexl"), // Type: to.Ptr("ptgmahzsyv"), // ID: to.Ptr("anp"), // Properties: &armrecoveryservicesdatareplication.DraModelProperties{ // AuthenticationIdentity: &armrecoveryservicesdatareplication.IdentityModel{ // AADAuthority: to.Ptr("bubwwbowfhdmujrt"), // ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), // Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), // ObjectID: to.Ptr("khsiaqfbpuhp"), // TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), // }, // CorrelationID: to.Ptr("t"), // CustomProperties: &armrecoveryservicesdatareplication.DraModelCustomProperties{ // InstanceType: to.Ptr("DraModelCustomProperties"), // }, // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // IsResponsive: to.Ptr(true), // LastHeartbeat: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.127Z"); return t}()), // MachineID: to.Ptr("envzcoijbqhtrpncbjbhk"), // MachineName: to.Ptr("y"), // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ResourceAccessIdentity: &armrecoveryservicesdatareplication.IdentityModel{ // AADAuthority: to.Ptr("bubwwbowfhdmujrt"), // ApplicationID: to.Ptr("cwktzrwajuvfyyymfstpey"), // Audience: to.Ptr("dkjobanyqgzenivyxhvavottpc"), // ObjectID: to.Ptr("khsiaqfbpuhp"), // TenantID: to.Ptr("joclkkdovixwapephhxaqtefubhhmq"), // }, // VersionNumber: to.Ptr("wnksfnisrhs"), // }, // SystemData: &armrecoveryservicesdatareplication.DraModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // CreatedBy: to.Ptr("fazidmklka"), // CreatedByType: to.Ptr("obpndgkaeyklqzmpjh"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // LastModifiedBy: to.Ptr("cfoopkrisaroztncgss"), // LastModifiedByType: to.Ptr("dysxbvohxhrpl"), // }, // }}, // } } }
Output:
type DraClientBeginCreateOptions ¶
type DraClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DraClientBeginCreateOptions contains the optional parameters for the DraClient.BeginCreate method.
type DraClientBeginDeleteOptions ¶
type DraClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
DraClientBeginDeleteOptions contains the optional parameters for the DraClient.BeginDelete method.
type DraClientCreateResponse ¶
type DraClientCreateResponse struct { // Dra model. DraModel }
DraClientCreateResponse contains the response from method DraClient.BeginCreate.
type DraClientDeleteResponse ¶
type DraClientDeleteResponse struct { }
DraClientDeleteResponse contains the response from method DraClient.BeginDelete.
type DraClientGetOptions ¶
type DraClientGetOptions struct { }
DraClientGetOptions contains the optional parameters for the DraClient.Get method.
type DraClientGetResponse ¶
type DraClientGetResponse struct { // Dra model. DraModel }
DraClientGetResponse contains the response from method DraClient.Get.
type DraClientListOptions ¶
type DraClientListOptions struct { }
DraClientListOptions contains the optional parameters for the DraClient.NewListPager method.
type DraClientListResponse ¶
type DraClientListResponse struct { // Dra model collection. DraModelCollection }
DraClientListResponse contains the response from method DraClient.NewListPager.
type DraModel ¶
type DraModel struct { // REQUIRED; Dra model properties. Properties *DraModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *DraModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
DraModel - Dra model.
func (DraModel) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type DraModel.
func (*DraModel) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type DraModel.
type DraModelCollection ¶
type DraModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of Dras. Value []*DraModel }
DraModelCollection - Dra model collection.
func (DraModelCollection) MarshalJSON ¶
func (d DraModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DraModelCollection.
func (*DraModelCollection) UnmarshalJSON ¶
func (d *DraModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DraModelCollection.
type DraModelCustomProperties ¶
type DraModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
DraModelCustomProperties - Dra model custom properties.
func (*DraModelCustomProperties) GetDraModelCustomProperties ¶
func (d *DraModelCustomProperties) GetDraModelCustomProperties() *DraModelCustomProperties
GetDraModelCustomProperties implements the DraModelCustomPropertiesClassification interface for type DraModelCustomProperties.
func (DraModelCustomProperties) MarshalJSON ¶
func (d DraModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DraModelCustomProperties.
func (*DraModelCustomProperties) UnmarshalJSON ¶
func (d *DraModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DraModelCustomProperties.
type DraModelCustomPropertiesClassification ¶
type DraModelCustomPropertiesClassification interface { // GetDraModelCustomProperties returns the DraModelCustomProperties content of the underlying type. GetDraModelCustomProperties() *DraModelCustomProperties }
DraModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetDraModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *DraModelCustomProperties, *VMwareDraModelCustomProperties
type DraModelProperties ¶
type DraModelProperties struct { // REQUIRED; Identity model. AuthenticationIdentity *IdentityModel // REQUIRED; Dra model custom properties. CustomProperties DraModelCustomPropertiesClassification // REQUIRED; Gets or sets the machine Id where Dra is running. MachineID *string // REQUIRED; Gets or sets the machine name where Dra is running. MachineName *string // REQUIRED; Identity model. ResourceAccessIdentity *IdentityModel // READ-ONLY; Gets or sets the Dra correlation Id. CorrelationID *string // READ-ONLY; Gets or sets the list of health errors. HealthErrors []*HealthErrorModel // READ-ONLY; Gets or sets a value indicating whether Dra is responsive. IsResponsive *bool // READ-ONLY; Gets or sets the time when last heartbeat was sent by the Dra. LastHeartbeat *time.Time // READ-ONLY; Gets or sets the provisioning state of the Dra. ProvisioningState *ProvisioningState // READ-ONLY; Gets or sets the Dra version. VersionNumber *string }
DraModelProperties - Dra model properties.
func (DraModelProperties) MarshalJSON ¶
func (d DraModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DraModelProperties.
func (*DraModelProperties) UnmarshalJSON ¶
func (d *DraModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DraModelProperties.
type DraModelSystemData ¶
type DraModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (DraModelSystemData) MarshalJSON ¶
func (d DraModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DraModelSystemData.
func (*DraModelSystemData) UnmarshalJSON ¶
func (d *DraModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DraModelSystemData.
type DraOperationStatusClient ¶
type DraOperationStatusClient struct {
// contains filtered or unexported fields
}
DraOperationStatusClient contains the methods for the DraOperationStatus group. Don't use this type directly, use NewDraOperationStatusClient() instead.
func NewDraOperationStatusClient ¶
func NewDraOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*DraOperationStatusClient, error)
NewDraOperationStatusClient creates a new instance of DraOperationStatusClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*DraOperationStatusClient) Get ¶
func (client *DraOperationStatusClient) Get(ctx context.Context, resourceGroupName string, fabricName string, fabricAgentName string, operationID string, options *DraOperationStatusClientGetOptions) (DraOperationStatusClientGetResponse, error)
Get - Tracks the results of an asynchronous operation on the fabric agent. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- fabricAgentName - The fabric agent (Dra) name.
- operationID - The ID of an ongoing async operation.
- options - DraOperationStatusClientGetOptions contains the optional parameters for the DraOperationStatusClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/DraOperationStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewDraOperationStatusClient().Get(ctx, "rgrecoveryservicesdatareplication", "wPR", "M", "dadsqwcq", 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.OperationStatus = armrecoveryservicesdatareplication.OperationStatus{ // Name: to.Ptr("wzdasptnwlxgobklayoqapjcgcf"), // EndTime: to.Ptr("nauyrfh"), // ID: to.Ptr("sf"), // StartTime: to.Ptr("xuzwmfrhluafmwwsmzqxsytyehsh"), // Status: to.Ptr("plbnngzfppdram"), // } }
Output:
type DraOperationStatusClientGetOptions ¶
type DraOperationStatusClientGetOptions struct { }
DraOperationStatusClientGetOptions contains the optional parameters for the DraOperationStatusClient.Get method.
type DraOperationStatusClientGetResponse ¶
type DraOperationStatusClientGetResponse struct { // Defines the operation status. OperationStatus }
DraOperationStatusClientGetResponse contains the response from method DraOperationStatusClient.Get.
type EmailConfigurationClient ¶
type EmailConfigurationClient struct {
// contains filtered or unexported fields
}
EmailConfigurationClient contains the methods for the EmailConfiguration group. Don't use this type directly, use NewEmailConfigurationClient() instead.
func NewEmailConfigurationClient ¶
func NewEmailConfigurationClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EmailConfigurationClient, error)
NewEmailConfigurationClient creates a new instance of EmailConfigurationClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*EmailConfigurationClient) Create ¶
func (client *EmailConfigurationClient) Create(ctx context.Context, resourceGroupName string, vaultName string, emailConfigurationName string, body EmailConfigurationModel, options *EmailConfigurationClientCreateOptions) (EmailConfigurationClientCreateResponse, error)
Create - Creates an alert configuration setting for the given vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- emailConfigurationName - The email configuration name.
- body - EmailConfiguration model.
- options - EmailConfigurationClientCreateOptions contains the optional parameters for the EmailConfigurationClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/EmailConfiguration_Create.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewEmailConfigurationClient().Create(ctx, "rgrecoveryservicesdatareplication", "4", "0", armrecoveryservicesdatareplication.EmailConfigurationModel{ Properties: &armrecoveryservicesdatareplication.EmailConfigurationModelProperties{ CustomEmailAddresses: []*string{ to.Ptr("ketvbducyailcny")}, Locale: to.Ptr("vpnjxjvdqtebnucyxiyrjiko"), SendToOwners: to.Ptr(true), }, }, 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.EmailConfigurationModel = armrecoveryservicesdatareplication.EmailConfigurationModel{ // Name: to.Ptr("ywjplnjzaeu"), // Type: to.Ptr("bkaq"), // ID: to.Ptr("bvbfy"), // Properties: &armrecoveryservicesdatareplication.EmailConfigurationModelProperties{ // CustomEmailAddresses: []*string{ // to.Ptr("ketvbducyailcny")}, // Locale: to.Ptr("vpnjxjvdqtebnucyxiyrjiko"), // SendToOwners: to.Ptr(true), // }, // SystemData: &armrecoveryservicesdatareplication.EmailConfigurationModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.022Z"); return t}()), // CreatedBy: to.Ptr("ewufpudzcjrljhmmzhfnxoqdqwnya"), // CreatedByType: to.Ptr("zioqm"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.022Z"); return t}()), // LastModifiedBy: to.Ptr("rx"), // LastModifiedByType: to.Ptr("tqbvuqoakaaqij"), // }, // } }
Output:
func (*EmailConfigurationClient) Get ¶
func (client *EmailConfigurationClient) Get(ctx context.Context, resourceGroupName string, vaultName string, emailConfigurationName string, options *EmailConfigurationClientGetOptions) (EmailConfigurationClientGetResponse, error)
Get - Gets the details of the alert configuration setting. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- emailConfigurationName - The email configuration name.
- options - EmailConfigurationClientGetOptions contains the optional parameters for the EmailConfigurationClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/EmailConfiguration_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewEmailConfigurationClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "0", 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.EmailConfigurationModel = armrecoveryservicesdatareplication.EmailConfigurationModel{ // Name: to.Ptr("ywjplnjzaeu"), // Type: to.Ptr("bkaq"), // ID: to.Ptr("bvbfy"), // Properties: &armrecoveryservicesdatareplication.EmailConfigurationModelProperties{ // CustomEmailAddresses: []*string{ // to.Ptr("ketvbducyailcny")}, // Locale: to.Ptr("vpnjxjvdqtebnucyxiyrjiko"), // SendToOwners: to.Ptr(true), // }, // SystemData: &armrecoveryservicesdatareplication.EmailConfigurationModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.022Z"); return t}()), // CreatedBy: to.Ptr("ewufpudzcjrljhmmzhfnxoqdqwnya"), // CreatedByType: to.Ptr("zioqm"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.022Z"); return t}()), // LastModifiedBy: to.Ptr("rx"), // LastModifiedByType: to.Ptr("tqbvuqoakaaqij"), // }, // } }
Output:
func (*EmailConfigurationClient) NewListPager ¶
func (client *EmailConfigurationClient) NewListPager(resourceGroupName string, vaultName string, options *EmailConfigurationClientListOptions) *runtime.Pager[EmailConfigurationClientListResponse]
NewListPager - Gets the list of alert configuration settings for the given vault.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - EmailConfigurationClientListOptions contains the optional parameters for the EmailConfigurationClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/EmailConfiguration_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewEmailConfigurationClient().NewListPager("rgrecoveryservicesdatareplication", "4", 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.EmailConfigurationModelCollection = armrecoveryservicesdatareplication.EmailConfigurationModelCollection{ // Value: []*armrecoveryservicesdatareplication.EmailConfigurationModel{ // { // Name: to.Ptr("ywjplnjzaeu"), // Type: to.Ptr("bkaq"), // ID: to.Ptr("bvbfy"), // Properties: &armrecoveryservicesdatareplication.EmailConfigurationModelProperties{ // CustomEmailAddresses: []*string{ // to.Ptr("ketvbducyailcny")}, // Locale: to.Ptr("vpnjxjvdqtebnucyxiyrjiko"), // SendToOwners: to.Ptr(true), // }, // SystemData: &armrecoveryservicesdatareplication.EmailConfigurationModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.022Z"); return t}()), // CreatedBy: to.Ptr("ewufpudzcjrljhmmzhfnxoqdqwnya"), // CreatedByType: to.Ptr("zioqm"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.022Z"); return t}()), // LastModifiedBy: to.Ptr("rx"), // LastModifiedByType: to.Ptr("tqbvuqoakaaqij"), // }, // }}, // } } }
Output:
type EmailConfigurationClientCreateOptions ¶
type EmailConfigurationClientCreateOptions struct { }
EmailConfigurationClientCreateOptions contains the optional parameters for the EmailConfigurationClient.Create method.
type EmailConfigurationClientCreateResponse ¶
type EmailConfigurationClientCreateResponse struct { // Email configuration model. EmailConfigurationModel }
EmailConfigurationClientCreateResponse contains the response from method EmailConfigurationClient.Create.
type EmailConfigurationClientGetOptions ¶
type EmailConfigurationClientGetOptions struct { }
EmailConfigurationClientGetOptions contains the optional parameters for the EmailConfigurationClient.Get method.
type EmailConfigurationClientGetResponse ¶
type EmailConfigurationClientGetResponse struct { // Email configuration model. EmailConfigurationModel }
EmailConfigurationClientGetResponse contains the response from method EmailConfigurationClient.Get.
type EmailConfigurationClientListOptions ¶
type EmailConfigurationClientListOptions struct { }
EmailConfigurationClientListOptions contains the optional parameters for the EmailConfigurationClient.NewListPager method.
type EmailConfigurationClientListResponse ¶
type EmailConfigurationClientListResponse struct { // Email configuration model collection. EmailConfigurationModelCollection }
EmailConfigurationClientListResponse contains the response from method EmailConfigurationClient.NewListPager.
type EmailConfigurationModel ¶
type EmailConfigurationModel struct { // REQUIRED; Email configuration model properties. Properties *EmailConfigurationModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *EmailConfigurationModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
EmailConfigurationModel - Email configuration model.
func (EmailConfigurationModel) MarshalJSON ¶
func (e EmailConfigurationModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EmailConfigurationModel.
func (*EmailConfigurationModel) UnmarshalJSON ¶
func (e *EmailConfigurationModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EmailConfigurationModel.
type EmailConfigurationModelCollection ¶
type EmailConfigurationModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of email configurations. Value []*EmailConfigurationModel }
EmailConfigurationModelCollection - Email configuration model collection.
func (EmailConfigurationModelCollection) MarshalJSON ¶
func (e EmailConfigurationModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EmailConfigurationModelCollection.
func (*EmailConfigurationModelCollection) UnmarshalJSON ¶
func (e *EmailConfigurationModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EmailConfigurationModelCollection.
type EmailConfigurationModelProperties ¶
type EmailConfigurationModelProperties struct { // REQUIRED; Gets or sets a value indicating whether to send email to subscription administrator. SendToOwners *bool // Gets or sets the custom email address for sending emails. CustomEmailAddresses []*string // Gets or sets the locale for the email notification. Locale *string }
EmailConfigurationModelProperties - Email configuration model properties.
func (EmailConfigurationModelProperties) MarshalJSON ¶
func (e EmailConfigurationModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EmailConfigurationModelProperties.
func (*EmailConfigurationModelProperties) UnmarshalJSON ¶
func (e *EmailConfigurationModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EmailConfigurationModelProperties.
type EmailConfigurationModelSystemData ¶
type EmailConfigurationModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (EmailConfigurationModelSystemData) MarshalJSON ¶
func (e EmailConfigurationModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EmailConfigurationModelSystemData.
func (*EmailConfigurationModelSystemData) UnmarshalJSON ¶
func (e *EmailConfigurationModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EmailConfigurationModelSystemData.
type ErrorModel ¶
type ErrorModel struct { // READ-ONLY; Gets or sets the possible causes of error. Causes *string // READ-ONLY; Gets or sets the error code. Code *string // READ-ONLY; Gets or sets the creation time of error. CreationTime *time.Time // READ-ONLY; Gets or sets the error message. Message *string // READ-ONLY; Gets or sets the recommended action to resolve error. Recommendation *string // READ-ONLY; Gets or sets the error severity. Severity *string // READ-ONLY; Gets or sets the error type. Type *string }
ErrorModel - Error model.
func (ErrorModel) MarshalJSON ¶
func (e ErrorModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ErrorModel.
func (*ErrorModel) UnmarshalJSON ¶
func (e *ErrorModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ErrorModel.
type EventClient ¶
type EventClient struct {
// contains filtered or unexported fields
}
EventClient contains the methods for the Event group. Don't use this type directly, use NewEventClient() instead.
func NewEventClient ¶
func NewEventClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*EventClient, error)
NewEventClient creates a new instance of EventClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*EventClient) Get ¶
func (client *EventClient) Get(ctx context.Context, resourceGroupName string, vaultName string, eventName string, options *EventClientGetOptions) (EventClientGetResponse, error)
Get - Gets the details of the event. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- eventName - The event name.
- options - EventClientGetOptions contains the optional parameters for the EventClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Event_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewEventClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "231CIG", 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.EventModel = armrecoveryservicesdatareplication.EventModel{ // Name: to.Ptr("j"), // Type: to.Ptr("lgk"), // ID: to.Ptr("fgbppsytxctsrsxlfugyohhu"), // Properties: &armrecoveryservicesdatareplication.EventModelProperties{ // Description: to.Ptr("hkeiogebluvfpdgxogwesjmtbbok"), // CorrelationID: to.Ptr("lwfsxforxnhvpmheujutjicflmxv"), // CustomProperties: &armrecoveryservicesdatareplication.EventModelCustomProperties{ // InstanceType: to.Ptr("EventModelCustomProperties"), // }, // EventName: to.Ptr("s"), // EventType: to.Ptr("npumqmvspm"), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // ResourceName: to.Ptr("yhpkowkbvtqnbiklnjzc"), // ResourceType: to.Ptr("surgdzezskgregozynvlinfutyh"), // Severity: to.Ptr("sjous"), // TimeOfOccurrence: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.432Z"); return t}()), // }, // SystemData: &armrecoveryservicesdatareplication.EventModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.432Z"); return t}()), // CreatedBy: to.Ptr("uske"), // CreatedByType: to.Ptr("luzowppyxjalugkef"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.432Z"); return t}()), // LastModifiedBy: to.Ptr("ufrixpmhben"), // LastModifiedByType: to.Ptr("aubgraubkuaeipwzvbcgnlpseobx"), // }, // } }
Output:
func (*EventClient) NewListPager ¶
func (client *EventClient) NewListPager(resourceGroupName string, vaultName string, options *EventClientListOptions) *runtime.Pager[EventClientListResponse]
NewListPager - Gets the list of events in the given vault.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - EventClientListOptions contains the optional parameters for the EventClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Event_List.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewEventClient().NewListPager("rgrecoveryservicesdatareplication", "4", &armrecoveryservicesdatareplication.EventClientListOptions{Filter: to.Ptr("wbglupjzvkirtgnnyasxom"), ContinuationToken: to.Ptr("cxtufi"), }) 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.EventModelCollection = armrecoveryservicesdatareplication.EventModelCollection{ // Value: []*armrecoveryservicesdatareplication.EventModel{ // { // Name: to.Ptr("j"), // Type: to.Ptr("lgk"), // ID: to.Ptr("fgbppsytxctsrsxlfugyohhu"), // Properties: &armrecoveryservicesdatareplication.EventModelProperties{ // Description: to.Ptr("hkeiogebluvfpdgxogwesjmtbbok"), // CorrelationID: to.Ptr("lwfsxforxnhvpmheujutjicflmxv"), // CustomProperties: &armrecoveryservicesdatareplication.EventModelCustomProperties{ // InstanceType: to.Ptr("EventModelCustomProperties"), // }, // EventName: to.Ptr("s"), // EventType: to.Ptr("npumqmvspm"), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // ResourceName: to.Ptr("yhpkowkbvtqnbiklnjzc"), // ResourceType: to.Ptr("surgdzezskgregozynvlinfutyh"), // Severity: to.Ptr("sjous"), // TimeOfOccurrence: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.432Z"); return t}()), // }, // SystemData: &armrecoveryservicesdatareplication.EventModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.432Z"); return t}()), // CreatedBy: to.Ptr("uske"), // CreatedByType: to.Ptr("luzowppyxjalugkef"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.432Z"); return t}()), // LastModifiedBy: to.Ptr("ufrixpmhben"), // LastModifiedByType: to.Ptr("aubgraubkuaeipwzvbcgnlpseobx"), // }, // }}, // } } }
Output:
type EventClientGetOptions ¶
type EventClientGetOptions struct { }
EventClientGetOptions contains the optional parameters for the EventClient.Get method.
type EventClientGetResponse ¶
type EventClientGetResponse struct { // Event model. EventModel }
EventClientGetResponse contains the response from method EventClient.Get.
type EventClientListOptions ¶
type EventClientListOptions struct { // Continuation token. ContinuationToken *string // Filter string. Filter *string }
EventClientListOptions contains the optional parameters for the EventClient.NewListPager method.
type EventClientListResponse ¶
type EventClientListResponse struct { // Event model collection. EventModelCollection }
EventClientListResponse contains the response from method EventClient.NewListPager.
type EventModel ¶
type EventModel struct { // REQUIRED; Event model properties. Properties *EventModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *EventModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
EventModel - Event model.
func (EventModel) MarshalJSON ¶
func (e EventModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventModel.
func (*EventModel) UnmarshalJSON ¶
func (e *EventModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventModel.
type EventModelCollection ¶
type EventModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of events. Value []*EventModel }
EventModelCollection - Event model collection.
func (EventModelCollection) MarshalJSON ¶
func (e EventModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventModelCollection.
func (*EventModelCollection) UnmarshalJSON ¶
func (e *EventModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventModelCollection.
type EventModelCustomProperties ¶
type EventModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
EventModelCustomProperties - Event model custom properties.
func (*EventModelCustomProperties) GetEventModelCustomProperties ¶
func (e *EventModelCustomProperties) GetEventModelCustomProperties() *EventModelCustomProperties
GetEventModelCustomProperties implements the EventModelCustomPropertiesClassification interface for type EventModelCustomProperties.
func (EventModelCustomProperties) MarshalJSON ¶
func (e EventModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventModelCustomProperties.
func (*EventModelCustomProperties) UnmarshalJSON ¶
func (e *EventModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventModelCustomProperties.
type EventModelCustomPropertiesClassification ¶
type EventModelCustomPropertiesClassification interface { // GetEventModelCustomProperties returns the EventModelCustomProperties content of the underlying type. GetEventModelCustomProperties() *EventModelCustomProperties }
EventModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetEventModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *EventModelCustomProperties, *HyperVToAzStackHCIEventModelCustomProperties
type EventModelProperties ¶
type EventModelProperties struct { // REQUIRED; Event model custom properties. CustomProperties EventModelCustomPropertiesClassification // READ-ONLY; Gets or sets the event correlation Id. CorrelationID *string // READ-ONLY; Gets or sets the event description. Description *string // READ-ONLY; Gets or sets the event name. EventName *string // READ-ONLY; Gets or sets the event type. EventType *string // READ-ONLY; Gets or sets the errors associated with this event. HealthErrors []*HealthErrorModel // READ-ONLY; Gets or sets the resource name. ResourceName *string // READ-ONLY; Gets or sets the resource type. ResourceType *string // READ-ONLY; Gets or sets the event severity. Severity *string // READ-ONLY; Gets or sets the time at which the event occurred at source. TimeOfOccurrence *time.Time }
EventModelProperties - Event model properties.
func (EventModelProperties) MarshalJSON ¶
func (e EventModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventModelProperties.
func (*EventModelProperties) UnmarshalJSON ¶
func (e *EventModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventModelProperties.
type EventModelSystemData ¶
type EventModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (EventModelSystemData) MarshalJSON ¶
func (e EventModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type EventModelSystemData.
func (*EventModelSystemData) UnmarshalJSON ¶
func (e *EventModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type EventModelSystemData.
type FabricClient ¶
type FabricClient struct {
// contains filtered or unexported fields
}
FabricClient contains the methods for the Fabric group. Don't use this type directly, use NewFabricClient() instead.
func NewFabricClient ¶
func NewFabricClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FabricClient, error)
NewFabricClient creates a new instance of FabricClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*FabricClient) BeginCreate ¶
func (client *FabricClient) BeginCreate(ctx context.Context, resourceGroupName string, fabricName string, body FabricModel, options *FabricClientBeginCreateOptions) (*runtime.Poller[FabricClientCreateResponse], error)
BeginCreate - Creates the fabric. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- body - Fabric properties.
- options - FabricClientBeginCreateOptions contains the optional parameters for the FabricClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Fabric_Create.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFabricClient().BeginCreate(ctx, "rgrecoveryservicesdatareplication", "wPR", armrecoveryservicesdatareplication.FabricModel{ Location: to.Ptr("tqygutlpob"), Properties: &armrecoveryservicesdatareplication.FabricModelProperties{ CustomProperties: &armrecoveryservicesdatareplication.FabricModelCustomProperties{ InstanceType: to.Ptr("FabricModelCustomProperties"), }, }, Tags: map[string]*string{ "key3917": to.Ptr("vgralu"), }, }, 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.FabricModel = armrecoveryservicesdatareplication.FabricModel{ // Name: to.Ptr("rhojydcwjgvgexpdwswjib"), // Type: to.Ptr("toipsryjyqchikyakeiuatshiu"), // ID: to.Ptr("ycaxtshcmldt"), // Location: to.Ptr("tqygutlpob"), // Properties: &armrecoveryservicesdatareplication.FabricModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.FabricModelCustomProperties{ // InstanceType: to.Ptr("FabricModelCustomProperties"), // }, // Health: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("ilrfl"), // ServiceResourceID: to.Ptr("xukigpdrbyyy"), // }, // SystemData: &armrecoveryservicesdatareplication.FabricModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // CreatedBy: to.Ptr("yhdmbqrsgimuucexvpas"), // CreatedByType: to.Ptr("brnojz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // LastModifiedBy: to.Ptr("balecqnwu"), // LastModifiedByType: to.Ptr("ukvqlncihf"), // }, // Tags: map[string]*string{ // "key3917": to.Ptr("vgralu"), // }, // } }
Output:
func (*FabricClient) BeginDelete ¶
func (client *FabricClient) BeginDelete(ctx context.Context, resourceGroupName string, fabricName string, options *FabricClientBeginDeleteOptions) (*runtime.Poller[FabricClientDeleteResponse], error)
BeginDelete - Removes the fabric. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- options - FabricClientBeginDeleteOptions contains the optional parameters for the FabricClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Fabric_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFabricClient().BeginDelete(ctx, "rgrecoveryservicesdatareplication", "wPR", 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 (*FabricClient) BeginUpdate ¶
func (client *FabricClient) BeginUpdate(ctx context.Context, resourceGroupName string, fabricName string, body FabricModelUpdate, options *FabricClientBeginUpdateOptions) (*runtime.Poller[FabricClientUpdateResponse], error)
BeginUpdate - Performs update on the fabric. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- body - Fabric properties.
- options - FabricClientBeginUpdateOptions contains the optional parameters for the FabricClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Fabric_Update.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewFabricClient().BeginUpdate(ctx, "rgrecoveryservicesdatareplication", "wPR", armrecoveryservicesdatareplication.FabricModelUpdate{ Properties: &armrecoveryservicesdatareplication.FabricModelProperties{ CustomProperties: &armrecoveryservicesdatareplication.FabricModelCustomProperties{ InstanceType: to.Ptr("FabricModelCustomProperties"), }, }, Tags: map[string]*string{ "key6664": to.Ptr("def"), }, }, 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.FabricModel = armrecoveryservicesdatareplication.FabricModel{ // Name: to.Ptr("rhojydcwjgvgexpdwswjib"), // Type: to.Ptr("toipsryjyqchikyakeiuatshiu"), // ID: to.Ptr("ycaxtshcmldt"), // Location: to.Ptr("tqygutlpob"), // Properties: &armrecoveryservicesdatareplication.FabricModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.FabricModelCustomProperties{ // InstanceType: to.Ptr("FabricModelCustomProperties"), // }, // Health: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("ilrfl"), // ServiceResourceID: to.Ptr("xukigpdrbyyy"), // }, // SystemData: &armrecoveryservicesdatareplication.FabricModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // CreatedBy: to.Ptr("yhdmbqrsgimuucexvpas"), // CreatedByType: to.Ptr("brnojz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // LastModifiedBy: to.Ptr("balecqnwu"), // LastModifiedByType: to.Ptr("ukvqlncihf"), // }, // Tags: map[string]*string{ // "key3917": to.Ptr("vgralu"), // }, // } }
Output:
func (*FabricClient) Get ¶
func (client *FabricClient) Get(ctx context.Context, resourceGroupName string, fabricName string, options *FabricClientGetOptions) (FabricClientGetResponse, error)
Get - Gets the details of the fabric. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- options - FabricClientGetOptions contains the optional parameters for the FabricClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Fabric_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFabricClient().Get(ctx, "rgrecoveryservicesdatareplication", "wPR", 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.FabricModel = armrecoveryservicesdatareplication.FabricModel{ // Name: to.Ptr("rhojydcwjgvgexpdwswjib"), // Type: to.Ptr("toipsryjyqchikyakeiuatshiu"), // ID: to.Ptr("ycaxtshcmldt"), // Location: to.Ptr("tqygutlpob"), // Properties: &armrecoveryservicesdatareplication.FabricModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.FabricModelCustomProperties{ // InstanceType: to.Ptr("FabricModelCustomProperties"), // }, // Health: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("ilrfl"), // ServiceResourceID: to.Ptr("xukigpdrbyyy"), // }, // SystemData: &armrecoveryservicesdatareplication.FabricModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // CreatedBy: to.Ptr("yhdmbqrsgimuucexvpas"), // CreatedByType: to.Ptr("brnojz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // LastModifiedBy: to.Ptr("balecqnwu"), // LastModifiedByType: to.Ptr("ukvqlncihf"), // }, // Tags: map[string]*string{ // "key3917": to.Ptr("vgralu"), // }, // } }
Output:
func (*FabricClient) NewListBySubscriptionPager ¶
func (client *FabricClient) NewListBySubscriptionPager(options *FabricClientListBySubscriptionOptions) *runtime.Pager[FabricClientListBySubscriptionResponse]
NewListBySubscriptionPager - Gets the list of fabrics in the given subscription.
Generated from API version 2021-02-16-preview
- options - FabricClientListBySubscriptionOptions contains the optional parameters for the FabricClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Fabric_ListBySubscription.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewFabricClient().NewListBySubscriptionPager(&armrecoveryservicesdatareplication.FabricClientListBySubscriptionOptions{ContinuationToken: to.Ptr("rmgqrpzucsizbyjscxzockbiyg")}) 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.FabricModelCollection = armrecoveryservicesdatareplication.FabricModelCollection{ // Value: []*armrecoveryservicesdatareplication.FabricModel{ // { // Name: to.Ptr("rhojydcwjgvgexpdwswjib"), // Type: to.Ptr("toipsryjyqchikyakeiuatshiu"), // ID: to.Ptr("ycaxtshcmldt"), // Location: to.Ptr("tqygutlpob"), // Properties: &armrecoveryservicesdatareplication.FabricModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.FabricModelCustomProperties{ // InstanceType: to.Ptr("FabricModelCustomProperties"), // }, // Health: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("ilrfl"), // ServiceResourceID: to.Ptr("xukigpdrbyyy"), // }, // SystemData: &armrecoveryservicesdatareplication.FabricModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // CreatedBy: to.Ptr("yhdmbqrsgimuucexvpas"), // CreatedByType: to.Ptr("brnojz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // LastModifiedBy: to.Ptr("balecqnwu"), // LastModifiedByType: to.Ptr("ukvqlncihf"), // }, // Tags: map[string]*string{ // "key3917": to.Ptr("vgralu"), // }, // }}, // } } }
Output:
func (*FabricClient) NewListPager ¶
func (client *FabricClient) NewListPager(resourceGroupName string, options *FabricClientListOptions) *runtime.Pager[FabricClientListResponse]
NewListPager - Gets the list of fabrics in the given subscription and resource group.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - FabricClientListOptions contains the optional parameters for the FabricClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Fabric_List.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewFabricClient().NewListPager("rgrecoveryservicesdatareplication", &armrecoveryservicesdatareplication.FabricClientListOptions{ContinuationToken: to.Ptr("mjzsxwwmtvd")}) 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.FabricModelCollection = armrecoveryservicesdatareplication.FabricModelCollection{ // Value: []*armrecoveryservicesdatareplication.FabricModel{ // { // Name: to.Ptr("rhojydcwjgvgexpdwswjib"), // Type: to.Ptr("toipsryjyqchikyakeiuatshiu"), // ID: to.Ptr("ycaxtshcmldt"), // Location: to.Ptr("tqygutlpob"), // Properties: &armrecoveryservicesdatareplication.FabricModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.FabricModelCustomProperties{ // InstanceType: to.Ptr("FabricModelCustomProperties"), // }, // Health: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceEndpoint: to.Ptr("ilrfl"), // ServiceResourceID: to.Ptr("xukigpdrbyyy"), // }, // SystemData: &armrecoveryservicesdatareplication.FabricModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // CreatedBy: to.Ptr("yhdmbqrsgimuucexvpas"), // CreatedByType: to.Ptr("brnojz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:53.716Z"); return t}()), // LastModifiedBy: to.Ptr("balecqnwu"), // LastModifiedByType: to.Ptr("ukvqlncihf"), // }, // Tags: map[string]*string{ // "key3917": to.Ptr("vgralu"), // }, // }}, // } } }
Output:
type FabricClientBeginCreateOptions ¶
type FabricClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FabricClientBeginCreateOptions contains the optional parameters for the FabricClient.BeginCreate method.
type FabricClientBeginDeleteOptions ¶
type FabricClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FabricClientBeginDeleteOptions contains the optional parameters for the FabricClient.BeginDelete method.
type FabricClientBeginUpdateOptions ¶
type FabricClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
FabricClientBeginUpdateOptions contains the optional parameters for the FabricClient.BeginUpdate method.
type FabricClientCreateResponse ¶
type FabricClientCreateResponse struct { // Fabric model. FabricModel }
FabricClientCreateResponse contains the response from method FabricClient.BeginCreate.
type FabricClientDeleteResponse ¶
type FabricClientDeleteResponse struct { }
FabricClientDeleteResponse contains the response from method FabricClient.BeginDelete.
type FabricClientGetOptions ¶
type FabricClientGetOptions struct { }
FabricClientGetOptions contains the optional parameters for the FabricClient.Get method.
type FabricClientGetResponse ¶
type FabricClientGetResponse struct { // Fabric model. FabricModel }
FabricClientGetResponse contains the response from method FabricClient.Get.
type FabricClientListBySubscriptionOptions ¶
type FabricClientListBySubscriptionOptions struct { // Continuation token from the previous call. ContinuationToken *string }
FabricClientListBySubscriptionOptions contains the optional parameters for the FabricClient.NewListBySubscriptionPager method.
type FabricClientListBySubscriptionResponse ¶
type FabricClientListBySubscriptionResponse struct { // Fabric model collection. FabricModelCollection }
FabricClientListBySubscriptionResponse contains the response from method FabricClient.NewListBySubscriptionPager.
type FabricClientListOptions ¶
type FabricClientListOptions struct { // Continuation token from the previous call. ContinuationToken *string }
FabricClientListOptions contains the optional parameters for the FabricClient.NewListPager method.
type FabricClientListResponse ¶
type FabricClientListResponse struct { // Fabric model collection. FabricModelCollection }
FabricClientListResponse contains the response from method FabricClient.NewListPager.
type FabricClientUpdateResponse ¶
type FabricClientUpdateResponse struct { // Fabric model. FabricModel }
FabricClientUpdateResponse contains the response from method FabricClient.BeginUpdate.
type FabricModel ¶
type FabricModel struct { // REQUIRED; Gets or sets the location of the fabric. Location *string // REQUIRED; Fabric model properties. Properties *FabricModelProperties // Gets or sets the resource tags. Tags map[string]*string // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *FabricModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
FabricModel - Fabric model.
func (FabricModel) MarshalJSON ¶
func (f FabricModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FabricModel.
func (*FabricModel) UnmarshalJSON ¶
func (f *FabricModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FabricModel.
type FabricModelCollection ¶
type FabricModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of fabrics. Value []*FabricModel }
FabricModelCollection - Fabric model collection.
func (FabricModelCollection) MarshalJSON ¶
func (f FabricModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FabricModelCollection.
func (*FabricModelCollection) UnmarshalJSON ¶
func (f *FabricModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FabricModelCollection.
type FabricModelCustomProperties ¶
type FabricModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
FabricModelCustomProperties - Fabric model custom properties.
func (*FabricModelCustomProperties) GetFabricModelCustomProperties ¶
func (f *FabricModelCustomProperties) GetFabricModelCustomProperties() *FabricModelCustomProperties
GetFabricModelCustomProperties implements the FabricModelCustomPropertiesClassification interface for type FabricModelCustomProperties.
func (FabricModelCustomProperties) MarshalJSON ¶
func (f FabricModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FabricModelCustomProperties.
func (*FabricModelCustomProperties) UnmarshalJSON ¶
func (f *FabricModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FabricModelCustomProperties.
type FabricModelCustomPropertiesClassification ¶
type FabricModelCustomPropertiesClassification interface { // GetFabricModelCustomProperties returns the FabricModelCustomProperties content of the underlying type. GetFabricModelCustomProperties() *FabricModelCustomProperties }
FabricModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetFabricModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AzStackHCIFabricModelCustomProperties, *FabricModelCustomProperties, *HyperVMigrateFabricModelCustomProperties, *VMwareMigrateFabricModelCustomProperties
type FabricModelProperties ¶
type FabricModelProperties struct { // REQUIRED; Fabric model custom properties. CustomProperties FabricModelCustomPropertiesClassification // READ-ONLY; Gets or sets the fabric health. Health *HealthStatus // READ-ONLY; Gets or sets the list of health errors. HealthErrors []*HealthErrorModel // READ-ONLY; Gets or sets the provisioning state of the fabric. ProvisioningState *ProvisioningState // READ-ONLY; Gets or sets the service endpoint. ServiceEndpoint *string // READ-ONLY; Gets or sets the service resource Id. ServiceResourceID *string }
FabricModelProperties - Fabric model properties.
func (FabricModelProperties) MarshalJSON ¶
func (f FabricModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FabricModelProperties.
func (*FabricModelProperties) UnmarshalJSON ¶
func (f *FabricModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FabricModelProperties.
type FabricModelSystemData ¶
type FabricModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (FabricModelSystemData) MarshalJSON ¶
func (f FabricModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FabricModelSystemData.
func (*FabricModelSystemData) UnmarshalJSON ¶
func (f *FabricModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FabricModelSystemData.
type FabricModelUpdate ¶
type FabricModelUpdate struct { // Fabric model properties. Properties *FabricModelProperties // Gets or sets the resource tags. Tags map[string]*string // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *FabricModelUpdateSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
FabricModelUpdate - Fabric model for update.
func (FabricModelUpdate) MarshalJSON ¶
func (f FabricModelUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FabricModelUpdate.
func (*FabricModelUpdate) UnmarshalJSON ¶
func (f *FabricModelUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FabricModelUpdate.
type FabricModelUpdateSystemData ¶
type FabricModelUpdateSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (FabricModelUpdateSystemData) MarshalJSON ¶
func (f FabricModelUpdateSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FabricModelUpdateSystemData.
func (*FabricModelUpdateSystemData) UnmarshalJSON ¶
func (f *FabricModelUpdateSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FabricModelUpdateSystemData.
type FabricOperationsStatusClient ¶
type FabricOperationsStatusClient struct {
// contains filtered or unexported fields
}
FabricOperationsStatusClient contains the methods for the FabricOperationsStatus group. Don't use this type directly, use NewFabricOperationsStatusClient() instead.
func NewFabricOperationsStatusClient ¶
func NewFabricOperationsStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*FabricOperationsStatusClient, error)
NewFabricOperationsStatusClient creates a new instance of FabricOperationsStatusClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*FabricOperationsStatusClient) Get ¶
func (client *FabricOperationsStatusClient) Get(ctx context.Context, resourceGroupName string, fabricName string, operationID string, options *FabricOperationsStatusClientGetOptions) (FabricOperationsStatusClientGetResponse, error)
Get - Tracks the results of an asynchronous operation on the fabric. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- fabricName - The fabric name.
- operationID - The ID of an ongoing async operation.
- options - FabricOperationsStatusClientGetOptions contains the optional parameters for the FabricOperationsStatusClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/FabricOperationsStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewFabricOperationsStatusClient().Get(ctx, "rgrecoveryservicesdatareplication", "wPR", "dvfwerv", 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.OperationStatus = armrecoveryservicesdatareplication.OperationStatus{ // Name: to.Ptr("wzdasptnwlxgobklayoqapjcgcf"), // EndTime: to.Ptr("nauyrfh"), // ID: to.Ptr("sf"), // StartTime: to.Ptr("xuzwmfrhluafmwwsmzqxsytyehsh"), // Status: to.Ptr("plbnngzfppdram"), // } }
Output:
type FabricOperationsStatusClientGetOptions ¶
type FabricOperationsStatusClientGetOptions struct { }
FabricOperationsStatusClientGetOptions contains the optional parameters for the FabricOperationsStatusClient.Get method.
type FabricOperationsStatusClientGetResponse ¶
type FabricOperationsStatusClientGetResponse struct { // Defines the operation status. OperationStatus }
FabricOperationsStatusClientGetResponse contains the response from method FabricOperationsStatusClient.Get.
type FailoverProtectedItemProperties ¶
type FailoverProtectedItemProperties struct { // READ-ONLY; Gets or sets the network name. NetworkName *string // READ-ONLY; Gets or sets the protected item name. ProtectedItemName *string // READ-ONLY; Gets or sets the recovery point Id. RecoveryPointID *string // READ-ONLY; Gets or sets the recovery point time. RecoveryPointTime *time.Time // READ-ONLY; Gets or sets the network subnet. Subnet *string // READ-ONLY; Gets or sets the test VM name. TestVMName *string // READ-ONLY; Gets or sets the VM name. VMName *string }
FailoverProtectedItemProperties - Failover properties of the protected item.
func (FailoverProtectedItemProperties) MarshalJSON ¶
func (f FailoverProtectedItemProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FailoverProtectedItemProperties.
func (*FailoverProtectedItemProperties) UnmarshalJSON ¶
func (f *FailoverProtectedItemProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FailoverProtectedItemProperties.
type FailoverWorkflowModelCustomProperties ¶
type FailoverWorkflowModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // READ-ONLY; Gets or sets any custom properties of the affected object. AffectedObjectDetails map[string]*string // READ-ONLY; Gets or sets the failed over protected item details. ProtectedItemDetails []*FailoverProtectedItemProperties }
FailoverWorkflowModelCustomProperties - Failover workflow model custom properties.
func (*FailoverWorkflowModelCustomProperties) GetWorkflowModelCustomProperties ¶
func (f *FailoverWorkflowModelCustomProperties) GetWorkflowModelCustomProperties() *WorkflowModelCustomProperties
GetWorkflowModelCustomProperties implements the WorkflowModelCustomPropertiesClassification interface for type FailoverWorkflowModelCustomProperties.
func (FailoverWorkflowModelCustomProperties) MarshalJSON ¶
func (f FailoverWorkflowModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type FailoverWorkflowModelCustomProperties.
func (*FailoverWorkflowModelCustomProperties) UnmarshalJSON ¶
func (f *FailoverWorkflowModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type FailoverWorkflowModelCustomProperties.
type HealthErrorModel ¶
type HealthErrorModel struct { // Gets or sets the list of affected resource correlation Ids. This can be used to uniquely identify the count of items affected // by a specific category and severity as well as count of item affected by // an specific issue. AffectedResourceCorrelationIDs []*string // Gets or sets the type of affected resource type. AffectedResourceType *string // Gets or sets a list of child health errors associated with this error. ChildErrors []*InnerHealthErrorModel // READ-ONLY; Gets or sets the error category. Category *string // READ-ONLY; Gets or sets possible causes of the error. Causes *string // READ-ONLY; Gets or sets the error code. Code *string // READ-ONLY; Gets or sets the error creation time. CreationTime *time.Time // READ-ONLY; Gets or sets the health category. HealthCategory *string // READ-ONLY; Gets or sets a value indicating whether the error is customer resolvable. IsCustomerResolvable *bool // READ-ONLY; Gets or sets the error message. Message *string // READ-ONLY; Gets or sets recommended action to resolve the error. Recommendation *string // READ-ONLY; Gets or sets the error severity. Severity *string // READ-ONLY; Gets or sets the error source. Source *string // READ-ONLY; Gets or sets the error summary. Summary *string }
HealthErrorModel - Health error model.
func (HealthErrorModel) MarshalJSON ¶
func (h HealthErrorModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HealthErrorModel.
func (*HealthErrorModel) UnmarshalJSON ¶
func (h *HealthErrorModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HealthErrorModel.
type HealthStatus ¶
type HealthStatus string
HealthStatus - Gets or sets the fabric health.
const ( HealthStatusCritical HealthStatus = "Critical" HealthStatusNormal HealthStatus = "Normal" HealthStatusWarning HealthStatus = "Warning" )
func PossibleHealthStatusValues ¶
func PossibleHealthStatusValues() []HealthStatus
PossibleHealthStatusValues returns the possible values for the HealthStatus const type.
type HyperVMigrateFabricModelCustomProperties ¶
type HyperVMigrateFabricModelCustomProperties struct { // REQUIRED; Gets or sets the ARM Id of the HyperV site. HyperVSiteID *string // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the migration solution ARM Id. MigrationSolutionID *string // READ-ONLY; Gets or sets the fabric container Id. FabricContainerID *string // READ-ONLY; Gets or sets the fabric resource Id. FabricResourceID *string // READ-ONLY; Gets or sets the migration hub Uri. MigrationHubURI *string }
HyperVMigrateFabricModelCustomProperties - HyperV migrate fabric model custom properties.
func (*HyperVMigrateFabricModelCustomProperties) GetFabricModelCustomProperties ¶
func (h *HyperVMigrateFabricModelCustomProperties) GetFabricModelCustomProperties() *FabricModelCustomProperties
GetFabricModelCustomProperties implements the FabricModelCustomPropertiesClassification interface for type HyperVMigrateFabricModelCustomProperties.
func (HyperVMigrateFabricModelCustomProperties) MarshalJSON ¶
func (h HyperVMigrateFabricModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVMigrateFabricModelCustomProperties.
func (*HyperVMigrateFabricModelCustomProperties) UnmarshalJSON ¶
func (h *HyperVMigrateFabricModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVMigrateFabricModelCustomProperties.
type HyperVToAzStackHCIDiskInput ¶
type HyperVToAzStackHCIDiskInput struct { // REQUIRED; Gets or sets the type of the virtual hard disk, vhd or vhdx. DiskFileFormat *string // REQUIRED; Gets or sets the disk Id. DiskID *string // REQUIRED; Gets or sets the disk size in GB. DiskSizeGB *int64 // REQUIRED; Gets or sets a value indicating whether disk is os disk. IsOsDisk *bool // Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. IsDynamic *bool // Gets or sets the target storage account ARM Id. StorageContainerID *string }
HyperVToAzStackHCIDiskInput - HyperVToAzStack disk input.
func (HyperVToAzStackHCIDiskInput) MarshalJSON ¶
func (h HyperVToAzStackHCIDiskInput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIDiskInput.
func (*HyperVToAzStackHCIDiskInput) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIDiskInput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIDiskInput.
type HyperVToAzStackHCIEventModelCustomProperties ¶
type HyperVToAzStackHCIEventModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // READ-ONLY; Gets or sets the friendly name of the source which has raised this health event. EventSourceFriendlyName *string // READ-ONLY; Gets or sets the protected item friendly name. ProtectedItemFriendlyName *string // READ-ONLY; Gets or sets the server type. ServerType *string // READ-ONLY; Gets or sets the source appliance name. SourceApplianceName *string // READ-ONLY; Gets or sets the source target name. TargetApplianceName *string }
HyperVToAzStackHCIEventModelCustomProperties - HyperV to AzStackHCI event model custom properties. This class provides provider specific details for events of type DataContract.HealthEvents.HealthEventType.ProtectedItemHealth and DataContract.HealthEvents.HealthEventType.AgentHealth.
func (*HyperVToAzStackHCIEventModelCustomProperties) GetEventModelCustomProperties ¶
func (h *HyperVToAzStackHCIEventModelCustomProperties) GetEventModelCustomProperties() *EventModelCustomProperties
GetEventModelCustomProperties implements the EventModelCustomPropertiesClassification interface for type HyperVToAzStackHCIEventModelCustomProperties.
func (HyperVToAzStackHCIEventModelCustomProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIEventModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIEventModelCustomProperties.
func (*HyperVToAzStackHCIEventModelCustomProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIEventModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIEventModelCustomProperties.
type HyperVToAzStackHCINicInput ¶
type HyperVToAzStackHCINicInput struct { // REQUIRED; Gets or sets the NIC Id. NicID *string // REQUIRED; Gets or sets the selection type of the NIC. SelectionTypeForFailover *VMNicSelection // REQUIRED; Gets or sets the target network Id within AzStackHCI Cluster. TargetNetworkID *string // REQUIRED; Gets or sets the target test network Id within AzStackHCI Cluster. TestNetworkID *string // READ-ONLY; Gets or sets the network name. NetworkName *string }
HyperVToAzStackHCINicInput - HyperVToAzStackHCI NIC properties.
func (HyperVToAzStackHCINicInput) MarshalJSON ¶
func (h HyperVToAzStackHCINicInput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCINicInput.
func (*HyperVToAzStackHCINicInput) UnmarshalJSON ¶
func (h *HyperVToAzStackHCINicInput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCINicInput.
type HyperVToAzStackHCIPlannedFailoverModelCustomProperties ¶
type HyperVToAzStackHCIPlannedFailoverModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets a value indicating whether VM needs to be shut down. ShutdownSourceVM *bool }
HyperVToAzStackHCIPlannedFailoverModelCustomProperties - HyperV to AzStackHCI planned failover model custom properties.
func (*HyperVToAzStackHCIPlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties ¶
func (h *HyperVToAzStackHCIPlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties() *PlannedFailoverModelCustomProperties
GetPlannedFailoverModelCustomProperties implements the PlannedFailoverModelCustomPropertiesClassification interface for type HyperVToAzStackHCIPlannedFailoverModelCustomProperties.
func (HyperVToAzStackHCIPlannedFailoverModelCustomProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIPlannedFailoverModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIPlannedFailoverModelCustomProperties.
func (*HyperVToAzStackHCIPlannedFailoverModelCustomProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIPlannedFailoverModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIPlannedFailoverModelCustomProperties.
type HyperVToAzStackHCIPolicyModelCustomProperties ¶
type HyperVToAzStackHCIPolicyModelCustomProperties struct { // REQUIRED; Gets or sets the app consistent snapshot frequency (in minutes). AppConsistentFrequencyInMinutes *int32 // REQUIRED; Gets or sets the crash consistent snapshot frequency (in minutes). CrashConsistentFrequencyInMinutes *int32 // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the duration in minutes until which the recovery points need to be stored. RecoveryPointHistoryInMinutes *int32 }
HyperVToAzStackHCIPolicyModelCustomProperties - HyperV To AzStackHCI Policy model custom properties.
func (*HyperVToAzStackHCIPolicyModelCustomProperties) GetPolicyModelCustomProperties ¶
func (h *HyperVToAzStackHCIPolicyModelCustomProperties) GetPolicyModelCustomProperties() *PolicyModelCustomProperties
GetPolicyModelCustomProperties implements the PolicyModelCustomPropertiesClassification interface for type HyperVToAzStackHCIPolicyModelCustomProperties.
func (HyperVToAzStackHCIPolicyModelCustomProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIPolicyModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIPolicyModelCustomProperties.
func (*HyperVToAzStackHCIPolicyModelCustomProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIPolicyModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIPolicyModelCustomProperties.
type HyperVToAzStackHCIProtectedDiskProperties ¶
type HyperVToAzStackHCIProtectedDiskProperties struct { // READ-ONLY; Gets or sets the disk capacity in bytes. CapacityInBytes *int64 // READ-ONLY; Gets or sets the disk type. DiskType *string // READ-ONLY; Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. IsDynamic *bool // READ-ONLY; Gets or sets a value indicating whether the disk is the OS disk. IsOsDisk *bool // READ-ONLY; Gets or sets the failover clone disk. MigrateDiskName *string // READ-ONLY; Gets or sets the seed disk name. SeedDiskName *string // READ-ONLY; Gets or sets the source disk Id. SourceDiskID *string // READ-ONLY; Gets or sets the source disk Name. SourceDiskName *string // READ-ONLY; Gets or sets the ARM Id of the storage container. StorageContainerID *string // READ-ONLY; Gets or sets the local path of the storage container. StorageContainerLocalPath *string // READ-ONLY; Gets or sets the test failover clone disk. TestMigrateDiskName *string }
HyperVToAzStackHCIProtectedDiskProperties - HyperVToAzStackHCI protected disk properties.
func (HyperVToAzStackHCIProtectedDiskProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIProtectedDiskProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIProtectedDiskProperties.
func (*HyperVToAzStackHCIProtectedDiskProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIProtectedDiskProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIProtectedDiskProperties.
type HyperVToAzStackHCIProtectedItemModelCustomProperties ¶
type HyperVToAzStackHCIProtectedItemModelCustomProperties struct { // REQUIRED; Gets or sets the location of Azure Arc HCI custom location resource. CustomLocationRegion *string // REQUIRED; Gets or sets the list of disks to replicate. DisksToInclude []*HyperVToAzStackHCIDiskInput // REQUIRED; Gets or sets the ARM Id of the discovered machine. FabricDiscoveryMachineID *string // REQUIRED; Gets or sets the hypervisor generation of the virtual machine. HyperVGeneration *string // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the list of VM NIC to replicate. NicsToInclude []*HyperVToAzStackHCINicInput // REQUIRED; Gets or sets the Run As account Id. RunAsAccountID *string // REQUIRED; Gets or sets the source DRA name. SourceDraName *string // REQUIRED; Gets or sets the target storage container ARM Id. StorageContainerID *string // REQUIRED; Gets or sets the Target Arc Cluster Custom Location ARM Id. TargetArcClusterCustomLocationID *string // REQUIRED; Gets or sets the target DRA name. TargetDraName *string // REQUIRED; Gets or sets the Target HCI Cluster ARM Id. TargetHciClusterID *string // REQUIRED; Gets or sets the target resource group ARM Id. TargetResourceGroupID *string // Protected item dynamic memory config. DynamicMemoryConfig *ProtectedItemDynamicMemoryConfig // Gets or sets a value indicating whether memory is dynamical. IsDynamicRAM *bool // Gets or sets the target CPU cores. TargetCPUCores *int32 // Gets or sets the target memory in mega-bytes. TargetMemoryInMegaBytes *int32 // Gets or sets the target network Id within AzStackHCI Cluster. TargetNetworkID *string // Gets or sets the target VM display name. TargetVMName *string // Gets or sets the target test network Id within AzStackHCI Cluster. TestNetworkID *string // READ-ONLY; Gets or sets the location of the protected item. ActiveLocation *ProtectedItemActiveLocation // READ-ONLY; Gets or sets the recovery point Id to which the VM was failed over. FailoverRecoveryPointID *string // READ-ONLY; Gets or sets the firmware type. FirmwareType *string // READ-ONLY; Gets or sets the initial replication progress percentage. This is calculated based on total bytes processed // for all disks in the source VM. InitialReplicationProgressPercentage *int32 // READ-ONLY; Gets or sets the last recovery point Id. LastRecoveryPointID *string // READ-ONLY; Gets or sets the last recovery point received time. LastRecoveryPointReceived *time.Time // READ-ONLY; Gets or sets the latest timestamp that replication status is updated. LastReplicationUpdateTime *time.Time // READ-ONLY; Gets or sets the name of the OS. OSName *string // READ-ONLY; Gets or sets the type of the OS. OSType *string // READ-ONLY; Gets or sets the list of protected disks. ProtectedDisks []*HyperVToAzStackHCIProtectedDiskProperties // READ-ONLY; Gets or sets the VM NIC details. ProtectedNics []*HyperVToAzStackHCIProtectedNicProperties // READ-ONLY; Gets or sets the resync progress percentage. This is calculated based on total bytes processed for all disks // in the source VM. ResyncProgressPercentage *int32 // READ-ONLY; Gets or sets the source appliance name. SourceApplianceName *string // READ-ONLY; Gets or sets the source VM CPU cores. SourceCPUCores *int32 // READ-ONLY; Gets or sets the source VM ram memory size in megabytes. SourceMemoryInMegaBytes *float64 // READ-ONLY; Gets or sets the source VM display name. SourceVMName *string // READ-ONLY; Gets or sets the target appliance name. TargetApplianceName *string // READ-ONLY; Gets or sets the Target AzStackHCI cluster name. TargetAzStackHciClusterName *string // READ-ONLY; Gets or sets the target location. TargetLocation *string // READ-ONLY; Gets or sets the BIOS Id of the target AzStackHCI VM. TargetVMBiosID *string }
HyperVToAzStackHCIProtectedItemModelCustomProperties - HyperV to AzStackHCI Protected item model custom properties.
func (*HyperVToAzStackHCIProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties ¶
func (h *HyperVToAzStackHCIProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties() *ProtectedItemModelCustomProperties
GetProtectedItemModelCustomProperties implements the ProtectedItemModelCustomPropertiesClassification interface for type HyperVToAzStackHCIProtectedItemModelCustomProperties.
func (HyperVToAzStackHCIProtectedItemModelCustomProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIProtectedItemModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIProtectedItemModelCustomProperties.
func (*HyperVToAzStackHCIProtectedItemModelCustomProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIProtectedItemModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIProtectedItemModelCustomProperties.
type HyperVToAzStackHCIProtectedNicProperties ¶
type HyperVToAzStackHCIProtectedNicProperties struct { // READ-ONLY; Gets or sets the NIC mac address. MacAddress *string // READ-ONLY; Gets or sets the network name. NetworkName *string // READ-ONLY; Gets or sets the NIC Id. NicID *string // READ-ONLY; Gets or sets the selection type of the NIC. SelectionTypeForFailover *VMNicSelection // READ-ONLY; Gets or sets the target network Id within AzStackHCI Cluster. TargetNetworkID *string // READ-ONLY; Gets or sets the target test network Id within AzStackHCI Cluster. TestNetworkID *string }
HyperVToAzStackHCIProtectedNicProperties - HyperVToAzStackHCI NIC properties.
func (HyperVToAzStackHCIProtectedNicProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIProtectedNicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIProtectedNicProperties.
func (*HyperVToAzStackHCIProtectedNicProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIProtectedNicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIProtectedNicProperties.
type HyperVToAzStackHCIRecoveryPointModelCustomProperties ¶
type HyperVToAzStackHCIRecoveryPointModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // READ-ONLY; Gets or sets the list of the disk Ids. DiskIDs []*string }
HyperVToAzStackHCIRecoveryPointModelCustomProperties - HyperV to AzStackHCI recovery point model custom properties.
func (*HyperVToAzStackHCIRecoveryPointModelCustomProperties) GetRecoveryPointModelCustomProperties ¶
func (h *HyperVToAzStackHCIRecoveryPointModelCustomProperties) GetRecoveryPointModelCustomProperties() *RecoveryPointModelCustomProperties
GetRecoveryPointModelCustomProperties implements the RecoveryPointModelCustomPropertiesClassification interface for type HyperVToAzStackHCIRecoveryPointModelCustomProperties.
func (HyperVToAzStackHCIRecoveryPointModelCustomProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIRecoveryPointModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIRecoveryPointModelCustomProperties.
func (*HyperVToAzStackHCIRecoveryPointModelCustomProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIRecoveryPointModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIRecoveryPointModelCustomProperties.
type HyperVToAzStackHCIReplicationExtensionModelCustomProperties ¶
type HyperVToAzStackHCIReplicationExtensionModelCustomProperties struct { // REQUIRED; Gets or sets the ARM Id of the target AzStackHCI fabric. AzStackHciFabricArmID *string // REQUIRED; Gets or sets the ARM Id of the source HyperV fabric. HyperVFabricArmID *string // REQUIRED; Gets or sets the instance type. InstanceType *string // Gets or sets the storage account Id. StorageAccountID *string // Gets or sets the Sas Secret of storage account. StorageAccountSasSecretName *string // READ-ONLY; Gets or sets the Uri of ASR. AsrServiceURI *string // READ-ONLY; Gets or sets the ARM Id of the AzStackHCI site. AzStackHciSiteID *string // READ-ONLY; Gets or sets the Uri of Gateway. GatewayServiceURI *string // READ-ONLY; Gets or sets the ARM Id of the HyperV site. HyperVSiteID *string // READ-ONLY; Gets or sets the Uri of Rcm. RcmServiceURI *string // READ-ONLY; Gets or sets the resource group. ResourceGroup *string // READ-ONLY; Gets or sets the resource location. ResourceLocation *string // READ-ONLY; Gets or sets the gateway service Id of source. SourceGatewayServiceID *string // READ-ONLY; Gets or sets the source storage container name. SourceStorageContainerName *string // READ-ONLY; Gets or sets the subscription. SubscriptionID *string // READ-ONLY; Gets or sets the gateway service Id of target. TargetGatewayServiceID *string // READ-ONLY; Gets or sets the target storage container name. TargetStorageContainerName *string }
HyperVToAzStackHCIReplicationExtensionModelCustomProperties - HyperV to AzStackHCI Replication extension model custom properties.
func (*HyperVToAzStackHCIReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties ¶
func (h *HyperVToAzStackHCIReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties() *ReplicationExtensionModelCustomProperties
GetReplicationExtensionModelCustomProperties implements the ReplicationExtensionModelCustomPropertiesClassification interface for type HyperVToAzStackHCIReplicationExtensionModelCustomProperties.
func (HyperVToAzStackHCIReplicationExtensionModelCustomProperties) MarshalJSON ¶
func (h HyperVToAzStackHCIReplicationExtensionModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type HyperVToAzStackHCIReplicationExtensionModelCustomProperties.
func (*HyperVToAzStackHCIReplicationExtensionModelCustomProperties) UnmarshalJSON ¶
func (h *HyperVToAzStackHCIReplicationExtensionModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type HyperVToAzStackHCIReplicationExtensionModelCustomProperties.
type IdentityModel ¶
type IdentityModel struct { // REQUIRED; Gets or sets the authority of the SPN with which Dra communicates to service. AADAuthority *string // REQUIRED; Gets or sets the client/application Id of the SPN with which Dra communicates to service. ApplicationID *string // REQUIRED; Gets or sets the audience of the SPN with which Dra communicates to service. Audience *string // REQUIRED; Gets or sets the object Id of the SPN with which Dra communicates to service. ObjectID *string // REQUIRED; Gets or sets the tenant Id of the SPN with which Dra communicates to service. TenantID *string }
IdentityModel - Identity model.
func (IdentityModel) MarshalJSON ¶
func (i IdentityModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type IdentityModel.
func (*IdentityModel) UnmarshalJSON ¶
func (i *IdentityModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type IdentityModel.
type InnerHealthErrorModel ¶
type InnerHealthErrorModel struct { // READ-ONLY; Gets or sets the error category. Category *string // READ-ONLY; Gets or sets possible causes of the error. Causes *string // READ-ONLY; Gets or sets the error code. Code *string // READ-ONLY; Gets or sets the error creation time. CreationTime *time.Time // READ-ONLY; Gets or sets the health category. HealthCategory *string // READ-ONLY; Gets or sets a value indicating whether the error is customer resolvable. IsCustomerResolvable *bool // READ-ONLY; Gets or sets the error message. Message *string // READ-ONLY; Gets or sets recommended action to resolve the error. Recommendation *string // READ-ONLY; Gets or sets the error severity. Severity *string // READ-ONLY; Gets or sets the error source. Source *string // READ-ONLY; Gets or sets the error summary. Summary *string }
InnerHealthErrorModel - Inner health error model.
func (InnerHealthErrorModel) MarshalJSON ¶
func (i InnerHealthErrorModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type InnerHealthErrorModel.
func (*InnerHealthErrorModel) UnmarshalJSON ¶
func (i *InnerHealthErrorModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type InnerHealthErrorModel.
type Operation ¶
type Operation struct { // Localized display information for this particular operation. Display *OperationDisplay // READ-ONLY; Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. ActionType *ActionType // READ-ONLY; Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane // operations. IsDataAction *bool // READ-ONLY; The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", // "Microsoft.Compute/virtualMachines/capture/action" Name *string // READ-ONLY; The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default // value is "user,system" Origin *Origin }
Operation - Details of a REST API operation, returned from the Resource Provider Operations API
func (Operation) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Operation.
func (*Operation) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Operation.
type OperationDisplay ¶
type OperationDisplay struct { // READ-ONLY; The short, localized friendly description of the operation; suitable for tool tips and detailed views. Description *string // READ-ONLY; The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual // Machine", "Restart Virtual Machine". Operation *string // READ-ONLY; The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft // Compute". Provider *string // READ-ONLY; The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job // Schedule Collections". Resource *string }
OperationDisplay - Localized display information for this particular operation.
func (OperationDisplay) MarshalJSON ¶
func (o OperationDisplay) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationDisplay.
func (*OperationDisplay) UnmarshalJSON ¶
func (o *OperationDisplay) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationDisplay.
type OperationListResult ¶
type OperationListResult struct { // READ-ONLY; URL to get the next set of operation list results (if there are any). NextLink *string // READ-ONLY; List of operations supported by the resource provider Value []*Operation }
OperationListResult - A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results.
func (OperationListResult) MarshalJSON ¶
func (o OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationListResult.
func (*OperationListResult) UnmarshalJSON ¶
func (o *OperationListResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationListResult.
type OperationStatus ¶
type OperationStatus struct { // Gets or sets the end time. EndTime *string // Gets or sets the Id. ID *string // Gets or sets the operation name. Name *string // Gets or sets the start time. StartTime *string // Gets or sets the status of the operation. ARM expects the terminal status to be one of Succeeded/ Failed/ Canceled. All // other values imply that the operation is still running. Status *string }
OperationStatus - Defines the operation status.
func (OperationStatus) MarshalJSON ¶
func (o OperationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationStatus.
func (*OperationStatus) UnmarshalJSON ¶
func (o *OperationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatus.
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 - Gets the operations.
Generated from API version 2021-02-16-preview
- 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/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Operations_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.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.OperationListResult = armrecoveryservicesdatareplication.OperationListResult{ // Value: []*armrecoveryservicesdatareplication.Operation{ // { // Name: to.Ptr("chktcqashuxscvbp"), // ActionType: to.Ptr(armrecoveryservicesdatareplication.ActionTypeInternal), // Display: &armrecoveryservicesdatareplication.OperationDisplay{ // Description: to.Ptr("bjdvnagzxjandxcbcrf"), // Operation: to.Ptr("dfal"), // Provider: to.Ptr("yembewkfmaq"), // Resource: to.Ptr("epyscqvmqhxbwgyqhzeaumpor"), // }, // IsDataAction: to.Ptr(true), // Origin: to.Ptr(armrecoveryservicesdatareplication.OriginUser), // }}, // } } }
Output:
type OperationsClientListOptions ¶
type OperationsClientListOptions struct { }
OperationsClientListOptions contains the optional parameters for the OperationsClient.NewListPager method.
type OperationsClientListResponse ¶
type OperationsClientListResponse struct { // A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. OperationListResult }
OperationsClientListResponse contains the response from method OperationsClient.NewListPager.
type Origin ¶
type Origin string
Origin - The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
func PossibleOriginValues ¶
func PossibleOriginValues() []Origin
PossibleOriginValues returns the possible values for the Origin const type.
type PlannedFailoverModel ¶
type PlannedFailoverModel struct { // REQUIRED; Planned failover model properties. Properties *PlannedFailoverModelProperties }
PlannedFailoverModel - Planned failover model.
func (PlannedFailoverModel) MarshalJSON ¶
func (p PlannedFailoverModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PlannedFailoverModel.
func (*PlannedFailoverModel) UnmarshalJSON ¶
func (p *PlannedFailoverModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PlannedFailoverModel.
type PlannedFailoverModelCustomProperties ¶
type PlannedFailoverModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
PlannedFailoverModelCustomProperties - Planned failover model custom properties.
func (*PlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties ¶
func (p *PlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties() *PlannedFailoverModelCustomProperties
GetPlannedFailoverModelCustomProperties implements the PlannedFailoverModelCustomPropertiesClassification interface for type PlannedFailoverModelCustomProperties.
func (PlannedFailoverModelCustomProperties) MarshalJSON ¶
func (p PlannedFailoverModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PlannedFailoverModelCustomProperties.
func (*PlannedFailoverModelCustomProperties) UnmarshalJSON ¶
func (p *PlannedFailoverModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PlannedFailoverModelCustomProperties.
type PlannedFailoverModelCustomPropertiesClassification ¶
type PlannedFailoverModelCustomPropertiesClassification interface { // GetPlannedFailoverModelCustomProperties returns the PlannedFailoverModelCustomProperties content of the underlying type. GetPlannedFailoverModelCustomProperties() *PlannedFailoverModelCustomProperties }
PlannedFailoverModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetPlannedFailoverModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVToAzStackHCIPlannedFailoverModelCustomProperties, *PlannedFailoverModelCustomProperties, *VMwareToAzStackHCIPlannedFailoverModelCustomProperties
type PlannedFailoverModelProperties ¶
type PlannedFailoverModelProperties struct { // REQUIRED; Planned failover model custom properties. CustomProperties PlannedFailoverModelCustomPropertiesClassification }
PlannedFailoverModelProperties - Planned failover model properties.
func (PlannedFailoverModelProperties) MarshalJSON ¶
func (p PlannedFailoverModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PlannedFailoverModelProperties.
func (*PlannedFailoverModelProperties) UnmarshalJSON ¶
func (p *PlannedFailoverModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PlannedFailoverModelProperties.
type PolicyClient ¶
type PolicyClient struct {
// contains filtered or unexported fields
}
PolicyClient contains the methods for the Policy group. Don't use this type directly, use NewPolicyClient() instead.
func NewPolicyClient ¶
func NewPolicyClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PolicyClient, error)
NewPolicyClient creates a new instance of PolicyClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PolicyClient) BeginCreate ¶
func (client *PolicyClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, policyName string, body PolicyModel, options *PolicyClientBeginCreateOptions) (*runtime.Poller[PolicyClientCreateResponse], error)
BeginCreate - Creates the policy. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- policyName - The policy name.
- body - Policy model.
- options - PolicyClientBeginCreateOptions contains the optional parameters for the PolicyClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Policy_Create.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPolicyClient().BeginCreate(ctx, "rgrecoveryservicesdatareplication", "4", "fafqwc", armrecoveryservicesdatareplication.PolicyModel{ Properties: &armrecoveryservicesdatareplication.PolicyModelProperties{ CustomProperties: &armrecoveryservicesdatareplication.PolicyModelCustomProperties{ InstanceType: to.Ptr("PolicyModelCustomProperties"), }, }, }, 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.PolicyModel = armrecoveryservicesdatareplication.PolicyModel{ // Name: to.Ptr("ocmty"), // Type: to.Ptr("pvltqld"), // ID: to.Ptr("ffivjzdtqgguqlenedikvdilazliwm"), // Properties: &armrecoveryservicesdatareplication.PolicyModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.PolicyModelCustomProperties{ // InstanceType: to.Ptr("PolicyModelCustomProperties"), // }, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // }, // SystemData: &armrecoveryservicesdatareplication.PolicyModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:54.713Z"); return t}()), // CreatedBy: to.Ptr("yiaelkrpuzsfumovsxeb"), // CreatedByType: to.Ptr("qwzrkjsfloruegijrfnfpn"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:54.713Z"); return t}()), // LastModifiedBy: to.Ptr("xy"), // LastModifiedByType: to.Ptr("rnc"), // }, // } }
Output:
func (*PolicyClient) BeginDelete ¶
func (client *PolicyClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, policyName string, options *PolicyClientBeginDeleteOptions) (*runtime.Poller[PolicyClientDeleteResponse], error)
BeginDelete - Removes the policy. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- policyName - The policy name.
- options - PolicyClientBeginDeleteOptions contains the optional parameters for the PolicyClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Policy_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewPolicyClient().BeginDelete(ctx, "rgrecoveryservicesdatareplication", "4", "wqfscsdv", 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 (*PolicyClient) Get ¶
func (client *PolicyClient) Get(ctx context.Context, resourceGroupName string, vaultName string, policyName string, options *PolicyClientGetOptions) (PolicyClientGetResponse, error)
Get - Gets the details of the policy. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- policyName - The policy name.
- options - PolicyClientGetOptions contains the optional parameters for the PolicyClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Policy_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPolicyClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "wdqsacasc", 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.PolicyModel = armrecoveryservicesdatareplication.PolicyModel{ // Name: to.Ptr("ocmty"), // Type: to.Ptr("pvltqld"), // ID: to.Ptr("ffivjzdtqgguqlenedikvdilazliwm"), // Properties: &armrecoveryservicesdatareplication.PolicyModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.PolicyModelCustomProperties{ // InstanceType: to.Ptr("PolicyModelCustomProperties"), // }, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // }, // SystemData: &armrecoveryservicesdatareplication.PolicyModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:54.713Z"); return t}()), // CreatedBy: to.Ptr("yiaelkrpuzsfumovsxeb"), // CreatedByType: to.Ptr("qwzrkjsfloruegijrfnfpn"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:54.713Z"); return t}()), // LastModifiedBy: to.Ptr("xy"), // LastModifiedByType: to.Ptr("rnc"), // }, // } }
Output:
func (*PolicyClient) NewListPager ¶
func (client *PolicyClient) NewListPager(resourceGroupName string, vaultName string, options *PolicyClientListOptions) *runtime.Pager[PolicyClientListResponse]
NewListPager - Gets the list of policies in the given vault.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - PolicyClientListOptions contains the optional parameters for the PolicyClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Policy_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewPolicyClient().NewListPager("rgrecoveryservicesdatareplication", "4", 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.PolicyModelCollection = armrecoveryservicesdatareplication.PolicyModelCollection{ // Value: []*armrecoveryservicesdatareplication.PolicyModel{ // { // Name: to.Ptr("ocmty"), // Type: to.Ptr("pvltqld"), // ID: to.Ptr("ffivjzdtqgguqlenedikvdilazliwm"), // Properties: &armrecoveryservicesdatareplication.PolicyModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.PolicyModelCustomProperties{ // InstanceType: to.Ptr("PolicyModelCustomProperties"), // }, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // }, // SystemData: &armrecoveryservicesdatareplication.PolicyModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:54.713Z"); return t}()), // CreatedBy: to.Ptr("yiaelkrpuzsfumovsxeb"), // CreatedByType: to.Ptr("qwzrkjsfloruegijrfnfpn"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:54.713Z"); return t}()), // LastModifiedBy: to.Ptr("xy"), // LastModifiedByType: to.Ptr("rnc"), // }, // }}, // } } }
Output:
type PolicyClientBeginCreateOptions ¶
type PolicyClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PolicyClientBeginCreateOptions contains the optional parameters for the PolicyClient.BeginCreate method.
type PolicyClientBeginDeleteOptions ¶
type PolicyClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
PolicyClientBeginDeleteOptions contains the optional parameters for the PolicyClient.BeginDelete method.
type PolicyClientCreateResponse ¶
type PolicyClientCreateResponse struct { // Policy model. PolicyModel }
PolicyClientCreateResponse contains the response from method PolicyClient.BeginCreate.
type PolicyClientDeleteResponse ¶
type PolicyClientDeleteResponse struct { }
PolicyClientDeleteResponse contains the response from method PolicyClient.BeginDelete.
type PolicyClientGetOptions ¶
type PolicyClientGetOptions struct { }
PolicyClientGetOptions contains the optional parameters for the PolicyClient.Get method.
type PolicyClientGetResponse ¶
type PolicyClientGetResponse struct { // Policy model. PolicyModel }
PolicyClientGetResponse contains the response from method PolicyClient.Get.
type PolicyClientListOptions ¶
type PolicyClientListOptions struct { }
PolicyClientListOptions contains the optional parameters for the PolicyClient.NewListPager method.
type PolicyClientListResponse ¶
type PolicyClientListResponse struct { // Policy model collection. PolicyModelCollection }
PolicyClientListResponse contains the response from method PolicyClient.NewListPager.
type PolicyModel ¶
type PolicyModel struct { // REQUIRED; Policy model properties. Properties *PolicyModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *PolicyModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
PolicyModel - Policy model.
func (PolicyModel) MarshalJSON ¶
func (p PolicyModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PolicyModel.
func (*PolicyModel) UnmarshalJSON ¶
func (p *PolicyModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PolicyModel.
type PolicyModelCollection ¶
type PolicyModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of policies. Value []*PolicyModel }
PolicyModelCollection - Policy model collection.
func (PolicyModelCollection) MarshalJSON ¶
func (p PolicyModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PolicyModelCollection.
func (*PolicyModelCollection) UnmarshalJSON ¶
func (p *PolicyModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PolicyModelCollection.
type PolicyModelCustomProperties ¶
type PolicyModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
PolicyModelCustomProperties - Policy model custom properties.
func (*PolicyModelCustomProperties) GetPolicyModelCustomProperties ¶
func (p *PolicyModelCustomProperties) GetPolicyModelCustomProperties() *PolicyModelCustomProperties
GetPolicyModelCustomProperties implements the PolicyModelCustomPropertiesClassification interface for type PolicyModelCustomProperties.
func (PolicyModelCustomProperties) MarshalJSON ¶
func (p PolicyModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PolicyModelCustomProperties.
func (*PolicyModelCustomProperties) UnmarshalJSON ¶
func (p *PolicyModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PolicyModelCustomProperties.
type PolicyModelCustomPropertiesClassification ¶
type PolicyModelCustomPropertiesClassification interface { // GetPolicyModelCustomProperties returns the PolicyModelCustomProperties content of the underlying type. GetPolicyModelCustomProperties() *PolicyModelCustomProperties }
PolicyModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetPolicyModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVToAzStackHCIPolicyModelCustomProperties, *PolicyModelCustomProperties, *VMwareToAzStackHCIPolicyModelCustomProperties
type PolicyModelProperties ¶
type PolicyModelProperties struct { // REQUIRED; Policy model custom properties. CustomProperties PolicyModelCustomPropertiesClassification // READ-ONLY; Gets or sets the provisioning state of the policy. ProvisioningState *ProvisioningState }
PolicyModelProperties - Policy model properties.
func (PolicyModelProperties) MarshalJSON ¶
func (p PolicyModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PolicyModelProperties.
func (*PolicyModelProperties) UnmarshalJSON ¶
func (p *PolicyModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PolicyModelProperties.
type PolicyModelSystemData ¶
type PolicyModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (PolicyModelSystemData) MarshalJSON ¶
func (p PolicyModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PolicyModelSystemData.
func (*PolicyModelSystemData) UnmarshalJSON ¶
func (p *PolicyModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PolicyModelSystemData.
type PolicyOperationStatusClient ¶
type PolicyOperationStatusClient struct {
// contains filtered or unexported fields
}
PolicyOperationStatusClient contains the methods for the PolicyOperationStatus group. Don't use this type directly, use NewPolicyOperationStatusClient() instead.
func NewPolicyOperationStatusClient ¶
func NewPolicyOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*PolicyOperationStatusClient, error)
NewPolicyOperationStatusClient creates a new instance of PolicyOperationStatusClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*PolicyOperationStatusClient) Get ¶
func (client *PolicyOperationStatusClient) Get(ctx context.Context, resourceGroupName string, vaultName string, policyName string, operationID string, options *PolicyOperationStatusClientGetOptions) (PolicyOperationStatusClientGetResponse, error)
Get - Tracks the results of an asynchronous operation on the policy. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- policyName - The policy name.
- operationID - The ID of an ongoing async operation.
- options - PolicyOperationStatusClientGetOptions contains the optional parameters for the PolicyOperationStatusClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/PolicyOperationStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewPolicyOperationStatusClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "xczxcwec", "wdqfsdxv", 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.OperationStatus = armrecoveryservicesdatareplication.OperationStatus{ // Name: to.Ptr("wzdasptnwlxgobklayoqapjcgcf"), // EndTime: to.Ptr("nauyrfh"), // ID: to.Ptr("sf"), // StartTime: to.Ptr("xuzwmfrhluafmwwsmzqxsytyehsh"), // Status: to.Ptr("plbnngzfppdram"), // } }
Output:
type PolicyOperationStatusClientGetOptions ¶
type PolicyOperationStatusClientGetOptions struct { }
PolicyOperationStatusClientGetOptions contains the optional parameters for the PolicyOperationStatusClient.Get method.
type PolicyOperationStatusClientGetResponse ¶
type PolicyOperationStatusClientGetResponse struct { // Defines the operation status. OperationStatus }
PolicyOperationStatusClientGetResponse contains the response from method PolicyOperationStatusClient.Get.
type ProtectedItemActiveLocation ¶
type ProtectedItemActiveLocation string
ProtectedItemActiveLocation - Gets or sets the location of the protected item.
const ( ProtectedItemActiveLocationPrimary ProtectedItemActiveLocation = "Primary" ProtectedItemActiveLocationRecovery ProtectedItemActiveLocation = "Recovery" )
func PossibleProtectedItemActiveLocationValues ¶
func PossibleProtectedItemActiveLocationValues() []ProtectedItemActiveLocation
PossibleProtectedItemActiveLocationValues returns the possible values for the ProtectedItemActiveLocation const type.
type ProtectedItemClient ¶
type ProtectedItemClient struct {
// contains filtered or unexported fields
}
ProtectedItemClient contains the methods for the ProtectedItem group. Don't use this type directly, use NewProtectedItemClient() instead.
func NewProtectedItemClient ¶
func NewProtectedItemClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProtectedItemClient, error)
NewProtectedItemClient creates a new instance of ProtectedItemClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ProtectedItemClient) BeginCreate ¶
func (client *ProtectedItemClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, protectedItemName string, body ProtectedItemModel, options *ProtectedItemClientBeginCreateOptions) (*runtime.Poller[ProtectedItemClientCreateResponse], error)
BeginCreate - Creates the protected item. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- protectedItemName - The protected item name.
- body - Protected item model.
- options - ProtectedItemClientBeginCreateOptions contains the optional parameters for the ProtectedItemClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ProtectedItem_Create.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewProtectedItemClient().BeginCreate(ctx, "rgrecoveryservicesdatareplication", "4", "d", armrecoveryservicesdatareplication.ProtectedItemModel{ Properties: &armrecoveryservicesdatareplication.ProtectedItemModelProperties{ CustomProperties: &armrecoveryservicesdatareplication.ProtectedItemModelCustomProperties{ InstanceType: to.Ptr("ProtectedItemModelCustomProperties"), }, PolicyName: to.Ptr("tjoeiynplt"), ReplicationExtensionName: to.Ptr("jwxdo"), }, }, 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.ProtectedItemModel = armrecoveryservicesdatareplication.ProtectedItemModel{ // Name: to.Ptr("t"), // Type: to.Ptr("xlyjashandpfwivuipoplgkgsnwoh"), // ID: to.Ptr("egmhsfbgkarlobrgybkz"), // Properties: &armrecoveryservicesdatareplication.ProtectedItemModelProperties{ // AllowedJobs: []*string{ // to.Ptr("guryeoocjbvqvalfkrxecpxwynpxs")}, // CorrelationID: to.Ptr("mvxvtcqwgp"), // CurrentJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesCurrentJob{ // Name: to.Ptr("kqtvbrfmqaxdgpttkbmzpwafjp"), // DisplayName: to.Ptr("awutlqrisstqb"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("bnmbzxzyfgwh"), // ScenarioName: to.Ptr("ljbnhbdmreowdqnlcqycvaramwuii"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("ztlpngveoqcdejpwaiudhrioskauqv"), // }, // CustomProperties: &armrecoveryservicesdatareplication.ProtectedItemModelCustomProperties{ // InstanceType: to.Ptr("ProtectedItemModelCustomProperties"), // }, // DraID: to.Ptr("vxrmsufvxothxauhvqdowascmy"), // FabricID: to.Ptr("ebsxoblmhlhqjzzjzdwo"), // FabricObjectID: to.Ptr("kjcizdpahzqsrwyiywbhyzdxsufj"), // FabricObjectName: to.Ptr("glrjwtvmejxuagjepcwaxhih"), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // LastFailedEnableProtectionJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastFailedEnableProtectionJob{ // Name: to.Ptr("hvvolptulpcxwbnjdzky"), // DisplayName: to.Ptr("zrqjbcozwiuypjjnvy"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("hjzgyxgdy"), // ScenarioName: to.Ptr("fhz"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("ljsixxmmcaq"), // }, // LastFailedPlannedFailoverJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastFailedPlannedFailoverJob{ // Name: to.Ptr("ofblltxwhwzhyr"), // DisplayName: to.Ptr("whxsvbrzdhqsepbocfzsfx"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("ndjurplurnkguwfxx"), // ScenarioName: to.Ptr("ceksuyfiplxj"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("wpur"), // }, // LastSuccessfulPlannedFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastSuccessfulTestFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastSuccessfulUnplannedFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastTestFailoverJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastTestFailoverJob{ // Name: to.Ptr("cedjijdtnznsnigghrxnsaz"), // DisplayName: to.Ptr("lhkjfbonwdtxckwzfebfwdyu"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("cta"), // ScenarioName: to.Ptr("dfuovvz"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("nhbzw"), // }, // PolicyName: to.Ptr("tjoeiynplt"), // ProtectionState: to.Ptr(armrecoveryservicesdatareplication.ProtectionStateUnprotectedStatesBegin), // ProtectionStateDescription: to.Ptr("lp"), // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ReplicationExtensionName: to.Ptr("jwxdo"), // ReplicationHealth: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // ResyncRequired: to.Ptr(true), // ResynchronizationState: to.Ptr(armrecoveryservicesdatareplication.ResynchronizationStateNone), // SourceFabricProviderID: to.Ptr("srggkxaruzlegtpdalscio"), // TargetDraID: to.Ptr("oscnhreunbyibimlpvsesu"), // TargetFabricID: to.Ptr("fb"), // TargetFabricProviderID: to.Ptr("sutiqezfbeiewwjezflvcitqj"), // TestFailoverState: to.Ptr(armrecoveryservicesdatareplication.TestFailoverStateNone), // TestFailoverStateDescription: to.Ptr("msjz"), // }, // SystemData: &armrecoveryservicesdatareplication.ProtectedItemModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // CreatedBy: to.Ptr("ghut"), // CreatedByType: to.Ptr("tzczp"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastModifiedBy: to.Ptr("epo"), // LastModifiedByType: to.Ptr("ekzmwexhjttb"), // }, // } }
Output:
func (*ProtectedItemClient) BeginDelete ¶
func (client *ProtectedItemClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, protectedItemName string, options *ProtectedItemClientBeginDeleteOptions) (*runtime.Poller[ProtectedItemClientDeleteResponse], error)
BeginDelete - Removes the protected item. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- protectedItemName - The protected item name.
- options - ProtectedItemClientBeginDeleteOptions contains the optional parameters for the ProtectedItemClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ProtectedItem_Delete.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewProtectedItemClient().BeginDelete(ctx, "rgrecoveryservicesdatareplication", "4", "d", &armrecoveryservicesdatareplication.ProtectedItemClientBeginDeleteOptions{ForceDelete: to.Ptr(true)}) 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 (*ProtectedItemClient) BeginPlannedFailover ¶
func (client *ProtectedItemClient) BeginPlannedFailover(ctx context.Context, resourceGroupName string, vaultName string, protectedItemName string, options *ProtectedItemClientBeginPlannedFailoverOptions) (*runtime.Poller[ProtectedItemClientPlannedFailoverResponse], error)
BeginPlannedFailover - Performs the planned failover on the protected item. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- protectedItemName - The protected item name.
- options - ProtectedItemClientBeginPlannedFailoverOptions contains the optional parameters for the ProtectedItemClient.BeginPlannedFailover method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ProtectedItem_PlannedFailover.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewProtectedItemClient().BeginPlannedFailover(ctx, "rgrecoveryservicesdatareplication", "4", "d", &armrecoveryservicesdatareplication.ProtectedItemClientBeginPlannedFailoverOptions{Body: &armrecoveryservicesdatareplication.PlannedFailoverModel{ Properties: &armrecoveryservicesdatareplication.PlannedFailoverModelProperties{ CustomProperties: &armrecoveryservicesdatareplication.PlannedFailoverModelCustomProperties{ InstanceType: to.Ptr("PlannedFailoverModelCustomProperties"), }, }, }, }) 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.PlannedFailoverModel = armrecoveryservicesdatareplication.PlannedFailoverModel{ // Properties: &armrecoveryservicesdatareplication.PlannedFailoverModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.PlannedFailoverModelCustomProperties{ // InstanceType: to.Ptr("PlannedFailoverModelCustomProperties"), // }, // }, // } }
Output:
func (*ProtectedItemClient) Get ¶
func (client *ProtectedItemClient) Get(ctx context.Context, resourceGroupName string, vaultName string, protectedItemName string, options *ProtectedItemClientGetOptions) (ProtectedItemClientGetResponse, error)
Get - Gets the details of the protected item. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- protectedItemName - The protected item name.
- options - ProtectedItemClientGetOptions contains the optional parameters for the ProtectedItemClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ProtectedItem_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewProtectedItemClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "d", 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.ProtectedItemModel = armrecoveryservicesdatareplication.ProtectedItemModel{ // Name: to.Ptr("t"), // Type: to.Ptr("xlyjashandpfwivuipoplgkgsnwoh"), // ID: to.Ptr("egmhsfbgkarlobrgybkz"), // Properties: &armrecoveryservicesdatareplication.ProtectedItemModelProperties{ // AllowedJobs: []*string{ // to.Ptr("guryeoocjbvqvalfkrxecpxwynpxs")}, // CorrelationID: to.Ptr("mvxvtcqwgp"), // CurrentJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesCurrentJob{ // Name: to.Ptr("kqtvbrfmqaxdgpttkbmzpwafjp"), // DisplayName: to.Ptr("awutlqrisstqb"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("bnmbzxzyfgwh"), // ScenarioName: to.Ptr("ljbnhbdmreowdqnlcqycvaramwuii"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("ztlpngveoqcdejpwaiudhrioskauqv"), // }, // CustomProperties: &armrecoveryservicesdatareplication.ProtectedItemModelCustomProperties{ // InstanceType: to.Ptr("ProtectedItemModelCustomProperties"), // }, // DraID: to.Ptr("vxrmsufvxothxauhvqdowascmy"), // FabricID: to.Ptr("ebsxoblmhlhqjzzjzdwo"), // FabricObjectID: to.Ptr("kjcizdpahzqsrwyiywbhyzdxsufj"), // FabricObjectName: to.Ptr("glrjwtvmejxuagjepcwaxhih"), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // LastFailedEnableProtectionJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastFailedEnableProtectionJob{ // Name: to.Ptr("hvvolptulpcxwbnjdzky"), // DisplayName: to.Ptr("zrqjbcozwiuypjjnvy"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("hjzgyxgdy"), // ScenarioName: to.Ptr("fhz"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("ljsixxmmcaq"), // }, // LastFailedPlannedFailoverJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastFailedPlannedFailoverJob{ // Name: to.Ptr("ofblltxwhwzhyr"), // DisplayName: to.Ptr("whxsvbrzdhqsepbocfzsfx"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("ndjurplurnkguwfxx"), // ScenarioName: to.Ptr("ceksuyfiplxj"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("wpur"), // }, // LastSuccessfulPlannedFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastSuccessfulTestFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastSuccessfulUnplannedFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastTestFailoverJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastTestFailoverJob{ // Name: to.Ptr("cedjijdtnznsnigghrxnsaz"), // DisplayName: to.Ptr("lhkjfbonwdtxckwzfebfwdyu"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("cta"), // ScenarioName: to.Ptr("dfuovvz"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("nhbzw"), // }, // PolicyName: to.Ptr("tjoeiynplt"), // ProtectionState: to.Ptr(armrecoveryservicesdatareplication.ProtectionStateUnprotectedStatesBegin), // ProtectionStateDescription: to.Ptr("lp"), // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ReplicationExtensionName: to.Ptr("jwxdo"), // ReplicationHealth: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // ResyncRequired: to.Ptr(true), // ResynchronizationState: to.Ptr(armrecoveryservicesdatareplication.ResynchronizationStateNone), // SourceFabricProviderID: to.Ptr("srggkxaruzlegtpdalscio"), // TargetDraID: to.Ptr("oscnhreunbyibimlpvsesu"), // TargetFabricID: to.Ptr("fb"), // TargetFabricProviderID: to.Ptr("sutiqezfbeiewwjezflvcitqj"), // TestFailoverState: to.Ptr(armrecoveryservicesdatareplication.TestFailoverStateNone), // TestFailoverStateDescription: to.Ptr("msjz"), // }, // SystemData: &armrecoveryservicesdatareplication.ProtectedItemModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // CreatedBy: to.Ptr("ghut"), // CreatedByType: to.Ptr("tzczp"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastModifiedBy: to.Ptr("epo"), // LastModifiedByType: to.Ptr("ekzmwexhjttb"), // }, // } }
Output:
func (*ProtectedItemClient) NewListPager ¶
func (client *ProtectedItemClient) NewListPager(resourceGroupName string, vaultName string, options *ProtectedItemClientListOptions) *runtime.Pager[ProtectedItemClientListResponse]
NewListPager - Gets the list of protected items in the given vault.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - ProtectedItemClientListOptions contains the optional parameters for the ProtectedItemClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ProtectedItem_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewProtectedItemClient().NewListPager("rgrecoveryservicesdatareplication", "4", 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.ProtectedItemModelCollection = armrecoveryservicesdatareplication.ProtectedItemModelCollection{ // Value: []*armrecoveryservicesdatareplication.ProtectedItemModel{ // { // Name: to.Ptr("t"), // Type: to.Ptr("xlyjashandpfwivuipoplgkgsnwoh"), // ID: to.Ptr("egmhsfbgkarlobrgybkz"), // Properties: &armrecoveryservicesdatareplication.ProtectedItemModelProperties{ // AllowedJobs: []*string{ // to.Ptr("guryeoocjbvqvalfkrxecpxwynpxs")}, // CorrelationID: to.Ptr("mvxvtcqwgp"), // CurrentJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesCurrentJob{ // Name: to.Ptr("kqtvbrfmqaxdgpttkbmzpwafjp"), // DisplayName: to.Ptr("awutlqrisstqb"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("bnmbzxzyfgwh"), // ScenarioName: to.Ptr("ljbnhbdmreowdqnlcqycvaramwuii"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("ztlpngveoqcdejpwaiudhrioskauqv"), // }, // CustomProperties: &armrecoveryservicesdatareplication.ProtectedItemModelCustomProperties{ // InstanceType: to.Ptr("ProtectedItemModelCustomProperties"), // }, // DraID: to.Ptr("vxrmsufvxothxauhvqdowascmy"), // FabricID: to.Ptr("ebsxoblmhlhqjzzjzdwo"), // FabricObjectID: to.Ptr("kjcizdpahzqsrwyiywbhyzdxsufj"), // FabricObjectName: to.Ptr("glrjwtvmejxuagjepcwaxhih"), // HealthErrors: []*armrecoveryservicesdatareplication.HealthErrorModel{ // { // AffectedResourceCorrelationIDs: []*string{ // to.Ptr("fope")}, // AffectedResourceType: to.Ptr("scfniv"), // Category: to.Ptr("leigw"), // Causes: to.Ptr("xznphqrrmsdzm"), // ChildErrors: []*armrecoveryservicesdatareplication.InnerHealthErrorModel{ // { // Category: to.Ptr("lcsdxrqxquke"), // Causes: to.Ptr("kefaugkpxjkpulimjthjnl"), // Code: to.Ptr("yuxxpblihirpedwkigywgwjjrlzq"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("mhdgfjqwbikhxmhtomkl"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("sskcei"), // Recommendation: to.Ptr("kqybwaesqumywtjepi"), // Severity: to.Ptr("wqxxiuaqjyagq"), // Source: to.Ptr("wevvftugwydzzw"), // Summary: to.Ptr("djsmgrltruljo"), // }}, // Code: to.Ptr("dgxkefzmeukd"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:52.128Z"); return t}()), // HealthCategory: to.Ptr("itc"), // IsCustomerResolvable: to.Ptr(true), // Message: to.Ptr("lbywtdprdqdekl"), // Recommendation: to.Ptr("gmssteizlhjtclyeoo"), // Severity: to.Ptr("vvdajssdcypewdyechilxjmuijvdd"), // Source: to.Ptr("iy"), // Summary: to.Ptr("jtooblbvaxxrvcwgscbobq"), // }}, // LastFailedEnableProtectionJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastFailedEnableProtectionJob{ // Name: to.Ptr("hvvolptulpcxwbnjdzky"), // DisplayName: to.Ptr("zrqjbcozwiuypjjnvy"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("hjzgyxgdy"), // ScenarioName: to.Ptr("fhz"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("ljsixxmmcaq"), // }, // LastFailedPlannedFailoverJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastFailedPlannedFailoverJob{ // Name: to.Ptr("ofblltxwhwzhyr"), // DisplayName: to.Ptr("whxsvbrzdhqsepbocfzsfx"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("ndjurplurnkguwfxx"), // ScenarioName: to.Ptr("ceksuyfiplxj"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("wpur"), // }, // LastSuccessfulPlannedFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastSuccessfulTestFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastSuccessfulUnplannedFailoverTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastTestFailoverJob: &armrecoveryservicesdatareplication.ProtectedItemModelPropertiesLastTestFailoverJob{ // Name: to.Ptr("cedjijdtnznsnigghrxnsaz"), // DisplayName: to.Ptr("lhkjfbonwdtxckwzfebfwdyu"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // ID: to.Ptr("cta"), // ScenarioName: to.Ptr("dfuovvz"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // State: to.Ptr("nhbzw"), // }, // PolicyName: to.Ptr("tjoeiynplt"), // ProtectionState: to.Ptr(armrecoveryservicesdatareplication.ProtectionStateUnprotectedStatesBegin), // ProtectionStateDescription: to.Ptr("lp"), // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ReplicationExtensionName: to.Ptr("jwxdo"), // ReplicationHealth: to.Ptr(armrecoveryservicesdatareplication.HealthStatusNormal), // ResyncRequired: to.Ptr(true), // ResynchronizationState: to.Ptr(armrecoveryservicesdatareplication.ResynchronizationStateNone), // SourceFabricProviderID: to.Ptr("srggkxaruzlegtpdalscio"), // TargetDraID: to.Ptr("oscnhreunbyibimlpvsesu"), // TargetFabricID: to.Ptr("fb"), // TargetFabricProviderID: to.Ptr("sutiqezfbeiewwjezflvcitqj"), // TestFailoverState: to.Ptr(armrecoveryservicesdatareplication.TestFailoverStateNone), // TestFailoverStateDescription: to.Ptr("msjz"), // }, // SystemData: &armrecoveryservicesdatareplication.ProtectedItemModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // CreatedBy: to.Ptr("ghut"), // CreatedByType: to.Ptr("tzczp"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:55.456Z"); return t}()), // LastModifiedBy: to.Ptr("epo"), // LastModifiedByType: to.Ptr("ekzmwexhjttb"), // }, // }}, // } } }
Output:
type ProtectedItemClientBeginCreateOptions ¶
type ProtectedItemClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ProtectedItemClientBeginCreateOptions contains the optional parameters for the ProtectedItemClient.BeginCreate method.
type ProtectedItemClientBeginDeleteOptions ¶
type ProtectedItemClientBeginDeleteOptions struct { // A flag indicating whether to do force delete or not. ForceDelete *bool // Resumes the LRO from the provided token. ResumeToken string }
ProtectedItemClientBeginDeleteOptions contains the optional parameters for the ProtectedItemClient.BeginDelete method.
type ProtectedItemClientBeginPlannedFailoverOptions ¶
type ProtectedItemClientBeginPlannedFailoverOptions struct { // Planned failover model. Body *PlannedFailoverModel // Resumes the LRO from the provided token. ResumeToken string }
ProtectedItemClientBeginPlannedFailoverOptions contains the optional parameters for the ProtectedItemClient.BeginPlannedFailover method.
type ProtectedItemClientCreateResponse ¶
type ProtectedItemClientCreateResponse struct { // Protected item model. ProtectedItemModel }
ProtectedItemClientCreateResponse contains the response from method ProtectedItemClient.BeginCreate.
type ProtectedItemClientDeleteResponse ¶
type ProtectedItemClientDeleteResponse struct { }
ProtectedItemClientDeleteResponse contains the response from method ProtectedItemClient.BeginDelete.
type ProtectedItemClientGetOptions ¶
type ProtectedItemClientGetOptions struct { }
ProtectedItemClientGetOptions contains the optional parameters for the ProtectedItemClient.Get method.
type ProtectedItemClientGetResponse ¶
type ProtectedItemClientGetResponse struct { // Protected item model. ProtectedItemModel }
ProtectedItemClientGetResponse contains the response from method ProtectedItemClient.Get.
type ProtectedItemClientListOptions ¶
type ProtectedItemClientListOptions struct { }
ProtectedItemClientListOptions contains the optional parameters for the ProtectedItemClient.NewListPager method.
type ProtectedItemClientListResponse ¶
type ProtectedItemClientListResponse struct { // Protected item model collection. ProtectedItemModelCollection }
ProtectedItemClientListResponse contains the response from method ProtectedItemClient.NewListPager.
type ProtectedItemClientPlannedFailoverResponse ¶
type ProtectedItemClientPlannedFailoverResponse struct { // Planned failover model. PlannedFailoverModel }
ProtectedItemClientPlannedFailoverResponse contains the response from method ProtectedItemClient.BeginPlannedFailover.
type ProtectedItemDynamicMemoryConfig ¶
type ProtectedItemDynamicMemoryConfig struct { // REQUIRED; Gets or sets maximum memory in MB. MaximumMemoryInMegaBytes *int64 // REQUIRED; Gets or sets minimum memory in MB. MinimumMemoryInMegaBytes *int64 // REQUIRED; Gets or sets target memory buffer in %. TargetMemoryBufferPercentage *int32 }
ProtectedItemDynamicMemoryConfig - Protected item dynamic memory config.
func (ProtectedItemDynamicMemoryConfig) MarshalJSON ¶
func (p ProtectedItemDynamicMemoryConfig) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemDynamicMemoryConfig.
func (*ProtectedItemDynamicMemoryConfig) UnmarshalJSON ¶
func (p *ProtectedItemDynamicMemoryConfig) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemDynamicMemoryConfig.
type ProtectedItemModel ¶
type ProtectedItemModel struct { // REQUIRED; Protected item model properties. Properties *ProtectedItemModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *ProtectedItemModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
ProtectedItemModel - Protected item model.
func (ProtectedItemModel) MarshalJSON ¶
func (p ProtectedItemModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModel.
func (*ProtectedItemModel) UnmarshalJSON ¶
func (p *ProtectedItemModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModel.
type ProtectedItemModelCollection ¶
type ProtectedItemModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of protected items. Value []*ProtectedItemModel }
ProtectedItemModelCollection - Protected item model collection.
func (ProtectedItemModelCollection) MarshalJSON ¶
func (p ProtectedItemModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelCollection.
func (*ProtectedItemModelCollection) UnmarshalJSON ¶
func (p *ProtectedItemModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelCollection.
type ProtectedItemModelCustomProperties ¶
type ProtectedItemModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
ProtectedItemModelCustomProperties - Protected item model custom properties.
func (*ProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties ¶
func (p *ProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties() *ProtectedItemModelCustomProperties
GetProtectedItemModelCustomProperties implements the ProtectedItemModelCustomPropertiesClassification interface for type ProtectedItemModelCustomProperties.
func (ProtectedItemModelCustomProperties) MarshalJSON ¶
func (p ProtectedItemModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelCustomProperties.
func (*ProtectedItemModelCustomProperties) UnmarshalJSON ¶
func (p *ProtectedItemModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelCustomProperties.
type ProtectedItemModelCustomPropertiesClassification ¶
type ProtectedItemModelCustomPropertiesClassification interface { // GetProtectedItemModelCustomProperties returns the ProtectedItemModelCustomProperties content of the underlying type. GetProtectedItemModelCustomProperties() *ProtectedItemModelCustomProperties }
ProtectedItemModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetProtectedItemModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVToAzStackHCIProtectedItemModelCustomProperties, *ProtectedItemModelCustomProperties, *VMwareToAzStackHCIProtectedItemModelCustomProperties
type ProtectedItemModelProperties ¶
type ProtectedItemModelProperties struct { // REQUIRED; Protected item model custom properties. CustomProperties ProtectedItemModelCustomPropertiesClassification // REQUIRED; Gets or sets the policy name. PolicyName *string // REQUIRED; Gets or sets the replication extension name. ReplicationExtensionName *string // READ-ONLY; Gets or sets the allowed scenarios on the protected item. AllowedJobs []*string // READ-ONLY; Gets or sets the protected item correlation Id. CorrelationID *string // READ-ONLY CurrentJob *ProtectedItemModelPropertiesCurrentJob // READ-ONLY; Gets or sets the DRA Id. DraID *string // READ-ONLY; Gets or sets the fabric Id. FabricID *string // READ-ONLY; Gets or sets the fabric object Id. FabricObjectID *string // READ-ONLY; Gets or sets the fabric object name. FabricObjectName *string // READ-ONLY; Gets or sets the list of health errors. HealthErrors []*HealthErrorModel // READ-ONLY LastFailedEnableProtectionJob *ProtectedItemModelPropertiesLastFailedEnableProtectionJob // READ-ONLY LastFailedPlannedFailoverJob *ProtectedItemModelPropertiesLastFailedPlannedFailoverJob // READ-ONLY; Gets or sets the Last successful planned failover time. LastSuccessfulPlannedFailoverTime *time.Time // READ-ONLY; Gets or sets the Last successful test failover time. LastSuccessfulTestFailoverTime *time.Time // READ-ONLY; Gets or sets the Last successful unplanned failover time. LastSuccessfulUnplannedFailoverTime *time.Time // READ-ONLY LastTestFailoverJob *ProtectedItemModelPropertiesLastTestFailoverJob // READ-ONLY; Gets or sets the protection state. ProtectionState *ProtectionState // READ-ONLY; Gets or sets the protection state description. ProtectionStateDescription *string // READ-ONLY; Gets or sets the provisioning state of the Dra. ProvisioningState *ProvisioningState // READ-ONLY; Gets or sets protected item replication health. ReplicationHealth *HealthStatus // READ-ONLY; Gets or sets a value indicating whether resynchronization is required or not. ResyncRequired *bool // READ-ONLY; Gets or sets the resynchronization state. ResynchronizationState *ResynchronizationState // READ-ONLY; Gets or sets the source fabric provider Id. SourceFabricProviderID *string // READ-ONLY; Gets or sets the target DRA Id. TargetDraID *string // READ-ONLY; Gets or sets the target fabric Id. TargetFabricID *string // READ-ONLY; Gets or sets the target fabric provider Id. TargetFabricProviderID *string // READ-ONLY; Gets or sets the test failover state. TestFailoverState *TestFailoverState // READ-ONLY; Gets or sets the Test failover state description. TestFailoverStateDescription *string }
ProtectedItemModelProperties - Protected item model properties.
func (ProtectedItemModelProperties) MarshalJSON ¶
func (p ProtectedItemModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelProperties.
func (*ProtectedItemModelProperties) UnmarshalJSON ¶
func (p *ProtectedItemModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelProperties.
type ProtectedItemModelPropertiesCurrentJob ¶
type ProtectedItemModelPropertiesCurrentJob struct { // READ-ONLY; Gets or sets the workflow friendly display name. DisplayName *string // READ-ONLY; Gets or sets end time of the workflow. EndTime *time.Time // READ-ONLY; Gets or sets workflow Id. ID *string // READ-ONLY; Gets or sets workflow name. Name *string // READ-ONLY; Gets or sets protection scenario name. ScenarioName *string // READ-ONLY; Gets or sets start time of the workflow. StartTime *time.Time // READ-ONLY; Gets or sets workflow state. State *string }
func (ProtectedItemModelPropertiesCurrentJob) MarshalJSON ¶
func (p ProtectedItemModelPropertiesCurrentJob) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelPropertiesCurrentJob.
func (*ProtectedItemModelPropertiesCurrentJob) UnmarshalJSON ¶
func (p *ProtectedItemModelPropertiesCurrentJob) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelPropertiesCurrentJob.
type ProtectedItemModelPropertiesLastFailedEnableProtectionJob ¶
type ProtectedItemModelPropertiesLastFailedEnableProtectionJob struct { // READ-ONLY; Gets or sets the workflow friendly display name. DisplayName *string // READ-ONLY; Gets or sets end time of the workflow. EndTime *time.Time // READ-ONLY; Gets or sets workflow Id. ID *string // READ-ONLY; Gets or sets workflow name. Name *string // READ-ONLY; Gets or sets protection scenario name. ScenarioName *string // READ-ONLY; Gets or sets start time of the workflow. StartTime *time.Time // READ-ONLY; Gets or sets workflow state. State *string }
func (ProtectedItemModelPropertiesLastFailedEnableProtectionJob) MarshalJSON ¶
func (p ProtectedItemModelPropertiesLastFailedEnableProtectionJob) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelPropertiesLastFailedEnableProtectionJob.
func (*ProtectedItemModelPropertiesLastFailedEnableProtectionJob) UnmarshalJSON ¶
func (p *ProtectedItemModelPropertiesLastFailedEnableProtectionJob) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelPropertiesLastFailedEnableProtectionJob.
type ProtectedItemModelPropertiesLastFailedPlannedFailoverJob ¶
type ProtectedItemModelPropertiesLastFailedPlannedFailoverJob struct { // READ-ONLY; Gets or sets the workflow friendly display name. DisplayName *string // READ-ONLY; Gets or sets end time of the workflow. EndTime *time.Time // READ-ONLY; Gets or sets workflow Id. ID *string // READ-ONLY; Gets or sets workflow name. Name *string // READ-ONLY; Gets or sets protection scenario name. ScenarioName *string // READ-ONLY; Gets or sets start time of the workflow. StartTime *time.Time // READ-ONLY; Gets or sets workflow state. State *string }
func (ProtectedItemModelPropertiesLastFailedPlannedFailoverJob) MarshalJSON ¶
func (p ProtectedItemModelPropertiesLastFailedPlannedFailoverJob) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelPropertiesLastFailedPlannedFailoverJob.
func (*ProtectedItemModelPropertiesLastFailedPlannedFailoverJob) UnmarshalJSON ¶
func (p *ProtectedItemModelPropertiesLastFailedPlannedFailoverJob) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelPropertiesLastFailedPlannedFailoverJob.
type ProtectedItemModelPropertiesLastTestFailoverJob ¶
type ProtectedItemModelPropertiesLastTestFailoverJob struct { // READ-ONLY; Gets or sets the workflow friendly display name. DisplayName *string // READ-ONLY; Gets or sets end time of the workflow. EndTime *time.Time // READ-ONLY; Gets or sets workflow Id. ID *string // READ-ONLY; Gets or sets workflow name. Name *string // READ-ONLY; Gets or sets protection scenario name. ScenarioName *string // READ-ONLY; Gets or sets start time of the workflow. StartTime *time.Time // READ-ONLY; Gets or sets workflow state. State *string }
func (ProtectedItemModelPropertiesLastTestFailoverJob) MarshalJSON ¶
func (p ProtectedItemModelPropertiesLastTestFailoverJob) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelPropertiesLastTestFailoverJob.
func (*ProtectedItemModelPropertiesLastTestFailoverJob) UnmarshalJSON ¶
func (p *ProtectedItemModelPropertiesLastTestFailoverJob) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelPropertiesLastTestFailoverJob.
type ProtectedItemModelSystemData ¶
type ProtectedItemModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (ProtectedItemModelSystemData) MarshalJSON ¶
func (p ProtectedItemModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ProtectedItemModelSystemData.
func (*ProtectedItemModelSystemData) UnmarshalJSON ¶
func (p *ProtectedItemModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ProtectedItemModelSystemData.
type ProtectedItemOperationStatusClient ¶
type ProtectedItemOperationStatusClient struct {
// contains filtered or unexported fields
}
ProtectedItemOperationStatusClient contains the methods for the ProtectedItemOperationStatus group. Don't use this type directly, use NewProtectedItemOperationStatusClient() instead.
func NewProtectedItemOperationStatusClient ¶
func NewProtectedItemOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ProtectedItemOperationStatusClient, error)
NewProtectedItemOperationStatusClient creates a new instance of ProtectedItemOperationStatusClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ProtectedItemOperationStatusClient) Get ¶
func (client *ProtectedItemOperationStatusClient) Get(ctx context.Context, resourceGroupName string, vaultName string, protectedItemName string, operationID string, options *ProtectedItemOperationStatusClientGetOptions) (ProtectedItemOperationStatusClientGetResponse, error)
Get - Tracks the results of an asynchronous operation on the protected item. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- protectedItemName - The protected item name.
- operationID - The ID of an ongoing async operation.
- options - ProtectedItemOperationStatusClientGetOptions contains the optional parameters for the ProtectedItemOperationStatusClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ProtectedItemOperationStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewProtectedItemOperationStatusClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "d", "wdqacsc", 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.OperationStatus = armrecoveryservicesdatareplication.OperationStatus{ // Name: to.Ptr("wzdasptnwlxgobklayoqapjcgcf"), // EndTime: to.Ptr("nauyrfh"), // ID: to.Ptr("sf"), // StartTime: to.Ptr("xuzwmfrhluafmwwsmzqxsytyehsh"), // Status: to.Ptr("plbnngzfppdram"), // } }
Output:
type ProtectedItemOperationStatusClientGetOptions ¶
type ProtectedItemOperationStatusClientGetOptions struct { }
ProtectedItemOperationStatusClientGetOptions contains the optional parameters for the ProtectedItemOperationStatusClient.Get method.
type ProtectedItemOperationStatusClientGetResponse ¶
type ProtectedItemOperationStatusClientGetResponse struct { // Defines the operation status. OperationStatus }
ProtectedItemOperationStatusClientGetResponse contains the response from method ProtectedItemOperationStatusClient.Get.
type ProtectionState ¶
type ProtectionState string
ProtectionState - Gets or sets the protection state.
const ( ProtectionStateCancelFailoverFailedOnPrimary ProtectionState = "CancelFailoverFailedOnPrimary" ProtectionStateCancelFailoverFailedOnRecovery ProtectionState = "CancelFailoverFailedOnRecovery" ProtectionStateCancelFailoverInProgressOnPrimary ProtectionState = "CancelFailoverInProgressOnPrimary" ProtectionStateCancelFailoverInProgressOnRecovery ProtectionState = "CancelFailoverInProgressOnRecovery" ProtectionStateCancelFailoverStatesBegin ProtectionState = "CancelFailoverStatesBegin" ProtectionStateCancelFailoverStatesEnd ProtectionState = "CancelFailoverStatesEnd" ProtectionStateChangeRecoveryPointCompleted ProtectionState = "ChangeRecoveryPointCompleted" ProtectionStateChangeRecoveryPointFailed ProtectionState = "ChangeRecoveryPointFailed" ProtectionStateChangeRecoveryPointInitiated ProtectionState = "ChangeRecoveryPointInitiated" ProtectionStateChangeRecoveryPointStatesBegin ProtectionState = "ChangeRecoveryPointStatesBegin" ProtectionStateChangeRecoveryPointStatesEnd ProtectionState = "ChangeRecoveryPointStatesEnd" ProtectionStateCommitFailoverCompleted ProtectionState = "CommitFailoverCompleted" ProtectionStateCommitFailoverFailedOnPrimary ProtectionState = "CommitFailoverFailedOnPrimary" ProtectionStateCommitFailoverFailedOnRecovery ProtectionState = "CommitFailoverFailedOnRecovery" ProtectionStateCommitFailoverInProgressOnPrimary ProtectionState = "CommitFailoverInProgressOnPrimary" ProtectionStateCommitFailoverInProgressOnRecovery ProtectionState = "CommitFailoverInProgressOnRecovery" ProtectionStateCommitFailoverStatesBegin ProtectionState = "CommitFailoverStatesBegin" ProtectionStateCommitFailoverStatesEnd ProtectionState = "CommitFailoverStatesEnd" ProtectionStateDisablingFailed ProtectionState = "DisablingFailed" ProtectionStateDisablingProtection ProtectionState = "DisablingProtection" ProtectionStateEnablingFailed ProtectionState = "EnablingFailed" ProtectionStateEnablingProtection ProtectionState = "EnablingProtection" ProtectionStateInitialReplicationCompletedOnPrimary ProtectionState = "InitialReplicationCompletedOnPrimary" ProtectionStateInitialReplicationCompletedOnRecovery ProtectionState = "InitialReplicationCompletedOnRecovery" ProtectionStateInitialReplicationFailed ProtectionState = "InitialReplicationFailed" ProtectionStateInitialReplicationInProgress ProtectionState = "InitialReplicationInProgress" ProtectionStateInitialReplicationStatesBegin ProtectionState = "InitialReplicationStatesBegin" ProtectionStateInitialReplicationStatesEnd ProtectionState = "InitialReplicationStatesEnd" ProtectionStateMarkedForDeletion ProtectionState = "MarkedForDeletion" ProtectionStatePlannedFailoverCompleted ProtectionState = "PlannedFailoverCompleted" ProtectionStatePlannedFailoverCompleting ProtectionState = "PlannedFailoverCompleting" ProtectionStatePlannedFailoverCompletionFailed ProtectionState = "PlannedFailoverCompletionFailed" ProtectionStatePlannedFailoverFailed ProtectionState = "PlannedFailoverFailed" ProtectionStatePlannedFailoverInitiated ProtectionState = "PlannedFailoverInitiated" ProtectionStatePlannedFailoverTransitionStatesBegin ProtectionState = "PlannedFailoverTransitionStatesBegin" ProtectionStatePlannedFailoverTransitionStatesEnd ProtectionState = "PlannedFailoverTransitionStatesEnd" ProtectionStateProtected ProtectionState = "Protected" ProtectionStateProtectedStatesBegin ProtectionState = "ProtectedStatesBegin" ProtectionStateProtectedStatesEnd ProtectionState = "ProtectedStatesEnd" ProtectionStateReprotectFailed ProtectionState = "ReprotectFailed" ProtectionStateReprotectInitiated ProtectionState = "ReprotectInitiated" ProtectionStateReprotectStatesBegin ProtectionState = "ReprotectStatesBegin" ProtectionStateReprotectStatesEnd ProtectionState = "ReprotectStatesEnd" ProtectionStateUnplannedFailoverCompleted ProtectionState = "UnplannedFailoverCompleted" ProtectionStateUnplannedFailoverCompleting ProtectionState = "UnplannedFailoverCompleting" ProtectionStateUnplannedFailoverCompletionFailed ProtectionState = "UnplannedFailoverCompletionFailed" ProtectionStateUnplannedFailoverFailed ProtectionState = "UnplannedFailoverFailed" ProtectionStateUnplannedFailoverInitiated ProtectionState = "UnplannedFailoverInitiated" ProtectionStateUnplannedFailoverTransitionStatesBegin ProtectionState = "UnplannedFailoverTransitionStatesBegin" ProtectionStateUnplannedFailoverTransitionStatesEnd ProtectionState = "UnplannedFailoverTransitionStatesEnd" ProtectionStateUnprotectedStatesBegin ProtectionState = "UnprotectedStatesBegin" ProtectionStateUnprotectedStatesEnd ProtectionState = "UnprotectedStatesEnd" )
func PossibleProtectionStateValues ¶
func PossibleProtectionStateValues() []ProtectionState
PossibleProtectionStateValues returns the possible values for the ProtectionState const type.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Gets or sets the provisioning state of the Dra.
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleted ProvisioningState = "Deleted" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns the possible values for the ProvisioningState const type.
type RecoveryPointModel ¶
type RecoveryPointModel struct { // REQUIRED; Recovery point model properties. Properties *RecoveryPointModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *RecoveryPointModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
RecoveryPointModel - Recovery point model.
func (RecoveryPointModel) MarshalJSON ¶
func (r RecoveryPointModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RecoveryPointModel.
func (*RecoveryPointModel) UnmarshalJSON ¶
func (r *RecoveryPointModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPointModel.
type RecoveryPointModelCollection ¶
type RecoveryPointModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of recovery points. Value []*RecoveryPointModel }
RecoveryPointModelCollection - Recovery point model collection.
func (RecoveryPointModelCollection) MarshalJSON ¶
func (r RecoveryPointModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RecoveryPointModelCollection.
func (*RecoveryPointModelCollection) UnmarshalJSON ¶
func (r *RecoveryPointModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPointModelCollection.
type RecoveryPointModelCustomProperties ¶
type RecoveryPointModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
RecoveryPointModelCustomProperties - Recovery point model custom properties.
func (*RecoveryPointModelCustomProperties) GetRecoveryPointModelCustomProperties ¶
func (r *RecoveryPointModelCustomProperties) GetRecoveryPointModelCustomProperties() *RecoveryPointModelCustomProperties
GetRecoveryPointModelCustomProperties implements the RecoveryPointModelCustomPropertiesClassification interface for type RecoveryPointModelCustomProperties.
func (RecoveryPointModelCustomProperties) MarshalJSON ¶
func (r RecoveryPointModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RecoveryPointModelCustomProperties.
func (*RecoveryPointModelCustomProperties) UnmarshalJSON ¶
func (r *RecoveryPointModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPointModelCustomProperties.
type RecoveryPointModelCustomPropertiesClassification ¶
type RecoveryPointModelCustomPropertiesClassification interface { // GetRecoveryPointModelCustomProperties returns the RecoveryPointModelCustomProperties content of the underlying type. GetRecoveryPointModelCustomProperties() *RecoveryPointModelCustomProperties }
RecoveryPointModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetRecoveryPointModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVToAzStackHCIRecoveryPointModelCustomProperties, *RecoveryPointModelCustomProperties
type RecoveryPointModelProperties ¶
type RecoveryPointModelProperties struct { // REQUIRED; Recovery point model custom properties. CustomProperties RecoveryPointModelCustomPropertiesClassification // REQUIRED; Gets or sets the recovery point time. RecoveryPointTime *time.Time // REQUIRED; Gets or sets the recovery point type. RecoveryPointType *RecoveryPointType }
RecoveryPointModelProperties - Recovery point model properties.
func (RecoveryPointModelProperties) MarshalJSON ¶
func (r RecoveryPointModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RecoveryPointModelProperties.
func (*RecoveryPointModelProperties) UnmarshalJSON ¶
func (r *RecoveryPointModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPointModelProperties.
type RecoveryPointModelSystemData ¶
type RecoveryPointModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (RecoveryPointModelSystemData) MarshalJSON ¶
func (r RecoveryPointModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RecoveryPointModelSystemData.
func (*RecoveryPointModelSystemData) UnmarshalJSON ¶
func (r *RecoveryPointModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RecoveryPointModelSystemData.
type RecoveryPointType ¶
type RecoveryPointType string
RecoveryPointType - Gets or sets the recovery point type.
const ( RecoveryPointTypeApplicationConsistent RecoveryPointType = "ApplicationConsistent" RecoveryPointTypeCrashConsistent RecoveryPointType = "CrashConsistent" )
func PossibleRecoveryPointTypeValues ¶
func PossibleRecoveryPointTypeValues() []RecoveryPointType
PossibleRecoveryPointTypeValues returns the possible values for the RecoveryPointType const type.
type RecoveryPointsClient ¶
type RecoveryPointsClient struct {
// contains filtered or unexported fields
}
RecoveryPointsClient contains the methods for the RecoveryPoints group. Don't use this type directly, use NewRecoveryPointsClient() instead.
func NewRecoveryPointsClient ¶
func NewRecoveryPointsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*RecoveryPointsClient, error)
NewRecoveryPointsClient creates a new instance of RecoveryPointsClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*RecoveryPointsClient) Get ¶
func (client *RecoveryPointsClient) Get(ctx context.Context, resourceGroupName string, vaultName string, protectedItemName string, recoveryPointName string, options *RecoveryPointsClientGetOptions) (RecoveryPointsClientGetResponse, error)
Get - Gets the details of the recovery point of a protected item. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- protectedItemName - The protected item name.
- recoveryPointName - The recovery point name.
- options - RecoveryPointsClientGetOptions contains the optional parameters for the RecoveryPointsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/RecoveryPoints_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewRecoveryPointsClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "d", "1X", 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.RecoveryPointModel = armrecoveryservicesdatareplication.RecoveryPointModel{ // Name: to.Ptr("mfnjlwvvfnrsllcyyeslxxcchhvld"), // Type: to.Ptr("zoeadplqxtonvqgwfqmeblh"), // ID: to.Ptr("yrnzjckvljjffam"), // Properties: &armrecoveryservicesdatareplication.RecoveryPointModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.RecoveryPointModelCustomProperties{ // InstanceType: to.Ptr("RecoveryPointModelCustomProperties"), // }, // RecoveryPointTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.403Z"); return t}()), // RecoveryPointType: to.Ptr(armrecoveryservicesdatareplication.RecoveryPointTypeApplicationConsistent), // }, // SystemData: &armrecoveryservicesdatareplication.RecoveryPointModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.403Z"); return t}()), // CreatedBy: to.Ptr("nykpygxolffv"), // CreatedByType: to.Ptr("agdgovroryjiwioytnnps"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.404Z"); return t}()), // LastModifiedBy: to.Ptr("tipxxgz"), // LastModifiedByType: to.Ptr("v"), // }, // } }
Output:
func (*RecoveryPointsClient) NewListPager ¶
func (client *RecoveryPointsClient) NewListPager(resourceGroupName string, vaultName string, protectedItemName string, options *RecoveryPointsClientListOptions) *runtime.Pager[RecoveryPointsClientListResponse]
NewListPager - Gets the list of recovery points of the given protected item.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- protectedItemName - The protected item name.
- options - RecoveryPointsClientListOptions contains the optional parameters for the RecoveryPointsClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/RecoveryPoints_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewRecoveryPointsClient().NewListPager("rgrecoveryservicesdatareplication", "4", "d", 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.RecoveryPointModelCollection = armrecoveryservicesdatareplication.RecoveryPointModelCollection{ // Value: []*armrecoveryservicesdatareplication.RecoveryPointModel{ // { // Name: to.Ptr("mfnjlwvvfnrsllcyyeslxxcchhvld"), // Type: to.Ptr("zoeadplqxtonvqgwfqmeblh"), // ID: to.Ptr("yrnzjckvljjffam"), // Properties: &armrecoveryservicesdatareplication.RecoveryPointModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.RecoveryPointModelCustomProperties{ // InstanceType: to.Ptr("RecoveryPointModelCustomProperties"), // }, // RecoveryPointTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.403Z"); return t}()), // RecoveryPointType: to.Ptr(armrecoveryservicesdatareplication.RecoveryPointTypeApplicationConsistent), // }, // SystemData: &armrecoveryservicesdatareplication.RecoveryPointModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.403Z"); return t}()), // CreatedBy: to.Ptr("nykpygxolffv"), // CreatedByType: to.Ptr("agdgovroryjiwioytnnps"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.404Z"); return t}()), // LastModifiedBy: to.Ptr("tipxxgz"), // LastModifiedByType: to.Ptr("v"), // }, // }}, // } } }
Output:
type RecoveryPointsClientGetOptions ¶
type RecoveryPointsClientGetOptions struct { }
RecoveryPointsClientGetOptions contains the optional parameters for the RecoveryPointsClient.Get method.
type RecoveryPointsClientGetResponse ¶
type RecoveryPointsClientGetResponse struct { // Recovery point model. RecoveryPointModel }
RecoveryPointsClientGetResponse contains the response from method RecoveryPointsClient.Get.
type RecoveryPointsClientListOptions ¶
type RecoveryPointsClientListOptions struct { }
RecoveryPointsClientListOptions contains the optional parameters for the RecoveryPointsClient.NewListPager method.
type RecoveryPointsClientListResponse ¶
type RecoveryPointsClientListResponse struct { // Recovery point model collection. RecoveryPointModelCollection }
RecoveryPointsClientListResponse contains the response from method RecoveryPointsClient.NewListPager.
type ReplicationExtensionClient ¶
type ReplicationExtensionClient struct {
// contains filtered or unexported fields
}
ReplicationExtensionClient contains the methods for the ReplicationExtension group. Don't use this type directly, use NewReplicationExtensionClient() instead.
func NewReplicationExtensionClient ¶
func NewReplicationExtensionClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationExtensionClient, error)
NewReplicationExtensionClient creates a new instance of ReplicationExtensionClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ReplicationExtensionClient) BeginCreate ¶
func (client *ReplicationExtensionClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, replicationExtensionName string, body ReplicationExtensionModel, options *ReplicationExtensionClientBeginCreateOptions) (*runtime.Poller[ReplicationExtensionClientCreateResponse], error)
BeginCreate - Creates the replication extension in the given vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- replicationExtensionName - The replication extension name.
- body - Replication extension model.
- options - ReplicationExtensionClientBeginCreateOptions contains the optional parameters for the ReplicationExtensionClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ReplicationExtension_Create.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewReplicationExtensionClient().BeginCreate(ctx, "rgrecoveryservicesdatareplication", "4", "g16yjJ", armrecoveryservicesdatareplication.ReplicationExtensionModel{ Properties: &armrecoveryservicesdatareplication.ReplicationExtensionModelProperties{ CustomProperties: &armrecoveryservicesdatareplication.ReplicationExtensionModelCustomProperties{ InstanceType: to.Ptr("ReplicationExtensionModelCustomProperties"), }, }, }, 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.ReplicationExtensionModel = armrecoveryservicesdatareplication.ReplicationExtensionModel{ // Name: to.Ptr("xvjffbiecsd"), // Type: to.Ptr("miadbgilpheilzfoonveznybthgdwh"), // ID: to.Ptr("awu"), // Properties: &armrecoveryservicesdatareplication.ReplicationExtensionModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.ReplicationExtensionModelCustomProperties{ // InstanceType: to.Ptr("ReplicationExtensionModelCustomProperties"), // }, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // }, // SystemData: &armrecoveryservicesdatareplication.ReplicationExtensionModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.732Z"); return t}()), // CreatedBy: to.Ptr("lagtinqhksctfdxmfbpf"), // CreatedByType: to.Ptr("dsqllpglanwztdmisrknjtqz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.732Z"); return t}()), // LastModifiedBy: to.Ptr("suwjpejlaya"), // LastModifiedByType: to.Ptr("nrfjuyghtbivwihr"), // }, // } }
Output:
func (*ReplicationExtensionClient) BeginDelete ¶
func (client *ReplicationExtensionClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, replicationExtensionName string, options *ReplicationExtensionClientBeginDeleteOptions) (*runtime.Poller[ReplicationExtensionClientDeleteResponse], error)
BeginDelete - Deletes the replication extension in the given vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- replicationExtensionName - The replication extension name.
- options - ReplicationExtensionClientBeginDeleteOptions contains the optional parameters for the ReplicationExtensionClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ReplicationExtension_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewReplicationExtensionClient().BeginDelete(ctx, "rgrecoveryservicesdatareplication", "4", "g16yjJ", 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 (*ReplicationExtensionClient) Get ¶
func (client *ReplicationExtensionClient) Get(ctx context.Context, resourceGroupName string, vaultName string, replicationExtensionName string, options *ReplicationExtensionClientGetOptions) (ReplicationExtensionClientGetResponse, error)
Get - Gets the details of the replication extension. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- replicationExtensionName - The replication extension name.
- options - ReplicationExtensionClientGetOptions contains the optional parameters for the ReplicationExtensionClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ReplicationExtension_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewReplicationExtensionClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "g16yjJ", 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.ReplicationExtensionModel = armrecoveryservicesdatareplication.ReplicationExtensionModel{ // Name: to.Ptr("xvjffbiecsd"), // Type: to.Ptr("miadbgilpheilzfoonveznybthgdwh"), // ID: to.Ptr("awu"), // Properties: &armrecoveryservicesdatareplication.ReplicationExtensionModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.ReplicationExtensionModelCustomProperties{ // InstanceType: to.Ptr("ReplicationExtensionModelCustomProperties"), // }, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // }, // SystemData: &armrecoveryservicesdatareplication.ReplicationExtensionModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.732Z"); return t}()), // CreatedBy: to.Ptr("lagtinqhksctfdxmfbpf"), // CreatedByType: to.Ptr("dsqllpglanwztdmisrknjtqz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.732Z"); return t}()), // LastModifiedBy: to.Ptr("suwjpejlaya"), // LastModifiedByType: to.Ptr("nrfjuyghtbivwihr"), // }, // } }
Output:
func (*ReplicationExtensionClient) NewListPager ¶
func (client *ReplicationExtensionClient) NewListPager(resourceGroupName string, vaultName string, options *ReplicationExtensionClientListOptions) *runtime.Pager[ReplicationExtensionClientListResponse]
NewListPager - Gets the list of replication extensions in the given vault.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - ReplicationExtensionClientListOptions contains the optional parameters for the ReplicationExtensionClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ReplicationExtension_List.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewReplicationExtensionClient().NewListPager("rgrecoveryservicesdatareplication", "4", 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.ReplicationExtensionModelCollection = armrecoveryservicesdatareplication.ReplicationExtensionModelCollection{ // Value: []*armrecoveryservicesdatareplication.ReplicationExtensionModel{ // { // Name: to.Ptr("xvjffbiecsd"), // Type: to.Ptr("miadbgilpheilzfoonveznybthgdwh"), // ID: to.Ptr("awu"), // Properties: &armrecoveryservicesdatareplication.ReplicationExtensionModelProperties{ // CustomProperties: &armrecoveryservicesdatareplication.ReplicationExtensionModelCustomProperties{ // InstanceType: to.Ptr("ReplicationExtensionModelCustomProperties"), // }, // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // }, // SystemData: &armrecoveryservicesdatareplication.ReplicationExtensionModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.732Z"); return t}()), // CreatedBy: to.Ptr("lagtinqhksctfdxmfbpf"), // CreatedByType: to.Ptr("dsqllpglanwztdmisrknjtqz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:56.732Z"); return t}()), // LastModifiedBy: to.Ptr("suwjpejlaya"), // LastModifiedByType: to.Ptr("nrfjuyghtbivwihr"), // }, // }}, // } } }
Output:
type ReplicationExtensionClientBeginCreateOptions ¶
type ReplicationExtensionClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ReplicationExtensionClientBeginCreateOptions contains the optional parameters for the ReplicationExtensionClient.BeginCreate method.
type ReplicationExtensionClientBeginDeleteOptions ¶
type ReplicationExtensionClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
ReplicationExtensionClientBeginDeleteOptions contains the optional parameters for the ReplicationExtensionClient.BeginDelete method.
type ReplicationExtensionClientCreateResponse ¶
type ReplicationExtensionClientCreateResponse struct { // Replication extension model. ReplicationExtensionModel }
ReplicationExtensionClientCreateResponse contains the response from method ReplicationExtensionClient.BeginCreate.
type ReplicationExtensionClientDeleteResponse ¶
type ReplicationExtensionClientDeleteResponse struct { }
ReplicationExtensionClientDeleteResponse contains the response from method ReplicationExtensionClient.BeginDelete.
type ReplicationExtensionClientGetOptions ¶
type ReplicationExtensionClientGetOptions struct { }
ReplicationExtensionClientGetOptions contains the optional parameters for the ReplicationExtensionClient.Get method.
type ReplicationExtensionClientGetResponse ¶
type ReplicationExtensionClientGetResponse struct { // Replication extension model. ReplicationExtensionModel }
ReplicationExtensionClientGetResponse contains the response from method ReplicationExtensionClient.Get.
type ReplicationExtensionClientListOptions ¶
type ReplicationExtensionClientListOptions struct { }
ReplicationExtensionClientListOptions contains the optional parameters for the ReplicationExtensionClient.NewListPager method.
type ReplicationExtensionClientListResponse ¶
type ReplicationExtensionClientListResponse struct { // Replication extension model collection. ReplicationExtensionModelCollection }
ReplicationExtensionClientListResponse contains the response from method ReplicationExtensionClient.NewListPager.
type ReplicationExtensionModel ¶
type ReplicationExtensionModel struct { // REQUIRED; Replication extension model properties. Properties *ReplicationExtensionModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *ReplicationExtensionModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
ReplicationExtensionModel - Replication extension model.
func (ReplicationExtensionModel) MarshalJSON ¶
func (r ReplicationExtensionModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationExtensionModel.
func (*ReplicationExtensionModel) UnmarshalJSON ¶
func (r *ReplicationExtensionModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationExtensionModel.
type ReplicationExtensionModelCollection ¶
type ReplicationExtensionModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of replication extensions. Value []*ReplicationExtensionModel }
ReplicationExtensionModelCollection - Replication extension model collection.
func (ReplicationExtensionModelCollection) MarshalJSON ¶
func (r ReplicationExtensionModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationExtensionModelCollection.
func (*ReplicationExtensionModelCollection) UnmarshalJSON ¶
func (r *ReplicationExtensionModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationExtensionModelCollection.
type ReplicationExtensionModelCustomProperties ¶
type ReplicationExtensionModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
ReplicationExtensionModelCustomProperties - Replication extension model custom properties.
func (*ReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties ¶
func (r *ReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties() *ReplicationExtensionModelCustomProperties
GetReplicationExtensionModelCustomProperties implements the ReplicationExtensionModelCustomPropertiesClassification interface for type ReplicationExtensionModelCustomProperties.
func (ReplicationExtensionModelCustomProperties) MarshalJSON ¶
func (r ReplicationExtensionModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationExtensionModelCustomProperties.
func (*ReplicationExtensionModelCustomProperties) UnmarshalJSON ¶
func (r *ReplicationExtensionModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationExtensionModelCustomProperties.
type ReplicationExtensionModelCustomPropertiesClassification ¶
type ReplicationExtensionModelCustomPropertiesClassification interface { // GetReplicationExtensionModelCustomProperties returns the ReplicationExtensionModelCustomProperties content of the underlying type. GetReplicationExtensionModelCustomProperties() *ReplicationExtensionModelCustomProperties }
ReplicationExtensionModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetReplicationExtensionModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *HyperVToAzStackHCIReplicationExtensionModelCustomProperties, *ReplicationExtensionModelCustomProperties, *VMwareToAzStackHCIReplicationExtensionModelCustomProperties
type ReplicationExtensionModelProperties ¶
type ReplicationExtensionModelProperties struct { // REQUIRED; Replication extension model custom properties. CustomProperties ReplicationExtensionModelCustomPropertiesClassification // READ-ONLY; Gets or sets the provisioning state of the replication extension. ProvisioningState *ProvisioningState }
ReplicationExtensionModelProperties - Replication extension model properties.
func (ReplicationExtensionModelProperties) MarshalJSON ¶
func (r ReplicationExtensionModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationExtensionModelProperties.
func (*ReplicationExtensionModelProperties) UnmarshalJSON ¶
func (r *ReplicationExtensionModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationExtensionModelProperties.
type ReplicationExtensionModelSystemData ¶
type ReplicationExtensionModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (ReplicationExtensionModelSystemData) MarshalJSON ¶
func (r ReplicationExtensionModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ReplicationExtensionModelSystemData.
func (*ReplicationExtensionModelSystemData) UnmarshalJSON ¶
func (r *ReplicationExtensionModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ReplicationExtensionModelSystemData.
type ReplicationExtensionOperationStatusClient ¶
type ReplicationExtensionOperationStatusClient struct {
// contains filtered or unexported fields
}
ReplicationExtensionOperationStatusClient contains the methods for the ReplicationExtensionOperationStatus group. Don't use this type directly, use NewReplicationExtensionOperationStatusClient() instead.
func NewReplicationExtensionOperationStatusClient ¶
func NewReplicationExtensionOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ReplicationExtensionOperationStatusClient, error)
NewReplicationExtensionOperationStatusClient creates a new instance of ReplicationExtensionOperationStatusClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ReplicationExtensionOperationStatusClient) Get ¶
func (client *ReplicationExtensionOperationStatusClient) Get(ctx context.Context, resourceGroupName string, vaultName string, replicationExtensionName string, operationID string, options *ReplicationExtensionOperationStatusClientGetOptions) (ReplicationExtensionOperationStatusClientGetResponse, error)
Get - Tracks the results of an asynchronous operation on the replication extension. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- replicationExtensionName - The replication extension name.
- operationID - The ID of an ongoing async operation.
- options - ReplicationExtensionOperationStatusClientGetOptions contains the optional parameters for the ReplicationExtensionOperationStatusClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/ReplicationExtensionOperationStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewReplicationExtensionOperationStatusClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "g16yjJ", "wqdqc", 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.OperationStatus = armrecoveryservicesdatareplication.OperationStatus{ // Name: to.Ptr("wzdasptnwlxgobklayoqapjcgcf"), // EndTime: to.Ptr("nauyrfh"), // ID: to.Ptr("sf"), // StartTime: to.Ptr("xuzwmfrhluafmwwsmzqxsytyehsh"), // Status: to.Ptr("plbnngzfppdram"), // } }
Output:
type ReplicationExtensionOperationStatusClientGetOptions ¶
type ReplicationExtensionOperationStatusClientGetOptions struct { }
ReplicationExtensionOperationStatusClientGetOptions contains the optional parameters for the ReplicationExtensionOperationStatusClient.Get method.
type ReplicationExtensionOperationStatusClientGetResponse ¶
type ReplicationExtensionOperationStatusClientGetResponse struct { // Defines the operation status. OperationStatus }
ReplicationExtensionOperationStatusClientGetResponse contains the response from method ReplicationExtensionOperationStatusClient.Get.
type ReplicationVaultType ¶
type ReplicationVaultType string
ReplicationVaultType - Gets or sets the type of vault.
const ( ReplicationVaultTypeDisasterRecovery ReplicationVaultType = "DisasterRecovery" ReplicationVaultTypeMigrate ReplicationVaultType = "Migrate" )
func PossibleReplicationVaultTypeValues ¶
func PossibleReplicationVaultTypeValues() []ReplicationVaultType
PossibleReplicationVaultTypeValues returns the possible values for the ReplicationVaultType const type.
type ResynchronizationState ¶
type ResynchronizationState string
ResynchronizationState - Gets or sets the resynchronization state.
const ( ResynchronizationStateNone ResynchronizationState = "None" ResynchronizationStateResynchronizationCompleted ResynchronizationState = "ResynchronizationCompleted" ResynchronizationStateResynchronizationFailed ResynchronizationState = "ResynchronizationFailed" ResynchronizationStateResynchronizationInitiated ResynchronizationState = "ResynchronizationInitiated" )
func PossibleResynchronizationStateValues ¶
func PossibleResynchronizationStateValues() []ResynchronizationState
PossibleResynchronizationStateValues returns the possible values for the ResynchronizationState const type.
type StorageContainerProperties ¶
type StorageContainerProperties struct { string // REQUIRED; Gets or sets the Name. Name *string }ClusterSharedVolumePath *
StorageContainerProperties - Storage container properties.
func (StorageContainerProperties) MarshalJSON ¶
func (s StorageContainerProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type StorageContainerProperties.
func (*StorageContainerProperties) UnmarshalJSON ¶
func (s *StorageContainerProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type StorageContainerProperties.
type TaskModel ¶
type TaskModel struct { // Gets or sets the list of children workflow models. ChildrenWorkflows []*WorkflowModel // Task model custom properties. CustomProperties *TaskModelCustomProperties // READ-ONLY; Gets or sets the end time. EndTime *time.Time // READ-ONLY; Gets or sets the start time. StartTime *time.Time // READ-ONLY; Gets or sets the task state. State *TaskState // READ-ONLY; Gets or sets the task name. TaskName *string }
TaskModel - Task model.
func (TaskModel) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type TaskModel.
func (*TaskModel) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type TaskModel.
type TaskModelCustomProperties ¶
type TaskModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string }
TaskModelCustomProperties - Task model custom properties.
func (TaskModelCustomProperties) MarshalJSON ¶
func (t TaskModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TaskModelCustomProperties.
func (*TaskModelCustomProperties) UnmarshalJSON ¶
func (t *TaskModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TaskModelCustomProperties.
type TaskState ¶
type TaskState string
TaskState - Gets or sets the task state.
func PossibleTaskStateValues ¶
func PossibleTaskStateValues() []TaskState
PossibleTaskStateValues returns the possible values for the TaskState const type.
type TestFailoverCleanupWorkflowModelCustomProperties ¶
type TestFailoverCleanupWorkflowModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // READ-ONLY; Gets or sets any custom properties of the affected object. AffectedObjectDetails map[string]*string // READ-ONLY; Gets or sets the test failover cleanup comments. Comments *string }
TestFailoverCleanupWorkflowModelCustomProperties - Test failover cleanup workflow model custom properties.
func (*TestFailoverCleanupWorkflowModelCustomProperties) GetWorkflowModelCustomProperties ¶
func (t *TestFailoverCleanupWorkflowModelCustomProperties) GetWorkflowModelCustomProperties() *WorkflowModelCustomProperties
GetWorkflowModelCustomProperties implements the WorkflowModelCustomPropertiesClassification interface for type TestFailoverCleanupWorkflowModelCustomProperties.
func (TestFailoverCleanupWorkflowModelCustomProperties) MarshalJSON ¶
func (t TestFailoverCleanupWorkflowModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TestFailoverCleanupWorkflowModelCustomProperties.
func (*TestFailoverCleanupWorkflowModelCustomProperties) UnmarshalJSON ¶
func (t *TestFailoverCleanupWorkflowModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverCleanupWorkflowModelCustomProperties.
type TestFailoverState ¶
type TestFailoverState string
TestFailoverState - Gets or sets the test failover state.
const ( TestFailoverStateMarkedForDeletion TestFailoverState = "MarkedForDeletion" TestFailoverStateNone TestFailoverState = "None" TestFailoverStateTestFailoverCleanupCompleting TestFailoverState = "TestFailoverCleanupCompleting" TestFailoverStateTestFailoverCleanupInitiated TestFailoverState = "TestFailoverCleanupInitiated" TestFailoverStateTestFailoverCompleted TestFailoverState = "TestFailoverCompleted" TestFailoverStateTestFailoverCompleting TestFailoverState = "TestFailoverCompleting" TestFailoverStateTestFailoverCompletionFailed TestFailoverState = "TestFailoverCompletionFailed" TestFailoverStateTestFailoverFailed TestFailoverState = "TestFailoverFailed" TestFailoverStateTestFailoverInitiated TestFailoverState = "TestFailoverInitiated" )
func PossibleTestFailoverStateValues ¶
func PossibleTestFailoverStateValues() []TestFailoverState
PossibleTestFailoverStateValues returns the possible values for the TestFailoverState const type.
type TestFailoverWorkflowModelCustomProperties ¶
type TestFailoverWorkflowModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // READ-ONLY; Gets or sets any custom properties of the affected object. AffectedObjectDetails map[string]*string // READ-ONLY; Gets or sets the test VM details. ProtectedItemDetails []*FailoverProtectedItemProperties }
TestFailoverWorkflowModelCustomProperties - Test failover workflow model custom properties.
func (*TestFailoverWorkflowModelCustomProperties) GetWorkflowModelCustomProperties ¶
func (t *TestFailoverWorkflowModelCustomProperties) GetWorkflowModelCustomProperties() *WorkflowModelCustomProperties
GetWorkflowModelCustomProperties implements the WorkflowModelCustomPropertiesClassification interface for type TestFailoverWorkflowModelCustomProperties.
func (TestFailoverWorkflowModelCustomProperties) MarshalJSON ¶
func (t TestFailoverWorkflowModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type TestFailoverWorkflowModelCustomProperties.
func (*TestFailoverWorkflowModelCustomProperties) UnmarshalJSON ¶
func (t *TestFailoverWorkflowModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type TestFailoverWorkflowModelCustomProperties.
type VMNicSelection ¶
type VMNicSelection string
VMNicSelection - Gets or sets the selection type of the NIC.
const ( VMNicSelectionNotSelected VMNicSelection = "NotSelected" VMNicSelectionSelectedByDefault VMNicSelection = "SelectedByDefault" VMNicSelectionSelectedByUser VMNicSelection = "SelectedByUser" VMNicSelectionSelectedByUserOverride VMNicSelection = "SelectedByUserOverride" )
func PossibleVMNicSelectionValues ¶
func PossibleVMNicSelectionValues() []VMNicSelection
PossibleVMNicSelectionValues returns the possible values for the VMNicSelection const type.
type VMwareDraModelCustomProperties ¶
type VMwareDraModelCustomProperties struct { // REQUIRED; Gets or sets the BIOS Id of the DRA machine. BiosID *string // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Identity model. MarsAuthenticationIdentity *IdentityModel }
VMwareDraModelCustomProperties - VMware DRA model custom properties.
func (*VMwareDraModelCustomProperties) GetDraModelCustomProperties ¶
func (v *VMwareDraModelCustomProperties) GetDraModelCustomProperties() *DraModelCustomProperties
GetDraModelCustomProperties implements the DraModelCustomPropertiesClassification interface for type VMwareDraModelCustomProperties.
func (VMwareDraModelCustomProperties) MarshalJSON ¶
func (v VMwareDraModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareDraModelCustomProperties.
func (*VMwareDraModelCustomProperties) UnmarshalJSON ¶
func (v *VMwareDraModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareDraModelCustomProperties.
type VMwareMigrateFabricModelCustomProperties ¶
type VMwareMigrateFabricModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the ARM Id of the migration solution. MigrationSolutionID *string // REQUIRED; Gets or sets the ARM Id of the VMware site. VmwareSiteID *string }
VMwareMigrateFabricModelCustomProperties - VMware migrate fabric model custom properties.
func (*VMwareMigrateFabricModelCustomProperties) GetFabricModelCustomProperties ¶
func (v *VMwareMigrateFabricModelCustomProperties) GetFabricModelCustomProperties() *FabricModelCustomProperties
GetFabricModelCustomProperties implements the FabricModelCustomPropertiesClassification interface for type VMwareMigrateFabricModelCustomProperties.
func (VMwareMigrateFabricModelCustomProperties) MarshalJSON ¶
func (v VMwareMigrateFabricModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareMigrateFabricModelCustomProperties.
func (*VMwareMigrateFabricModelCustomProperties) UnmarshalJSON ¶
func (v *VMwareMigrateFabricModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareMigrateFabricModelCustomProperties.
type VMwareToAzStackHCIDiskInput ¶
type VMwareToAzStackHCIDiskInput struct { // REQUIRED; Gets or sets the type of the virtual hard disk, vhd or vhdx. DiskFileFormat *string // REQUIRED; Gets or sets the disk Id. DiskID *string // REQUIRED; Gets or sets the disk size in GB. DiskSizeGB *int64 // REQUIRED; Gets or sets a value indicating whether disk is os disk. IsOsDisk *bool // Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. IsDynamic *bool // Gets or sets the target storage account ARM Id. StorageContainerID *string }
VMwareToAzStackHCIDiskInput - VMwareToAzStack disk input.
func (VMwareToAzStackHCIDiskInput) MarshalJSON ¶
func (v VMwareToAzStackHCIDiskInput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCIDiskInput.
func (*VMwareToAzStackHCIDiskInput) UnmarshalJSON ¶
func (v *VMwareToAzStackHCIDiskInput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCIDiskInput.
type VMwareToAzStackHCINicInput ¶
type VMwareToAzStackHCINicInput struct { // REQUIRED; Gets or sets the NIC label. Label *string // REQUIRED; Gets or sets the NIC Id. NicID *string // REQUIRED; Gets or sets the selection type of the NIC. SelectionTypeForFailover *VMNicSelection // REQUIRED; Gets or sets the target network Id within AzStackHCI Cluster. TargetNetworkID *string // REQUIRED; Gets or sets the target test network Id within AzStackHCI Cluster. TestNetworkID *string // READ-ONLY; Gets or sets the network name. NetworkName *string }
VMwareToAzStackHCINicInput - VMwareToAzStackHCI NIC properties.
func (VMwareToAzStackHCINicInput) MarshalJSON ¶
func (v VMwareToAzStackHCINicInput) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCINicInput.
func (*VMwareToAzStackHCINicInput) UnmarshalJSON ¶
func (v *VMwareToAzStackHCINicInput) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCINicInput.
type VMwareToAzStackHCIPlannedFailoverModelCustomProperties ¶
type VMwareToAzStackHCIPlannedFailoverModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets a value indicating whether VM needs to be shut down. ShutdownSourceVM *bool }
VMwareToAzStackHCIPlannedFailoverModelCustomProperties - VMware to AzStackHCI planned failover model custom properties.
func (*VMwareToAzStackHCIPlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties ¶
func (v *VMwareToAzStackHCIPlannedFailoverModelCustomProperties) GetPlannedFailoverModelCustomProperties() *PlannedFailoverModelCustomProperties
GetPlannedFailoverModelCustomProperties implements the PlannedFailoverModelCustomPropertiesClassification interface for type VMwareToAzStackHCIPlannedFailoverModelCustomProperties.
func (VMwareToAzStackHCIPlannedFailoverModelCustomProperties) MarshalJSON ¶
func (v VMwareToAzStackHCIPlannedFailoverModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCIPlannedFailoverModelCustomProperties.
func (*VMwareToAzStackHCIPlannedFailoverModelCustomProperties) UnmarshalJSON ¶
func (v *VMwareToAzStackHCIPlannedFailoverModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCIPlannedFailoverModelCustomProperties.
type VMwareToAzStackHCIPolicyModelCustomProperties ¶
type VMwareToAzStackHCIPolicyModelCustomProperties struct { // REQUIRED; Gets or sets the app consistent snapshot frequency (in minutes). AppConsistentFrequencyInMinutes *int32 // REQUIRED; Gets or sets the crash consistent snapshot frequency (in minutes). CrashConsistentFrequencyInMinutes *int32 // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the duration in minutes until which the recovery points need to be stored. RecoveryPointHistoryInMinutes *int32 }
VMwareToAzStackHCIPolicyModelCustomProperties - VMware To AzStackHCI Policy model custom properties.
func (*VMwareToAzStackHCIPolicyModelCustomProperties) GetPolicyModelCustomProperties ¶
func (v *VMwareToAzStackHCIPolicyModelCustomProperties) GetPolicyModelCustomProperties() *PolicyModelCustomProperties
GetPolicyModelCustomProperties implements the PolicyModelCustomPropertiesClassification interface for type VMwareToAzStackHCIPolicyModelCustomProperties.
func (VMwareToAzStackHCIPolicyModelCustomProperties) MarshalJSON ¶
func (v VMwareToAzStackHCIPolicyModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCIPolicyModelCustomProperties.
func (*VMwareToAzStackHCIPolicyModelCustomProperties) UnmarshalJSON ¶
func (v *VMwareToAzStackHCIPolicyModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCIPolicyModelCustomProperties.
type VMwareToAzStackHCIProtectedDiskProperties ¶
type VMwareToAzStackHCIProtectedDiskProperties struct { // READ-ONLY; Gets or sets the disk capacity in bytes. CapacityInBytes *int64 // READ-ONLY; Gets or sets the disk type. DiskType *string // READ-ONLY; Gets or sets a value indicating whether dynamic sizing is enabled on the virtual hard disk. IsDynamic *bool // READ-ONLY; Gets or sets a value indicating whether the disk is the OS disk. IsOsDisk *bool // READ-ONLY; Gets or sets the failover clone disk. MigrateDiskName *string // READ-ONLY; Gets or sets the seed disk name. SeedDiskName *string // READ-ONLY; Gets or sets the source disk Id. SourceDiskID *string // READ-ONLY; Gets or sets the source disk Name. SourceDiskName *string // READ-ONLY; Gets or sets the ARM Id of the storage container. StorageContainerID *string // READ-ONLY; Gets or sets the local path of the storage container. StorageContainerLocalPath *string // READ-ONLY; Gets or sets the test failover clone disk. TestMigrateDiskName *string }
VMwareToAzStackHCIProtectedDiskProperties - VMwareToAzStackHCI protected disk properties.
func (VMwareToAzStackHCIProtectedDiskProperties) MarshalJSON ¶
func (v VMwareToAzStackHCIProtectedDiskProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCIProtectedDiskProperties.
func (*VMwareToAzStackHCIProtectedDiskProperties) UnmarshalJSON ¶
func (v *VMwareToAzStackHCIProtectedDiskProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCIProtectedDiskProperties.
type VMwareToAzStackHCIProtectedItemModelCustomProperties ¶
type VMwareToAzStackHCIProtectedItemModelCustomProperties struct { // REQUIRED; Gets or sets the location of Azure Arc HCI custom location resource. CustomLocationRegion *string // REQUIRED; Gets or sets the list of disks to replicate. DisksToInclude []*VMwareToAzStackHCIDiskInput // REQUIRED; Gets or sets the ARM Id of the discovered machine. FabricDiscoveryMachineID *string // REQUIRED; Gets or sets the hypervisor generation of the virtual machine possible values are 1,2. HyperVGeneration *string // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the list of VM NIC to replicate. NicsToInclude []*VMwareToAzStackHCINicInput // REQUIRED; Gets or sets the run as account Id. RunAsAccountID *string // REQUIRED; Gets or sets the source DRA name. SourceDraName *string // REQUIRED; Gets or sets the target storage container ARM Id. StorageContainerID *string // REQUIRED; Gets or sets the Target Arc Cluster Custom Location ARM Id. TargetArcClusterCustomLocationID *string // REQUIRED; Gets or sets the target DRA name. TargetDraName *string // REQUIRED; Gets or sets the Target HCI Cluster ARM Id. TargetHciClusterID *string // REQUIRED; Gets or sets the target resource group ARM Id. TargetResourceGroupID *string // Protected item dynamic memory config. DynamicMemoryConfig *ProtectedItemDynamicMemoryConfig // Gets or sets a value indicating whether memory is dynamical. IsDynamicRAM *bool // Gets or sets a value indicating whether auto resync is to be done. PerformAutoResync *bool // Gets or sets the target CPU cores. TargetCPUCores *int32 // Gets or sets the target memory in mega-bytes. TargetMemoryInMegaBytes *int32 // Gets or sets the target network Id within AzStackHCI Cluster. TargetNetworkID *string // Gets or sets the target VM display name. TargetVMName *string // Gets or sets the target test network Id within AzStackHCI Cluster. TestNetworkID *string // READ-ONLY; Gets or sets the location of the protected item. ActiveLocation *ProtectedItemActiveLocation // READ-ONLY; Gets or sets the recovery point Id to which the VM was failed over. FailoverRecoveryPointID *string // READ-ONLY; Gets or sets the firmware type. FirmwareType *string // READ-ONLY; Gets or sets the initial replication progress percentage. This is calculated based on total bytes processed // for all disks in the source VM. InitialReplicationProgressPercentage *int32 // READ-ONLY; Gets or sets the last recovery point Id. LastRecoveryPointID *string // READ-ONLY; Gets or sets the last recovery point received time. LastRecoveryPointReceived *time.Time // READ-ONLY; Gets or sets the latest timestamp that replication status is updated. LastReplicationUpdateTime *time.Time // READ-ONLY; Gets or sets the migration progress percentage. MigrationProgressPercentage *int32 // READ-ONLY; Gets or sets the name of the OS. OSName *string // READ-ONLY; Gets or sets the type of the OS. OSType *string // READ-ONLY; Gets or sets the list of protected disks. ProtectedDisks []*VMwareToAzStackHCIProtectedDiskProperties // READ-ONLY; Gets or sets the VM NIC details. ProtectedNics []*VMwareToAzStackHCIProtectedNicProperties // READ-ONLY; Gets or sets the resume progress percentage. ResumeProgressPercentage *int32 // READ-ONLY; Gets or sets the resume retry count. ResumeRetryCount *int64 // READ-ONLY; Gets or sets the resync progress percentage. This is calculated based on total bytes processed for all disks // in the source VM. ResyncProgressPercentage *int32 // READ-ONLY; Gets or sets a value indicating whether resync is required. ResyncRequired *bool // READ-ONLY; Gets or sets the resync retry count. ResyncRetryCount *int64 // READ-ONLY; Gets or sets the resync state. ResyncState *VMwareToAzureMigrateResyncState // READ-ONLY; Gets or sets the source appliance name. SourceApplianceName *string // READ-ONLY; Gets or sets the source VM CPU cores. SourceCPUCores *int32 // READ-ONLY; Gets or sets the source VM ram memory size in megabytes. SourceMemoryInMegaBytes *float64 // READ-ONLY; Gets or sets the source VM display name. SourceVMName *string // READ-ONLY; Gets or sets the target appliance name. TargetApplianceName *string // READ-ONLY; Gets or sets the Target AzStackHCI cluster name. TargetAzStackHciClusterName *string // READ-ONLY; Gets or sets the target location. TargetLocation *string // READ-ONLY; Gets or sets the BIOS Id of the target AzStackHCI VM. TargetVMBiosID *string }
VMwareToAzStackHCIProtectedItemModelCustomProperties - VMware to AzStackHCI Protected item model custom properties.
func (*VMwareToAzStackHCIProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties ¶
func (v *VMwareToAzStackHCIProtectedItemModelCustomProperties) GetProtectedItemModelCustomProperties() *ProtectedItemModelCustomProperties
GetProtectedItemModelCustomProperties implements the ProtectedItemModelCustomPropertiesClassification interface for type VMwareToAzStackHCIProtectedItemModelCustomProperties.
func (VMwareToAzStackHCIProtectedItemModelCustomProperties) MarshalJSON ¶
func (v VMwareToAzStackHCIProtectedItemModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCIProtectedItemModelCustomProperties.
func (*VMwareToAzStackHCIProtectedItemModelCustomProperties) UnmarshalJSON ¶
func (v *VMwareToAzStackHCIProtectedItemModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCIProtectedItemModelCustomProperties.
type VMwareToAzStackHCIProtectedNicProperties ¶
type VMwareToAzStackHCIProtectedNicProperties struct { // Gets or sets a value indicating whether this is the primary NIC. IsPrimaryNic *bool // READ-ONLY; Gets or sets the NIC label. Label *string // READ-ONLY; Gets or sets the NIC mac address. MacAddress *string // READ-ONLY; Gets or sets the network name. NetworkName *string // READ-ONLY; Gets or sets the NIC Id. NicID *string // READ-ONLY; Gets or sets the selection type of the NIC. SelectionTypeForFailover *VMNicSelection // READ-ONLY; Gets or sets the target network Id within AzStackHCI Cluster. TargetNetworkID *string // READ-ONLY; Gets or sets the target test network Id within AzStackHCI Cluster. TestNetworkID *string }
VMwareToAzStackHCIProtectedNicProperties - VMwareToAzStackHCI NIC properties.
func (VMwareToAzStackHCIProtectedNicProperties) MarshalJSON ¶
func (v VMwareToAzStackHCIProtectedNicProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCIProtectedNicProperties.
func (*VMwareToAzStackHCIProtectedNicProperties) UnmarshalJSON ¶
func (v *VMwareToAzStackHCIProtectedNicProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCIProtectedNicProperties.
type VMwareToAzStackHCIReplicationExtensionModelCustomProperties ¶
type VMwareToAzStackHCIReplicationExtensionModelCustomProperties struct { // REQUIRED; Gets or sets the ARM Id of the target AzStackHCI fabric. AzStackHciFabricArmID *string // REQUIRED; Gets or sets the instance type. InstanceType *string // REQUIRED; Gets or sets the ARM Id of the source VMware fabric. VmwareFabricArmID *string // Gets or sets the storage account Id. StorageAccountID *string // Gets or sets the Sas Secret of storage account. StorageAccountSasSecretName *string // READ-ONLY; Gets or sets the Uri of ASR. AsrServiceURI *string // READ-ONLY; Gets or sets the ARM Id of the AzStackHCI site. AzStackHciSiteID *string // READ-ONLY; Gets or sets the Uri of Gateway. GatewayServiceURI *string // READ-ONLY; Gets or sets the Uri of Rcm. RcmServiceURI *string // READ-ONLY; Gets or sets the resource group. ResourceGroup *string // READ-ONLY; Gets or sets the resource location. ResourceLocation *string // READ-ONLY; Gets or sets the gateway service Id of source. SourceGatewayServiceID *string // READ-ONLY; Gets or sets the source storage container name. SourceStorageContainerName *string // READ-ONLY; Gets or sets the subscription. SubscriptionID *string // READ-ONLY; Gets or sets the gateway service Id of target. TargetGatewayServiceID *string // READ-ONLY; Gets or sets the target storage container name. TargetStorageContainerName *string // READ-ONLY; Gets or sets the ARM Id of the VMware site. VmwareSiteID *string }
VMwareToAzStackHCIReplicationExtensionModelCustomProperties - VMware to AzStackHCI Replication extension model custom properties.
func (*VMwareToAzStackHCIReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties ¶
func (v *VMwareToAzStackHCIReplicationExtensionModelCustomProperties) GetReplicationExtensionModelCustomProperties() *ReplicationExtensionModelCustomProperties
GetReplicationExtensionModelCustomProperties implements the ReplicationExtensionModelCustomPropertiesClassification interface for type VMwareToAzStackHCIReplicationExtensionModelCustomProperties.
func (VMwareToAzStackHCIReplicationExtensionModelCustomProperties) MarshalJSON ¶
func (v VMwareToAzStackHCIReplicationExtensionModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VMwareToAzStackHCIReplicationExtensionModelCustomProperties.
func (*VMwareToAzStackHCIReplicationExtensionModelCustomProperties) UnmarshalJSON ¶
func (v *VMwareToAzStackHCIReplicationExtensionModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VMwareToAzStackHCIReplicationExtensionModelCustomProperties.
type VMwareToAzureMigrateResyncState ¶
type VMwareToAzureMigrateResyncState string
VMwareToAzureMigrateResyncState - Gets or sets the resync state.
const ( VMwareToAzureMigrateResyncStateNone VMwareToAzureMigrateResyncState = "None" VMwareToAzureMigrateResyncStatePreparedForResynchronization VMwareToAzureMigrateResyncState = "PreparedForResynchronization" VMwareToAzureMigrateResyncStateStartedResynchronization VMwareToAzureMigrateResyncState = "StartedResynchronization" )
func PossibleVMwareToAzureMigrateResyncStateValues ¶
func PossibleVMwareToAzureMigrateResyncStateValues() []VMwareToAzureMigrateResyncState
PossibleVMwareToAzureMigrateResyncStateValues returns the possible values for the VMwareToAzureMigrateResyncState const type.
type VaultClient ¶
type VaultClient struct {
// contains filtered or unexported fields
}
VaultClient contains the methods for the Vault group. Don't use this type directly, use NewVaultClient() instead.
func NewVaultClient ¶
func NewVaultClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VaultClient, error)
NewVaultClient creates a new instance of VaultClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VaultClient) BeginCreate ¶
func (client *VaultClient) BeginCreate(ctx context.Context, resourceGroupName string, vaultName string, body VaultModel, options *VaultClientBeginCreateOptions) (*runtime.Poller[VaultClientCreateResponse], error)
BeginCreate - Creates the vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- body - Vault properties.
- options - VaultClientBeginCreateOptions contains the optional parameters for the VaultClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Vault_Create.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewVaultClient().BeginCreate(ctx, "rgrecoveryservicesdatareplication", "4", armrecoveryservicesdatareplication.VaultModel{ Location: to.Ptr("eck"), Properties: &armrecoveryservicesdatareplication.VaultModelProperties{ VaultType: to.Ptr(armrecoveryservicesdatareplication.ReplicationVaultTypeDisasterRecovery), }, Tags: map[string]*string{ "key5359": to.Ptr("ljfilxolxzuxrauopwtyxghrp"), }, }, 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.VaultModel = armrecoveryservicesdatareplication.VaultModel{ // Name: to.Ptr("bqgyqxmnlgwqxbmajddqwtao"), // Type: to.Ptr("xtcicpcmjvocohaznrk"), // ID: to.Ptr("hbccseewgiagaxsjozxgwydjgy"), // Location: to.Ptr("eck"), // Properties: &armrecoveryservicesdatareplication.VaultModelProperties{ // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceResourceID: to.Ptr("mksumcmksgdsghojszxq"), // VaultType: to.Ptr(armrecoveryservicesdatareplication.ReplicationVaultTypeDisasterRecovery), // }, // SystemData: &armrecoveryservicesdatareplication.VaultModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // CreatedBy: to.Ptr("rm"), // CreatedByType: to.Ptr("uojlfokjrhzgqoodsvgz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // LastModifiedBy: to.Ptr("gkojzu"), // LastModifiedByType: to.Ptr("jua"), // }, // Tags: map[string]*string{ // "key5359": to.Ptr("ljfilxolxzuxrauopwtyxghrp"), // }, // } }
Output:
func (*VaultClient) BeginDelete ¶
func (client *VaultClient) BeginDelete(ctx context.Context, resourceGroupName string, vaultName string, options *VaultClientBeginDeleteOptions) (*runtime.Poller[VaultClientDeleteResponse], error)
BeginDelete - Removes the vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - VaultClientBeginDeleteOptions contains the optional parameters for the VaultClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Vault_Delete.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewVaultClient().BeginDelete(ctx, "rgrecoveryservicesdatareplication", "4", 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 (*VaultClient) BeginUpdate ¶
func (client *VaultClient) BeginUpdate(ctx context.Context, resourceGroupName string, vaultName string, body VaultModelUpdate, options *VaultClientBeginUpdateOptions) (*runtime.Poller[VaultClientUpdateResponse], error)
BeginUpdate - Performs update on the vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- body - Vault properties.
- options - VaultClientBeginUpdateOptions contains the optional parameters for the VaultClient.BeginUpdate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Vault_Update.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewVaultClient().BeginUpdate(ctx, "rgrecoveryservicesdatareplication", "4", armrecoveryservicesdatareplication.VaultModelUpdate{ Properties: &armrecoveryservicesdatareplication.VaultModelProperties{ VaultType: to.Ptr(armrecoveryservicesdatareplication.ReplicationVaultTypeDisasterRecovery), }, Tags: map[string]*string{ "key8872": to.Ptr("pvtc"), }, }, 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.VaultModel = armrecoveryservicesdatareplication.VaultModel{ // Name: to.Ptr("bqgyqxmnlgwqxbmajddqwtao"), // Type: to.Ptr("xtcicpcmjvocohaznrk"), // ID: to.Ptr("hbccseewgiagaxsjozxgwydjgy"), // Location: to.Ptr("eck"), // Properties: &armrecoveryservicesdatareplication.VaultModelProperties{ // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceResourceID: to.Ptr("mksumcmksgdsghojszxq"), // VaultType: to.Ptr(armrecoveryservicesdatareplication.ReplicationVaultTypeDisasterRecovery), // }, // SystemData: &armrecoveryservicesdatareplication.VaultModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // CreatedBy: to.Ptr("rm"), // CreatedByType: to.Ptr("uojlfokjrhzgqoodsvgz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // LastModifiedBy: to.Ptr("gkojzu"), // LastModifiedByType: to.Ptr("jua"), // }, // Tags: map[string]*string{ // "key5359": to.Ptr("ljfilxolxzuxrauopwtyxghrp"), // }, // } }
Output:
func (*VaultClient) Get ¶
func (client *VaultClient) Get(ctx context.Context, resourceGroupName string, vaultName string, options *VaultClientGetOptions) (VaultClientGetResponse, error)
Get - Gets the details of the vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - VaultClientGetOptions contains the optional parameters for the VaultClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Vault_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewVaultClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", 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.VaultModel = armrecoveryservicesdatareplication.VaultModel{ // Name: to.Ptr("bqgyqxmnlgwqxbmajddqwtao"), // Type: to.Ptr("xtcicpcmjvocohaznrk"), // ID: to.Ptr("hbccseewgiagaxsjozxgwydjgy"), // Location: to.Ptr("eck"), // Properties: &armrecoveryservicesdatareplication.VaultModelProperties{ // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceResourceID: to.Ptr("mksumcmksgdsghojszxq"), // VaultType: to.Ptr(armrecoveryservicesdatareplication.ReplicationVaultTypeDisasterRecovery), // }, // SystemData: &armrecoveryservicesdatareplication.VaultModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // CreatedBy: to.Ptr("rm"), // CreatedByType: to.Ptr("uojlfokjrhzgqoodsvgz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // LastModifiedBy: to.Ptr("gkojzu"), // LastModifiedByType: to.Ptr("jua"), // }, // Tags: map[string]*string{ // "key5359": to.Ptr("ljfilxolxzuxrauopwtyxghrp"), // }, // } }
Output:
func (*VaultClient) NewListBySubscriptionPager ¶
func (client *VaultClient) NewListBySubscriptionPager(options *VaultClientListBySubscriptionOptions) *runtime.Pager[VaultClientListBySubscriptionResponse]
NewListBySubscriptionPager - Gets the list of vaults in the given subscription.
Generated from API version 2021-02-16-preview
- options - VaultClientListBySubscriptionOptions contains the optional parameters for the VaultClient.NewListBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Vault_ListBySubscription.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewVaultClient().NewListBySubscriptionPager(&armrecoveryservicesdatareplication.VaultClientListBySubscriptionOptions{ContinuationToken: to.Ptr("dqsjhseyugyexxrlrln")}) 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.VaultModelCollection = armrecoveryservicesdatareplication.VaultModelCollection{ // Value: []*armrecoveryservicesdatareplication.VaultModel{ // { // Name: to.Ptr("bqgyqxmnlgwqxbmajddqwtao"), // Type: to.Ptr("xtcicpcmjvocohaznrk"), // ID: to.Ptr("hbccseewgiagaxsjozxgwydjgy"), // Location: to.Ptr("eck"), // Properties: &armrecoveryservicesdatareplication.VaultModelProperties{ // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceResourceID: to.Ptr("mksumcmksgdsghojszxq"), // VaultType: to.Ptr(armrecoveryservicesdatareplication.ReplicationVaultTypeDisasterRecovery), // }, // SystemData: &armrecoveryservicesdatareplication.VaultModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // CreatedBy: to.Ptr("rm"), // CreatedByType: to.Ptr("uojlfokjrhzgqoodsvgz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // LastModifiedBy: to.Ptr("gkojzu"), // LastModifiedByType: to.Ptr("jua"), // }, // Tags: map[string]*string{ // "key5359": to.Ptr("ljfilxolxzuxrauopwtyxghrp"), // }, // }}, // } } }
Output:
func (*VaultClient) NewListPager ¶
func (client *VaultClient) NewListPager(resourceGroupName string, options *VaultClientListOptions) *runtime.Pager[VaultClientListResponse]
NewListPager - Gets the list of vaults in the given subscription and resource group.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- options - VaultClientListOptions contains the optional parameters for the VaultClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Vault_List.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewVaultClient().NewListPager("rgrecoveryservicesdatareplication", &armrecoveryservicesdatareplication.VaultClientListOptions{ContinuationToken: to.Ptr("mwculdaqndp")}) 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.VaultModelCollection = armrecoveryservicesdatareplication.VaultModelCollection{ // Value: []*armrecoveryservicesdatareplication.VaultModel{ // { // Name: to.Ptr("bqgyqxmnlgwqxbmajddqwtao"), // Type: to.Ptr("xtcicpcmjvocohaznrk"), // ID: to.Ptr("hbccseewgiagaxsjozxgwydjgy"), // Location: to.Ptr("eck"), // Properties: &armrecoveryservicesdatareplication.VaultModelProperties{ // ProvisioningState: to.Ptr(armrecoveryservicesdatareplication.ProvisioningStateSucceeded), // ServiceResourceID: to.Ptr("mksumcmksgdsghojszxq"), // VaultType: to.Ptr(armrecoveryservicesdatareplication.ReplicationVaultTypeDisasterRecovery), // }, // SystemData: &armrecoveryservicesdatareplication.VaultModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // CreatedBy: to.Ptr("rm"), // CreatedByType: to.Ptr("uojlfokjrhzgqoodsvgz"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:58.092Z"); return t}()), // LastModifiedBy: to.Ptr("gkojzu"), // LastModifiedByType: to.Ptr("jua"), // }, // Tags: map[string]*string{ // "key5359": to.Ptr("ljfilxolxzuxrauopwtyxghrp"), // }, // }}, // } } }
Output:
type VaultClientBeginCreateOptions ¶
type VaultClientBeginCreateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VaultClientBeginCreateOptions contains the optional parameters for the VaultClient.BeginCreate method.
type VaultClientBeginDeleteOptions ¶
type VaultClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VaultClientBeginDeleteOptions contains the optional parameters for the VaultClient.BeginDelete method.
type VaultClientBeginUpdateOptions ¶
type VaultClientBeginUpdateOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
VaultClientBeginUpdateOptions contains the optional parameters for the VaultClient.BeginUpdate method.
type VaultClientCreateResponse ¶
type VaultClientCreateResponse struct { // Vault model. VaultModel }
VaultClientCreateResponse contains the response from method VaultClient.BeginCreate.
type VaultClientDeleteResponse ¶
type VaultClientDeleteResponse struct { }
VaultClientDeleteResponse contains the response from method VaultClient.BeginDelete.
type VaultClientGetOptions ¶
type VaultClientGetOptions struct { }
VaultClientGetOptions contains the optional parameters for the VaultClient.Get method.
type VaultClientGetResponse ¶
type VaultClientGetResponse struct { // Vault model. VaultModel }
VaultClientGetResponse contains the response from method VaultClient.Get.
type VaultClientListBySubscriptionOptions ¶
type VaultClientListBySubscriptionOptions struct { // Continuation token from the previous call. ContinuationToken *string }
VaultClientListBySubscriptionOptions contains the optional parameters for the VaultClient.NewListBySubscriptionPager method.
type VaultClientListBySubscriptionResponse ¶
type VaultClientListBySubscriptionResponse struct { // Vault model collection. VaultModelCollection }
VaultClientListBySubscriptionResponse contains the response from method VaultClient.NewListBySubscriptionPager.
type VaultClientListOptions ¶
type VaultClientListOptions struct { // Continuation token from the previous call. ContinuationToken *string }
VaultClientListOptions contains the optional parameters for the VaultClient.NewListPager method.
type VaultClientListResponse ¶
type VaultClientListResponse struct { // Vault model collection. VaultModelCollection }
VaultClientListResponse contains the response from method VaultClient.NewListPager.
type VaultClientUpdateResponse ¶
type VaultClientUpdateResponse struct { // Vault model. VaultModel }
VaultClientUpdateResponse contains the response from method VaultClient.BeginUpdate.
type VaultModel ¶
type VaultModel struct { // REQUIRED; Gets or sets the location of the vault. Location *string // Vault properties. Properties *VaultModelProperties // Gets or sets the resource tags. Tags map[string]*string // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *VaultModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
VaultModel - Vault model.
func (VaultModel) MarshalJSON ¶
func (v VaultModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VaultModel.
func (*VaultModel) UnmarshalJSON ¶
func (v *VaultModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VaultModel.
type VaultModelCollection ¶
type VaultModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of vaults. Value []*VaultModel }
VaultModelCollection - Vault model collection.
func (VaultModelCollection) MarshalJSON ¶
func (v VaultModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VaultModelCollection.
func (*VaultModelCollection) UnmarshalJSON ¶
func (v *VaultModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VaultModelCollection.
type VaultModelProperties ¶
type VaultModelProperties struct { // Gets or sets the type of vault. VaultType *ReplicationVaultType // READ-ONLY; Gets or sets the provisioning state of the vault. ProvisioningState *ProvisioningState // READ-ONLY; Gets or sets the service resource Id. ServiceResourceID *string }
VaultModelProperties - Vault properties.
func (VaultModelProperties) MarshalJSON ¶
func (v VaultModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VaultModelProperties.
func (*VaultModelProperties) UnmarshalJSON ¶
func (v *VaultModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VaultModelProperties.
type VaultModelSystemData ¶
type VaultModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (VaultModelSystemData) MarshalJSON ¶
func (v VaultModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VaultModelSystemData.
func (*VaultModelSystemData) UnmarshalJSON ¶
func (v *VaultModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VaultModelSystemData.
type VaultModelUpdate ¶
type VaultModelUpdate struct { // Vault properties. Properties *VaultModelProperties // Gets or sets the resource tags. Tags map[string]*string // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *VaultModelUpdateSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
VaultModelUpdate - Vault model for update.
func (VaultModelUpdate) MarshalJSON ¶
func (v VaultModelUpdate) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VaultModelUpdate.
func (*VaultModelUpdate) UnmarshalJSON ¶
func (v *VaultModelUpdate) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VaultModelUpdate.
type VaultModelUpdateSystemData ¶
type VaultModelUpdateSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (VaultModelUpdateSystemData) MarshalJSON ¶
func (v VaultModelUpdateSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VaultModelUpdateSystemData.
func (*VaultModelUpdateSystemData) UnmarshalJSON ¶
func (v *VaultModelUpdateSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VaultModelUpdateSystemData.
type VaultOperationStatusClient ¶
type VaultOperationStatusClient struct {
// contains filtered or unexported fields
}
VaultOperationStatusClient contains the methods for the VaultOperationStatus group. Don't use this type directly, use NewVaultOperationStatusClient() instead.
func NewVaultOperationStatusClient ¶
func NewVaultOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*VaultOperationStatusClient, error)
NewVaultOperationStatusClient creates a new instance of VaultOperationStatusClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*VaultOperationStatusClient) Get ¶
func (client *VaultOperationStatusClient) Get(ctx context.Context, resourceGroupName string, vaultName string, operationID string, options *VaultOperationStatusClientGetOptions) (VaultOperationStatusClientGetResponse, error)
Get - Tracks the results of an asynchronous operation on the vault. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- operationID - The ID of an ongoing async operation.
- options - VaultOperationStatusClientGetOptions contains the optional parameters for the VaultOperationStatusClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/VaultOperationStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewVaultOperationStatusClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "vsdvwe", 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.OperationStatus = armrecoveryservicesdatareplication.OperationStatus{ // Name: to.Ptr("wzdasptnwlxgobklayoqapjcgcf"), // EndTime: to.Ptr("nauyrfh"), // ID: to.Ptr("sf"), // StartTime: to.Ptr("xuzwmfrhluafmwwsmzqxsytyehsh"), // Status: to.Ptr("plbnngzfppdram"), // } }
Output:
type VaultOperationStatusClientGetOptions ¶
type VaultOperationStatusClientGetOptions struct { }
VaultOperationStatusClientGetOptions contains the optional parameters for the VaultOperationStatusClient.Get method.
type VaultOperationStatusClientGetResponse ¶
type VaultOperationStatusClientGetResponse struct { // Defines the operation status. OperationStatus }
VaultOperationStatusClientGetResponse contains the response from method VaultOperationStatusClient.Get.
type WorkflowClient ¶
type WorkflowClient struct {
// contains filtered or unexported fields
}
WorkflowClient contains the methods for the Workflow group. Don't use this type directly, use NewWorkflowClient() instead.
func NewWorkflowClient ¶
func NewWorkflowClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowClient, error)
NewWorkflowClient creates a new instance of WorkflowClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*WorkflowClient) Get ¶
func (client *WorkflowClient) Get(ctx context.Context, resourceGroupName string, vaultName string, jobName string, options *WorkflowClientGetOptions) (WorkflowClientGetResponse, error)
Get - Gets the details of the job. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- jobName - The job (workflow) name.
- options - WorkflowClientGetOptions contains the optional parameters for the WorkflowClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Workflow_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewWorkflowClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "ZGH4y", 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.WorkflowModel = armrecoveryservicesdatareplication.WorkflowModel{ // Name: to.Ptr("ukii"), // Type: to.Ptr("cswros"), // ID: to.Ptr("zsyhbwznbkaia"), // Properties: &armrecoveryservicesdatareplication.WorkflowModelProperties{ // ActivityID: to.Ptr("esjvxsa"), // AllowedActions: []*string{ // to.Ptr("mfsyvxzgmcpgdzfbbhoxrzhya")}, // CustomProperties: &armrecoveryservicesdatareplication.WorkflowModelCustomProperties{ // AffectedObjectDetails: map[string]*string{ // "key7245": to.Ptr("yllr"), // }, // InstanceType: to.Ptr("WorkflowModelCustomProperties"), // }, // DisplayName: to.Ptr("dhopzytkd"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // Errors: []*armrecoveryservicesdatareplication.ErrorModel{ // { // Type: to.Ptr("iyktxohrtrkshbjdhboscsu"), // Causes: to.Ptr("iffxig"), // Code: to.Ptr("ndcxzieiuwoxoklilcvjmglml"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // Message: to.Ptr("ltuufmxomfecqeyvzrfjqlelytkdwr"), // Recommendation: to.Ptr("brridkskflo"), // Severity: to.Ptr("ldgmfmbzmjtqjg"), // }}, // ObjectID: to.Ptr("wvtmwiyxqrpqvljzn"), // ObjectInternalID: to.Ptr("ahbtlwmbeivmlbj"), // ObjectInternalName: to.Ptr("mxikyrinkeyj"), // ObjectName: to.Ptr("ieieqaw"), // ObjectType: to.Ptr(armrecoveryservicesdatareplication.WorkflowObjectTypeAvsDiskPool), // ReplicationProviderID: to.Ptr("ghxsbnvdkx"), // SourceFabricProviderID: to.Ptr("yqlertkmzdsgsplzgkmwcttsiagsa"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // State: to.Ptr(armrecoveryservicesdatareplication.WorkflowStatePending), // TargetFabricProviderID: to.Ptr("stjlmqzpgnrug"), // Tasks: []*armrecoveryservicesdatareplication.TaskModel{ // { // ChildrenWorkflows: []*armrecoveryservicesdatareplication.WorkflowModel{ // }, // CustomProperties: &armrecoveryservicesdatareplication.TaskModelCustomProperties{ // InstanceType: to.Ptr("aaqgqvnhskxpsbnrdekxaghweon"), // }, // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // State: to.Ptr(armrecoveryservicesdatareplication.TaskStatePending), // TaskName: to.Ptr("flkzfbbpngqbbjsdqysqfon"), // }}, // }, // SystemData: &armrecoveryservicesdatareplication.WorkflowModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.270Z"); return t}()), // CreatedBy: to.Ptr("jurgsdagntjg"), // CreatedByType: to.Ptr("zowfl"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.270Z"); return t}()), // LastModifiedBy: to.Ptr("vuw"), // LastModifiedByType: to.Ptr("h"), // }, // } }
Output:
func (*WorkflowClient) NewListPager ¶
func (client *WorkflowClient) NewListPager(resourceGroupName string, vaultName string, options *WorkflowClientListOptions) *runtime.Pager[WorkflowClientListResponse]
NewListPager - Gets the list of jobs in the given vault.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- options - WorkflowClientListOptions contains the optional parameters for the WorkflowClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/Workflow_List.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/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewWorkflowClient().NewListPager("rgrecoveryservicesdatareplication", "4", &armrecoveryservicesdatareplication.WorkflowClientListOptions{Filter: to.Ptr("mnebpgmjcitjleipnttx"), ContinuationToken: to.Ptr("rdavrzbethhslmkqgajontnxsue"), }) 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.WorkflowModelCollection = armrecoveryservicesdatareplication.WorkflowModelCollection{ // Value: []*armrecoveryservicesdatareplication.WorkflowModel{ // { // Name: to.Ptr("ukii"), // Type: to.Ptr("cswros"), // ID: to.Ptr("zsyhbwznbkaia"), // Properties: &armrecoveryservicesdatareplication.WorkflowModelProperties{ // ActivityID: to.Ptr("esjvxsa"), // AllowedActions: []*string{ // to.Ptr("mfsyvxzgmcpgdzfbbhoxrzhya")}, // CustomProperties: &armrecoveryservicesdatareplication.WorkflowModelCustomProperties{ // AffectedObjectDetails: map[string]*string{ // "key7245": to.Ptr("yllr"), // }, // InstanceType: to.Ptr("WorkflowModelCustomProperties"), // }, // DisplayName: to.Ptr("dhopzytkd"), // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // Errors: []*armrecoveryservicesdatareplication.ErrorModel{ // { // Type: to.Ptr("iyktxohrtrkshbjdhboscsu"), // Causes: to.Ptr("iffxig"), // Code: to.Ptr("ndcxzieiuwoxoklilcvjmglml"), // CreationTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // Message: to.Ptr("ltuufmxomfecqeyvzrfjqlelytkdwr"), // Recommendation: to.Ptr("brridkskflo"), // Severity: to.Ptr("ldgmfmbzmjtqjg"), // }}, // ObjectID: to.Ptr("wvtmwiyxqrpqvljzn"), // ObjectInternalID: to.Ptr("ahbtlwmbeivmlbj"), // ObjectInternalName: to.Ptr("mxikyrinkeyj"), // ObjectName: to.Ptr("ieieqaw"), // ObjectType: to.Ptr(armrecoveryservicesdatareplication.WorkflowObjectTypeAvsDiskPool), // ReplicationProviderID: to.Ptr("ghxsbnvdkx"), // SourceFabricProviderID: to.Ptr("yqlertkmzdsgsplzgkmwcttsiagsa"), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // State: to.Ptr(armrecoveryservicesdatareplication.WorkflowStatePending), // TargetFabricProviderID: to.Ptr("stjlmqzpgnrug"), // Tasks: []*armrecoveryservicesdatareplication.TaskModel{ // { // ChildrenWorkflows: []*armrecoveryservicesdatareplication.WorkflowModel{ // }, // CustomProperties: &armrecoveryservicesdatareplication.TaskModelCustomProperties{ // InstanceType: to.Ptr("aaqgqvnhskxpsbnrdekxaghweon"), // }, // EndTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // StartTime: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.269Z"); return t}()), // State: to.Ptr(armrecoveryservicesdatareplication.TaskStatePending), // TaskName: to.Ptr("flkzfbbpngqbbjsdqysqfon"), // }}, // }, // SystemData: &armrecoveryservicesdatareplication.WorkflowModelSystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.270Z"); return t}()), // CreatedBy: to.Ptr("jurgsdagntjg"), // CreatedByType: to.Ptr("zowfl"), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2023-08-25T00:28:59.270Z"); return t}()), // LastModifiedBy: to.Ptr("vuw"), // LastModifiedByType: to.Ptr("h"), // }, // }}, // } } }
Output:
type WorkflowClientGetOptions ¶
type WorkflowClientGetOptions struct { }
WorkflowClientGetOptions contains the optional parameters for the WorkflowClient.Get method.
type WorkflowClientGetResponse ¶
type WorkflowClientGetResponse struct { // Workflow model. WorkflowModel }
WorkflowClientGetResponse contains the response from method WorkflowClient.Get.
type WorkflowClientListOptions ¶
type WorkflowClientListOptions struct { // Continuation token. ContinuationToken *string // Filter string. Filter *string }
WorkflowClientListOptions contains the optional parameters for the WorkflowClient.NewListPager method.
type WorkflowClientListResponse ¶
type WorkflowClientListResponse struct { // Workflow model collection. WorkflowModelCollection }
WorkflowClientListResponse contains the response from method WorkflowClient.NewListPager.
type WorkflowModel ¶
type WorkflowModel struct { // REQUIRED; Workflow model properties. Properties *WorkflowModelProperties // READ-ONLY; Gets or sets the Id of the resource. ID *string // READ-ONLY; Gets or sets the name of the resource. Name *string // READ-ONLY SystemData *WorkflowModelSystemData // READ-ONLY; Gets or sets the type of the resource. Type *string }
WorkflowModel - Workflow model.
func (WorkflowModel) MarshalJSON ¶
func (w WorkflowModel) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkflowModel.
func (*WorkflowModel) UnmarshalJSON ¶
func (w *WorkflowModel) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowModel.
type WorkflowModelCollection ¶
type WorkflowModelCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of workflows. Value []*WorkflowModel }
WorkflowModelCollection - Workflow model collection.
func (WorkflowModelCollection) MarshalJSON ¶
func (w WorkflowModelCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkflowModelCollection.
func (*WorkflowModelCollection) UnmarshalJSON ¶
func (w *WorkflowModelCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowModelCollection.
type WorkflowModelCustomProperties ¶
type WorkflowModelCustomProperties struct { // REQUIRED; Gets or sets the instance type. InstanceType *string // READ-ONLY; Gets or sets any custom properties of the affected object. AffectedObjectDetails map[string]*string }
WorkflowModelCustomProperties - Workflow model custom properties.
func (*WorkflowModelCustomProperties) GetWorkflowModelCustomProperties ¶
func (w *WorkflowModelCustomProperties) GetWorkflowModelCustomProperties() *WorkflowModelCustomProperties
GetWorkflowModelCustomProperties implements the WorkflowModelCustomPropertiesClassification interface for type WorkflowModelCustomProperties.
func (WorkflowModelCustomProperties) MarshalJSON ¶
func (w WorkflowModelCustomProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkflowModelCustomProperties.
func (*WorkflowModelCustomProperties) UnmarshalJSON ¶
func (w *WorkflowModelCustomProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowModelCustomProperties.
type WorkflowModelCustomPropertiesClassification ¶
type WorkflowModelCustomPropertiesClassification interface { // GetWorkflowModelCustomProperties returns the WorkflowModelCustomProperties content of the underlying type. GetWorkflowModelCustomProperties() *WorkflowModelCustomProperties }
WorkflowModelCustomPropertiesClassification provides polymorphic access to related types. Call the interface's GetWorkflowModelCustomProperties() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *FailoverWorkflowModelCustomProperties, *TestFailoverCleanupWorkflowModelCustomProperties, *TestFailoverWorkflowModelCustomProperties, - *WorkflowModelCustomProperties
type WorkflowModelProperties ¶
type WorkflowModelProperties struct { // REQUIRED; Workflow model custom properties. CustomProperties WorkflowModelCustomPropertiesClassification // READ-ONLY; Gets or sets the workflow activity id. ActivityID *string // READ-ONLY; Gets or sets the list of allowed actions on the workflow. AllowedActions []*string // READ-ONLY; Gets or sets the friendly display name. DisplayName *string // READ-ONLY; Gets or sets the end time. EndTime *time.Time // READ-ONLY; Gets or sets the list of errors. Errors []*ErrorModel // READ-ONLY; Gets or sets the affected object Id. ObjectID *string // READ-ONLY; Gets or sets the affected object internal Id. ObjectInternalID *string // READ-ONLY; Gets or sets the affected object internal name. ObjectInternalName *string // READ-ONLY; Gets or sets the affected object name. ObjectName *string // READ-ONLY; Gets or sets the object type. ObjectType *WorkflowObjectType // READ-ONLY; Gets or sets the replication provider. ReplicationProviderID *string // READ-ONLY; Gets or sets the source fabric provider. SourceFabricProviderID *string // READ-ONLY; Gets or sets the start time. StartTime *time.Time // READ-ONLY; Gets or sets the workflow state. State *WorkflowState // READ-ONLY; Gets or sets the target fabric provider. TargetFabricProviderID *string // READ-ONLY; Gets or sets the list of tasks. Tasks []*TaskModel }
WorkflowModelProperties - Workflow model properties.
func (WorkflowModelProperties) MarshalJSON ¶
func (w WorkflowModelProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkflowModelProperties.
func (*WorkflowModelProperties) UnmarshalJSON ¶
func (w *WorkflowModelProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowModelProperties.
type WorkflowModelSystemData ¶
type WorkflowModelSystemData struct { // Gets or sets the timestamp of resource creation (UTC). CreatedAt *time.Time // Gets or sets identity that created the resource. CreatedBy *string // Gets or sets the type of identity that created the resource: user, application, managedIdentity. CreatedByType *string // Gets or sets the timestamp of resource last modification (UTC). LastModifiedAt *time.Time // Gets or sets the identity that last modified the resource. LastModifiedBy *string // Gets or sets the type of identity that last modified the resource: user, application, managedIdentity. LastModifiedByType *string }
func (WorkflowModelSystemData) MarshalJSON ¶
func (w WorkflowModelSystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type WorkflowModelSystemData.
func (*WorkflowModelSystemData) UnmarshalJSON ¶
func (w *WorkflowModelSystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type WorkflowModelSystemData.
type WorkflowObjectType ¶
type WorkflowObjectType string
WorkflowObjectType - Gets or sets the object type.
const ( WorkflowObjectTypeAvsDiskPool WorkflowObjectType = "AvsDiskPool" WorkflowObjectTypeDra WorkflowObjectType = "Dra" WorkflowObjectTypeFabric WorkflowObjectType = "Fabric" WorkflowObjectTypePolicy WorkflowObjectType = "Policy" WorkflowObjectTypeProtectedItem WorkflowObjectType = "ProtectedItem" WorkflowObjectTypeRecoveryPlan WorkflowObjectType = "RecoveryPlan" WorkflowObjectTypeReplicationExtension WorkflowObjectType = "ReplicationExtension" WorkflowObjectTypeVault WorkflowObjectType = "Vault" )
func PossibleWorkflowObjectTypeValues ¶
func PossibleWorkflowObjectTypeValues() []WorkflowObjectType
PossibleWorkflowObjectTypeValues returns the possible values for the WorkflowObjectType const type.
type WorkflowOperationStatusClient ¶
type WorkflowOperationStatusClient struct {
// contains filtered or unexported fields
}
WorkflowOperationStatusClient contains the methods for the WorkflowOperationStatus group. Don't use this type directly, use NewWorkflowOperationStatusClient() instead.
func NewWorkflowOperationStatusClient ¶
func NewWorkflowOperationStatusClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*WorkflowOperationStatusClient, error)
NewWorkflowOperationStatusClient creates a new instance of WorkflowOperationStatusClient with the specified values.
- subscriptionID - The ID of the target subscription. The value must be an UUID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*WorkflowOperationStatusClient) Get ¶
func (client *WorkflowOperationStatusClient) Get(ctx context.Context, resourceGroupName string, vaultName string, jobName string, operationID string, options *WorkflowOperationStatusClientGetOptions) (WorkflowOperationStatusClientGetResponse, error)
Get - Tracks the results of an asynchronous operation on the job. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2021-02-16-preview
- resourceGroupName - The name of the resource group. The name is case insensitive.
- vaultName - The vault name.
- jobName - The job (workflow) name.
- operationID - The ID of an ongoing async operation.
- options - WorkflowOperationStatusClientGetOptions contains the optional parameters for the WorkflowOperationStatusClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/examples/WorkflowOperationStatus_Get.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservicesdatareplication/armrecoveryservicesdatareplication" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armrecoveryservicesdatareplication.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewWorkflowOperationStatusClient().Get(ctx, "rgrecoveryservicesdatareplication", "4", "ZGH4y", "wdqcxc", 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.OperationStatus = armrecoveryservicesdatareplication.OperationStatus{ // Name: to.Ptr("wzdasptnwlxgobklayoqapjcgcf"), // EndTime: to.Ptr("nauyrfh"), // ID: to.Ptr("sf"), // StartTime: to.Ptr("xuzwmfrhluafmwwsmzqxsytyehsh"), // Status: to.Ptr("plbnngzfppdram"), // } }
Output:
type WorkflowOperationStatusClientGetOptions ¶
type WorkflowOperationStatusClientGetOptions struct { }
WorkflowOperationStatusClientGetOptions contains the optional parameters for the WorkflowOperationStatusClient.Get method.
type WorkflowOperationStatusClientGetResponse ¶
type WorkflowOperationStatusClientGetResponse struct { // Defines the operation status. OperationStatus }
WorkflowOperationStatusClientGetResponse contains the response from method WorkflowOperationStatusClient.Get.
type WorkflowState ¶
type WorkflowState string
WorkflowState - Gets or sets the workflow state.
const ( WorkflowStateCancelled WorkflowState = "Cancelled" WorkflowStateCancelling WorkflowState = "Cancelling" WorkflowStateCompletedWithErrors WorkflowState = "CompletedWithErrors" WorkflowStateCompletedWithInformation WorkflowState = "CompletedWithInformation" WorkflowStateCompletedWithWarnings WorkflowState = "CompletedWithWarnings" WorkflowStateFailed WorkflowState = "Failed" WorkflowStatePending WorkflowState = "Pending" WorkflowStateStarted WorkflowState = "Started" WorkflowStateSucceeded WorkflowState = "Succeeded" )
func PossibleWorkflowStateValues ¶
func PossibleWorkflowStateValues() []WorkflowState
PossibleWorkflowStateValues returns the possible values for the WorkflowState const type.
Source Files ¶
- azuresiterecoverymanagementserviceapi_client.go
- build.go
- client_factory.go
- constants.go
- dra_client.go
- draoperationstatus_client.go
- emailconfiguration_client.go
- event_client.go
- fabric_client.go
- fabricoperationsstatus_client.go
- interfaces.go
- models.go
- models_serde.go
- operations_client.go
- options.go
- policy_client.go
- policyoperationstatus_client.go
- polymorphic_helpers.go
- protecteditem_client.go
- protecteditemoperationstatus_client.go
- recoverypoints_client.go
- replicationextension_client.go
- replicationextensionoperationstatus_client.go
- response_types.go
- time_rfc3339.go
- vault_client.go
- vaultoperationstatus_client.go
- workflow_client.go
- workflowoperationstatus_client.go