Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR sdk/resources/mgmt-v2019_08_01] rename tag operations #3469

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
import rx.Completable;

/**
* Type representing Tags.
* Type representing TagOperations.
*/
public interface Tags {
public interface TagOperations {
/**
* Gets the names and values of all resource tags that are defined in a subscription.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,16 +200,16 @@ public ResourceGroupsInner resourceGroups() {
}

/**
* The TagsInner object to access its operations.
* The TagOperationsInner object to access its operations.
*/
private TagsInner tags;
private TagOperationsInner tagOperations;

/**
* Gets the TagsInner object to access its operations.
* @return the TagsInner object.
* Gets the TagOperationsInner object to access its operations.
* @return the TagOperationsInner object.
*/
public TagsInner tags() {
return this.tags;
public TagOperationsInner tagOperations() {
return this.tagOperations;
}

/**
Expand Down Expand Up @@ -265,7 +265,7 @@ protected void initialize() {
this.providers = new ProvidersInner(restClient().retrofit(), this);
this.resources = new ResourcesInner(restClient().retrofit(), this);
this.resourceGroups = new ResourceGroupsInner(restClient().retrofit(), this);
this.tags = new TagsInner(restClient().retrofit(), this);
this.tagOperations = new TagOperationsInner(restClient().retrofit(), this);
this.deploymentOperations = new DeploymentOperationsInner(restClient().retrofit(), this);
this.azureClient = new AzureClient(this);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.microsoft.azure.management.resources.v2019_08_01.Providers;
import com.microsoft.azure.management.resources.v2019_08_01.Resources;
import com.microsoft.azure.management.resources.v2019_08_01.ResourceGroups;
import com.microsoft.azure.management.resources.v2019_08_01.Tags;
import com.microsoft.azure.management.resources.v2019_08_01.TagOperations;
import com.microsoft.azure.management.resources.v2019_08_01.DeploymentOperations;
import com.microsoft.azure.arm.resources.implementation.AzureConfigurableCoreImpl;
import com.microsoft.azure.arm.resources.implementation.ManagerCore;
Expand All @@ -35,7 +35,7 @@ public final class ResourcesManager extends ManagerCore<ResourcesManager, Resour
private Providers providers;
private Resources resources;
private ResourceGroups resourceGroups;
private Tags tags;
private TagOperations tagOperations;
private DeploymentOperations deploymentOperations;
/**
* Get a Configurable instance that can be used to create ResourcesManager with optional configuration.
Expand Down Expand Up @@ -135,13 +135,13 @@ public ResourceGroups resourceGroups() {
}

/**
* @return Entry point to manage Tags.
* @return Entry point to manage TagOperations.
*/
public Tags tags() {
if (this.tags == null) {
this.tags = new TagsImpl(this);
public TagOperations tagOperations() {
if (this.tagOperations == null) {
this.tagOperations = new TagOperationsImpl(this);
}
return this.tags;
return this.tagOperations;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
package com.microsoft.azure.management.resources.v2019_08_01.implementation;

import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.resources.v2019_08_01.Tags;
import com.microsoft.azure.management.resources.v2019_08_01.TagOperations;
import rx.Observable;
import rx.functions.Func1;
import com.microsoft.azure.Page;
import com.microsoft.azure.management.resources.v2019_08_01.TagDetails;
import rx.Completable;
import com.microsoft.azure.management.resources.v2019_08_01.TagValue;

class TagsImpl extends WrapperImpl<TagsInner> implements Tags {
class TagOperationsImpl extends WrapperImpl<TagOperationsInner> implements TagOperations {
private final ResourcesManager manager;

TagsImpl(ResourcesManager manager) {
super(manager.inner().tags());
TagOperationsImpl(ResourcesManager manager) {
super(manager.inner().tagOperations());
this.manager = manager;
}

Expand All @@ -36,7 +36,7 @@ private TagDetailsImpl wrapTagDetailsModel(TagDetailsInner inner) {

@Override
public Observable<TagDetails> listAsync() {
TagsInner client = this.inner();
TagOperationsInner client = this.inner();
return client.listAsync()
.flatMapIterable(new Func1<Page<TagDetailsInner>, Iterable<TagDetailsInner>>() {
@Override
Expand All @@ -54,13 +54,13 @@ public TagDetails call(TagDetailsInner inner) {

@Override
public Completable deleteAsync(String tagName) {
TagsInner client = this.inner();
TagOperationsInner client = this.inner();
return client.deleteAsync(tagName).toCompletable();
}

@Override
public Observable<TagDetails> createOrUpdateAsync(String tagName) {
TagsInner client = this.inner();
TagOperationsInner client = this.inner();
return client.createOrUpdateAsync(tagName)
.map(new Func1<TagDetailsInner, TagDetails>() {
@Override
Expand All @@ -72,13 +72,13 @@ public TagDetails call(TagDetailsInner inner) {

@Override
public Completable deleteValueAsync(String tagName, String tagValue) {
TagsInner client = this.inner();
TagOperationsInner client = this.inner();
return client.deleteValueAsync(tagName, tagValue).toCompletable();
}

@Override
public Observable<TagValue> createOrUpdateValueAsync(String tagName, String tagValue) {
TagsInner client = this.inner();
TagOperationsInner client = this.inner();
return client.createOrUpdateValueAsync(tagName, tagValue)
.map(new Func1<TagValueInner, TagValue>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,51 +35,51 @@

/**
* An instance of this class provides access to all the operations defined
* in Tags.
* in TagOperations.
*/
public class TagsInner {
public class TagOperationsInner {
/** The Retrofit service to perform REST calls. */
private TagsService service;
private TagOperationsService service;
/** The service client containing this operation class. */
private ResourceManagementClientImpl client;

/**
* Initializes an instance of TagsInner.
* Initializes an instance of TagOperationsInner.
*
* @param retrofit the Retrofit instance built from a Retrofit Builder.
* @param client the instance of the service client containing this operation class.
*/
public TagsInner(Retrofit retrofit, ResourceManagementClientImpl client) {
this.service = retrofit.create(TagsService.class);
public TagOperationsInner(Retrofit retrofit, ResourceManagementClientImpl client) {
this.service = retrofit.create(TagOperationsService.class);
this.client = client;
}

/**
* The interface defining all the services for Tags to be
* The interface defining all the services for TagOperations to be
* used by Retrofit to perform actually REST calls.
*/
interface TagsService {
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.Tags deleteValue" })
interface TagOperationsService {
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.TagOperations deleteValue" })
@HTTP(path = "subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> deleteValue(@Path("tagName") String tagName, @Path("tagValue") String tagValue, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.Tags createOrUpdateValue" })
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.TagOperations createOrUpdateValue" })
@PUT("subscriptions/{subscriptionId}/tagNames/{tagName}/tagValues/{tagValue}")
Observable<Response<ResponseBody>> createOrUpdateValue(@Path("tagName") String tagName, @Path("tagValue") String tagValue, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.Tags createOrUpdate" })
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.TagOperations createOrUpdate" })
@PUT("subscriptions/{subscriptionId}/tagNames/{tagName}")
Observable<Response<ResponseBody>> createOrUpdate(@Path("tagName") String tagName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.Tags delete" })
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.TagOperations delete" })
@HTTP(path = "subscriptions/{subscriptionId}/tagNames/{tagName}", method = "DELETE", hasBody = true)
Observable<Response<ResponseBody>> delete(@Path("tagName") String tagName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.Tags list" })
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.TagOperations list" })
@GET("subscriptions/{subscriptionId}/tagNames")
Observable<Response<ResponseBody>> list(@Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.Tags listNext" })
@Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.resources.v2019_08_01.TagOperations listNext" })
@GET
Observable<Response<ResponseBody>> listNext(@Url String nextUrl, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent);

Expand Down