You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/ResourceManager/ResourceManager/Commands.ResourceManager/Cmdlets/Implementation/RemoveAzureResourceLockCmdlet.cs
internalconststringScopeAndName="A lock, by the scope and name.";
31
+
32
+
/// <summary>
33
+
/// The resource group level resource lock.
34
+
/// </summary>
35
+
internalconststringResourceGroupResourceLevelLock="A lock at the resource group resource scope.";
36
+
37
+
/// <summary>
38
+
/// The subscription level resource lock.
39
+
/// </summary>
40
+
internalconststringSubscriptionResourceLevelLock="A lock at the subscription resource scope.";
41
+
42
+
/// <summary>
43
+
/// The tenant level resource lock patameter set.
44
+
/// </summary>
45
+
internalconststringTenantResourceLevelLock="A lock at the tenant resource scope.";
46
+
47
+
/// <summary>
48
+
/// The resource group lock parametere set.
49
+
/// </summary>
50
+
internalconststringResourceGroupLevelLock="A lock at the resource group scope.";
51
+
52
+
/// <summary>
53
+
/// The subscription lock parameter set.
54
+
/// </summary>
55
+
internalconststringSubscriptionLevelLock="A lock at the subscription scope.";
56
+
57
+
/// <summary>
58
+
/// Gets or sets the lock Id.
59
+
/// </summary>
60
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.ScopeAndName,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The Id of the lock. e.g. '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaserName}', to specify a resoruce group: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'")]
61
+
[ValidateNotNullOrEmpty]
62
+
publicstringScope{get;set;}
63
+
64
+
/// <summary>
65
+
/// Gets or sets the extension resource name parameter.
66
+
/// </summary>
67
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource name. e.g. to specify a database MyServer/MyDatabase.")]
68
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource name. e.g. to specify a database MyServer/MyDatabase.")]
69
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.TenantResourceLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource name. e.g. to specify a database MyServer/MyDatabase.")]
70
+
[ValidateNotNullOrEmpty]
71
+
publicstringResourceName{get;set;}
72
+
73
+
/// <summary>
74
+
/// Gets or sets the resource type parameter.
75
+
/// </summary>
76
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
77
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.SubscriptionResourceLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
78
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.TenantResourceLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource type. e.g. Microsoft.Sql/Servers/Databases.")]
79
+
[ValidateNotNullOrEmpty]
80
+
publicstringResourceType{get;set;}
81
+
82
+
/// <summary>
83
+
/// Gets or sets the subscription id parameter.
84
+
/// </summary>
85
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock,Mandatory=false,ValueFromPipeline=true,ValueFromPipelineByPropertyName=true,HelpMessage="The subscription to use.")]
86
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.ResourceGroupLevelLock,Mandatory=false,ValueFromPipeline=true,ValueFromPipelineByPropertyName=true,HelpMessage="The subscription to use.")]
87
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.SubscriptionLevelLock,Mandatory=false,ValueFromPipeline=true,ValueFromPipelineByPropertyName=true,HelpMessage="The subscription to use.")]
88
+
[ValidateNotNullOrEmpty]
89
+
publicGuid?SubscriptionId{get;set;}
90
+
91
+
/// <summary>
92
+
/// Gets or sets the resource group name parameter.
93
+
/// </summary>
94
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.ResourceGroupResourceLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource group name.")]
95
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.ResourceGroupLevelLock,Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The resource group name.")]
96
+
[ValidateNotNullOrEmpty]
97
+
publicstringResourceGroupName{get;set;}
98
+
99
+
/// <summary>
100
+
/// Gets or sets the tenant level parameter.
101
+
/// </summary>
102
+
[Parameter(ParameterSetName=ResourceLockManagementCmdletBase.TenantResourceLevelLock,Mandatory=true,HelpMessage="Indicates that this is a tenant level operation.")]
103
+
publicSwitchParameterTenantLevel{get;set;}
104
+
105
+
/// <summary>
106
+
/// Gets or sets the extension resource name parameter.
107
+
/// </summary>
108
+
[Alias("ExtensionResourceName")]
109
+
[Parameter(Mandatory=true,ValueFromPipelineByPropertyName=true,HelpMessage="The name of the lock.")]
110
+
[ValidateNotNullOrEmpty]
111
+
publicstringLockName{get;set;}
112
+
113
+
/// <summary>
114
+
/// Initializes the default subscription id if needed.
0 commit comments