-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
MockableHybridContainerServiceArmClient.cs
147 lines (130 loc) · 9.52 KB
/
MockableHybridContainerServiceArmClient.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
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using Azure.Core;
using Azure.ResourceManager;
using Azure.ResourceManager.HybridContainerService;
namespace Azure.ResourceManager.HybridContainerService.Mocking
{
/// <summary> A class to add extension methods to ArmClient. </summary>
public partial class MockableHybridContainerServiceArmClient : ArmResource
{
/// <summary> Initializes a new instance of the <see cref="MockableHybridContainerServiceArmClient"/> class for mocking. </summary>
protected MockableHybridContainerServiceArmClient()
{
}
/// <summary> Initializes a new instance of the <see cref="MockableHybridContainerServiceArmClient"/> class. </summary>
/// <param name="client"> The client parameters to use in these operations. </param>
/// <param name="id"> The identifier of the resource that is the target of operations. </param>
internal MockableHybridContainerServiceArmClient(ArmClient client, ResourceIdentifier id) : base(client, id)
{
}
internal MockableHybridContainerServiceArmClient(ArmClient client) : this(client, ResourceIdentifier.Root)
{
}
private string GetApiVersionOrNull(ResourceType resourceType)
{
TryGetApiVersion(resourceType, out string apiVersion);
return apiVersion;
}
/// <summary> Gets an object representing a ProvisionedClusterResource along with the instance operations that can be performed on it in the ArmClient. </summary>
/// <param name="scope"> The scope that the resource will apply against. </param>
/// <returns> Returns a <see cref="ProvisionedClusterResource"/> object. </returns>
public virtual ProvisionedClusterResource GetProvisionedCluster(ResourceIdentifier scope)
{
return new ProvisionedClusterResource(Client, scope.AppendProviderResource("Microsoft.HybridContainerService", "provisionedClusterInstances", "default"));
}
/// <summary> Gets an object representing a KubernetesVersionProfileResource along with the instance operations that can be performed on it in the ArmClient. </summary>
/// <param name="scope"> The scope that the resource will apply against. </param>
/// <returns> Returns a <see cref="KubernetesVersionProfileResource"/> object. </returns>
public virtual KubernetesVersionProfileResource GetKubernetesVersionProfile(ResourceIdentifier scope)
{
return new KubernetesVersionProfileResource(Client, scope.AppendProviderResource("Microsoft.HybridContainerService", "kubernetesVersions", "default"));
}
/// <summary> Gets an object representing a HybridContainerServiceVmSkuResource along with the instance operations that can be performed on it in the ArmClient. </summary>
/// <param name="scope"> The scope that the resource will apply against. </param>
/// <returns> Returns a <see cref="HybridContainerServiceVmSkuResource"/> object. </returns>
public virtual HybridContainerServiceVmSkuResource GetHybridContainerServiceVmSku(ResourceIdentifier scope)
{
return new HybridContainerServiceVmSkuResource(Client, scope.AppendProviderResource("Microsoft.HybridContainerService", "skus", "default"));
}
/// <summary>
/// Gets an object representing a <see cref="ProvisionedClusterResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ProvisionedClusterResource.CreateResourceIdentifier" /> to create a <see cref="ProvisionedClusterResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ProvisionedClusterResource"/> object. </returns>
public virtual ProvisionedClusterResource GetProvisionedClusterResource(ResourceIdentifier id)
{
ProvisionedClusterResource.ValidateResourceId(id);
return new ProvisionedClusterResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="ProvisionedClusterUpgradeProfileResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="ProvisionedClusterUpgradeProfileResource.CreateResourceIdentifier" /> to create a <see cref="ProvisionedClusterUpgradeProfileResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="ProvisionedClusterUpgradeProfileResource"/> object. </returns>
public virtual ProvisionedClusterUpgradeProfileResource GetProvisionedClusterUpgradeProfileResource(ResourceIdentifier id)
{
ProvisionedClusterUpgradeProfileResource.ValidateResourceId(id);
return new ProvisionedClusterUpgradeProfileResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="HybridIdentityMetadataResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="HybridIdentityMetadataResource.CreateResourceIdentifier" /> to create a <see cref="HybridIdentityMetadataResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="HybridIdentityMetadataResource"/> object. </returns>
public virtual HybridIdentityMetadataResource GetHybridIdentityMetadataResource(ResourceIdentifier id)
{
HybridIdentityMetadataResource.ValidateResourceId(id);
return new HybridIdentityMetadataResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="HybridContainerServiceAgentPoolResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="HybridContainerServiceAgentPoolResource.CreateResourceIdentifier" /> to create a <see cref="HybridContainerServiceAgentPoolResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="HybridContainerServiceAgentPoolResource"/> object. </returns>
public virtual HybridContainerServiceAgentPoolResource GetHybridContainerServiceAgentPoolResource(ResourceIdentifier id)
{
HybridContainerServiceAgentPoolResource.ValidateResourceId(id);
return new HybridContainerServiceAgentPoolResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="KubernetesVersionProfileResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="KubernetesVersionProfileResource.CreateResourceIdentifier" /> to create a <see cref="KubernetesVersionProfileResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="KubernetesVersionProfileResource"/> object. </returns>
public virtual KubernetesVersionProfileResource GetKubernetesVersionProfileResource(ResourceIdentifier id)
{
KubernetesVersionProfileResource.ValidateResourceId(id);
return new KubernetesVersionProfileResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="HybridContainerServiceVmSkuResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="HybridContainerServiceVmSkuResource.CreateResourceIdentifier" /> to create a <see cref="HybridContainerServiceVmSkuResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="HybridContainerServiceVmSkuResource"/> object. </returns>
public virtual HybridContainerServiceVmSkuResource GetHybridContainerServiceVmSkuResource(ResourceIdentifier id)
{
HybridContainerServiceVmSkuResource.ValidateResourceId(id);
return new HybridContainerServiceVmSkuResource(Client, id);
}
/// <summary>
/// Gets an object representing a <see cref="HybridContainerServiceVirtualNetworkResource"/> along with the instance operations that can be performed on it but with no data.
/// You can use <see cref="HybridContainerServiceVirtualNetworkResource.CreateResourceIdentifier" /> to create a <see cref="HybridContainerServiceVirtualNetworkResource"/> <see cref="ResourceIdentifier"/> from its components.
/// </summary>
/// <param name="id"> The resource ID of the resource to get. </param>
/// <returns> Returns a <see cref="HybridContainerServiceVirtualNetworkResource"/> object. </returns>
public virtual HybridContainerServiceVirtualNetworkResource GetHybridContainerServiceVirtualNetworkResource(ResourceIdentifier id)
{
HybridContainerServiceVirtualNetworkResource.ValidateResourceId(id);
return new HybridContainerServiceVirtualNetworkResource(Client, id);
}
}
}