Skip to content

Commit f71ec4d

Browse files
committed
Merge branch 'main' of https://github.com/Azure/azure-powershell into mergestoragepreview
2 parents a4c5716 + 7188330 commit f71ec4d

File tree

184 files changed

+813
-446
lines changed

Some content is hidden

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

184 files changed

+813
-446
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,15 @@
66

77
## Checklist
88

9+
- **Mandatory**: please state whether this PR targets a [**general** release](../blob/main/CONTRIBUTING.md#target-release-types) / [**public preview**](../blob/main/CONTRIBUTING.md#target-release-types) / [**private preview**]((../blob/main/CONTRIBUTING.md#target-release-types)) / [**engineering build**](../blob/main/CONTRIBUTING.md#target-release-types) of Azure PowerShell?
10+
- `{Enter your answer here}`
911
- [ ] Check this box to confirm: **I have read the [_Submitting Changes_](../blob/main/CONTRIBUTING.md#submitting-changes) section of [`CONTRIBUTING.md`](../blob/main/CONTRIBUTING.md) and reviewed the following information:**
1012

11-
* **SHOULD** select appropriate branch. Cmdlets from Autorest.PowerShell should go to [`generation`](https://github.com/Azure/azure-powershell/tree/generation) branch.
12-
* **SHOULD** make the title of PR clear and informative, and in the present imperative tense.
1313
* **SHOULD** update `ChangeLog.md` file(s) appropriately
14-
* For any service, the `ChangeLog.md` file can be found at `src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md`
15-
* A snippet outlining the change(s) made in the PR should be written under the `## Upcoming Release` header in the past tense. Add changelog in description section if PR goes into [`generation`](https://github.com/Azure/azure-powershell/tree/generation) branch.
14+
* For SDK-based development mode, update `src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md`.
15+
* A snippet outlining the change(s) made in the PR should be written under the `## Upcoming Release` header in the past tense.
16+
* For autorest-based development mode, include the changelog in the PR description.
1617
* Should **not** change `ChangeLog.md` if no new release is required, such as fixing test case only.
17-
* **SHOULD** have approved design review for the changes in [this repository](https://github.com/Azure/azure-powershell-cmdlet-review-pr) ([_Microsoft internal only_](../blob/main/CONTRIBUTING.md#onboarding)) with following situations
18-
* Create new module from scratch
19-
* Create new resource types which are not easy to conform to [Azure PowerShell Design Guidelines](../blob/main/documentation/development-docs/design-guidelines)
20-
* Create new resource type which name doesn't use module name as prefix
21-
* Have design question before implementation
2218
* **SHOULD** regenerate markdown help files if there is cmdlet API change. [Instruction](../blob/main/documentation/development-docs/help-generation.md#updating-all-markdown-files-in-a-module)
2319
* **SHOULD** have proper test coverage for changes in pull request.
24-
* **SHOULD NOT** introduce [breaking changes](../blob/main/documentation/breaking-changes/breaking-changes-definition.md) in Az minor release except preview version.
2520
* **SHOULD NOT** adjust version of module manually in pull request

CONTRIBUTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,27 @@ completed checklist.
9090
The following set of guidelines must be adhered to when opening pull requests in the Azure
9191
PowerShell repository.
9292

93+
#### Target Release Types
94+
95+
Here are all types of releases of **Azure PowerShell**. Note that the type of release isn't necessarily aligned to the state of the swagger or service feature.
96+
97+
- **General** release
98+
- This PR targets an [official general release](https://github.com/Azure/azure-powershell/milestones) of Azure PowerShell.
99+
- Target version is `x.y.z`, no suffix.
100+
- Note: versions < 1.0.0 are also included in this category.
101+
- Target branch should be `main` or `generation` depending on the development approach.
102+
- **Preview** release
103+
- **Public preview**
104+
- This PR targets a preview release of Azure PowerShell. It is independent to the normal release cycle.
105+
- Target version is `x.y.z-preview`.
106+
- Note: if the major version is 0, it is considered a general release rather than preview.
107+
- Target branch should not be `main` nor `generation`. Please contact [sprint master](https://github.com/Azure/azure-powershell/milestones) if you are unsure about which branch to target.
108+
- **Private preview** / **Embargoed preview**
109+
- This PR is related to some business secret. It should not be submitted to this repository. Contact [sprint master](https://github.com/Azure/azure-powershell/milestones) for more details.
110+
- **Engineering build**
111+
- This PR does not require any kind of releases. It's for internal or private distribution.
112+
- Target branch should not be `main` nor `generation`. Please contact [sprint master](https://github.com/Azure/azure-powershell/milestones) if you are unsure about which branch to target.
113+
93114
#### General guidelines
94115

95116
The following guidelines must be followed for **every** pull request that is opened.

src/CognitiveServices/CognitiveServices.Management.Sdk/Generated/AccountsOperations.cs

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ internal AccountsOperations (CognitiveServicesManagementClient client)
349349

350350
}
351351
/// <summary>
352-
/// Returns all the resources of a particular type belonging to a resource group
352+
/// Returns all the resources of a particular type belonging to a resource
353+
/// group
353354
/// </summary>
354355
/// <param name='resourceGroupName'>
355356
/// The name of the resource group. The name is case insensitive.
@@ -995,7 +996,8 @@ internal AccountsOperations (CognitiveServicesManagementClient client)
995996

996997
}
997998
/// <summary>
998-
/// Regenerates the specified account key for the specified Cognitive Services account.
999+
/// Regenerates the specified account key for the specified Cognitive Services
1000+
/// account.
9991001
/// </summary>
10001002
/// <param name='resourceGroupName'>
10011003
/// The name of the resource group. The name is case insensitive.
@@ -1492,7 +1494,9 @@ internal AccountsOperations (CognitiveServicesManagementClient client)
14921494
/// The name of Cognitive Services account.
14931495
/// </param>
14941496
/// <param name='filter'>
1495-
/// An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
1497+
/// An OData filter expression that describes a subset of usages to return. The
1498+
/// supported parameter is name.value (name of the metric, can have an or of
1499+
/// multiple names).
14961500
/// </param>
14971501
/// <param name='customHeaders'>
14981502
/// Headers that will be added to request.
@@ -1968,7 +1972,9 @@ internal AccountsOperations (CognitiveServicesManagementClient client)
19681972

19691973
}
19701974
/// <summary>
1971-
/// Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It&#39;s also the resource type for billing.
1975+
/// Create Cognitive Services Account. Accounts is a resource group wide
1976+
/// resource type. It holds the keys for developer to access intelligent APIs.
1977+
/// It&#39;s also the resource type for billing.
19721978
/// </summary>
19731979
/// <param name='resourceGroupName'>
19741980
/// The name of the resource group. The name is case insensitive.
@@ -2530,7 +2536,7 @@ internal AccountsOperations (CognitiveServicesManagementClient client)
25302536

25312537
}
25322538
/// <summary>
2533-
/// Deletes a Cognitive Services account from the resource group.
2539+
/// Deletes a Cognitive Services account from the resource group.
25342540
/// </summary>
25352541
/// <param name='resourceGroupName'>
25362542
/// The name of the resource group. The name is case insensitive.
@@ -2747,7 +2753,8 @@ internal AccountsOperations (CognitiveServicesManagementClient client)
27472753

27482754
}
27492755
/// <summary>
2750-
/// Returns all the resources of a particular type belonging to a resource group
2756+
/// Returns all the resources of a particular type belonging to a resource
2757+
/// group
27512758
/// </summary>
27522759
/// <param name='nextPageLink'>
27532760
/// The NextLink from the previous successful call to List operation.

src/CognitiveServices/CognitiveServices.Management.Sdk/Generated/AccountsOperationsExtensions.cs

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ namespace Microsoft.Azure.Management.CognitiveServices
1313
public static partial class AccountsOperationsExtensions
1414
{
1515
/// <summary>
16-
/// Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It&#39;s also the resource type for billing.
16+
/// Create Cognitive Services Account. Accounts is a resource group wide
17+
/// resource type. It holds the keys for developer to access intelligent APIs.
18+
/// It&#39;s also the resource type for billing.
1719
/// </summary>
1820
/// <param name='operations'>
1921
/// The operations group for this extension method.
@@ -30,7 +32,9 @@ public static Account Create(this IAccountsOperations operations, string resourc
3032
}
3133

3234
/// <summary>
33-
/// Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It&#39;s also the resource type for billing.
35+
/// Create Cognitive Services Account. Accounts is a resource group wide
36+
/// resource type. It holds the keys for developer to access intelligent APIs.
37+
/// It&#39;s also the resource type for billing.
3438
/// </summary>
3539
/// <param name='operations'>
3640
/// The operations group for this extension method.
@@ -91,7 +95,7 @@ public static Account Update(this IAccountsOperations operations, string resourc
9195
}
9296
}
9397
/// <summary>
94-
/// Deletes a Cognitive Services account from the resource group.
98+
/// Deletes a Cognitive Services account from the resource group.
9599
/// </summary>
96100
/// <param name='operations'>
97101
/// The operations group for this extension method.
@@ -108,7 +112,7 @@ public static void Delete(this IAccountsOperations operations, string resourceGr
108112
}
109113

110114
/// <summary>
111-
/// Deletes a Cognitive Services account from the resource group.
115+
/// Deletes a Cognitive Services account from the resource group.
112116
/// </summary>
113117
/// <param name='operations'>
114118
/// The operations group for this extension method.
@@ -166,7 +170,8 @@ public static Account Get(this IAccountsOperations operations, string resourceGr
166170
}
167171
}
168172
/// <summary>
169-
/// Returns all the resources of a particular type belonging to a resource group
173+
/// Returns all the resources of a particular type belonging to a resource
174+
/// group
170175
/// </summary>
171176
/// <param name='operations'>
172177
/// The operations group for this extension method.
@@ -180,7 +185,8 @@ public static Microsoft.Rest.Azure.IPage<Account> ListByResourceGroup(this IAcco
180185
}
181186

182187
/// <summary>
183-
/// Returns all the resources of a particular type belonging to a resource group
188+
/// Returns all the resources of a particular type belonging to a resource
189+
/// group
184190
/// </summary>
185191
/// <param name='operations'>
186192
/// The operations group for this extension method.
@@ -265,7 +271,8 @@ public static ApiKeys ListKeys(this IAccountsOperations operations, string resou
265271
}
266272
}
267273
/// <summary>
268-
/// Regenerates the specified account key for the specified Cognitive Services account.
274+
/// Regenerates the specified account key for the specified Cognitive Services
275+
/// account.
269276
/// </summary>
270277
/// <param name='operations'>
271278
/// The operations group for this extension method.
@@ -282,7 +289,8 @@ public static ApiKeys RegenerateKey(this IAccountsOperations operations, string
282289
}
283290

284291
/// <summary>
285-
/// Regenerates the specified account key for the specified Cognitive Services account.
292+
/// Regenerates the specified account key for the specified Cognitive Services
293+
/// account.
286294
/// </summary>
287295
/// <param name='operations'>
288296
/// The operations group for this extension method.
@@ -355,7 +363,9 @@ public static AccountSkuListResult ListSkus(this IAccountsOperations operations,
355363
/// The name of Cognitive Services account.
356364
/// </param>
357365
/// <param name='filter'>
358-
/// An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
366+
/// An OData filter expression that describes a subset of usages to return. The
367+
/// supported parameter is name.value (name of the metric, can have an or of
368+
/// multiple names).
359369
/// </param>
360370
public static UsageListResult ListUsages(this IAccountsOperations operations, string resourceGroupName, string accountName, string filter = default(string))
361371
{
@@ -375,7 +385,9 @@ public static AccountSkuListResult ListSkus(this IAccountsOperations operations,
375385
/// The name of Cognitive Services account.
376386
/// </param>
377387
/// <param name='filter'>
378-
/// An OData filter expression that describes a subset of usages to return. The supported parameter is name.value (name of the metric, can have an or of multiple names).
388+
/// An OData filter expression that describes a subset of usages to return. The
389+
/// supported parameter is name.value (name of the metric, can have an or of
390+
/// multiple names).
379391
/// </param>
380392
/// <param name='cancellationToken'>
381393
/// The cancellation token.
@@ -427,7 +439,9 @@ public static Microsoft.Rest.Azure.IPage<AccountModel> ListModels(this IAccounts
427439
}
428440
}
429441
/// <summary>
430-
/// Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It&#39;s also the resource type for billing.
442+
/// Create Cognitive Services Account. Accounts is a resource group wide
443+
/// resource type. It holds the keys for developer to access intelligent APIs.
444+
/// It&#39;s also the resource type for billing.
431445
/// </summary>
432446
/// <param name='operations'>
433447
/// The operations group for this extension method.
@@ -444,7 +458,9 @@ public static Account BeginCreate(this IAccountsOperations operations, string re
444458
}
445459

446460
/// <summary>
447-
/// Create Cognitive Services Account. Accounts is a resource group wide resource type. It holds the keys for developer to access intelligent APIs. It&#39;s also the resource type for billing.
461+
/// Create Cognitive Services Account. Accounts is a resource group wide
462+
/// resource type. It holds the keys for developer to access intelligent APIs.
463+
/// It&#39;s also the resource type for billing.
448464
/// </summary>
449465
/// <param name='operations'>
450466
/// The operations group for this extension method.
@@ -505,7 +521,7 @@ public static Account BeginUpdate(this IAccountsOperations operations, string re
505521
}
506522
}
507523
/// <summary>
508-
/// Deletes a Cognitive Services account from the resource group.
524+
/// Deletes a Cognitive Services account from the resource group.
509525
/// </summary>
510526
/// <param name='operations'>
511527
/// The operations group for this extension method.
@@ -522,7 +538,7 @@ public static void BeginDelete(this IAccountsOperations operations, string resou
522538
}
523539

524540
/// <summary>
525-
/// Deletes a Cognitive Services account from the resource group.
541+
/// Deletes a Cognitive Services account from the resource group.
526542
/// </summary>
527543
/// <param name='operations'>
528544
/// The operations group for this extension method.
@@ -541,7 +557,8 @@ public static void BeginDelete(this IAccountsOperations operations, string resou
541557
(await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, null, cancellationToken).ConfigureAwait(false)).Dispose();
542558
}
543559
/// <summary>
544-
/// Returns all the resources of a particular type belonging to a resource group
560+
/// Returns all the resources of a particular type belonging to a resource
561+
/// group
545562
/// </summary>
546563
/// <param name='operations'>
547564
/// The operations group for this extension method.
@@ -555,7 +572,8 @@ public static Microsoft.Rest.Azure.IPage<Account> ListByResourceGroupNext(this I
555572
}
556573

557574
/// <summary>
558-
/// Returns all the resources of a particular type belonging to a resource group
575+
/// Returns all the resources of a particular type belonging to a resource
576+
/// group
559577
/// </summary>
560578
/// <param name='operations'>
561579
/// The operations group for this extension method.

src/CognitiveServices/CognitiveServices.Management.Sdk/Generated/CognitiveServicesManagementClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ public partial class CognitiveServicesManagementClient : Microsoft.Rest.ServiceC
4949

5050
/// <summary>
5151
/// The retry timeout in seconds for Long Running Operations. Default
52-
/// value is 30.
52+
/// /// value is 30.
5353
/// </summary>
5454
public int? LongRunningOperationRetryTimeout { get; set;}
5555

5656
/// <summary>
57-
/// Whether a unique x-ms-client-request-id should be generated. When
58-
/// set to true a unique x-ms-client-request-id value is generated and
59-
/// included in each request. Default is true.
57+
/// Whether a unique x-ms-client-request-id should be generated. When
58+
/// /// set to true a unique x-ms-client-request-id value is generated and
59+
/// /// included in each request. Default is true.
6060
/// </summary>
6161
public bool? GenerateClientRequestId { get; set;}
6262

0 commit comments

Comments
 (0)