Skip to content

Commit 9742370

Browse files
authored
Generate storage management sdk of api version 2019-06-01 (#230)
* Generate storage management sdk of api version 2019-06-01 Azure/azure-powershell#13372 Generated from - commit 6162eacd3ceb83216f0253796d4f072a9e357730 from azure-rest-api-specs - autorest cli 3.0.6247 - autorest core 2.0.4417 - autorest.csharp 2.3.82 - autorest.modeler 2.3.55 * Remove sub service under storage account Remove file service, blob service, table service and queue service. * Remove the operations added in 2019-06-01
1 parent a6ff859 commit 9742370

File tree

114 files changed

+13531
-0
lines changed

Some content is hidden

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

114 files changed

+13531
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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.Management.Profiles.Storage.Version2019_06_01
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+
/// Operations operations.
23+
/// </summary>
24+
public partial interface IOperations
25+
{
26+
/// <summary>
27+
/// Lists all of the available Storage Rest API operations.
28+
/// </summary>
29+
/// <param name='customHeaders'>
30+
/// The headers that will be added to request.
31+
/// </param>
32+
/// <param name='cancellationToken'>
33+
/// The cancellation token.
34+
/// </param>
35+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
36+
/// Thrown when the operation returned an invalid status code
37+
/// </exception>
38+
/// <exception cref="Microsoft.Rest.SerializationException">
39+
/// Thrown when unable to deserialize the response
40+
/// </exception>
41+
/// <exception cref="Microsoft.Rest.ValidationException">
42+
/// Thrown when a required parameter is null
43+
/// </exception>
44+
Task<AzureOperationResponse<IEnumerable<Operation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
45+
}
46+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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.Management.Profiles.Storage.Version2019_06_01
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+
/// SkusOperations operations.
23+
/// </summary>
24+
public partial interface ISkusOperations
25+
{
26+
/// <summary>
27+
/// Lists the available SKUs supported by Microsoft.Storage for given
28+
/// subscription.
29+
/// </summary>
30+
/// <param name='customHeaders'>
31+
/// The headers that will be added to request.
32+
/// </param>
33+
/// <param name='cancellationToken'>
34+
/// The cancellation token.
35+
/// </param>
36+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
37+
/// Thrown when the operation returned an invalid status code
38+
/// </exception>
39+
/// <exception cref="Microsoft.Rest.SerializationException">
40+
/// Thrown when unable to deserialize the response
41+
/// </exception>
42+
/// <exception cref="Microsoft.Rest.ValidationException">
43+
/// Thrown when a required parameter is null
44+
/// </exception>
45+
Task<AzureOperationResponse<IEnumerable<SkuInformation>>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
46+
}
47+
}

src/Storage.Management/Version2019-06-01/IStorageAccountsOperations.cs

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.Management.Profiles.Storage.Version2019_06_01
12+
{
13+
using Microsoft.Rest;
14+
using Microsoft.Rest.Azure;
15+
using Models;
16+
using Newtonsoft.Json;
17+
18+
/// <summary>
19+
/// The Azure Storage Management API.
20+
/// </summary>
21+
public partial interface IStorageManagementClient : System.IDisposable
22+
{
23+
/// <summary>
24+
/// The base URI of the service.
25+
/// </summary>
26+
System.Uri BaseUri { get; set; }
27+
28+
/// <summary>
29+
/// Gets or sets json serialization settings.
30+
/// </summary>
31+
JsonSerializerSettings SerializationSettings { get; }
32+
33+
/// <summary>
34+
/// Gets or sets json deserialization settings.
35+
/// </summary>
36+
JsonSerializerSettings DeserializationSettings { get; }
37+
38+
/// <summary>
39+
/// Credentials needed for the client to connect to Azure.
40+
/// </summary>
41+
ServiceClientCredentials Credentials { get; }
42+
43+
/// <summary>
44+
/// The ID of the target subscription.
45+
/// </summary>
46+
string SubscriptionId { get; set; }
47+
48+
/// <summary>
49+
/// The API version to use for this operation.
50+
/// </summary>
51+
string ApiVersion { get; }
52+
53+
/// <summary>
54+
/// The preferred language for the response.
55+
/// </summary>
56+
string AcceptLanguage { get; set; }
57+
58+
/// <summary>
59+
/// The retry timeout in seconds for Long Running Operations. Default
60+
/// value is 30.
61+
/// </summary>
62+
int? LongRunningOperationRetryTimeout { get; set; }
63+
64+
/// <summary>
65+
/// Whether a unique x-ms-client-request-id should be generated. When
66+
/// set to true a unique x-ms-client-request-id value is generated and
67+
/// included in each request. Default is true.
68+
/// </summary>
69+
bool? GenerateClientRequestId { get; set; }
70+
71+
72+
/// <summary>
73+
/// Gets the IOperations.
74+
/// </summary>
75+
IOperations Operations { get; }
76+
77+
/// <summary>
78+
/// Gets the ISkusOperations.
79+
/// </summary>
80+
ISkusOperations Skus { get; }
81+
82+
/// <summary>
83+
/// Gets the IStorageAccountsOperations.
84+
/// </summary>
85+
IStorageAccountsOperations StorageAccounts { get; }
86+
87+
/// <summary>
88+
/// Gets the IUsagesOperations.
89+
/// </summary>
90+
IUsagesOperations Usages { get; }
91+
92+
}
93+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.Management.Profiles.Storage.Version2019_06_01
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+
/// UsagesOperations operations.
23+
/// </summary>
24+
public partial interface IUsagesOperations
25+
{
26+
/// <summary>
27+
/// Gets the current usage count and the limit for the resources of the
28+
/// location under the subscription.
29+
/// </summary>
30+
/// <param name='location'>
31+
/// The location of the Azure Storage resource.
32+
/// </param>
33+
/// <param name='customHeaders'>
34+
/// The headers that will be added to request.
35+
/// </param>
36+
/// <param name='cancellationToken'>
37+
/// The cancellation token.
38+
/// </param>
39+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
40+
/// Thrown when the operation returned an invalid status code
41+
/// </exception>
42+
/// <exception cref="Microsoft.Rest.SerializationException">
43+
/// Thrown when unable to deserialize the response
44+
/// </exception>
45+
/// <exception cref="Microsoft.Rest.ValidationException">
46+
/// Thrown when a required parameter is null
47+
/// </exception>
48+
Task<AzureOperationResponse<IEnumerable<Usage>>> ListByLocationWithHttpMessagesAsync(string location, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
49+
}
50+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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.Management.Profiles.Storage.Version2019_06_01.Models
12+
{
13+
using Newtonsoft.Json;
14+
using Newtonsoft.Json.Converters;
15+
using System.Runtime;
16+
using System.Runtime.Serialization;
17+
18+
/// <summary>
19+
/// Defines values for AccessTier.
20+
/// </summary>
21+
[JsonConverter(typeof(StringEnumConverter))]
22+
public enum AccessTier
23+
{
24+
[EnumMember(Value = "Hot")]
25+
Hot,
26+
[EnumMember(Value = "Cool")]
27+
Cool
28+
}
29+
internal static class AccessTierEnumExtension
30+
{
31+
internal static string ToSerializedValue(this AccessTier? value)
32+
{
33+
return value == null ? null : ((AccessTier)value).ToSerializedValue();
34+
}
35+
36+
internal static string ToSerializedValue(this AccessTier value)
37+
{
38+
switch( value )
39+
{
40+
case AccessTier.Hot:
41+
return "Hot";
42+
case AccessTier.Cool:
43+
return "Cool";
44+
}
45+
return null;
46+
}
47+
48+
internal static AccessTier? ParseAccessTier(this string value)
49+
{
50+
switch( value )
51+
{
52+
case "Hot":
53+
return AccessTier.Hot;
54+
case "Cool":
55+
return AccessTier.Cool;
56+
}
57+
return null;
58+
}
59+
}
60+
}

0 commit comments

Comments
 (0)