/
ArmClient.cs
183 lines (166 loc) · 11.7 KB
/
ArmClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using Azure.Core;
using Azure.ResourceManager.Resources;
namespace Azure.ResourceManager
{
public partial class ArmClient
{
/// <summary>
/// Gets an object representing a <see cref="PolicyAssignmentResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="PolicyAssignmentResource.CreateResourceIdentifier" /> to create a <see cref="PolicyAssignmentResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="PolicyAssignmentResource"/> object. </returns>
public virtual PolicyAssignmentResource GetPolicyAssignmentResource(ResourceIdentifier id)
{
PolicyAssignmentResource.ValidateResourceId(id);
return new PolicyAssignmentResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="SubscriptionPolicyDefinitionResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SubscriptionPolicyDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="SubscriptionPolicyDefinitionResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SubscriptionPolicyDefinitionResource"/> object. </returns>
public virtual SubscriptionPolicyDefinitionResource GetSubscriptionPolicyDefinitionResource(ResourceIdentifier id)
{
SubscriptionPolicyDefinitionResource.ValidateResourceId(id);
return new SubscriptionPolicyDefinitionResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="TenantPolicyDefinitionResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="TenantPolicyDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="TenantPolicyDefinitionResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="TenantPolicyDefinitionResource"/> object. </returns>
public virtual TenantPolicyDefinitionResource GetTenantPolicyDefinitionResource(ResourceIdentifier id)
{
TenantPolicyDefinitionResource.ValidateResourceId(id);
return new TenantPolicyDefinitionResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="ManagementGroupPolicyDefinitionResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ManagementGroupPolicyDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="ManagementGroupPolicyDefinitionResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ManagementGroupPolicyDefinitionResource"/> object. </returns>
public virtual ManagementGroupPolicyDefinitionResource GetManagementGroupPolicyDefinitionResource(ResourceIdentifier id)
{
ManagementGroupPolicyDefinitionResource.ValidateResourceId(id);
return new ManagementGroupPolicyDefinitionResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="SubscriptionPolicySetDefinitionResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SubscriptionPolicySetDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="SubscriptionPolicySetDefinitionResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SubscriptionPolicySetDefinitionResource"/> object. </returns>
public virtual SubscriptionPolicySetDefinitionResource GetSubscriptionPolicySetDefinitionResource(ResourceIdentifier id)
{
SubscriptionPolicySetDefinitionResource.ValidateResourceId(id);
return new SubscriptionPolicySetDefinitionResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="TenantPolicySetDefinitionResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="TenantPolicySetDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="TenantPolicySetDefinitionResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="TenantPolicySetDefinitionResource"/> object. </returns>
public virtual TenantPolicySetDefinitionResource GetTenantPolicySetDefinitionResource(ResourceIdentifier id)
{
TenantPolicySetDefinitionResource.ValidateResourceId(id);
return new TenantPolicySetDefinitionResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="ManagementGroupPolicySetDefinitionResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ManagementGroupPolicySetDefinitionResource.CreateResourceIdentifier" /> to create a <see cref="ManagementGroupPolicySetDefinitionResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ManagementGroupPolicySetDefinitionResource"/> object. </returns>
public virtual ManagementGroupPolicySetDefinitionResource GetManagementGroupPolicySetDefinitionResource(ResourceIdentifier id)
{
ManagementGroupPolicySetDefinitionResource.ValidateResourceId(id);
return new ManagementGroupPolicySetDefinitionResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="DataPolicyManifestResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="DataPolicyManifestResource.CreateResourceIdentifier" /> to create a <see cref="DataPolicyManifestResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="DataPolicyManifestResource"/> object. </returns>
public virtual DataPolicyManifestResource GetDataPolicyManifestResource(ResourceIdentifier id)
{
DataPolicyManifestResource.ValidateResourceId(id);
return new DataPolicyManifestResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="ManagementLockResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ManagementLockResource.CreateResourceIdentifier" /> to create a <see cref="ManagementLockResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ManagementLockResource"/> object. </returns>
public virtual ManagementLockResource GetManagementLockResource(ResourceIdentifier id)
{
ManagementLockResource.ValidateResourceId(id);
return new ManagementLockResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="ResourceProviderResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ResourceProviderResource.CreateResourceIdentifier" /> to create a <see cref="ResourceProviderResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ResourceProviderResource"/> object. </returns>
public virtual ResourceProviderResource GetResourceProviderResource(ResourceIdentifier id)
{
ResourceProviderResource.ValidateResourceId(id);
return new ResourceProviderResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="ResourceGroupResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ResourceGroupResource.CreateResourceIdentifier" /> to create a <see cref="ResourceGroupResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ResourceGroupResource"/> object. </returns>
public virtual ResourceGroupResource GetResourceGroupResource(ResourceIdentifier id)
{
ResourceGroupResource.ValidateResourceId(id);
return new ResourceGroupResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="TagResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="TagResource.CreateResourceIdentifier" /> to create a <see cref="TagResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="TagResource"/> object. </returns>
public virtual TagResource GetTagResource(ResourceIdentifier id)
{
TagResource.ValidateResourceId(id);
return new TagResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="SubscriptionResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="SubscriptionResource.CreateResourceIdentifier" /> to create a <see cref="SubscriptionResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="SubscriptionResource"/> object. </returns>
public virtual SubscriptionResource GetSubscriptionResource(ResourceIdentifier id)
{
SubscriptionResource.ValidateResourceId(id);
return new SubscriptionResource(this, id);
}
/// <summary>
/// Gets an object representing a <see cref="FeatureResource" /> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="FeatureResource.CreateResourceIdentifier" /> to create a <see cref="FeatureResource" /> <see cref="ResourceIdentifier" /> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="FeatureResource"/> object. </returns>
public virtual FeatureResource GetFeatureResource(ResourceIdentifier id)
{
FeatureResource.ValidateResourceId(id);
return new FeatureResource(this, id);
}
}
}