Interface ResourceSyncRule
public interface ResourceSyncRule
An immutable client-side representation of ResourceSyncRule.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The entirety of the ResourceSyncRule definition.static interface
The ResourceSyncRule definition stages.static interface
The template for ResourceSyncRule update.static interface
The ResourceSyncRule update stages. -
Method Summary
Modifier and TypeMethodDescriptionid()
Gets the id property: Fully qualified resource Id for the resource.Gets the inner com.azure.resourcemanager.extendedlocation.fluent.models.ResourceSyncRuleInner object.location()
Gets the location property: The geo-location where the resource lives.name()
Gets the name property: The name of the resource.priority()
Gets the priority property: Priority represents a priority of the Resource Sync Rule.Gets the provisioningState property: Provisioning State for the Resource Sync Rule.refresh()
Refreshes the resource to sync with Azure.refresh
(com.azure.core.util.Context context) Refreshes the resource to sync with Azure.com.azure.core.management.Region
region()
Gets the region of the resource.Gets the name of the resource region.Gets the name of the resource group.selector()
Gets the selector property: A label selector is composed of two parts, matchLabels and matchExpressions.com.azure.core.management.SystemData
Gets the systemData property: Metadata pertaining to creation and last modification of the resource.tags()
Gets the tags property: Resource tags.Gets the targetResourceGroup property: For an unmapped custom resource, its labels will be used to find matching resource sync rules.type()
Gets the type property: The type of the resource.update()
Begins update for the ResourceSyncRule resource.
-
Method Details
-
id
String id()Gets the id property: Fully qualified resource Id for the resource.- Returns:
- the id value.
-
name
String name()Gets the name property: The name of the resource.- Returns:
- the name value.
-
type
String type()Gets the type property: The type of the resource.- Returns:
- the type value.
-
location
String location()Gets the location property: The geo-location where the resource lives.- Returns:
- the location value.
-
tags
Gets the tags property: Resource tags.- Returns:
- the tags value.
-
systemData
com.azure.core.management.SystemData systemData()Gets the systemData property: Metadata pertaining to creation and last modification of the resource.- Returns:
- the systemData value.
-
priority
Integer priority()Gets the priority property: Priority represents a priority of the Resource Sync Rule.- Returns:
- the priority value.
-
provisioningState
String provisioningState()Gets the provisioningState property: Provisioning State for the Resource Sync Rule.- Returns:
- the provisioningState value.
-
selector
ResourceSyncRulePropertiesSelector selector()Gets the selector property: A label selector is composed of two parts, matchLabels and matchExpressions. The first part, matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is 'key', the operator is 'In', and the values array contains only 'value'. The second part, matchExpressions is a list of resource selector requirements. Valid operators include In, NotIn, Exists, and DoesNotExist. The values set must be non-empty in the case of In and NotIn. The values set must be empty in the case of Exists and DoesNotExist. All of the requirements, from both matchLabels and matchExpressions must all be satisfied in order to match.- Returns:
- the selector value.
-
targetResourceGroup
String targetResourceGroup()Gets the targetResourceGroup property: For an unmapped custom resource, its labels will be used to find matching resource sync rules. If this resource sync rule is one of the matching rules with highest priority, then the unmapped custom resource will be projected to the target resource group associated with this resource sync rule. The user creating this resource sync rule should have write permissions on the target resource group and this write permission will be validated when creating the resource sync rule.- Returns:
- the targetResourceGroup value.
-
region
com.azure.core.management.Region region()Gets the region of the resource.- Returns:
- the region of the resource.
-
regionName
String regionName()Gets the name of the resource region.- Returns:
- the name of the resource region.
-
resourceGroupName
String resourceGroupName()Gets the name of the resource group.- Returns:
- the name of the resource group.
-
innerModel
ResourceSyncRuleInner innerModel()Gets the inner com.azure.resourcemanager.extendedlocation.fluent.models.ResourceSyncRuleInner object.- Returns:
- the inner object.
-
update
ResourceSyncRule.Update update()Begins update for the ResourceSyncRule resource.- Returns:
- the stage of resource update.
-
refresh
ResourceSyncRule refresh()Refreshes the resource to sync with Azure.- Returns:
- the refreshed resource.
-
refresh
Refreshes the resource to sync with Azure.- Parameters:
context
- The context to associate with this operation.- Returns:
- the refreshed resource.
-