Skip to content

Commit

Permalink
mgmt trafficmanager, regen code (Azure#30070)
Browse files Browse the repository at this point in the history
* regen code

* manual code, add back id, type and name properties in EndpointInner

* nit, remove empty line
  • Loading branch information
XiaofeiCao authored Jul 21, 2022
1 parent cf1b7dc commit be35021
Show file tree
Hide file tree
Showing 11 changed files with 226 additions and 103 deletions.
3 changes: 2 additions & 1 deletion sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@
"dir": "azure-resourcemanager-trafficmanager",
"source": "specification/trafficmanager/resource-manager/readme.md",
"package": "com.azure.resourcemanager.trafficmanager",
"args": "--tag=package-2018-04"
"args": "--tag=package-2018-04",
"note": "Add back `id`, `type` and `name` properties to `EndpointInner` after code generation"
},
"msi": {
"dir": "azure-resourcemanager-msi",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface EndpointsClient {
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be updated.
* @param endpointName The name of the Traffic Manager endpoint to be updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -42,7 +42,7 @@ Mono<Response<EndpointInner>> updateWithResponseAsync(
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be updated.
* @param endpointName The name of the Traffic Manager endpoint to be updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -63,7 +63,7 @@ Mono<EndpointInner> updateAsync(
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be updated.
* @param endpointName The name of the Traffic Manager endpoint to be updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -84,7 +84,7 @@ EndpointInner update(
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be updated.
* @param endpointName The name of the Traffic Manager endpoint to be updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down Expand Up @@ -172,7 +172,7 @@ Response<EndpointInner> getWithResponse(
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -194,7 +194,7 @@ Mono<Response<EndpointInner>> createOrUpdateWithResponseAsync(
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -216,7 +216,7 @@ Mono<EndpointInner> createOrUpdateAsync(
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -238,7 +238,7 @@ EndpointInner createOrUpdate(
* @param profileName The name of the Traffic Manager profile.
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
* @param parameters Class representing a Traffic Manager endpoint.
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public interface HeatMapsClient {
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
* @param profileName The name of the Traffic Manager profile.
* @param topLeft Array of Get4ItemsItem.
* @param botRight Array of Get5ItemsItem.
* @param topLeft The top left latitude,longitude pair of the rectangular viewport to query for.
* @param botRight The bottom right latitude,longitude pair of the rectangular viewport to query for.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -35,8 +35,8 @@ Mono<Response<HeatMapModelInner>> getWithResponseAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
* @param profileName The name of the Traffic Manager profile.
* @param topLeft Array of Get4ItemsItem.
* @param botRight Array of Get5ItemsItem.
* @param topLeft The top left latitude,longitude pair of the rectangular viewport to query for.
* @param botRight The bottom right latitude,longitude pair of the rectangular viewport to query for.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand Down Expand Up @@ -77,8 +77,8 @@ Mono<HeatMapModelInner> getAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
* @param profileName The name of the Traffic Manager profile.
* @param topLeft Array of Get4ItemsItem.
* @param botRight Array of Get5ItemsItem.
* @param topLeft The top left latitude,longitude pair of the rectangular viewport to query for.
* @param botRight The bottom right latitude,longitude pair of the rectangular viewport to query for.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public interface ProfilesClient
/**
* Checks the availability of a Traffic Manager Relative DNS name.
*
* @param parameters Parameters supplied to check Traffic Manager name operation.
* @param parameters The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -40,7 +41,8 @@ Mono<Response<TrafficManagerNameAvailabilityInner>> checkTrafficManagerRelativeD
/**
* Checks the availability of a Traffic Manager Relative DNS name.
*
* @param parameters Parameters supplied to check Traffic Manager name operation.
* @param parameters The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -53,7 +55,8 @@ Mono<TrafficManagerNameAvailabilityInner> checkTrafficManagerRelativeDnsNameAvai
/**
* Checks the availability of a Traffic Manager Relative DNS name.
*
* @param parameters Parameters supplied to check Traffic Manager name operation.
* @param parameters The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability
* operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -66,7 +69,8 @@ TrafficManagerNameAvailabilityInner checkTrafficManagerRelativeDnsNameAvailabili
/**
* Checks the availability of a Traffic Manager Relative DNS name.
*
* @param parameters Parameters supplied to check Traffic Manager name operation.
* @param parameters The Traffic Manager name parameters supplied to the CheckTrafficManagerNameAvailability
* operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down Expand Up @@ -205,7 +209,7 @@ Response<ProfileInner> getByResourceGroupWithResponse(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -220,7 +224,7 @@ Mono<Response<ProfileInner>> createOrUpdateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -234,7 +238,7 @@ Mono<Response<ProfileInner>> createOrUpdateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -248,7 +252,7 @@ Mono<Response<ProfileInner>> createOrUpdateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down Expand Up @@ -318,7 +322,7 @@ Response<DeleteOperationResultInner> deleteWithResponse(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -333,7 +337,7 @@ Mono<Response<ProfileInner>> updateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -347,7 +351,7 @@ Mono<Response<ProfileInner>> updateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
Expand All @@ -361,7 +365,7 @@ Mono<Response<ProfileInner>> updateWithResponseAsync(
*
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
* @param profileName The name of the Traffic Manager profile.
* @param parameters Class representing a Traffic Manager profile.
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;

/** Class representing a Traffic Manager profile. */
@JsonFlatten
Expand Down Expand Up @@ -211,6 +212,20 @@ public ProfileInner withMaxReturn(Long maxReturn) {
return this;
}

/** {@inheritDoc} */
@Override
public ProfileInner withLocation(String location) {
super.withLocation(location);
return this;
}

/** {@inheritDoc} */
@Override
public ProfileInner withTags(Map<String, String> tags) {
super.withTags(tags);
return this;
}

/**
* Validates the instance.
*
Expand Down
Loading

0 comments on commit be35021

Please sign in to comment.