Skip to content

Commit

Permalink
Update autorest.csharp to 3.0.0-beta.20220118.1 (Azure#26419)
Browse files Browse the repository at this point in the history
* autogen resourceGroup

* autogen subscription and tenant

* autogen management group

* unflatten

* autogen Tag

* autogen providers, features

* autogen GenericResource

* add custom code

* customize managementgroup

* remove unused models

* consolidate location and resourceIdentifier changes

* fix tests

* replace extensions with partial classes

* regenerate

* fix tag methods

* fix waitForCompletion

* fix tests

* regenerate with api version changes

* fix tests

* suppress some warnings

* fix test mode

* regenerate

* bump autorest.csharp

* update resources autorest.md

* regenerate sdks

* fix tag operations

* [Cdn][DeviceUpdate][EventHubs][ServiceBus] Fix tests after bump autorest version (Azure#26422)

* fix cdn

* fix deviceupdate

* fix eventhubs

* fix servicebus

* bump autorest

* fix `storage` test cases

- fix broken api invocation in tests and samples
- update test recordings

* regenerate

* fix appconfiguration and dns (Azure#26429)

- Export-API and re-record test record for appconfiguration and dns
- fix test for appconfiguration

* [Resources][Sql] Fix tests (Azure#26432)

* fix cdn

* fix deviceupdate

* fix eventhubs

* fix servicebus

* fix resources

* fix sql

* fix after regen

* Fix [WebPubSub] [Communication] ci error

1.update test cases
2.update sample
3.update export-api

* regenerate AppService

* Update compute (Azure#26433)

* regenerate compute

* record test cases

* remove all the generated code to regenerate

* regenerate compute to add things back

* remove all the things

* regenerate

* fix test cases for compute

* fix spellcheck

* Fix for ML, DNS

* Update Azure.ResourceManager.WebPubSub.netstandard2.0.cs

* update autorest version to 3.0.0-beta.20220118.1

* fix `cosmosdb` test cases

- fix broken api invocation in tests and samples
- update test recordings

* update api of connectedvmwarevsphere

* update api of edgeorder, extendedlcoation, resourcemanager

* udpate apis of compute and cosmosdb

* update resourcemanager readme

* Fix app service

* fix inconsistent samples and readme in `storage`

* fix compilation error due to interface change in `storage`

* Update Azure.ResourceManager.AppService.netstandard2.0.cs

* Update the KeyVault RP which also upgrade to using new swagger 2021-10-01

Co-authored-by: Yao Kou <yaokou@microsoft.com>
Co-authored-by: archerzz <archerzz@gmail.com>
Co-authored-by: liurunliang <vghfvyyg@hotmail.com>
Co-authored-by: Chengming Ruan (WICRESOFT NORTH AMERICA LTD) <v-cruan@microsoft.com>
Co-authored-by: Dapeng Zhang <dapzhang@microsoft.com>
Co-authored-by: Minghao Chen <30464227+HarveyLink@users.noreply.github.com>
Co-authored-by: Arthur Ma <arthurma@microsoft.com>
  • Loading branch information
8 people authored Jan 19, 2022
1 parent e09905c commit 3c0d916
Show file tree
Hide file tree
Showing 4,648 changed files with 1,596,984 additions and 1,426,955 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 4 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
"vhds",
"swappable",
"ssdzrs",
"dscp"
"dscp",
"vmguest"
]
},
{
Expand Down Expand Up @@ -189,9 +190,11 @@
"filename": "**/sdk/keyvault/**/*.cs",
"words": [
"deletesas",
"echsm",
"getsas",
"listsas",
"oaep",
"rsahsm",
"setsas",
"mhsm",
"mhsmip"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ protected async Task CleanupResourceGroupsAsync()
var sub = _cleanupClient.GetSubscriptions().GetIfExists(TestEnvironment.SubscriptionId);
foreach (var resourceGroup in CleanupPolicy.ResourceGroupsCreated)
{
await sub.Value?.GetResourceGroups().Get(resourceGroup).Value.DeleteAsync();
await sub.Value?.GetResourceGroups().Get(resourceGroup).Value.DeleteAsync(true);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20220113.5" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20220118.1" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20220111.2" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" PrivateAssets="All" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ protected ConfigurationStore() { }
public partial class ConfigurationStoreCollection : Azure.ResourceManager.Core.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.AppConfiguration.ConfigurationStore>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppConfiguration.ConfigurationStore>, System.Collections.IEnumerable
{
protected ConfigurationStoreCollection() { }
public virtual Azure.ResourceManager.AppConfiguration.Models.ConfigurationStoreCreateOperation CreateOrUpdate(bool waitForCompletion, string configStoreName, Azure.ResourceManager.AppConfiguration.ConfigurationStoreData configStoreCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.AppConfiguration.Models.ConfigurationStoreCreateOperation> CreateOrUpdateAsync(bool waitForCompletion, string configStoreName, Azure.ResourceManager.AppConfiguration.ConfigurationStoreData configStoreCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.ResourceManager.AppConfiguration.Models.ConfigurationStoreCreateOrUpdateOperation CreateOrUpdate(bool waitForCompletion, string configStoreName, Azure.ResourceManager.AppConfiguration.ConfigurationStoreData configStoreCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.AppConfiguration.Models.ConfigurationStoreCreateOrUpdateOperation> CreateOrUpdateAsync(bool waitForCompletion, string configStoreName, Azure.ResourceManager.AppConfiguration.ConfigurationStoreData configStoreCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<bool> Exists(string configStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual System.Threading.Tasks.Task<Azure.Response<bool>> ExistsAsync(string configStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
public virtual Azure.Response<Azure.ResourceManager.AppConfiguration.ConfigurationStore> Get(string configStoreName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Expand Down Expand Up @@ -181,9 +181,9 @@ internal ApiKey() { }
public bool? ReadOnly { get { throw null; } }
public string Value { get { throw null; } }
}
public partial class ConfigurationStoreCreateOperation : Azure.Operation<Azure.ResourceManager.AppConfiguration.ConfigurationStore>
public partial class ConfigurationStoreCreateOrUpdateOperation : Azure.Operation<Azure.ResourceManager.AppConfiguration.ConfigurationStore>
{
protected ConfigurationStoreCreateOperation() { }
protected ConfigurationStoreCreateOrUpdateOperation() { }
public override bool HasCompleted { get { throw null; } }
public override bool HasValue { get { throw null; } }
public override string Id { get { throw null; } }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ResourceGroupCollection rgCollection = subscription.GetResourceGroups();
// With the Collection, we can create a new resource group with an specific name
string rgName = "myRgName";
AzureLocation location = AzureLocation.WestUS2;
ResourceGroup resourceGroup = await rgCollection.CreateOrUpdate(rgName, new ResourceGroupData(location)).WaitForCompletionAsync();
ResourceGroup resourceGroup = (await rgCollection.CreateOrUpdateAsync(true ,rgName, new ResourceGroupData(location))).Value;
```

Now that we have the resource group created, we can manage the ConfigurationStore inside this resource group.
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c0d916

Please sign in to comment.