Documentation ¶
Index ¶
- type AffectedMoveResource
- type AutomaticResolutionProperties
- type AvailabilitySetResourceSettings
- type BulkRemoveRequest
- type ClientFactory
- func (c *ClientFactory) NewMoveCollectionsClient() *MoveCollectionsClient
- func (c *ClientFactory) NewMoveResourcesClient() *MoveResourcesClient
- func (c *ClientFactory) NewOperationsDiscoveryClient() *OperationsDiscoveryClient
- func (c *ClientFactory) NewUnresolvedDependenciesClient() *UnresolvedDependenciesClient
- type CommitRequest
- type CreatedByType
- type DependencyLevel
- type DependencyType
- type DiscardRequest
- type DiskEncryptionSetResourceSettings
- type Display
- type Identity
- type JobName
- type JobStatus
- type KeyVaultResourceSettings
- type LBBackendAddressPoolResourceSettings
- type LBFrontendIPConfigurationResourceSettings
- type LoadBalancerBackendAddressPoolReference
- type LoadBalancerNatRuleReference
- type LoadBalancerResourceSettings
- type ManualResolutionProperties
- type MoveCollection
- type MoveCollectionProperties
- type MoveCollectionPropertiesErrors
- type MoveCollectionResultList
- type MoveCollectionsClient
- func (client *MoveCollectionsClient) BeginBulkRemove(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveCollectionsClientBulkRemoveResponse], error)
- func (client *MoveCollectionsClient) BeginCommit(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveCollectionsClientCommitResponse], error)
- func (client *MoveCollectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveCollectionsClientDeleteResponse], error)
- func (client *MoveCollectionsClient) BeginDiscard(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveCollectionsClientDiscardResponse], error)
- func (client *MoveCollectionsClient) BeginInitiateMove(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveCollectionsClientInitiateMoveResponse], error)
- func (client *MoveCollectionsClient) BeginPrepare(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveCollectionsClientPrepareResponse], error)
- func (client *MoveCollectionsClient) BeginResolveDependencies(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveCollectionsClientResolveDependenciesResponse], error)
- func (client *MoveCollectionsClient) Create(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (MoveCollectionsClientCreateResponse, error)
- func (client *MoveCollectionsClient) Get(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (MoveCollectionsClientGetResponse, error)
- func (client *MoveCollectionsClient) ListRequiredFor(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (MoveCollectionsClientListRequiredForResponse, error)
- func (client *MoveCollectionsClient) NewListMoveCollectionsByResourceGroupPager(resourceGroupName string, ...) ...
- func (client *MoveCollectionsClient) NewListMoveCollectionsBySubscriptionPager(options *MoveCollectionsClientListMoveCollectionsBySubscriptionOptions) *runtime.Pager[MoveCollectionsClientListMoveCollectionsBySubscriptionResponse]
- func (client *MoveCollectionsClient) Update(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (MoveCollectionsClientUpdateResponse, error)
- type MoveCollectionsClientBeginBulkRemoveOptions
- type MoveCollectionsClientBeginCommitOptions
- type MoveCollectionsClientBeginDeleteOptions
- type MoveCollectionsClientBeginDiscardOptions
- type MoveCollectionsClientBeginInitiateMoveOptions
- type MoveCollectionsClientBeginPrepareOptions
- type MoveCollectionsClientBeginResolveDependenciesOptions
- type MoveCollectionsClientBulkRemoveResponse
- type MoveCollectionsClientCommitResponse
- type MoveCollectionsClientCreateOptions
- type MoveCollectionsClientCreateResponse
- type MoveCollectionsClientDeleteResponse
- type MoveCollectionsClientDiscardResponse
- type MoveCollectionsClientGetOptions
- type MoveCollectionsClientGetResponse
- type MoveCollectionsClientInitiateMoveResponse
- type MoveCollectionsClientListMoveCollectionsByResourceGroupOptions
- type MoveCollectionsClientListMoveCollectionsByResourceGroupResponse
- type MoveCollectionsClientListMoveCollectionsBySubscriptionOptions
- type MoveCollectionsClientListMoveCollectionsBySubscriptionResponse
- type MoveCollectionsClientListRequiredForOptions
- type MoveCollectionsClientListRequiredForResponse
- type MoveCollectionsClientPrepareResponse
- type MoveCollectionsClientResolveDependenciesResponse
- type MoveCollectionsClientUpdateOptions
- type MoveCollectionsClientUpdateResponse
- type MoveErrorInfo
- type MoveResource
- type MoveResourceCollection
- type MoveResourceDependency
- type MoveResourceDependencyOverride
- type MoveResourceError
- type MoveResourceErrorBody
- type MoveResourceFilter
- type MoveResourceFilterProperties
- type MoveResourceInputType
- type MoveResourceProperties
- type MoveResourcePropertiesErrors
- type MoveResourcePropertiesMoveStatus
- type MoveResourcesClient
- func (client *MoveResourcesClient) BeginCreate(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveResourcesClientCreateResponse], error)
- func (client *MoveResourcesClient) BeginDelete(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (*runtime.Poller[MoveResourcesClientDeleteResponse], error)
- func (client *MoveResourcesClient) Get(ctx context.Context, resourceGroupName string, moveCollectionName string, ...) (MoveResourcesClientGetResponse, error)
- func (client *MoveResourcesClient) NewListPager(resourceGroupName string, moveCollectionName string, ...) *runtime.Pager[MoveResourcesClientListResponse]
- type MoveResourcesClientBeginCreateOptions
- type MoveResourcesClientBeginDeleteOptions
- type MoveResourcesClientCreateResponse
- type MoveResourcesClientDeleteResponse
- type MoveResourcesClientGetOptions
- type MoveResourcesClientGetResponse
- type MoveResourcesClientListOptions
- type MoveResourcesClientListResponse
- type MoveState
- type MoveType
- type NetworkInterfaceResourceSettings
- type NetworkSecurityGroupResourceSettings
- type NicIPConfigurationResourceSettings
- type NsgReference
- type NsgSecurityRule
- type OperationErrorAdditionalInfo
- type OperationStatus
- type OperationStatusError
- type OperationsDiscovery
- type OperationsDiscoveryClient
- type OperationsDiscoveryClientGetOptions
- type OperationsDiscoveryClientGetResponse
- type OperationsDiscoveryCollection
- type PrepareRequest
- type ProvisioningState
- type PublicIPAddressResourceSettings
- type PublicIPReference
- type RequiredForResourcesCollection
- type ResolutionType
- type ResourceGroupResourceSettings
- type ResourceIdentityType
- type ResourceMoveRequest
- type ResourceSettings
- type ResourceSettingsClassification
- type SQLDatabaseResourceSettings
- type SQLElasticPoolResourceSettings
- type SQLServerResourceSettings
- type SubnetReference
- type SubnetResourceSettings
- type Summary
- type SummaryCollection
- type SystemData
- type TargetAvailabilityZone
- type UnresolvedDependenciesClient
- type UnresolvedDependenciesClientGetOptions
- type UnresolvedDependenciesClientGetResponse
- type UnresolvedDependenciesFilter
- type UnresolvedDependenciesFilterProperties
- type UnresolvedDependency
- type UnresolvedDependencyCollection
- type UpdateMoveCollectionRequest
- type VirtualMachineResourceSettings
- type VirtualNetworkResourceSettings
- type ZoneRedundant
Examples ¶
- MoveCollectionsClient.BeginBulkRemove
- MoveCollectionsClient.BeginCommit
- MoveCollectionsClient.BeginDelete
- MoveCollectionsClient.BeginDiscard
- MoveCollectionsClient.BeginInitiateMove
- MoveCollectionsClient.BeginPrepare
- MoveCollectionsClient.BeginResolveDependencies
- MoveCollectionsClient.Create
- MoveCollectionsClient.Get
- MoveCollectionsClient.ListRequiredFor
- MoveCollectionsClient.NewListMoveCollectionsByResourceGroupPager
- MoveCollectionsClient.NewListMoveCollectionsBySubscriptionPager
- MoveCollectionsClient.Update
- MoveResourcesClient.BeginCreate
- MoveResourcesClient.BeginDelete
- MoveResourcesClient.Get
- MoveResourcesClient.NewListPager
- OperationsDiscoveryClient.Get
- UnresolvedDependenciesClient.NewGetPager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffectedMoveResource ¶
type AffectedMoveResource struct { // READ-ONLY; The affected move resource id. ID *string // READ-ONLY; The affected move resources. MoveResources []*AffectedMoveResource // READ-ONLY; The affected move resource source id. SourceID *string }
AffectedMoveResource - The RP custom operation error info.
func (AffectedMoveResource) MarshalJSON ¶
func (a AffectedMoveResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AffectedMoveResource.
func (*AffectedMoveResource) UnmarshalJSON ¶
func (a *AffectedMoveResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AffectedMoveResource.
type AutomaticResolutionProperties ¶
type AutomaticResolutionProperties struct { // Gets the MoveResource ARM ID of the dependent resource if the resolution type is Automatic. MoveResourceID *string }
AutomaticResolutionProperties - Defines the properties for automatic resolution.
func (AutomaticResolutionProperties) MarshalJSON ¶
func (a AutomaticResolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AutomaticResolutionProperties.
func (*AutomaticResolutionProperties) UnmarshalJSON ¶
func (a *AutomaticResolutionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AutomaticResolutionProperties.
type AvailabilitySetResourceSettings ¶
type AvailabilitySetResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the target fault domain. FaultDomain *int32 // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string // Gets or sets the target update domain. UpdateDomain *int32 }
AvailabilitySetResourceSettings - Gets or sets the availability set resource settings.
func (*AvailabilitySetResourceSettings) GetResourceSettings ¶
func (a *AvailabilitySetResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type AvailabilitySetResourceSettings.
func (AvailabilitySetResourceSettings) MarshalJSON ¶
func (a AvailabilitySetResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type AvailabilitySetResourceSettings.
func (*AvailabilitySetResourceSettings) UnmarshalJSON ¶
func (a *AvailabilitySetResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type AvailabilitySetResourceSettings.
type BulkRemoveRequest ¶
type BulkRemoveRequest struct { // Defines the move resource input type. MoveResourceInputType *MoveResourceInputType // Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via // moveResourceInputType property. MoveResources []*string // Gets or sets a value indicating whether the operation needs to only run pre-requisite. ValidateOnly *bool }
BulkRemoveRequest - Defines the request body for bulk remove of move resources operation.
func (BulkRemoveRequest) MarshalJSON ¶
func (b BulkRemoveRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type BulkRemoveRequest.
func (*BulkRemoveRequest) UnmarshalJSON ¶
func (b *BulkRemoveRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type BulkRemoveRequest.
type ClientFactory ¶
type ClientFactory struct {
// contains filtered or unexported fields
}
ClientFactory is a client factory used to create any client in this module. Don't use this type directly, use NewClientFactory instead.
func NewClientFactory ¶
func NewClientFactory(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*ClientFactory, error)
NewClientFactory creates a new instance of ClientFactory with the specified values. The parameter values will be propagated to any client created from this factory.
- subscriptionID - The Subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*ClientFactory) NewMoveCollectionsClient ¶
func (c *ClientFactory) NewMoveCollectionsClient() *MoveCollectionsClient
NewMoveCollectionsClient creates a new instance of MoveCollectionsClient.
func (*ClientFactory) NewMoveResourcesClient ¶
func (c *ClientFactory) NewMoveResourcesClient() *MoveResourcesClient
NewMoveResourcesClient creates a new instance of MoveResourcesClient.
func (*ClientFactory) NewOperationsDiscoveryClient ¶
func (c *ClientFactory) NewOperationsDiscoveryClient() *OperationsDiscoveryClient
NewOperationsDiscoveryClient creates a new instance of OperationsDiscoveryClient.
func (*ClientFactory) NewUnresolvedDependenciesClient ¶
func (c *ClientFactory) NewUnresolvedDependenciesClient() *UnresolvedDependenciesClient
NewUnresolvedDependenciesClient creates a new instance of UnresolvedDependenciesClient.
type CommitRequest ¶
type CommitRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. MoveResources []*string // Defines the move resource input type. MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. ValidateOnly *bool }
CommitRequest - Defines the request body for commit operation.
func (CommitRequest) MarshalJSON ¶
func (c CommitRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type CommitRequest.
func (*CommitRequest) UnmarshalJSON ¶
func (c *CommitRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type CommitRequest.
type CreatedByType ¶
type CreatedByType string
CreatedByType - The type of identity that created the resource.
const ( CreatedByTypeApplication CreatedByType = "Application" CreatedByTypeKey CreatedByType = "Key" CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity" CreatedByTypeUser CreatedByType = "User" )
func PossibleCreatedByTypeValues ¶
func PossibleCreatedByTypeValues() []CreatedByType
PossibleCreatedByTypeValues returns the possible values for the CreatedByType const type.
type DependencyLevel ¶
type DependencyLevel string
const ( DependencyLevelDescendant DependencyLevel = "Descendant" DependencyLevelDirect DependencyLevel = "Direct" )
func PossibleDependencyLevelValues ¶
func PossibleDependencyLevelValues() []DependencyLevel
PossibleDependencyLevelValues returns the possible values for the DependencyLevel const type.
type DependencyType ¶
type DependencyType string
DependencyType - Defines the dependency type.
const ( DependencyTypeRequiredForMove DependencyType = "RequiredForMove" DependencyTypeRequiredForPrepare DependencyType = "RequiredForPrepare" )
func PossibleDependencyTypeValues ¶
func PossibleDependencyTypeValues() []DependencyType
PossibleDependencyTypeValues returns the possible values for the DependencyType const type.
type DiscardRequest ¶
type DiscardRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. MoveResources []*string // Defines the move resource input type. MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. ValidateOnly *bool }
DiscardRequest - Defines the request body for discard operation.
func (DiscardRequest) MarshalJSON ¶
func (d DiscardRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DiscardRequest.
func (*DiscardRequest) UnmarshalJSON ¶
func (d *DiscardRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DiscardRequest.
type DiskEncryptionSetResourceSettings ¶
type DiskEncryptionSetResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
DiskEncryptionSetResourceSettings - Defines the disk encryption set resource settings.
func (*DiskEncryptionSetResourceSettings) GetResourceSettings ¶
func (d *DiskEncryptionSetResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type DiskEncryptionSetResourceSettings.
func (DiskEncryptionSetResourceSettings) MarshalJSON ¶
func (d DiskEncryptionSetResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type DiskEncryptionSetResourceSettings.
func (*DiskEncryptionSetResourceSettings) UnmarshalJSON ¶
func (d *DiskEncryptionSetResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type DiskEncryptionSetResourceSettings.
type Display ¶
type Display struct { // Gets or sets the description. The localized friendly description for the operation, as it should be shown to the user. // It should be thorough, yet concise – it will be used in tool tips and detailed // views. Prescriptive guidance for namespace: Read any 'display.provider' resource Create or Update any 'display.provider' // resource Delete any 'display.provider' resource Perform any other action on any // 'display.provider' resource Prescriptive guidance for namespace: Read any 'display.resource' Create or Update any 'display.resource' // Delete any 'display.resource' 'ActionName' any 'display.resources'. Description *string // Gets or sets the operation. The localized friendly name for the operation, as it should be shown to the user. It should // be concise (to fit in drop downs) but clear (i.e. self-documenting). It should // use Title Casing. Prescriptive guidance: Read Create or Update Delete 'ActionName'. Operation *string // Gets or sets the provider. The localized friendly form of the resource provider name – it is expected to also include the // publisher/company responsible. It should use Title Casing and begin with // "Microsoft" for 1st party services. e.g. "Microsoft Monitoring Insights" or "Microsoft Compute.". Provider *string // Gets or sets the resource. The localized friendly form of the resource related to this action/operation – it should match // the public documentation for the resource provider. It should use Title // Casing. This value should be unique for a particular URL type (e.g. nested types should notreuse their parent’s display.resource // field) e.g. "Virtual Machines" or "Scheduler Job Collections", or // "Virtual Machine VM Sizes" or "Scheduler Jobs". Resource *string }
Display - Contains the localized display information for this particular operation / action. These value will be used by several clients for (1) custom role definitions for RBAC; (2) complex query filters for the event service; and (3) audit history / records for management operations.
func (Display) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Display.
func (*Display) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Display.
type Identity ¶
type Identity struct { // Gets or sets the principal id. PrincipalID *string // Gets or sets the tenant id. TenantID *string // The type of identity used for the resource mover service. Type *ResourceIdentityType }
Identity - Defines the MSI properties of the Move Collection.
func (Identity) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Identity.
func (*Identity) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Identity.
type JobName ¶
type JobName string
JobName - Defines the job name.
const (
JobNameInitialSync JobName = "InitialSync"
)
func PossibleJobNameValues ¶
func PossibleJobNameValues() []JobName
PossibleJobNameValues returns the possible values for the JobName const type.
type JobStatus ¶
type JobStatus struct { // READ-ONLY; Defines the job name. JobName *JobName // READ-ONLY; Gets or sets the monitoring job percentage. JobProgress *string }
JobStatus - Defines the job status.
func (JobStatus) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type JobStatus.
func (*JobStatus) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type JobStatus.
type KeyVaultResourceSettings ¶
type KeyVaultResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
KeyVaultResourceSettings - Defines the key vault resource settings.
func (*KeyVaultResourceSettings) GetResourceSettings ¶
func (k *KeyVaultResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type KeyVaultResourceSettings.
func (KeyVaultResourceSettings) MarshalJSON ¶
func (k KeyVaultResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type KeyVaultResourceSettings.
func (*KeyVaultResourceSettings) UnmarshalJSON ¶
func (k *KeyVaultResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type KeyVaultResourceSettings.
type LBBackendAddressPoolResourceSettings ¶
type LBBackendAddressPoolResourceSettings struct { // Gets or sets the backend address pool name. Name *string }
LBBackendAddressPoolResourceSettings - Defines load balancer backend address pool properties.
func (LBBackendAddressPoolResourceSettings) MarshalJSON ¶
func (l LBBackendAddressPoolResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LBBackendAddressPoolResourceSettings.
func (*LBBackendAddressPoolResourceSettings) UnmarshalJSON ¶
func (l *LBBackendAddressPoolResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LBBackendAddressPoolResourceSettings.
type LBFrontendIPConfigurationResourceSettings ¶
type LBFrontendIPConfigurationResourceSettings struct { // Gets or sets the frontend IP configuration name. Name *string // Gets or sets the IP address of the Load Balancer.This is only specified if a specific private IP address shall be allocated // from the subnet specified in subnetRef. PrivateIPAddress *string // Gets or sets PrivateIP allocation method (Static/Dynamic). PrivateIPAllocationMethod *string // Defines reference to subnet. Subnet *SubnetReference // Gets or sets the csv list of zones. Zones *string }
LBFrontendIPConfigurationResourceSettings - Defines load balancer frontend IP configuration properties.
func (LBFrontendIPConfigurationResourceSettings) MarshalJSON ¶
func (l LBFrontendIPConfigurationResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LBFrontendIPConfigurationResourceSettings.
func (*LBFrontendIPConfigurationResourceSettings) UnmarshalJSON ¶
func (l *LBFrontendIPConfigurationResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LBFrontendIPConfigurationResourceSettings.
type LoadBalancerBackendAddressPoolReference ¶
type LoadBalancerBackendAddressPoolReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. SourceArmResourceID *string // Gets the name of the proxy resource on the target side. Name *string }
LoadBalancerBackendAddressPoolReference - Defines reference to load balancer backend address pools.
func (LoadBalancerBackendAddressPoolReference) MarshalJSON ¶
func (l LoadBalancerBackendAddressPoolReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerBackendAddressPoolReference.
func (*LoadBalancerBackendAddressPoolReference) UnmarshalJSON ¶
func (l *LoadBalancerBackendAddressPoolReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerBackendAddressPoolReference.
type LoadBalancerNatRuleReference ¶
type LoadBalancerNatRuleReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. SourceArmResourceID *string // Gets the name of the proxy resource on the target side. Name *string }
LoadBalancerNatRuleReference - Defines reference to load balancer NAT rules.
func (LoadBalancerNatRuleReference) MarshalJSON ¶
func (l LoadBalancerNatRuleReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerNatRuleReference.
func (*LoadBalancerNatRuleReference) UnmarshalJSON ¶
func (l *LoadBalancerNatRuleReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerNatRuleReference.
type LoadBalancerResourceSettings ¶
type LoadBalancerResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the backend address pools of the load balancer. BackendAddressPools []*LBBackendAddressPoolResourceSettings // Gets or sets the frontend IP configurations of the load balancer. FrontendIPConfigurations []*LBFrontendIPConfigurationResourceSettings // Gets or sets load balancer sku (Basic/Standard). SKU *string // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string // Gets or sets the csv list of zones common for all frontend IP configurations. Note this is given precedence only if frontend // IP configurations settings are not present. Zones *string }
LoadBalancerResourceSettings - Defines the load balancer resource settings.
func (*LoadBalancerResourceSettings) GetResourceSettings ¶
func (l *LoadBalancerResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type LoadBalancerResourceSettings.
func (LoadBalancerResourceSettings) MarshalJSON ¶
func (l LoadBalancerResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type LoadBalancerResourceSettings.
func (*LoadBalancerResourceSettings) UnmarshalJSON ¶
func (l *LoadBalancerResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type LoadBalancerResourceSettings.
type ManualResolutionProperties ¶
type ManualResolutionProperties struct { // Gets or sets the target resource ARM ID of the dependent resource if the resource type is Manual. TargetID *string }
ManualResolutionProperties - Defines the properties for manual resolution.
func (ManualResolutionProperties) MarshalJSON ¶
func (m ManualResolutionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ManualResolutionProperties.
func (*ManualResolutionProperties) UnmarshalJSON ¶
func (m *ManualResolutionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ManualResolutionProperties.
type MoveCollection ¶
type MoveCollection struct { // Defines the MSI properties of the Move Collection. Identity *Identity // The geo-location where the resource lives. Location *string // Defines the move collection properties. Properties *MoveCollectionProperties // Resource tags. Tags map[string]*string // READ-ONLY; The etag of the resource. Etag *string // READ-ONLY; Fully qualified resource Id for the resource. ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData // READ-ONLY; The type of the resource. Type *string }
MoveCollection - Define the move collection.
func (MoveCollection) MarshalJSON ¶
func (m MoveCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveCollection.
func (*MoveCollection) UnmarshalJSON ¶
func (m *MoveCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveCollection.
type MoveCollectionProperties ¶
type MoveCollectionProperties struct { // Gets or sets the move region which indicates the region where the VM Regional to Zonal move will be conducted. MoveRegion *string // Defines the MoveType. MoveType *MoveType // Gets or sets the source region. SourceRegion *string // Gets or sets the target region. TargetRegion *string // Gets or sets the version of move collection. Version *string // READ-ONLY; Defines the move collection errors. Errors *MoveCollectionPropertiesErrors // READ-ONLY; Defines the provisioning states. ProvisioningState *ProvisioningState }
MoveCollectionProperties - Defines the move collection properties.
func (MoveCollectionProperties) MarshalJSON ¶
func (m MoveCollectionProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveCollectionProperties.
func (*MoveCollectionProperties) UnmarshalJSON ¶
func (m *MoveCollectionProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveCollectionProperties.
type MoveCollectionPropertiesErrors ¶
type MoveCollectionPropertiesErrors struct { // The move resource error body. Properties *MoveResourceErrorBody }
MoveCollectionPropertiesErrors - Defines the move collection errors.
func (MoveCollectionPropertiesErrors) MarshalJSON ¶
func (m MoveCollectionPropertiesErrors) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveCollectionPropertiesErrors.
func (*MoveCollectionPropertiesErrors) UnmarshalJSON ¶
func (m *MoveCollectionPropertiesErrors) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveCollectionPropertiesErrors.
type MoveCollectionResultList ¶
type MoveCollectionResultList struct { // Gets the value of next link. NextLink *string // Gets the list of move collections. Value []*MoveCollection }
MoveCollectionResultList - Defines the collection of move collections.
func (MoveCollectionResultList) MarshalJSON ¶
func (m MoveCollectionResultList) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveCollectionResultList.
func (*MoveCollectionResultList) UnmarshalJSON ¶
func (m *MoveCollectionResultList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveCollectionResultList.
type MoveCollectionsClient ¶
type MoveCollectionsClient struct {
// contains filtered or unexported fields
}
MoveCollectionsClient contains the methods for the MoveCollections group. Don't use this type directly, use NewMoveCollectionsClient() instead.
func NewMoveCollectionsClient ¶
func NewMoveCollectionsClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MoveCollectionsClient, error)
NewMoveCollectionsClient creates a new instance of MoveCollectionsClient with the specified values.
- subscriptionID - The Subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*MoveCollectionsClient) BeginBulkRemove ¶
func (client *MoveCollectionsClient) BeginBulkRemove(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientBeginBulkRemoveOptions) (*runtime.Poller[MoveCollectionsClientBulkRemoveResponse], error)
BeginBulkRemove - Removes the set of move resources included in the request body from move collection. The orchestration is done by service. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- options - MoveCollectionsClientBeginBulkRemoveOptions contains the optional parameters for the MoveCollectionsClient.BeginBulkRemove method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_BulkRemove.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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveCollectionsClient().BeginBulkRemove(ctx, "rg1", "movecollection1", &armresourcemover.MoveCollectionsClientBeginBulkRemoveOptions{Body: &armresourcemover.BulkRemoveRequest{ MoveResources: []*string{ to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")}, ValidateOnly: to.Ptr(false), }, }) 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveCollectionsClient) BeginCommit ¶
func (client *MoveCollectionsClient) BeginCommit(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientBeginCommitOptions) (*runtime.Poller[MoveCollectionsClientCommitResponse], error)
BeginCommit - Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientBeginCommitOptions contains the optional parameters for the MoveCollectionsClient.BeginCommit method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_Commit.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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveCollectionsClient().BeginCommit(ctx, "rg1", "movecollection1", &armresourcemover.MoveCollectionsClientBeginCommitOptions{Body: &armresourcemover.CommitRequest{ MoveResources: []*string{ to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")}, ValidateOnly: to.Ptr(false), }, }) 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveCollectionsClient) BeginDelete ¶
func (client *MoveCollectionsClient) BeginDelete(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientBeginDeleteOptions) (*runtime.Poller[MoveCollectionsClientDeleteResponse], error)
BeginDelete - Deletes a move collection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientBeginDeleteOptions contains the optional parameters for the MoveCollectionsClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveCollectionsClient().BeginDelete(ctx, "rg1", "movecollection1", 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveCollectionsClient) BeginDiscard ¶
func (client *MoveCollectionsClient) BeginDiscard(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientBeginDiscardOptions) (*runtime.Poller[MoveCollectionsClientDiscardResponse], error)
BeginDiscard - Discards the set of resources included in the request body. The discard operation is triggered on the moveResources in the moveState 'CommitPending' or 'DiscardFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientBeginDiscardOptions contains the optional parameters for the MoveCollectionsClient.BeginDiscard method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_Discard.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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveCollectionsClient().BeginDiscard(ctx, "rg1", "movecollection1", &armresourcemover.MoveCollectionsClientBeginDiscardOptions{Body: &armresourcemover.DiscardRequest{ MoveResources: []*string{ to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")}, ValidateOnly: to.Ptr(false), }, }) 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveCollectionsClient) BeginInitiateMove ¶
func (client *MoveCollectionsClient) BeginInitiateMove(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientBeginInitiateMoveOptions) (*runtime.Poller[MoveCollectionsClientInitiateMoveResponse], error)
BeginInitiateMove - Moves the set of resources included in the request body. The move operation is triggered after the moveResources are in the moveState 'MovePending' or 'MoveFailed', on a successful completion the moveResource moveState do a transition to CommitPending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientBeginInitiateMoveOptions contains the optional parameters for the MoveCollectionsClient.BeginInitiateMove method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_InitiateMove.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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveCollectionsClient().BeginInitiateMove(ctx, "rg1", "movecollection1", &armresourcemover.MoveCollectionsClientBeginInitiateMoveOptions{Body: &armresourcemover.ResourceMoveRequest{ MoveResources: []*string{ to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")}, ValidateOnly: to.Ptr(false), }, }) 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveCollectionsClient) BeginPrepare ¶
func (client *MoveCollectionsClient) BeginPrepare(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientBeginPrepareOptions) (*runtime.Poller[MoveCollectionsClientPrepareResponse], error)
BeginPrepare - Initiates prepare for the set of resources included in the request body. The prepare operation is on the moveResources that are in the moveState 'PreparePending' or 'PrepareFailed', on a successful completion the moveResource moveState do a transition to MovePending. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientBeginPrepareOptions contains the optional parameters for the MoveCollectionsClient.BeginPrepare method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_Prepare.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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveCollectionsClient().BeginPrepare(ctx, "rg1", "movecollection1", &armresourcemover.MoveCollectionsClientBeginPrepareOptions{Body: &armresourcemover.PrepareRequest{ MoveResources: []*string{ to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1")}, ValidateOnly: to.Ptr(false), }, }) 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveCollectionsClient) BeginResolveDependencies ¶
func (client *MoveCollectionsClient) BeginResolveDependencies(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientBeginResolveDependenciesOptions) (*runtime.Poller[MoveCollectionsClientResolveDependenciesResponse], error)
BeginResolveDependencies - Computes, resolves and validate the dependencies of the moveResources in the move collection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientBeginResolveDependenciesOptions contains the optional parameters for the MoveCollectionsClient.BeginResolveDependencies method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_ResolveDependencies.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveCollectionsClient().BeginResolveDependencies(ctx, "rg1", "movecollection1", 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveCollectionsClient) Create ¶
func (client *MoveCollectionsClient) Create(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientCreateOptions) (MoveCollectionsClientCreateResponse, error)
Create - Creates or updates a move collection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientCreateOptions contains the optional parameters for the MoveCollectionsClient.Create method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMoveCollectionsClient().Create(ctx, "rg1", "movecollection1", &armresourcemover.MoveCollectionsClientCreateOptions{Body: &armresourcemover.MoveCollection{ Identity: &armresourcemover.Identity{ Type: to.Ptr(armresourcemover.ResourceIdentityTypeSystemAssigned), }, Location: to.Ptr("eastus2"), Properties: &armresourcemover.MoveCollectionProperties{ MoveType: to.Ptr(armresourcemover.MoveTypeRegionToRegion), SourceRegion: to.Ptr("eastus"), TargetRegion: to.Ptr("westus"), }, }, }) 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.MoveCollection = armresourcemover.MoveCollection{ // Name: to.Ptr("movecollection1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1"), // Identity: &armresourcemover.Identity{ // Type: to.Ptr(armresourcemover.ResourceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("7488fa50-1c8e-42c4-a117-38c8d05d8b72"), // TenantID: to.Ptr("cc7e5736-dbba-4059-a621-664eab9c1d80"), // }, // Location: to.Ptr("United States"), // Properties: &armresourcemover.MoveCollectionProperties{ // ProvisioningState: to.Ptr(armresourcemover.ProvisioningStateSucceeded), // SourceRegion: to.Ptr("eastus"), // TargetRegion: to.Ptr("westus"), // Version: to.Ptr("V1"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-29T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-29T15:06:54.275Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // } }
Output:
func (*MoveCollectionsClient) Get ¶
func (client *MoveCollectionsClient) Get(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientGetOptions) (MoveCollectionsClientGetResponse, error)
Get - Gets the move collection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientGetOptions contains the optional parameters for the MoveCollectionsClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMoveCollectionsClient().Get(ctx, "rg1", "movecollection1", 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.MoveCollection = armresourcemover.MoveCollection{ // Name: to.Ptr("movecollection1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1"), // Identity: &armresourcemover.Identity{ // Type: to.Ptr(armresourcemover.ResourceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("7488fa50-1c8e-42c4-a117-38c8d05d8b72"), // TenantID: to.Ptr("cc7e5736-dbba-4059-a621-664eab9c1d80"), // }, // Location: to.Ptr("United States"), // Properties: &armresourcemover.MoveCollectionProperties{ // MoveType: to.Ptr(armresourcemover.MoveTypeRegionToRegion), // ProvisioningState: to.Ptr(armresourcemover.ProvisioningStateSucceeded), // SourceRegion: to.Ptr("eastus"), // TargetRegion: to.Ptr("westus"), // Version: to.Ptr("V1"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-01T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-27T17:16:24.364Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // } }
Output:
func (*MoveCollectionsClient) ListRequiredFor ¶
func (client *MoveCollectionsClient) ListRequiredFor(ctx context.Context, resourceGroupName string, moveCollectionName string, sourceID string, options *MoveCollectionsClientListRequiredForOptions) (MoveCollectionsClientListRequiredForResponse, error)
ListRequiredFor - List of the move resources for which an arm resource is required for. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- sourceID - The sourceId for which the api is invoked.
- options - MoveCollectionsClientListRequiredForOptions contains the optional parameters for the MoveCollectionsClient.ListRequiredFor method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/RequiredFor_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMoveCollectionsClient().ListRequiredFor(ctx, "rg1", "movecollection1", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/nic1", 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.RequiredForResourcesCollection = armresourcemover.RequiredForResourcesCollection{ // SourceIDs: []*string{ // to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1")}, // } }
Output:
func (*MoveCollectionsClient) NewListMoveCollectionsByResourceGroupPager ¶
func (client *MoveCollectionsClient) NewListMoveCollectionsByResourceGroupPager(resourceGroupName string, options *MoveCollectionsClientListMoveCollectionsByResourceGroupOptions) *runtime.Pager[MoveCollectionsClientListMoveCollectionsByResourceGroupResponse]
NewListMoveCollectionsByResourceGroupPager - Get all the Move Collections in the resource group.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- options - MoveCollectionsClientListMoveCollectionsByResourceGroupOptions contains the optional parameters for the MoveCollectionsClient.NewListMoveCollectionsByResourceGroupPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_ListMoveCollectionsByResourceGroup.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewMoveCollectionsClient().NewListMoveCollectionsByResourceGroupPager("rg1", 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.MoveCollectionResultList = armresourcemover.MoveCollectionResultList{ // Value: []*armresourcemover.MoveCollection{ // { // Name: to.Ptr("movecollection1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1"), // Identity: &armresourcemover.Identity{ // Type: to.Ptr(armresourcemover.ResourceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("7488fa50-1c8e-42c4-a117-38c8d05d8b72"), // TenantID: to.Ptr("cc7e5736-dbba-4059-a621-664eab9c1d80"), // }, // Location: to.Ptr("United States"), // Properties: &armresourcemover.MoveCollectionProperties{ // MoveType: to.Ptr(armresourcemover.MoveTypeRegionToRegion), // ProvisioningState: to.Ptr(armresourcemover.ProvisioningStateSucceeded), // SourceRegion: to.Ptr("eastus"), // TargetRegion: to.Ptr("westus"), // Version: to.Ptr("V1"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-29T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-29T15:06:54.275Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // }}, // } } }
Output:
func (*MoveCollectionsClient) NewListMoveCollectionsBySubscriptionPager ¶
func (client *MoveCollectionsClient) NewListMoveCollectionsBySubscriptionPager(options *MoveCollectionsClientListMoveCollectionsBySubscriptionOptions) *runtime.Pager[MoveCollectionsClientListMoveCollectionsBySubscriptionResponse]
NewListMoveCollectionsBySubscriptionPager - Get all the Move Collections in the subscription.
Generated from API version 2023-08-01
- options - MoveCollectionsClientListMoveCollectionsBySubscriptionOptions contains the optional parameters for the MoveCollectionsClient.NewListMoveCollectionsBySubscriptionPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_ListMoveCollectionsBySubscription.json
package main import ( "context" "log" "github.com/Azure/azure-sdk-for-go/sdk/azidentity" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewMoveCollectionsClient().NewListMoveCollectionsBySubscriptionPager(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.MoveCollectionResultList = armresourcemover.MoveCollectionResultList{ // Value: []*armresourcemover.MoveCollection{ // { // Name: to.Ptr("movecollection1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1"), // Identity: &armresourcemover.Identity{ // Type: to.Ptr(armresourcemover.ResourceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("7488fa50-1c8e-42c4-a117-38c8d05d8b72"), // TenantID: to.Ptr("cc7e5736-dbba-4059-a621-664eab9c1d80"), // }, // Location: to.Ptr("United States"), // Properties: &armresourcemover.MoveCollectionProperties{ // MoveType: to.Ptr(armresourcemover.MoveTypeRegionToRegion), // ProvisioningState: to.Ptr(armresourcemover.ProvisioningStateSucceeded), // SourceRegion: to.Ptr("eastus"), // TargetRegion: to.Ptr("westus"), // Version: to.Ptr("V1"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-29T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-29T15:06:54.275Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // }}, // } } }
Output:
func (*MoveCollectionsClient) Update ¶
func (client *MoveCollectionsClient) Update(ctx context.Context, resourceGroupName string, moveCollectionName string, options *MoveCollectionsClientUpdateOptions) (MoveCollectionsClientUpdateResponse, error)
Update - Updates a move collection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveCollectionsClientUpdateOptions contains the optional parameters for the MoveCollectionsClient.Update method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveCollections_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMoveCollectionsClient().Update(ctx, "rg1", "movecollection1", &armresourcemover.MoveCollectionsClientUpdateOptions{Body: &armresourcemover.UpdateMoveCollectionRequest{ Identity: &armresourcemover.Identity{ Type: to.Ptr(armresourcemover.ResourceIdentityTypeSystemAssigned), }, Tags: map[string]*string{ "key1": to.Ptr("mc1"), }, }, }) 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.MoveCollection = armresourcemover.MoveCollection{ // Name: to.Ptr("movecollection1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1"), // Identity: &armresourcemover.Identity{ // Type: to.Ptr(armresourcemover.ResourceIdentityTypeSystemAssigned), // PrincipalID: to.Ptr("7488fa50-1c8e-42c4-a117-38c8d05d8b72"), // TenantID: to.Ptr("cc7e5736-dbba-4059-a621-664eab9c1d80"), // }, // Location: to.Ptr("United States"), // Properties: &armresourcemover.MoveCollectionProperties{ // MoveType: to.Ptr(armresourcemover.MoveTypeRegionToRegion), // ProvisioningState: to.Ptr(armresourcemover.ProvisioningStateSucceeded), // SourceRegion: to.Ptr("eastus"), // TargetRegion: to.Ptr("westus"), // Version: to.Ptr("V1"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-01T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-27T17:16:24.364Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // } }
Output:
type MoveCollectionsClientBeginBulkRemoveOptions ¶
type MoveCollectionsClientBeginBulkRemoveOptions struct { Body *BulkRemoveRequest // Resumes the LRO from the provided token. ResumeToken string }
MoveCollectionsClientBeginBulkRemoveOptions contains the optional parameters for the MoveCollectionsClient.BeginBulkRemove method.
type MoveCollectionsClientBeginCommitOptions ¶
type MoveCollectionsClientBeginCommitOptions struct { Body *CommitRequest // Resumes the LRO from the provided token. ResumeToken string }
MoveCollectionsClientBeginCommitOptions contains the optional parameters for the MoveCollectionsClient.BeginCommit method.
type MoveCollectionsClientBeginDeleteOptions ¶
type MoveCollectionsClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
MoveCollectionsClientBeginDeleteOptions contains the optional parameters for the MoveCollectionsClient.BeginDelete method.
type MoveCollectionsClientBeginDiscardOptions ¶
type MoveCollectionsClientBeginDiscardOptions struct { Body *DiscardRequest // Resumes the LRO from the provided token. ResumeToken string }
MoveCollectionsClientBeginDiscardOptions contains the optional parameters for the MoveCollectionsClient.BeginDiscard method.
type MoveCollectionsClientBeginInitiateMoveOptions ¶
type MoveCollectionsClientBeginInitiateMoveOptions struct { Body *ResourceMoveRequest // Resumes the LRO from the provided token. ResumeToken string }
MoveCollectionsClientBeginInitiateMoveOptions contains the optional parameters for the MoveCollectionsClient.BeginInitiateMove method.
type MoveCollectionsClientBeginPrepareOptions ¶
type MoveCollectionsClientBeginPrepareOptions struct { Body *PrepareRequest // Resumes the LRO from the provided token. ResumeToken string }
MoveCollectionsClientBeginPrepareOptions contains the optional parameters for the MoveCollectionsClient.BeginPrepare method.
type MoveCollectionsClientBeginResolveDependenciesOptions ¶
type MoveCollectionsClientBeginResolveDependenciesOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
MoveCollectionsClientBeginResolveDependenciesOptions contains the optional parameters for the MoveCollectionsClient.BeginResolveDependencies method.
type MoveCollectionsClientBulkRemoveResponse ¶
type MoveCollectionsClientBulkRemoveResponse struct { // Operation status REST resource. OperationStatus }
MoveCollectionsClientBulkRemoveResponse contains the response from method MoveCollectionsClient.BeginBulkRemove.
type MoveCollectionsClientCommitResponse ¶
type MoveCollectionsClientCommitResponse struct { // Operation status REST resource. OperationStatus }
MoveCollectionsClientCommitResponse contains the response from method MoveCollectionsClient.BeginCommit.
type MoveCollectionsClientCreateOptions ¶
type MoveCollectionsClientCreateOptions struct {
Body *MoveCollection
}
MoveCollectionsClientCreateOptions contains the optional parameters for the MoveCollectionsClient.Create method.
type MoveCollectionsClientCreateResponse ¶
type MoveCollectionsClientCreateResponse struct { // Define the move collection. MoveCollection }
MoveCollectionsClientCreateResponse contains the response from method MoveCollectionsClient.Create.
type MoveCollectionsClientDeleteResponse ¶
type MoveCollectionsClientDeleteResponse struct { // Operation status REST resource. OperationStatus }
MoveCollectionsClientDeleteResponse contains the response from method MoveCollectionsClient.BeginDelete.
type MoveCollectionsClientDiscardResponse ¶
type MoveCollectionsClientDiscardResponse struct { // Operation status REST resource. OperationStatus }
MoveCollectionsClientDiscardResponse contains the response from method MoveCollectionsClient.BeginDiscard.
type MoveCollectionsClientGetOptions ¶
type MoveCollectionsClientGetOptions struct { }
MoveCollectionsClientGetOptions contains the optional parameters for the MoveCollectionsClient.Get method.
type MoveCollectionsClientGetResponse ¶
type MoveCollectionsClientGetResponse struct { // Define the move collection. MoveCollection }
MoveCollectionsClientGetResponse contains the response from method MoveCollectionsClient.Get.
type MoveCollectionsClientInitiateMoveResponse ¶
type MoveCollectionsClientInitiateMoveResponse struct { // Operation status REST resource. OperationStatus }
MoveCollectionsClientInitiateMoveResponse contains the response from method MoveCollectionsClient.BeginInitiateMove.
type MoveCollectionsClientListMoveCollectionsByResourceGroupOptions ¶
type MoveCollectionsClientListMoveCollectionsByResourceGroupOptions struct { }
MoveCollectionsClientListMoveCollectionsByResourceGroupOptions contains the optional parameters for the MoveCollectionsClient.NewListMoveCollectionsByResourceGroupPager method.
type MoveCollectionsClientListMoveCollectionsByResourceGroupResponse ¶
type MoveCollectionsClientListMoveCollectionsByResourceGroupResponse struct { // Defines the collection of move collections. MoveCollectionResultList }
MoveCollectionsClientListMoveCollectionsByResourceGroupResponse contains the response from method MoveCollectionsClient.NewListMoveCollectionsByResourceGroupPager.
type MoveCollectionsClientListMoveCollectionsBySubscriptionOptions ¶
type MoveCollectionsClientListMoveCollectionsBySubscriptionOptions struct { }
MoveCollectionsClientListMoveCollectionsBySubscriptionOptions contains the optional parameters for the MoveCollectionsClient.NewListMoveCollectionsBySubscriptionPager method.
type MoveCollectionsClientListMoveCollectionsBySubscriptionResponse ¶
type MoveCollectionsClientListMoveCollectionsBySubscriptionResponse struct { // Defines the collection of move collections. MoveCollectionResultList }
MoveCollectionsClientListMoveCollectionsBySubscriptionResponse contains the response from method MoveCollectionsClient.NewListMoveCollectionsBySubscriptionPager.
type MoveCollectionsClientListRequiredForOptions ¶
type MoveCollectionsClientListRequiredForOptions struct { }
MoveCollectionsClientListRequiredForOptions contains the optional parameters for the MoveCollectionsClient.ListRequiredFor method.
type MoveCollectionsClientListRequiredForResponse ¶
type MoveCollectionsClientListRequiredForResponse struct { // Required for resources collection. RequiredForResourcesCollection }
MoveCollectionsClientListRequiredForResponse contains the response from method MoveCollectionsClient.ListRequiredFor.
type MoveCollectionsClientPrepareResponse ¶
type MoveCollectionsClientPrepareResponse struct { // Operation status REST resource. OperationStatus }
MoveCollectionsClientPrepareResponse contains the response from method MoveCollectionsClient.BeginPrepare.
type MoveCollectionsClientResolveDependenciesResponse ¶
type MoveCollectionsClientResolveDependenciesResponse struct { // Operation status REST resource. OperationStatus }
MoveCollectionsClientResolveDependenciesResponse contains the response from method MoveCollectionsClient.BeginResolveDependencies.
type MoveCollectionsClientUpdateOptions ¶
type MoveCollectionsClientUpdateOptions struct {
Body *UpdateMoveCollectionRequest
}
MoveCollectionsClientUpdateOptions contains the optional parameters for the MoveCollectionsClient.Update method.
type MoveCollectionsClientUpdateResponse ¶
type MoveCollectionsClientUpdateResponse struct { // Define the move collection. MoveCollection }
MoveCollectionsClientUpdateResponse contains the response from method MoveCollectionsClient.Update.
type MoveErrorInfo ¶
type MoveErrorInfo struct { // READ-ONLY; The affected move resources. MoveResources []*AffectedMoveResource }
MoveErrorInfo - The move custom error info.
func (MoveErrorInfo) MarshalJSON ¶
func (m MoveErrorInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveErrorInfo.
func (*MoveErrorInfo) UnmarshalJSON ¶
func (m *MoveErrorInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveErrorInfo.
type MoveResource ¶
type MoveResource struct { // Defines the move resource properties. Properties *MoveResourceProperties // READ-ONLY; Fully qualified resource Id for the resource. ID *string // READ-ONLY; The name of the resource Name *string // READ-ONLY; Metadata pertaining to creation and last modification of the resource. SystemData *SystemData // READ-ONLY; The type of the resource. Type *string }
MoveResource - Defines the move resource.
func (MoveResource) MarshalJSON ¶
func (m MoveResource) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResource.
func (*MoveResource) UnmarshalJSON ¶
func (m *MoveResource) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResource.
type MoveResourceCollection ¶
type MoveResourceCollection struct { // Gets the value of next link. NextLink *string // Gets or sets the list of summary items and the field on which summary is done. SummaryCollection *SummaryCollection // Gets the list of move resources. Value []*MoveResource // READ-ONLY; Gets the total count. TotalCount *int64 }
MoveResourceCollection - Defines the collection of move resources.
func (MoveResourceCollection) MarshalJSON ¶
func (m MoveResourceCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceCollection.
func (*MoveResourceCollection) UnmarshalJSON ¶
func (m *MoveResourceCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceCollection.
type MoveResourceDependency ¶
type MoveResourceDependency struct { // Defines the properties for automatic resolution. AutomaticResolution *AutomaticResolutionProperties // Defines the dependency type. DependencyType *DependencyType // Gets the source ARM ID of the dependent resource. ID *string // Gets or sets a value indicating whether the dependency is optional. IsOptional *string // Defines the properties for manual resolution. ManualResolution *ManualResolutionProperties // Gets the dependency resolution status. ResolutionStatus *string // Defines the resolution type. ResolutionType *ResolutionType }
MoveResourceDependency - Defines the dependency of the move resource.
func (MoveResourceDependency) MarshalJSON ¶
func (m MoveResourceDependency) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceDependency.
func (*MoveResourceDependency) UnmarshalJSON ¶
func (m *MoveResourceDependency) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceDependency.
type MoveResourceDependencyOverride ¶
type MoveResourceDependencyOverride struct { // Gets or sets the ARM ID of the dependent resource. ID *string // Gets or sets the resource ARM id of either the MoveResource or the resource ARM ID of the dependent resource. TargetID *string }
MoveResourceDependencyOverride - Defines the dependency override of the move resource.
func (MoveResourceDependencyOverride) MarshalJSON ¶
func (m MoveResourceDependencyOverride) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceDependencyOverride.
func (*MoveResourceDependencyOverride) UnmarshalJSON ¶
func (m *MoveResourceDependencyOverride) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceDependencyOverride.
type MoveResourceError ¶
type MoveResourceError struct { // The move resource error body. Properties *MoveResourceErrorBody }
MoveResourceError - An error response from the azure resource mover service.
func (MoveResourceError) MarshalJSON ¶
func (m MoveResourceError) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceError.
func (*MoveResourceError) UnmarshalJSON ¶
func (m *MoveResourceError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceError.
type MoveResourceErrorBody ¶
type MoveResourceErrorBody struct { // READ-ONLY; An identifier for the error. Codes are invariant and are intended to be consumed programmatically. Code *string // READ-ONLY; A list of additional details about the error. Details []*MoveResourceErrorBody // READ-ONLY; A message describing the error, intended to be suitable for display in a user interface. Message *string // READ-ONLY; The target of the particular error. For example, the name of the property in error. Target *string }
MoveResourceErrorBody - An error response from the Azure Migrate service.
func (MoveResourceErrorBody) MarshalJSON ¶
func (m MoveResourceErrorBody) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceErrorBody.
func (*MoveResourceErrorBody) UnmarshalJSON ¶
func (m *MoveResourceErrorBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceErrorBody.
type MoveResourceFilter ¶
type MoveResourceFilter struct {
Properties *MoveResourceFilterProperties
}
MoveResourceFilter - Move resource filter.
func (MoveResourceFilter) MarshalJSON ¶
func (m MoveResourceFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceFilter.
func (*MoveResourceFilter) UnmarshalJSON ¶
func (m *MoveResourceFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceFilter.
type MoveResourceFilterProperties ¶
type MoveResourceFilterProperties struct { // The provisioning state. ProvisioningState *string }
func (MoveResourceFilterProperties) MarshalJSON ¶
func (m MoveResourceFilterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceFilterProperties.
func (*MoveResourceFilterProperties) UnmarshalJSON ¶
func (m *MoveResourceFilterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceFilterProperties.
type MoveResourceInputType ¶
type MoveResourceInputType string
MoveResourceInputType - Defines the move resource input type.
const ( MoveResourceInputTypeMoveResourceID MoveResourceInputType = "MoveResourceId" MoveResourceInputTypeMoveResourceSourceID MoveResourceInputType = "MoveResourceSourceId" )
func PossibleMoveResourceInputTypeValues ¶
func PossibleMoveResourceInputTypeValues() []MoveResourceInputType
PossibleMoveResourceInputTypeValues returns the possible values for the MoveResourceInputType const type.
type MoveResourceProperties ¶
type MoveResourceProperties struct { // REQUIRED; Gets or sets the Source ARM Id of the resource. SourceID *string // Gets or sets the move resource dependencies overrides. DependsOnOverrides []*MoveResourceDependencyOverride // Gets or sets the existing target ARM Id of the resource. ExistingTargetID *string // Gets or sets the resource settings. ResourceSettings ResourceSettingsClassification // READ-ONLY; Gets or sets the move resource dependencies. DependsOn []*MoveResourceDependency // READ-ONLY; Defines the move resource errors. Errors *MoveResourcePropertiesErrors // READ-ONLY; Gets a value indicating whether the resolve action is required over the move collection. IsResolveRequired *bool // READ-ONLY; Defines the move resource status. MoveStatus *MoveResourcePropertiesMoveStatus // READ-ONLY; Defines the provisioning states. ProvisioningState *ProvisioningState // READ-ONLY; Gets or sets the source resource settings. SourceResourceSettings ResourceSettingsClassification // READ-ONLY; Gets or sets the Target ARM Id of the resource. TargetID *string }
MoveResourceProperties - Defines the move resource properties.
func (MoveResourceProperties) MarshalJSON ¶
func (m MoveResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourceProperties.
func (*MoveResourceProperties) UnmarshalJSON ¶
func (m *MoveResourceProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourceProperties.
type MoveResourcePropertiesErrors ¶
type MoveResourcePropertiesErrors struct { // The move resource error body. Properties *MoveResourceErrorBody }
MoveResourcePropertiesErrors - Defines the move resource errors.
func (MoveResourcePropertiesErrors) MarshalJSON ¶
func (m MoveResourcePropertiesErrors) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourcePropertiesErrors.
func (*MoveResourcePropertiesErrors) UnmarshalJSON ¶
func (m *MoveResourcePropertiesErrors) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourcePropertiesErrors.
type MoveResourcePropertiesMoveStatus ¶
type MoveResourcePropertiesMoveStatus struct { // An error response from the azure resource mover service. Errors *MoveResourceError // Defines the job status. JobStatus *JobStatus // READ-ONLY; Defines the MoveResource states. MoveState *MoveState }
MoveResourcePropertiesMoveStatus - Defines the move resource status.
func (MoveResourcePropertiesMoveStatus) MarshalJSON ¶
func (m MoveResourcePropertiesMoveStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type MoveResourcePropertiesMoveStatus.
func (*MoveResourcePropertiesMoveStatus) UnmarshalJSON ¶
func (m *MoveResourcePropertiesMoveStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type MoveResourcePropertiesMoveStatus.
type MoveResourcesClient ¶
type MoveResourcesClient struct {
// contains filtered or unexported fields
}
MoveResourcesClient contains the methods for the MoveResources group. Don't use this type directly, use NewMoveResourcesClient() instead.
func NewMoveResourcesClient ¶
func NewMoveResourcesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*MoveResourcesClient, error)
NewMoveResourcesClient creates a new instance of MoveResourcesClient with the specified values.
- subscriptionID - The Subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*MoveResourcesClient) BeginCreate ¶
func (client *MoveResourcesClient) BeginCreate(ctx context.Context, resourceGroupName string, moveCollectionName string, moveResourceName string, options *MoveResourcesClientBeginCreateOptions) (*runtime.Poller[MoveResourcesClientCreateResponse], error)
BeginCreate - Creates or updates a Move Resource in the move collection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- moveResourceName - The Move Resource Name.
- options - MoveResourcesClientBeginCreateOptions contains the optional parameters for the MoveResourcesClient.BeginCreate method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveResourcesClient().BeginCreate(ctx, "rg1", "movecollection1", "moveresourcename1", &armresourcemover.MoveResourcesClientBeginCreateOptions{Body: &armresourcemover.MoveResource{ Properties: &armresourcemover.MoveResourceProperties{ DependsOnOverrides: []*armresourcemover.MoveResourceDependencyOverride{ { ID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"), TargetID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"), }}, ResourceSettings: &armresourcemover.VirtualMachineResourceSettings{ ResourceType: to.Ptr("Microsoft.Compute/virtualMachines"), TargetResourceName: to.Ptr("westusvm1"), TargetAvailabilitySetID: to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/availabilitySets/avset1"), TargetAvailabilityZone: to.Ptr(armresourcemover.TargetAvailabilityZoneTwo), UserManagedIdentities: []*string{ to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1")}, }, SourceID: to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/virtualMachines/eastusvm1"), }, }, }) 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.MoveResource = armresourcemover.MoveResource{ // Name: to.Ptr("moveresourcename1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections/MoveResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"), // Properties: &armresourcemover.MoveResourceProperties{ // DependsOn: []*armresourcemover.MoveResourceDependency{ // { // ID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"), // ResolutionStatus: to.Ptr("Unresolved"), // ResolutionType: to.Ptr(armresourcemover.ResolutionTypeAutomatic), // }}, // DependsOnOverrides: []*armresourcemover.MoveResourceDependencyOverride{ // { // ID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"), // TargetID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westusRG/providers/Microsoft.Network/networkInterfaces/eastusvm140"), // }}, // ProvisioningState: to.Ptr(armresourcemover.ProvisioningStateSucceeded), // ResourceSettings: &armresourcemover.VirtualMachineResourceSettings{ // ResourceType: to.Ptr("Microsoft.Compute/virtualMachines"), // TargetResourceGroupName: to.Ptr("rg1"), // TargetResourceName: to.Ptr("westusvm1"), // TargetAvailabilitySetID: to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/availabilitySets/avset1"), // TargetAvailabilityZone: to.Ptr(armresourcemover.TargetAvailabilityZoneTwo), // UserManagedIdentities: []*string{ // to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1")}, // }, // SourceID: to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.Compute/virtualMachines/eastusvm1"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-01T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-27T17:16:24.364Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // } }
Output:
func (*MoveResourcesClient) BeginDelete ¶
func (client *MoveResourcesClient) BeginDelete(ctx context.Context, resourceGroupName string, moveCollectionName string, moveResourceName string, options *MoveResourcesClientBeginDeleteOptions) (*runtime.Poller[MoveResourcesClientDeleteResponse], error)
BeginDelete - Deletes a Move Resource from the move collection. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- moveResourceName - The Move Resource Name.
- options - MoveResourcesClientBeginDeleteOptions contains the optional parameters for the MoveResourcesClient.BeginDelete method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } poller, err := clientFactory.NewMoveResourcesClient().BeginDelete(ctx, "rg1", "movecollection1", "moveresourcename1", 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.OperationStatus = armresourcemover.OperationStatus{ // Name: to.Ptr("1e4193c3-206e-4916-b124-1da16175eb0e"), // EndTime: to.Ptr("6/17/2020 6:45:56 AM"), // ID: to.Ptr("/subscriptions/e80eb9fa-c996-4435-aa32-5af6f3d3077c/resourceGroups/RegionMoveRG-southcentralus-southeastasia/providers/Microsoft.Migrate/MoveCollections/MoveCollection-southcentralus-southeastasia/operations/1e4193c3-206e-4916-b124-1da16175eb0e"), // Properties: map[string]any{ // }, // StartTime: to.Ptr("6/17/2020 6:45:55 AM"), // Status: to.Ptr("Succeeded"), // } }
Output:
func (*MoveResourcesClient) Get ¶
func (client *MoveResourcesClient) Get(ctx context.Context, resourceGroupName string, moveCollectionName string, moveResourceName string, options *MoveResourcesClientGetOptions) (MoveResourcesClientGetResponse, error)
Get - Gets the Move Resource. If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- moveResourceName - The Move Resource Name.
- options - MoveResourcesClientGetOptions contains the optional parameters for the MoveResourcesClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewMoveResourcesClient().Get(ctx, "rg1", "movecollection1", "moveresourcename1", 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.MoveResource = armresourcemover.MoveResource{ // Name: to.Ptr("moveresourcename1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections/MoveResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"), // Properties: &armresourcemover.MoveResourceProperties{ // DependsOn: []*armresourcemover.MoveResourceDependency{ // { // ID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140"), // IsOptional: to.Ptr("false"), // ResolutionStatus: to.Ptr("Unresolved"), // ResolutionType: to.Ptr(armresourcemover.ResolutionTypeAutomatic), // }}, // ResourceSettings: &armresourcemover.VirtualMachineResourceSettings{ // ResourceType: to.Ptr("Microsoft.Compute/virtualMachines"), // TargetResourceGroupName: to.Ptr("rg2"), // TargetResourceName: to.Ptr("eastusvm1"), // UserManagedIdentities: []*string{ // to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1")}, // }, // SourceID: to.Ptr("/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1"), // SourceResourceSettings: &armresourcemover.VirtualMachineResourceSettings{ // ResourceType: to.Ptr("Microsoft.Compute/virtualMachines"), // TargetResourceGroupName: to.Ptr("rg1"), // TargetResourceName: to.Ptr("eastusvm1"), // TargetAvailabilityZone: to.Ptr(armresourcemover.TargetAvailabilityZoneTwo), // TargetVMSize: to.Ptr("Standard_B2s"), // UserManagedIdentities: []*string{ // to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1")}, // }, // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-01T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-27T17:16:24.364Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // } }
Output:
func (*MoveResourcesClient) NewListPager ¶
func (client *MoveResourcesClient) NewListPager(resourceGroupName string, moveCollectionName string, options *MoveResourcesClientListOptions) *runtime.Pager[MoveResourcesClientListResponse]
NewListPager - Lists the Move Resources in the move collection.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - MoveResourcesClientListOptions contains the optional parameters for the MoveResourcesClient.NewListPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/MoveResources_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewMoveResourcesClient().NewListPager("rg1", "movecollection1", &armresourcemover.MoveResourcesClientListOptions{Filter: nil}) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.MoveResourceCollection = armresourcemover.MoveResourceCollection{ // Value: []*armresourcemover.MoveResource{ // { // Name: to.Ptr("moveresourcename1"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections/MoveResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource1"), // Properties: &armresourcemover.MoveResourceProperties{ // DependsOn: []*armresourcemover.MoveResourceDependency{ // { // AutomaticResolution: &armresourcemover.AutomaticResolutionProperties{ // MoveResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource2"), // }, // ID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140"), // ResolutionStatus: to.Ptr("Resolved"), // ResolutionType: to.Ptr(armresourcemover.ResolutionTypeAutomatic), // }, // { // AutomaticResolution: &armresourcemover.AutomaticResolutionProperties{ // MoveResourceID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource3"), // }, // ID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/EASTUS/providers/Microsoft.Compute/disks/eastusvm1_OsDisk_1_a88a2f0e8cf44fb3af24aa0f27101f83"), // ResolutionStatus: to.Ptr("Resolved"), // ResolutionType: to.Ptr(armresourcemover.ResolutionTypeAutomatic), // }}, // ResourceSettings: &armresourcemover.VirtualMachineResourceSettings{ // ResourceType: to.Ptr("Microsoft.Compute/virtualMachines"), // TargetResourceGroupName: to.Ptr("rg2"), // TargetResourceName: to.Ptr("eastusvm1"), // UserManagedIdentities: []*string{ // to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1")}, // }, // SourceID: to.Ptr("/subscriptions/subid/resourceGroups/eastus/providers/Microsoft.Compute/virtualMachines/eastusvm1"), // SourceResourceSettings: &armresourcemover.VirtualMachineResourceSettings{ // ResourceType: to.Ptr("Microsoft.Compute/virtualMachines"), // TargetResourceGroupName: to.Ptr("rg1"), // TargetResourceName: to.Ptr("eastusvm1"), // TargetAvailabilityZone: to.Ptr(armresourcemover.TargetAvailabilityZoneTwo), // TargetVMSize: to.Ptr("Standard_B2s"), // UserManagedIdentities: []*string{ // to.Ptr("/subscriptions/subid/resourceGroups/eastusRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/umi1")}, // }, // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-01T15:06:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-27T17:16:24.364Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // }, // { // Name: to.Ptr("moveresourcename2"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections/MoveResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource2"), // Properties: &armresourcemover.MoveResourceProperties{ // DependsOn: []*armresourcemover.MoveResourceDependency{ // { // ID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/virtualNetworks/eastus-vnet"), // ManualResolution: &armresourcemover.ManualResolutionProperties{ // TargetID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/westus/providers/Microsoft.Network/virtualNetworks/westus-vnet"), // }, // ResolutionStatus: to.Ptr("Resolved"), // ResolutionType: to.Ptr(armresourcemover.ResolutionTypeManual), // }}, // SourceID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/eastus/providers/Microsoft.Network/networkInterfaces/eastusvm140"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-02T15:10:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-02T17:16:24.364Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // }, // { // Name: to.Ptr("moveresourcename3"), // Type: to.Ptr("Microsoft.Migrate/MoveCollections/MoveResources"), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Migrate/MoveCollections/movecollection1/MoveResources/moveresource3"), // Properties: &armresourcemover.MoveResourceProperties{ // SourceID: to.Ptr("/subscriptions/c4488a3f-a7f7-4ad4-aa72-0e1f4d9c0756/resourceGroups/EASTUS/providers/Microsoft.Compute/disks/eastusvm1_OsDisk_1_a88a2f0e8cf44fb3af24aa0f27101f83"), // }, // SystemData: &armresourcemover.SystemData{ // CreatedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-02T18:05:54.275Z"); return t}()), // CreatedBy: to.Ptr("user@microsoft.com"), // CreatedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // LastModifiedAt: to.Ptr(func() time.Time { t, _ := time.Parse(time.RFC3339Nano, "2021-08-02T20:16:24.364Z"); return t}()), // LastModifiedBy: to.Ptr("user@microsoft.com"), // LastModifiedByType: to.Ptr(armresourcemover.CreatedByTypeUser), // }, // }}, // } } }
Output:
type MoveResourcesClientBeginCreateOptions ¶
type MoveResourcesClientBeginCreateOptions struct { Body *MoveResource // Resumes the LRO from the provided token. ResumeToken string }
MoveResourcesClientBeginCreateOptions contains the optional parameters for the MoveResourcesClient.BeginCreate method.
type MoveResourcesClientBeginDeleteOptions ¶
type MoveResourcesClientBeginDeleteOptions struct { // Resumes the LRO from the provided token. ResumeToken string }
MoveResourcesClientBeginDeleteOptions contains the optional parameters for the MoveResourcesClient.BeginDelete method.
type MoveResourcesClientCreateResponse ¶
type MoveResourcesClientCreateResponse struct { // Defines the move resource. MoveResource }
MoveResourcesClientCreateResponse contains the response from method MoveResourcesClient.BeginCreate.
type MoveResourcesClientDeleteResponse ¶
type MoveResourcesClientDeleteResponse struct { // Operation status REST resource. OperationStatus }
MoveResourcesClientDeleteResponse contains the response from method MoveResourcesClient.BeginDelete.
type MoveResourcesClientGetOptions ¶
type MoveResourcesClientGetOptions struct { }
MoveResourcesClientGetOptions contains the optional parameters for the MoveResourcesClient.Get method.
type MoveResourcesClientGetResponse ¶
type MoveResourcesClientGetResponse struct { // Defines the move resource. MoveResource }
MoveResourcesClientGetResponse contains the response from method MoveResourcesClient.Get.
type MoveResourcesClientListOptions ¶
type MoveResourcesClientListOptions struct { // The filter to apply on the operation. For example, you can use $filter=Properties/ProvisioningState eq 'Succeeded'. Filter *string }
MoveResourcesClientListOptions contains the optional parameters for the MoveResourcesClient.NewListPager method.
type MoveResourcesClientListResponse ¶
type MoveResourcesClientListResponse struct { // Defines the collection of move resources. MoveResourceCollection }
MoveResourcesClientListResponse contains the response from method MoveResourcesClient.NewListPager.
type MoveState ¶
type MoveState string
MoveState - Defines the MoveResource states.
const ( MoveStateAssignmentPending MoveState = "AssignmentPending" MoveStateCommitFailed MoveState = "CommitFailed" MoveStateCommitInProgress MoveState = "CommitInProgress" MoveStateCommitPending MoveState = "CommitPending" MoveStateCommitted MoveState = "Committed" MoveStateDeleteSourcePending MoveState = "DeleteSourcePending" MoveStateDiscardFailed MoveState = "DiscardFailed" MoveStateDiscardInProgress MoveState = "DiscardInProgress" MoveStateMoveFailed MoveState = "MoveFailed" MoveStateMoveInProgress MoveState = "MoveInProgress" MoveStateMovePending MoveState = "MovePending" MoveStatePrepareFailed MoveState = "PrepareFailed" MoveStatePrepareInProgress MoveState = "PrepareInProgress" MoveStatePreparePending MoveState = "PreparePending" MoveStateResourceMoveCompleted MoveState = "ResourceMoveCompleted" )
func PossibleMoveStateValues ¶
func PossibleMoveStateValues() []MoveState
PossibleMoveStateValues returns the possible values for the MoveState const type.
type MoveType ¶
type MoveType string
MoveType - Defines the MoveType.
func PossibleMoveTypeValues ¶
func PossibleMoveTypeValues() []MoveType
PossibleMoveTypeValues returns the possible values for the MoveType const type.
type NetworkInterfaceResourceSettings ¶
type NetworkInterfaceResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets a value indicating whether accelerated networking is enabled. EnableAcceleratedNetworking *bool // Gets or sets the IP configurations of the NIC. IPConfigurations []*NicIPConfigurationResourceSettings // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
NetworkInterfaceResourceSettings - Defines the network interface resource settings.
func (*NetworkInterfaceResourceSettings) GetResourceSettings ¶
func (n *NetworkInterfaceResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type NetworkInterfaceResourceSettings.
func (NetworkInterfaceResourceSettings) MarshalJSON ¶
func (n NetworkInterfaceResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkInterfaceResourceSettings.
func (*NetworkInterfaceResourceSettings) UnmarshalJSON ¶
func (n *NetworkInterfaceResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkInterfaceResourceSettings.
type NetworkSecurityGroupResourceSettings ¶
type NetworkSecurityGroupResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets Security rules of network security group. SecurityRules []*NsgSecurityRule // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
NetworkSecurityGroupResourceSettings - Defines the NSG resource settings.
func (*NetworkSecurityGroupResourceSettings) GetResourceSettings ¶
func (n *NetworkSecurityGroupResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type NetworkSecurityGroupResourceSettings.
func (NetworkSecurityGroupResourceSettings) MarshalJSON ¶
func (n NetworkSecurityGroupResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NetworkSecurityGroupResourceSettings.
func (*NetworkSecurityGroupResourceSettings) UnmarshalJSON ¶
func (n *NetworkSecurityGroupResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NetworkSecurityGroupResourceSettings.
type NicIPConfigurationResourceSettings ¶
type NicIPConfigurationResourceSettings struct { // Gets or sets the references of the load balancer backend address pools. LoadBalancerBackendAddressPools []*LoadBalancerBackendAddressPoolReference // Gets or sets the references of the load balancer NAT rules. LoadBalancerNatRules []*LoadBalancerNatRuleReference // Gets or sets the IP configuration name. Name *string // Gets or sets a value indicating whether this IP configuration is the primary. Primary *bool // Gets or sets the private IP address of the network interface IP Configuration. PrivateIPAddress *string // Gets or sets the private IP address allocation method. PrivateIPAllocationMethod *string // Defines reference to a public IP. PublicIP *PublicIPReference // Defines reference to subnet. Subnet *SubnetReference }
NicIPConfigurationResourceSettings - Defines NIC IP configuration properties.
func (NicIPConfigurationResourceSettings) MarshalJSON ¶
func (n NicIPConfigurationResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NicIPConfigurationResourceSettings.
func (*NicIPConfigurationResourceSettings) UnmarshalJSON ¶
func (n *NicIPConfigurationResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NicIPConfigurationResourceSettings.
type NsgReference ¶
type NsgReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. SourceArmResourceID *string }
NsgReference - Defines reference to NSG.
func (NsgReference) MarshalJSON ¶
func (n NsgReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NsgReference.
func (*NsgReference) UnmarshalJSON ¶
func (n *NsgReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NsgReference.
type NsgSecurityRule ¶
type NsgSecurityRule struct { // Gets or sets whether network traffic is allowed or denied. Possible values are “Allow” and “Deny”. Access *string // Gets or sets a description for this rule. Restricted to 140 chars. Description *string // Gets or sets destination address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default // tags such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be // used. DestinationAddressPrefix *string // Gets or sets Destination Port or Range. Integer or range between 0 and 65535. A “*” can also be used to match all ports. DestinationPortRange *string // Gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming // or outgoing traffic. Direction *string // Gets or sets the Security rule name. Name *string // Gets or sets the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each // rule in the collection. The lower the priority number, the higher the priority // of the rule. Priority *int32 // Gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(*). Protocol *string // Gets or sets source address prefix. CIDR or source IP range. A “*” can also be used to match all source IPs. Default tags // such as ‘VirtualNetwork’, ‘AzureLoadBalancer’ and ‘Internet’ can also be used. // If this is an ingress rule, specifies where network traffic originates from. SourceAddressPrefix *string // Gets or sets Source Port or Range. Integer or range between 0 and // 65535. A “*” can also be used to match all ports. SourcePortRange *string }
NsgSecurityRule - Security Rule data model for Network Security Groups.
func (NsgSecurityRule) MarshalJSON ¶
func (n NsgSecurityRule) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type NsgSecurityRule.
func (*NsgSecurityRule) UnmarshalJSON ¶
func (n *NsgSecurityRule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type NsgSecurityRule.
type OperationErrorAdditionalInfo ¶
type OperationErrorAdditionalInfo struct { // READ-ONLY; The operation error info. Info *MoveErrorInfo // READ-ONLY; The error type. Type *string }
OperationErrorAdditionalInfo - The operation error info.
func (OperationErrorAdditionalInfo) MarshalJSON ¶
func (o OperationErrorAdditionalInfo) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationErrorAdditionalInfo.
func (*OperationErrorAdditionalInfo) UnmarshalJSON ¶
func (o *OperationErrorAdditionalInfo) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationErrorAdditionalInfo.
type OperationStatus ¶
type OperationStatus struct { // READ-ONLY; End time. EndTime *string // READ-ONLY; Error stating all error details for the operation. Error *OperationStatusError // READ-ONLY; Resource Id. ID *string // READ-ONLY; Operation name. Name *string // READ-ONLY; Custom data. Properties any // READ-ONLY; Start time. StartTime *string // READ-ONLY; 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 - Operation status REST resource.
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 OperationStatusError ¶
type OperationStatusError struct { // READ-ONLY; The additional info. AdditionalInfo []*OperationErrorAdditionalInfo // READ-ONLY; The error code. Code *string // READ-ONLY; The error details. Details []*OperationStatusError // READ-ONLY; The error message. Message *string }
OperationStatusError - Class for operation status errors.
func (OperationStatusError) MarshalJSON ¶
func (o OperationStatusError) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationStatusError.
func (*OperationStatusError) UnmarshalJSON ¶
func (o *OperationStatusError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationStatusError.
type OperationsDiscovery ¶
type OperationsDiscovery struct { // Contains the localized display information for this particular operation / action. These value will be used by several // clients for (1) custom role definitions for RBAC; (2) complex query filters for // the event service; and (3) audit history / records for management operations. Display *Display // Indicates whether the operation is a data action IsDataAction *bool // Gets or sets Name of the API. The name of the operation being performed on this particular object. It should match the // action name that appears in RBAC / the event service. Examples of operations // include: // * Microsoft.Compute/virtualMachine/capture/action // * Microsoft.Compute/virtualMachine/restart/action // * Microsoft.Compute/virtualMachine/write // * Microsoft.Compute/virtualMachine/read // * Microsoft.Compute/virtualMachine/delete Each action should include, in order: (1) Resource Provider Namespace (2) Type // hierarchy for which the action applies (e.g. server/databases for a SQL Azure // database) (3) Read, Write, Action or Delete indicating which type applies. If it is a PUT/PATCH on a collection or named // value, Write should be used. If it is a GET, Read should be used. If it is a // DELETE, Delete should be used. If it is a POST, Action should be used. As a note: all resource providers would need to // include the "{Resource Provider Namespace}/register/action" operation in their // response. This API is used to register for their service, and should include details about the operation (e.g. a localized // name for the resource provider + any special considerations like PII // release). Name *string // Gets or sets Origin. The intended executor of the operation; governs the display of the operation in the RBAC UX and the // audit logs UX. Default value is "user,system". Origin *string // ClientDiscovery properties. Properties any }
OperationsDiscovery - Operations discovery class.
func (OperationsDiscovery) MarshalJSON ¶
func (o OperationsDiscovery) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationsDiscovery.
func (*OperationsDiscovery) UnmarshalJSON ¶
func (o *OperationsDiscovery) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDiscovery.
type OperationsDiscoveryClient ¶
type OperationsDiscoveryClient struct {
// contains filtered or unexported fields
}
OperationsDiscoveryClient contains the methods for the OperationsDiscovery group. Don't use this type directly, use NewOperationsDiscoveryClient() instead.
func NewOperationsDiscoveryClient ¶
func NewOperationsDiscoveryClient(credential azcore.TokenCredential, options *arm.ClientOptions) (*OperationsDiscoveryClient, error)
NewOperationsDiscoveryClient creates a new instance of OperationsDiscoveryClient with the specified values.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*OperationsDiscoveryClient) Get ¶
func (client *OperationsDiscoveryClient) Get(ctx context.Context, options *OperationsDiscoveryClientGetOptions) (OperationsDiscoveryClientGetResponse, error)
Get - If the operation fails it returns an *azcore.ResponseError type.
Generated from API version 2023-08-01
- options - OperationsDiscoveryClientGetOptions contains the optional parameters for the OperationsDiscoveryClient.Get method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/OperationsDiscovery_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } res, err := clientFactory.NewOperationsDiscoveryClient().Get(ctx, 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.OperationsDiscoveryCollection = armresourcemover.OperationsDiscoveryCollection{ // Value: []*armresourcemover.OperationsDiscovery{ // { // Name: to.Ptr("Read"), // Display: &armresourcemover.Display{ // Description: to.Ptr("Reads the move collection."), // Operation: to.Ptr("Read"), // Provider: to.Ptr("Microsoft.Migrate"), // Resource: to.Ptr("Microsoft.Migrate/moveCollections"), // }, // Origin: to.Ptr("user"), // }, // { // Name: to.Ptr("Write"), // Display: &armresourcemover.Display{ // Description: to.Ptr("Creates or updates a move collection."), // Operation: to.Ptr("Write"), // Provider: to.Ptr("Microsoft.Migrate"), // Resource: to.Ptr("Microsoft.Migrate/moveCollections"), // }, // Origin: to.Ptr("user"), // }}, // } }
Output:
type OperationsDiscoveryClientGetOptions ¶
type OperationsDiscoveryClientGetOptions struct { }
OperationsDiscoveryClientGetOptions contains the optional parameters for the OperationsDiscoveryClient.Get method.
type OperationsDiscoveryClientGetResponse ¶
type OperationsDiscoveryClientGetResponse struct { // Collection of ClientDiscovery details. OperationsDiscoveryCollection }
OperationsDiscoveryClientGetResponse contains the response from method OperationsDiscoveryClient.Get.
type OperationsDiscoveryCollection ¶
type OperationsDiscoveryCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the ClientDiscovery details. Value []*OperationsDiscovery }
OperationsDiscoveryCollection - Collection of ClientDiscovery details.
func (OperationsDiscoveryCollection) MarshalJSON ¶
func (o OperationsDiscoveryCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type OperationsDiscoveryCollection.
func (*OperationsDiscoveryCollection) UnmarshalJSON ¶
func (o *OperationsDiscoveryCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type OperationsDiscoveryCollection.
type PrepareRequest ¶
type PrepareRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. MoveResources []*string // Defines the move resource input type. MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. ValidateOnly *bool }
PrepareRequest - Defines the request body for initiate prepare operation.
func (PrepareRequest) MarshalJSON ¶
func (p PrepareRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PrepareRequest.
func (*PrepareRequest) UnmarshalJSON ¶
func (p *PrepareRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PrepareRequest.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState - Defines the provisioning states.
const ( ProvisioningStateCreating ProvisioningState = "Creating" 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 PublicIPAddressResourceSettings ¶
type PublicIPAddressResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the domain name label. DomainNameLabel *string // Gets or sets the fully qualified domain name. Fqdn *string // Gets or sets public IP allocation method. PublicIPAllocationMethod *string // Gets or sets public IP sku. SKU *string // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string // Gets or sets public IP zones. Zones *string }
PublicIPAddressResourceSettings - Defines the public IP address resource settings.
func (*PublicIPAddressResourceSettings) GetResourceSettings ¶
func (p *PublicIPAddressResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type PublicIPAddressResourceSettings.
func (PublicIPAddressResourceSettings) MarshalJSON ¶
func (p PublicIPAddressResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicIPAddressResourceSettings.
func (*PublicIPAddressResourceSettings) UnmarshalJSON ¶
func (p *PublicIPAddressResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PublicIPAddressResourceSettings.
type PublicIPReference ¶
type PublicIPReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. SourceArmResourceID *string }
PublicIPReference - Defines reference to a public IP.
func (PublicIPReference) MarshalJSON ¶
func (p PublicIPReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type PublicIPReference.
func (*PublicIPReference) UnmarshalJSON ¶
func (p *PublicIPReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type PublicIPReference.
type RequiredForResourcesCollection ¶
type RequiredForResourcesCollection struct { // Gets or sets the list of source Ids for which the input resource is required. SourceIDs []*string }
RequiredForResourcesCollection - Required for resources collection.
func (RequiredForResourcesCollection) MarshalJSON ¶
func (r RequiredForResourcesCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type RequiredForResourcesCollection.
func (*RequiredForResourcesCollection) UnmarshalJSON ¶
func (r *RequiredForResourcesCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type RequiredForResourcesCollection.
type ResolutionType ¶
type ResolutionType string
ResolutionType - Defines the resolution type.
const ( ResolutionTypeAutomatic ResolutionType = "Automatic" ResolutionTypeManual ResolutionType = "Manual" )
func PossibleResolutionTypeValues ¶
func PossibleResolutionTypeValues() []ResolutionType
PossibleResolutionTypeValues returns the possible values for the ResolutionType const type.
type ResourceGroupResourceSettings ¶
type ResourceGroupResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
ResourceGroupResourceSettings - Defines the resource group resource settings.
func (*ResourceGroupResourceSettings) GetResourceSettings ¶
func (r *ResourceGroupResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type ResourceGroupResourceSettings.
func (ResourceGroupResourceSettings) MarshalJSON ¶
func (r ResourceGroupResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceGroupResourceSettings.
func (*ResourceGroupResourceSettings) UnmarshalJSON ¶
func (r *ResourceGroupResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceGroupResourceSettings.
type ResourceIdentityType ¶
type ResourceIdentityType string
ResourceIdentityType - The type of identity used for the resource mover service.
const ( ResourceIdentityTypeNone ResourceIdentityType = "None" ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned" ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned" )
func PossibleResourceIdentityTypeValues ¶
func PossibleResourceIdentityTypeValues() []ResourceIdentityType
PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
type ResourceMoveRequest ¶
type ResourceMoveRequest struct { // REQUIRED; Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched // via moveResourceInputType property. MoveResources []*string // Defines the move resource input type. MoveResourceInputType *MoveResourceInputType // Gets or sets a value indicating whether the operation needs to only run pre-requisite. ValidateOnly *bool }
ResourceMoveRequest - Defines the request body for resource move operation.
func (ResourceMoveRequest) MarshalJSON ¶
func (r ResourceMoveRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceMoveRequest.
func (*ResourceMoveRequest) UnmarshalJSON ¶
func (r *ResourceMoveRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceMoveRequest.
type ResourceSettings ¶
type ResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
ResourceSettings - Gets or sets the resource settings.
func (*ResourceSettings) GetResourceSettings ¶
func (r *ResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type ResourceSettings.
func (ResourceSettings) MarshalJSON ¶
func (r ResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type ResourceSettings.
func (*ResourceSettings) UnmarshalJSON ¶
func (r *ResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type ResourceSettings.
type ResourceSettingsClassification ¶
type ResourceSettingsClassification interface { // GetResourceSettings returns the ResourceSettings content of the underlying type. GetResourceSettings() *ResourceSettings }
ResourceSettingsClassification provides polymorphic access to related types. Call the interface's GetResourceSettings() method to access the common type. Use a type switch to determine the concrete type. The possible types are: - *AvailabilitySetResourceSettings, *DiskEncryptionSetResourceSettings, *KeyVaultResourceSettings, *LoadBalancerResourceSettings, - *NetworkInterfaceResourceSettings, *NetworkSecurityGroupResourceSettings, *PublicIPAddressResourceSettings, *ResourceGroupResourceSettings, - *ResourceSettings, *SQLDatabaseResourceSettings, *SQLElasticPoolResourceSettings, *SQLServerResourceSettings, *VirtualMachineResourceSettings, - *VirtualNetworkResourceSettings
type SQLDatabaseResourceSettings ¶
type SQLDatabaseResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string // Defines the zone redundant resource setting. ZoneRedundant *ZoneRedundant }
SQLDatabaseResourceSettings - Defines the Sql Database resource settings.
func (*SQLDatabaseResourceSettings) GetResourceSettings ¶
func (s *SQLDatabaseResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type SQLDatabaseResourceSettings.
func (SQLDatabaseResourceSettings) MarshalJSON ¶
func (s SQLDatabaseResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SQLDatabaseResourceSettings.
func (*SQLDatabaseResourceSettings) UnmarshalJSON ¶
func (s *SQLDatabaseResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SQLDatabaseResourceSettings.
type SQLElasticPoolResourceSettings ¶
type SQLElasticPoolResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string // Defines the zone redundant resource setting. ZoneRedundant *ZoneRedundant }
SQLElasticPoolResourceSettings - Defines the Sql ElasticPool resource settings.
func (*SQLElasticPoolResourceSettings) GetResourceSettings ¶
func (s *SQLElasticPoolResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type SQLElasticPoolResourceSettings.
func (SQLElasticPoolResourceSettings) MarshalJSON ¶
func (s SQLElasticPoolResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SQLElasticPoolResourceSettings.
func (*SQLElasticPoolResourceSettings) UnmarshalJSON ¶
func (s *SQLElasticPoolResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SQLElasticPoolResourceSettings.
type SQLServerResourceSettings ¶
type SQLServerResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
SQLServerResourceSettings - Defines the SQL Server resource settings.
func (*SQLServerResourceSettings) GetResourceSettings ¶
func (s *SQLServerResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type SQLServerResourceSettings.
func (SQLServerResourceSettings) MarshalJSON ¶
func (s SQLServerResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SQLServerResourceSettings.
func (*SQLServerResourceSettings) UnmarshalJSON ¶
func (s *SQLServerResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SQLServerResourceSettings.
type SubnetReference ¶
type SubnetReference struct { // REQUIRED; Gets the ARM resource ID of the tracked resource being referenced. SourceArmResourceID *string // Gets the name of the proxy resource on the target side. Name *string }
SubnetReference - Defines reference to subnet.
func (SubnetReference) MarshalJSON ¶
func (s SubnetReference) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubnetReference.
func (*SubnetReference) UnmarshalJSON ¶
func (s *SubnetReference) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubnetReference.
type SubnetResourceSettings ¶
type SubnetResourceSettings struct { // Gets or sets address prefix for the subnet. AddressPrefix *string // Gets or sets the Subnet name. Name *string // Defines reference to NSG. NetworkSecurityGroup *NsgReference }
SubnetResourceSettings - Defines the virtual network subnets resource settings.
func (SubnetResourceSettings) MarshalJSON ¶
func (s SubnetResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SubnetResourceSettings.
func (*SubnetResourceSettings) UnmarshalJSON ¶
func (s *SubnetResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SubnetResourceSettings.
type Summary ¶
Summary item.
func (Summary) MarshalJSON ¶
MarshalJSON implements the json.Marshaller interface for type Summary.
func (*Summary) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaller interface for type Summary.
type SummaryCollection ¶
type SummaryCollection struct { // Gets or sets the field name on which summary is done. FieldName *string // Gets or sets the list of summary items. Summary []*Summary }
SummaryCollection - Summary Collection.
func (SummaryCollection) MarshalJSON ¶
func (s SummaryCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SummaryCollection.
func (*SummaryCollection) UnmarshalJSON ¶
func (s *SummaryCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SummaryCollection.
type SystemData ¶
type SystemData struct { // The timestamp of resource creation (UTC). CreatedAt *time.Time // The identity that created the resource. CreatedBy *string // The type of identity that created the resource. CreatedByType *CreatedByType // The timestamp of resource last modification (UTC) LastModifiedAt *time.Time // The identity that last modified the resource. LastModifiedBy *string // The type of identity that last modified the resource. LastModifiedByType *CreatedByType }
SystemData - Metadata pertaining to creation and last modification of the resource.
func (SystemData) MarshalJSON ¶
func (s SystemData) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type SystemData.
func (*SystemData) UnmarshalJSON ¶
func (s *SystemData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type SystemData.
type TargetAvailabilityZone ¶
type TargetAvailabilityZone string
TargetAvailabilityZone - Gets or sets the target availability zone.
const ( TargetAvailabilityZoneNA TargetAvailabilityZone = "NA" TargetAvailabilityZoneOne TargetAvailabilityZone = "1" TargetAvailabilityZoneThree TargetAvailabilityZone = "3" TargetAvailabilityZoneTwo TargetAvailabilityZone = "2" )
func PossibleTargetAvailabilityZoneValues ¶
func PossibleTargetAvailabilityZoneValues() []TargetAvailabilityZone
PossibleTargetAvailabilityZoneValues returns the possible values for the TargetAvailabilityZone const type.
type UnresolvedDependenciesClient ¶
type UnresolvedDependenciesClient struct {
// contains filtered or unexported fields
}
UnresolvedDependenciesClient contains the methods for the UnresolvedDependencies group. Don't use this type directly, use NewUnresolvedDependenciesClient() instead.
func NewUnresolvedDependenciesClient ¶
func NewUnresolvedDependenciesClient(subscriptionID string, credential azcore.TokenCredential, options *arm.ClientOptions) (*UnresolvedDependenciesClient, error)
NewUnresolvedDependenciesClient creates a new instance of UnresolvedDependenciesClient with the specified values.
- subscriptionID - The Subscription ID.
- credential - used to authorize requests. Usually a credential from azidentity.
- options - pass nil to accept the default values.
func (*UnresolvedDependenciesClient) NewGetPager ¶
func (client *UnresolvedDependenciesClient) NewGetPager(resourceGroupName string, moveCollectionName string, options *UnresolvedDependenciesClientGetOptions) *runtime.Pager[UnresolvedDependenciesClientGetResponse]
NewGetPager - Gets a list of unresolved dependencies.
Generated from API version 2023-08-01
- resourceGroupName - The Resource Group Name.
- moveCollectionName - The Move Collection Name.
- options - UnresolvedDependenciesClientGetOptions contains the optional parameters for the UnresolvedDependenciesClient.NewGetPager method.
Example ¶
Generated from example definition: https://github.com/Azure/azure-rest-api-specs/blob/3066a973f4baf2e2bf072a013b585a820bb10146/specification/resourcemover/resource-manager/Microsoft.Migrate/stable/2023-08-01/examples/UnresolvedDependencies_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/resourcemover/armresourcemover" ) func main() { cred, err := azidentity.NewDefaultAzureCredential(nil) if err != nil { log.Fatalf("failed to obtain a credential: %v", err) } ctx := context.Background() clientFactory, err := armresourcemover.NewClientFactory("<subscription-id>", cred, nil) if err != nil { log.Fatalf("failed to create client: %v", err) } pager := clientFactory.NewUnresolvedDependenciesClient().NewGetPager("rg1", "movecollection1", &armresourcemover.UnresolvedDependenciesClientGetOptions{DependencyLevel: nil, Orderby: nil, Filter: nil, }) for pager.More() { page, err := pager.NextPage(ctx) if err != nil { log.Fatalf("failed to advance page: %v", err) } for _, v := range page.Value { // You could use page here. We use blank identifier for just demo purposes. _ = v } // If the HTTP response code is 200 as defined in example definition, your page structure would look as follows. Please pay attention that all the values in the output are fake values for just demo purposes. // page.UnresolvedDependencyCollection = armresourcemover.UnresolvedDependencyCollection{ // Value: []*armresourcemover.UnresolvedDependency{ // { // Count: to.Ptr[int32](1), // ID: to.Ptr("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkInterfaces/nic1"), // }}, // } } }
Output:
type UnresolvedDependenciesClientGetOptions ¶
type UnresolvedDependenciesClientGetOptions struct { // Defines the dependency level. DependencyLevel *DependencyLevel // The filter to apply on the operation. For example, $apply=filter(count eq 2). Filter *string // OData order by query option. For example, you can use $orderby=Count desc. Orderby *string }
UnresolvedDependenciesClientGetOptions contains the optional parameters for the UnresolvedDependenciesClient.NewGetPager method.
type UnresolvedDependenciesClientGetResponse ¶
type UnresolvedDependenciesClientGetResponse struct { // Unresolved dependency collection. UnresolvedDependencyCollection }
UnresolvedDependenciesClientGetResponse contains the response from method UnresolvedDependenciesClient.NewGetPager.
type UnresolvedDependenciesFilter ¶
type UnresolvedDependenciesFilter struct {
Properties *UnresolvedDependenciesFilterProperties
}
UnresolvedDependenciesFilter - Unresolved dependencies contract.
func (UnresolvedDependenciesFilter) MarshalJSON ¶
func (u UnresolvedDependenciesFilter) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UnresolvedDependenciesFilter.
func (*UnresolvedDependenciesFilter) UnmarshalJSON ¶
func (u *UnresolvedDependenciesFilter) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UnresolvedDependenciesFilter.
type UnresolvedDependenciesFilterProperties ¶
type UnresolvedDependenciesFilterProperties struct { // The count of the resource. Count *int32 }
func (UnresolvedDependenciesFilterProperties) MarshalJSON ¶
func (u UnresolvedDependenciesFilterProperties) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UnresolvedDependenciesFilterProperties.
func (*UnresolvedDependenciesFilterProperties) UnmarshalJSON ¶
func (u *UnresolvedDependenciesFilterProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UnresolvedDependenciesFilterProperties.
type UnresolvedDependency ¶
type UnresolvedDependency struct { // Gets or sets the count. Count *int32 // Gets or sets the arm id of the dependency. ID *string }
UnresolvedDependency - Unresolved dependency.
func (UnresolvedDependency) MarshalJSON ¶
func (u UnresolvedDependency) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UnresolvedDependency.
func (*UnresolvedDependency) UnmarshalJSON ¶
func (u *UnresolvedDependency) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UnresolvedDependency.
type UnresolvedDependencyCollection ¶
type UnresolvedDependencyCollection struct { // Gets or sets the value of next link. NextLink *string // Gets or sets the list of unresolved dependencies. Value []*UnresolvedDependency // READ-ONLY; Gets or sets the list of summary items and the field on which summary is done. SummaryCollection *SummaryCollection // READ-ONLY; Gets the total count. TotalCount *int64 }
UnresolvedDependencyCollection - Unresolved dependency collection.
func (UnresolvedDependencyCollection) MarshalJSON ¶
func (u UnresolvedDependencyCollection) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UnresolvedDependencyCollection.
func (*UnresolvedDependencyCollection) UnmarshalJSON ¶
func (u *UnresolvedDependencyCollection) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UnresolvedDependencyCollection.
type UpdateMoveCollectionRequest ¶
type UpdateMoveCollectionRequest struct { // Defines the MSI properties of the Move Collection. Identity *Identity // Gets or sets the Resource tags. Tags map[string]*string }
UpdateMoveCollectionRequest - Defines the request body for updating move collection.
func (UpdateMoveCollectionRequest) MarshalJSON ¶
func (u UpdateMoveCollectionRequest) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type UpdateMoveCollectionRequest.
func (*UpdateMoveCollectionRequest) UnmarshalJSON ¶
func (u *UpdateMoveCollectionRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type UpdateMoveCollectionRequest.
type VirtualMachineResourceSettings ¶
type VirtualMachineResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target availability set id for virtual machines not in an availability set at source. TargetAvailabilitySetID *string // Gets or sets the target availability zone. TargetAvailabilityZone *TargetAvailabilityZone // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string // Gets or sets the target virtual machine size. TargetVMSize *string // Gets or sets user-managed identities UserManagedIdentities []*string }
VirtualMachineResourceSettings - Gets or sets the virtual machine resource settings.
func (*VirtualMachineResourceSettings) GetResourceSettings ¶
func (v *VirtualMachineResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type VirtualMachineResourceSettings.
func (VirtualMachineResourceSettings) MarshalJSON ¶
func (v VirtualMachineResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualMachineResourceSettings.
func (*VirtualMachineResourceSettings) UnmarshalJSON ¶
func (v *VirtualMachineResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualMachineResourceSettings.
type VirtualNetworkResourceSettings ¶
type VirtualNetworkResourceSettings struct { // REQUIRED; The resource type. For example, the value can be Microsoft.Compute/virtualMachines. ResourceType *string // Gets or sets the address prefixes for the virtual network. AddressSpace []*string // Gets or sets DHCPOptions that contains an array of DNS servers available to VMs deployed in the virtual network. DNSServers []*string // Gets or sets a value indicating whether gets or sets whether the DDOS protection should be switched on. EnableDdosProtection *bool // Gets or sets List of subnets in a VirtualNetwork. Subnets []*SubnetResourceSettings // Gets or sets the Resource tags. Tags map[string]*string // Gets or sets the target resource group name. TargetResourceGroupName *string // Gets or sets the target Resource name. TargetResourceName *string }
VirtualNetworkResourceSettings - Defines the virtual network resource settings.
func (*VirtualNetworkResourceSettings) GetResourceSettings ¶
func (v *VirtualNetworkResourceSettings) GetResourceSettings() *ResourceSettings
GetResourceSettings implements the ResourceSettingsClassification interface for type VirtualNetworkResourceSettings.
func (VirtualNetworkResourceSettings) MarshalJSON ¶
func (v VirtualNetworkResourceSettings) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaller interface for type VirtualNetworkResourceSettings.
func (*VirtualNetworkResourceSettings) UnmarshalJSON ¶
func (v *VirtualNetworkResourceSettings) UnmarshalJSON(data []byte) error
UnmarshalJSON implements the json.Unmarshaller interface for type VirtualNetworkResourceSettings.
type ZoneRedundant ¶
type ZoneRedundant string
ZoneRedundant - Defines the zone redundant resource setting.
const ( ZoneRedundantDisable ZoneRedundant = "Disable" ZoneRedundantEnable ZoneRedundant = "Enable" )
func PossibleZoneRedundantValues ¶
func PossibleZoneRedundantValues() []ZoneRedundant
PossibleZoneRedundantValues returns the possible values for the ZoneRedundant const type.