Skip to content

Commit d74f46b

Browse files
asagerAndrew Sagerdingmeng-xue
authored
Add EdgeZone parameter to Compute module (#15032)
* Compute module * added my computehelpers storagemanagementclient to asr (#14972) Co-authored-by: Andrew Sager <[email protected]> * repo builds. * Network module * include ComputeHelpers in RecoverServices csprojs * updated Compute ChangeLog to be faithful to PR * fixed changelog again * update changelog and test case of Network * Update network solution Co-authored-by: Andrew Sager <[email protected]> Co-authored-by: dingmeng-xue <[email protected]>
1 parent bd6de13 commit d74f46b

File tree

392 files changed

+56804
-255
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

392 files changed

+56804
-255
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<PsModuleName>Compute</PsModuleName>
5+
</PropertyGroup>
6+
7+
<Import Project="$(MSBuildThisFileDirectory)..\..\Az.props" />
8+
9+
<PropertyGroup>
10+
<TargetFramework>netstandard2.0</TargetFramework>
11+
<AssemblyName>Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers</AssemblyName>
12+
<RootNamespace>Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers</RootNamespace>
13+
<NoWarn>CS0108</NoWarn>
14+
</PropertyGroup>
15+
16+
</Project>
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Network
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// LoadBalancersOperations operations.
23+
/// </summary>
24+
public partial interface ILoadBalancersOperations
25+
{
26+
/// <summary>
27+
/// Gets the specified load balancer.
28+
/// </summary>
29+
/// <param name='resourceGroupName'>
30+
/// The name of the resource group.
31+
/// </param>
32+
/// <param name='loadBalancerName'>
33+
/// The name of the load balancer.
34+
/// </param>
35+
/// <param name='expand'>
36+
/// Expands referenced resources.
37+
/// </param>
38+
/// <param name='customHeaders'>
39+
/// The headers that will be added to request.
40+
/// </param>
41+
/// <param name='cancellationToken'>
42+
/// The cancellation token.
43+
/// </param>
44+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
45+
/// Thrown when the operation returned an invalid status code
46+
/// </exception>
47+
/// <exception cref="Microsoft.Rest.SerializationException">
48+
/// Thrown when unable to deserialize the response
49+
/// </exception>
50+
/// <exception cref="Microsoft.Rest.ValidationException">
51+
/// Thrown when a required parameter is null
52+
/// </exception>
53+
Task<AzureOperationResponse<LoadBalancer>> GetWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
54+
/// <summary>
55+
/// Creates or updates a load balancer.
56+
/// </summary>
57+
/// <param name='resourceGroupName'>
58+
/// The name of the resource group.
59+
/// </param>
60+
/// <param name='loadBalancerName'>
61+
/// The name of the load balancer.
62+
/// </param>
63+
/// <param name='parameters'>
64+
/// Parameters supplied to the create or update load balancer
65+
/// operation.
66+
/// </param>
67+
/// <param name='customHeaders'>
68+
/// The headers that will be added to request.
69+
/// </param>
70+
/// <param name='cancellationToken'>
71+
/// The cancellation token.
72+
/// </param>
73+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
74+
/// Thrown when the operation returned an invalid status code
75+
/// </exception>
76+
/// <exception cref="Microsoft.Rest.SerializationException">
77+
/// Thrown when unable to deserialize the response
78+
/// </exception>
79+
/// <exception cref="Microsoft.Rest.ValidationException">
80+
/// Thrown when a required parameter is null
81+
/// </exception>
82+
Task<AzureOperationResponse<LoadBalancer>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, LoadBalancer parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
83+
/// <summary>
84+
/// Creates or updates a load balancer.
85+
/// </summary>
86+
/// <param name='resourceGroupName'>
87+
/// The name of the resource group.
88+
/// </param>
89+
/// <param name='loadBalancerName'>
90+
/// The name of the load balancer.
91+
/// </param>
92+
/// <param name='parameters'>
93+
/// Parameters supplied to the create or update load balancer
94+
/// operation.
95+
/// </param>
96+
/// <param name='customHeaders'>
97+
/// The headers that will be added to request.
98+
/// </param>
99+
/// <param name='cancellationToken'>
100+
/// The cancellation token.
101+
/// </param>
102+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
103+
/// Thrown when the operation returned an invalid status code
104+
/// </exception>
105+
/// <exception cref="Microsoft.Rest.SerializationException">
106+
/// Thrown when unable to deserialize the response
107+
/// </exception>
108+
/// <exception cref="Microsoft.Rest.ValidationException">
109+
/// Thrown when a required parameter is null
110+
/// </exception>
111+
Task<AzureOperationResponse<LoadBalancer>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string loadBalancerName, LoadBalancer parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
112+
}
113+
}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Network
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Threading;
19+
using System.Threading.Tasks;
20+
21+
/// <summary>
22+
/// NetworkInterfacesOperations operations.
23+
/// </summary>
24+
public partial interface INetworkInterfacesOperations
25+
{
26+
/// <summary>
27+
/// Gets information about the specified network interface.
28+
/// </summary>
29+
/// <param name='resourceGroupName'>
30+
/// The name of the resource group.
31+
/// </param>
32+
/// <param name='networkInterfaceName'>
33+
/// The name of the network interface.
34+
/// </param>
35+
/// <param name='expand'>
36+
/// Expands referenced resources.
37+
/// </param>
38+
/// <param name='customHeaders'>
39+
/// The headers that will be added to request.
40+
/// </param>
41+
/// <param name='cancellationToken'>
42+
/// The cancellation token.
43+
/// </param>
44+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
45+
/// Thrown when the operation returned an invalid status code
46+
/// </exception>
47+
/// <exception cref="Microsoft.Rest.SerializationException">
48+
/// Thrown when unable to deserialize the response
49+
/// </exception>
50+
/// <exception cref="Microsoft.Rest.ValidationException">
51+
/// Thrown when a required parameter is null
52+
/// </exception>
53+
Task<AzureOperationResponse<NetworkInterface>> GetWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, string expand = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
54+
/// <summary>
55+
/// Creates or updates a network interface.
56+
/// </summary>
57+
/// <param name='resourceGroupName'>
58+
/// The name of the resource group.
59+
/// </param>
60+
/// <param name='networkInterfaceName'>
61+
/// The name of the network interface.
62+
/// </param>
63+
/// <param name='parameters'>
64+
/// Parameters supplied to the create or update network interface
65+
/// operation.
66+
/// </param>
67+
/// <param name='customHeaders'>
68+
/// The headers that will be added to request.
69+
/// </param>
70+
/// <param name='cancellationToken'>
71+
/// The cancellation token.
72+
/// </param>
73+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
74+
/// Thrown when the operation returned an invalid status code
75+
/// </exception>
76+
/// <exception cref="Microsoft.Rest.SerializationException">
77+
/// Thrown when unable to deserialize the response
78+
/// </exception>
79+
/// <exception cref="Microsoft.Rest.ValidationException">
80+
/// Thrown when a required parameter is null
81+
/// </exception>
82+
Task<AzureOperationResponse<NetworkInterface>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, NetworkInterface parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
83+
/// <summary>
84+
/// Creates or updates a network interface.
85+
/// </summary>
86+
/// <param name='resourceGroupName'>
87+
/// The name of the resource group.
88+
/// </param>
89+
/// <param name='networkInterfaceName'>
90+
/// The name of the network interface.
91+
/// </param>
92+
/// <param name='parameters'>
93+
/// Parameters supplied to the create or update network interface
94+
/// operation.
95+
/// </param>
96+
/// <param name='customHeaders'>
97+
/// The headers that will be added to request.
98+
/// </param>
99+
/// <param name='cancellationToken'>
100+
/// The cancellation token.
101+
/// </param>
102+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
103+
/// Thrown when the operation returned an invalid status code
104+
/// </exception>
105+
/// <exception cref="Microsoft.Rest.SerializationException">
106+
/// Thrown when unable to deserialize the response
107+
/// </exception>
108+
/// <exception cref="Microsoft.Rest.ValidationException">
109+
/// Thrown when a required parameter is null
110+
/// </exception>
111+
Task<AzureOperationResponse<NetworkInterface>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkInterfaceName, NetworkInterface parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
112+
}
113+
}
Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
// <auto-generated>
2+
// Copyright (c) Microsoft Corporation. All rights reserved.
3+
// Licensed under the MIT License. See License.txt in the project root for
4+
// license information.
5+
//
6+
// Code generated by Microsoft (R) AutoRest Code Generator.
7+
// Changes may cause incorrect behavior and will be lost if the code is
8+
// regenerated.
9+
// </auto-generated>
10+
11+
namespace Microsoft.Azure.PowerShell.Cmdlets.Compute.Helpers.Network
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using Newtonsoft.Json;
17+
using System.Collections;
18+
using System.Collections.Generic;
19+
using System.Threading;
20+
using System.Threading.Tasks;
21+
22+
/// <summary>
23+
/// The Microsoft Azure Network management API provides a RESTful set of
24+
/// web services that interact with Microsoft Azure Networks service to
25+
/// manage your network resources. The API has entities that capture the
26+
/// relationship between an end user and the Microsoft Azure Networks
27+
/// service.
28+
/// </summary>
29+
public partial interface INetworkManagementClient : System.IDisposable
30+
{
31+
/// <summary>
32+
/// The base URI of the service.
33+
/// </summary>
34+
System.Uri BaseUri { get; set; }
35+
36+
/// <summary>
37+
/// Gets or sets json serialization settings.
38+
/// </summary>
39+
JsonSerializerSettings SerializationSettings { get; }
40+
41+
/// <summary>
42+
/// Gets or sets json deserialization settings.
43+
/// </summary>
44+
JsonSerializerSettings DeserializationSettings { get; }
45+
46+
/// <summary>
47+
/// Credentials needed for the client to connect to Azure.
48+
/// </summary>
49+
ServiceClientCredentials Credentials { get; }
50+
51+
/// <summary>
52+
/// The subscription credentials which uniquely identify the Microsoft
53+
/// Azure subscription. The subscription ID forms part of the URI for
54+
/// every service call.
55+
/// </summary>
56+
string SubscriptionId { get; set; }
57+
58+
/// <summary>
59+
/// Client API version.
60+
/// </summary>
61+
string ApiVersion { get; }
62+
63+
/// <summary>
64+
/// The preferred language for the response.
65+
/// </summary>
66+
string AcceptLanguage { get; set; }
67+
68+
/// <summary>
69+
/// The retry timeout in seconds for Long Running Operations. Default
70+
/// value is 30.
71+
/// </summary>
72+
int? LongRunningOperationRetryTimeout { get; set; }
73+
74+
/// <summary>
75+
/// Whether a unique x-ms-client-request-id should be generated. When
76+
/// set to true a unique x-ms-client-request-id value is generated and
77+
/// included in each request. Default is true.
78+
/// </summary>
79+
bool? GenerateClientRequestId { get; set; }
80+
81+
82+
/// <summary>
83+
/// Gets the IVirtualNetworksOperations.
84+
/// </summary>
85+
IVirtualNetworksOperations VirtualNetworks { get; }
86+
87+
/// <summary>
88+
/// Gets the ILoadBalancersOperations.
89+
/// </summary>
90+
ILoadBalancersOperations LoadBalancers { get; }
91+
92+
/// <summary>
93+
/// Gets the INetworkInterfacesOperations.
94+
/// </summary>
95+
INetworkInterfacesOperations NetworkInterfaces { get; }
96+
97+
/// <summary>
98+
/// Gets the INetworkSecurityGroupsOperations.
99+
/// </summary>
100+
INetworkSecurityGroupsOperations NetworkSecurityGroups { get; }
101+
102+
/// <summary>
103+
/// Gets the IPublicIPAddressesOperations.
104+
/// </summary>
105+
IPublicIPAddressesOperations PublicIPAddresses { get; }
106+
107+
/// <summary>
108+
/// Checks whether a domain name in the cloudapp.azure.com zone is
109+
/// available for use.
110+
/// </summary>
111+
/// <param name='location'>
112+
/// The location of the domain name.
113+
/// </param>
114+
/// <param name='domainNameLabel'>
115+
/// The domain name to be verified. It must conform to the following
116+
/// regular expression: ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
117+
/// </param>
118+
/// <param name='customHeaders'>
119+
/// The headers that will be added to request.
120+
/// </param>
121+
/// <param name='cancellationToken'>
122+
/// The cancellation token.
123+
/// </param>
124+
Task<AzureOperationResponse<DnsNameAvailabilityResult>> CheckDnsNameAvailabilityWithHttpMessagesAsync(string location, string domainNameLabel, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
125+
126+
}
127+
}

0 commit comments

Comments
 (0)