Skip to content

Commit

Permalink
rename tagoperatoins property (#23280)
Browse files Browse the repository at this point in the history
* update simple resources to no longer have operations
rename ResourceOperations to ArmResource
rename ResourceContainer to ArmContainer

* combine genericResource and genericResourceExpanded
add test case to validate the expand deserializes properly

* combine managementGroupInfo and manageGroup

* update core tests after changes

* update fields to be consistent with autorest

* update after test interceptor changes

* update to take resourceidentifier
differentiate between a tenant provider and a subscription provider
add overloads to get generic resource list to take string and resource identifier

* update api after changes

* add test case to validate bad sub id being passed into armclient

* temporarily use alpha version of core

* remove unused overload

* add recording so test can be played back in ci

* use testenv creds

* update tagresource name

* update after merge

* update api
  • Loading branch information
m-nash authored Aug 12, 2021
1 parent 4c10b87 commit 40aa41b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ protected ArmResource(Azure.ResourceManager.Core.ArmResource parentOperations, A
public virtual Azure.ResourceManager.ResourceIdentifier Id { get { throw null; } }
protected internal virtual Azure.Core.Pipeline.HttpPipeline Pipeline { get { throw null; } }
protected internal Azure.ResourceManager.Resources.TagResourceContainer TagContainer { get { throw null; } }
protected internal Azure.ResourceManager.Resources.TagResource TagResourceOperations { get { throw null; } }
protected internal Azure.ResourceManager.Resources.TagResource TagResource { get { throw null; } }
protected abstract Azure.ResourceManager.ResourceType ValidResourceType { get; }
protected System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.Location> ListAvailableLocations(Azure.ResourceManager.ResourceType resourceType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
protected System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.Location>> ListAvailableLocationsAsync(Azure.ResourceManager.ResourceType resourceType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
Expand Down
4 changes: 2 additions & 2 deletions sdk/resourcemanager/Azure.ResourceManager/src/ArmResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace Azure.ResourceManager.Core
public abstract class ArmResource
{
private TagResourceContainer _tagContainer;
private TagResource _tagResourceOperations;
private TagResource _tagResource;
private Tenant _tenant;

/// <summary>
Expand Down Expand Up @@ -91,7 +91,7 @@ internal ArmResource(ClientContext clientContext, ResourceIdentifier id)
/// Gets the TagResourceOperations.
/// </summary>
/// <returns> A TagResourceOperations. </returns>
protected internal TagResource TagResourceOperations => _tagResourceOperations ??= new TagResource(this, Id);
protected internal TagResource TagResource => _tagResource ??= new TagResource(this, Id);

/// <summary>
/// Gets the TagsOperations.
Expand Down

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

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

0 comments on commit 40aa41b

Please sign in to comment.