Skip to content

Commit

Permalink
CodeGen from PR 29080 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3751a1cb596fa82dd5a380f673f0b4c87ee9b331 into acea819f6b350a1e2d598d02628a1719b5f9da5d
  • Loading branch information
SDKAuto committed May 11, 2024
1 parent 6807a66 commit a6fbf15
Show file tree
Hide file tree
Showing 55 changed files with 963 additions and 368 deletions.
4 changes: 3 additions & 1 deletion sdk/edgezones/azure-resourcemanager-edgezones/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2024-05-11)

- Azure Resource Manager Edge Zones client library for Java. This package contains Microsoft Azure SDK for Edge Zones Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
2 changes: 1 addition & 1 deletion sdk/edgezones/azure-resourcemanager-edgezones/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager Edge Zones client library for Java.

This package contains Microsoft Azure SDK for Edge Zones Management SDK. Package tag package-2024-04-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
This package contains Microsoft Azure SDK for Edge Zones Management SDK. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down
15 changes: 0 additions & 15 deletions sdk/edgezones/azure-resourcemanager-edgezones/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
* Samples for ExtendedZones Get.
*/
public final class ExtendedZonesGetSamples {
/*
* x-ms-original-file: specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/ExtendedZones_Get.json
*/
/**
* Sample code: GetExtendedZone.
*
Expand All @@ -39,9 +36,6 @@ public final class ExtendedZonesGetSamples {
* Samples for ExtendedZones List.
*/
public final class ExtendedZonesListSamples {
/*
* x-ms-original-file: specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/ExtendedZones_ListBySubscription.json
*/
/**
* Sample code: ListExtendedZones.
*
Expand All @@ -60,9 +54,6 @@ public final class ExtendedZonesListSamples {
* Samples for ExtendedZones Register.
*/
public final class ExtendedZonesRegisterSamples {
/*
* x-ms-original-file: specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/ExtendedZones_Register.json
*/
/**
* Sample code: RegisterExtendedZone.
*
Expand All @@ -81,9 +72,6 @@ public final class ExtendedZonesRegisterSamples {
* Samples for ExtendedZones Unregister.
*/
public final class ExtendedZonesUnregisterSamples {
/*
* x-ms-original-file: specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/ExtendedZones_Unregister.json
*/
/**
* Sample code: UnregisterExtendedZone.
*
Expand All @@ -102,9 +90,6 @@ public final class ExtendedZonesUnregisterSamples {
* Samples for Operations List.
*/
public final class OperationsListSamples {
/*
* x-ms-original-file: specification/edgezones/resource-manager/Microsoft.EdgeZones/preview/2024-04-01-preview/examples/Operations_List.json
*/
/**
* Sample code: ListOperations.
*
Expand Down
6 changes: 3 additions & 3 deletions sdk/edgezones/azure-resourcemanager-edgezones/pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
Expand All @@ -14,11 +14,11 @@

<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-edgezones</artifactId>
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-edgezones;current} -->
<version>1.0.0-beta.1</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-edgezones;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Edge Zones Management</name>
<description>This package contains Microsoft Azure SDK for Edge Zones Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package tag package-2024-04-01-preview.</description>
<description>This package contains Microsoft Azure SDK for Edge Zones Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.edgezones;

Expand All @@ -23,9 +23,9 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.edgezones.fluent.MicrosoftEdgeZones;
import com.azure.resourcemanager.edgezones.fluent.EdgeZonesClient;
import com.azure.resourcemanager.edgezones.implementation.EdgeZonesClientBuilder;
import com.azure.resourcemanager.edgezones.implementation.ExtendedZonesImpl;
import com.azure.resourcemanager.edgezones.implementation.MicrosoftEdgeZonesBuilder;
import com.azure.resourcemanager.edgezones.implementation.OperationsImpl;
import com.azure.resourcemanager.edgezones.models.ExtendedZones;
import com.azure.resourcemanager.edgezones.models.Operations;
Expand All @@ -44,12 +44,12 @@ public final class EdgeZonesManager {

private ExtendedZones extendedZones;

private final MicrosoftEdgeZones clientObject;
private final EdgeZonesClient clientObject;

private EdgeZonesManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject = new MicrosoftEdgeZonesBuilder().pipeline(httpPipeline)
this.clientObject = new EdgeZonesClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
Expand Down Expand Up @@ -279,12 +279,12 @@ public ExtendedZones extendedZones() {
}

/**
* Gets wrapped service client MicrosoftEdgeZones providing direct access to the underlying auto-generated API
* Gets wrapped service client EdgeZonesClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client MicrosoftEdgeZones.
* @return Wrapped service client EdgeZonesClient.
*/
public MicrosoftEdgeZones serviceClient() {
public EdgeZonesClient serviceClient() {
return this.clientObject;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.edgezones.fluent;

import com.azure.core.http.HttpPipeline;
import java.time.Duration;

/**
* The interface for EdgeZonesClient class.
*/
public interface EdgeZonesClient {
/**
* Gets Server parameter.
*
* @return the endpoint value.
*/
String getEndpoint();

/**
* Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();

/**
* Gets The ID of the target subscription.
*
* @return the subscriptionId value.
*/
String getSubscriptionId();

/**
* Gets The HTTP pipeline to send requests through.
*
* @return the httpPipeline value.
*/
HttpPipeline getHttpPipeline();

/**
* Gets The default poll interval for long-running operation.
*
* @return the defaultPollInterval value.
*/
Duration getDefaultPollInterval();

/**
* Gets the OperationsClient object to access its operations.
*
* @return the OperationsClient object.
*/
OperationsClient getOperations();

/**
* Gets the ExtendedZonesClient object to access its operations.
*
* @return the ExtendedZonesClient object.
*/
ExtendedZonesClient getExtendedZones();
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.edgezones.fluent;

Expand All @@ -16,51 +16,51 @@
*/
public interface ExtendedZonesClient {
/**
* Lists the Azure Extended Zones available to a subscription.
* Gets an Azure Extended Zone for a subscription.
*
* @param extendedZoneName The name of the ExtendedZone.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
* @return an Azure Extended Zone for a subscription along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtendedZoneInner> list();
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ExtendedZoneInner> getWithResponse(String extendedZoneName, Context context);

/**
* Lists the Azure Extended Zones available to a subscription.
* Gets an Azure Extended Zone for a subscription.
*
* @param context The context to associate with this operation.
* @param extendedZoneName The name of the ExtendedZone.
* @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.
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
* @return an Azure Extended Zone for a subscription.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtendedZoneInner> list(Context context);
@ServiceMethod(returns = ReturnType.SINGLE)
ExtendedZoneInner get(String extendedZoneName);

/**
* Gets an Azure Extended Zone for a subscription.
* Lists the Azure Extended Zones available to a subscription.
*
* @param extendedZoneName The name of the ExtendedZone.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Azure Extended Zone for a subscription along with {@link Response}.
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ExtendedZoneInner> getWithResponse(String extendedZoneName, Context context);
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtendedZoneInner> list();

/**
* Gets an Azure Extended Zone for a subscription.
* Lists the Azure Extended Zones available to a subscription.
*
* @param extendedZoneName The name of the ExtendedZone.
* @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.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return an Azure Extended Zone for a subscription.
* @return the response of a ExtendedZone list operation as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ExtendedZoneInner get(String extendedZoneName);
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<ExtendedZoneInner> list(Context context);

/**
* Registers a subscription for an Extended Zone.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.edgezones.fluent;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.edgezones.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.Immutable;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.edgezones.models.ExtendedZoneProperties;
Expand All @@ -13,7 +13,7 @@
/**
* Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering.
*/
@Fluent
@Immutable
public final class ExtendedZoneInner extends ProxyResource {
/*
* The resource-specific properties for this resource.
Expand All @@ -30,7 +30,7 @@ public final class ExtendedZoneInner extends ProxyResource {
/**
* Creates an instance of ExtendedZoneInner class.
*/
public ExtendedZoneInner() {
private ExtendedZoneInner() {
}

/**
Expand All @@ -42,17 +42,6 @@ public ExtendedZoneProperties properties() {
return this.properties;
}

/**
* Set the properties property: The resource-specific properties for this resource.
*
* @param properties the properties value to set.
* @return the ExtendedZoneInner object itself.
*/
public ExtendedZoneInner withProperties(ExtendedZoneProperties properties) {
this.properties = properties;
return this;
}

/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
Expand Down
Loading

0 comments on commit a6fbf15

Please sign in to comment.