Skip to content

Commit

Permalink
[Automation] Generate Fluent Lite from TypeSpec computeschedule (#43866)
Browse files Browse the repository at this point in the history
* [Automation] External Change

* [Automation] Generate Fluent Lite from TypeSpec computeschedule

* Update log version from 1.0.0-beta.1 to 1.0.0

* Update version to 1.0.0-beta.1

---------

Co-authored-by: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com>
  • Loading branch information
azure-sdk and XiaofeiCao authored Jan 22, 2025
1 parent 1339c69 commit 602ba50
Show file tree
Hide file tree
Showing 52 changed files with 707 additions and 985 deletions.
2 changes: 1 addition & 1 deletion eng/versioning/version_client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ com.azure.resourcemanager:azure-resourcemanager-servicefabricmanagedclusters;1.0
com.azure.resourcemanager:azure-resourcemanager-healthdataaiservices;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-redhatopenshift;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-fabric;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-computeschedule;1.0.0-beta.1;1.0.0
com.azure.resourcemanager:azure-resourcemanager-trustedsigning;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-iotoperations;1.0.0;1.1.0-beta.1
com.azure.resourcemanager:azure-resourcemanager-containerorchestratorruntime;1.0.0-beta.1;1.0.0-beta.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,36 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0 (2025-01-22)

### Features Added
- Azure Resource Manager Compute Schedule client library for Java. This package contains Microsoft Azure SDK for Compute Schedule Management SDK. Microsoft.ComputeSchedule Resource Provider management API. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Breaking Changes

### Bugs Fixed
#### `models.OperationErrorDetails` was modified

* `java.time.OffsetDateTime errorDetails()` -> `java.lang.String errorDetails()`

#### `ComputeScheduleManager` was modified

* `fluent.ComputeScheduleClient serviceClient()` -> `fluent.ComputeScheduleMgmtClient serviceClient()`

### Features Added

#### `models.OperationErrorDetails` was modified

* `azureOperationName()` was added
* `timestamp()` was added

#### `models.ResourceOperationDetails` was modified

* `timezone()` was added

#### `models.Schedule` was modified

### Other Changes
* `timezone()` was added
* `withTimezone(java.lang.String)` was added
* `withDeadline(java.time.OffsetDateTime)` was added
* `deadline()` was added

## 1.0.0-beta.1 (2024-09-25)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-computeschedule</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
373 changes: 78 additions & 295 deletions sdk/computeschedule/azure-resourcemanager-computeschedule/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

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

<name>Microsoft Azure SDK for Compute Schedule Management</name>
Expand Down Expand Up @@ -46,13 +46,9 @@
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
<revapi.skip>true</revapi.skip>
<spotless.skip>false</spotless.skip>
</properties>
<dependencies>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-core</artifactId>
Expand All @@ -75,5 +71,10 @@
<version>1.15.0</version> <!-- {x-version-update;com.azure:azure-identity;dependency} -->
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.azure</groupId>
<artifactId>azure-json</artifactId>
<version>1.3.0</version> <!-- {x-version-update;com.azure:azure-json;dependency} -->
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.computeschedule.fluent.ComputeScheduleClient;
import com.azure.resourcemanager.computeschedule.implementation.ComputeScheduleClientBuilder;
import com.azure.resourcemanager.computeschedule.fluent.ComputeScheduleMgmtClient;
import com.azure.resourcemanager.computeschedule.implementation.ComputeScheduleMgmtClientBuilder;
import com.azure.resourcemanager.computeschedule.implementation.OperationsImpl;
import com.azure.resourcemanager.computeschedule.implementation.ScheduledActionsImpl;
import com.azure.resourcemanager.computeschedule.models.Operations;
Expand All @@ -45,12 +45,12 @@ public final class ComputeScheduleManager {

private ScheduledActions scheduledActions;

private final ComputeScheduleClient clientObject;
private final ComputeScheduleMgmtClient clientObject;

private ComputeScheduleManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
this.clientObject = new ComputeScheduleClientBuilder().pipeline(httpPipeline)
this.clientObject = new ComputeScheduleMgmtClientBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
Expand Down Expand Up @@ -280,12 +280,12 @@ public ScheduledActions scheduledActions() {
}

/**
* Gets wrapped service client ComputeScheduleClient providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
* Gets wrapped service client ComputeScheduleMgmtClient providing direct access to the underlying auto-generated
* API implementation, based on Azure REST API.
*
* @return Wrapped service client ComputeScheduleClient.
* @return Wrapped service client ComputeScheduleMgmtClient.
*/
public ComputeScheduleClient serviceClient() {
public ComputeScheduleMgmtClient serviceClient() {
return this.clientObject;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import java.time.Duration;

/**
* The interface for ComputeScheduleClient class.
* The interface for ComputeScheduleMgmtClient class.
*/
public interface ComputeScheduleClient {
public interface ComputeScheduleMgmtClient {
/**
* Gets Service host.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
*/
public interface ScheduledActionsClient {
/**
* virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine.
* VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in
* future.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -44,7 +45,8 @@ Response<DeallocateResourceOperationResponseInner> virtualMachinesSubmitDealloca
String locationparameter, SubmitDeallocateRequest requestBody, Context context);

/**
* virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine.
* VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in
* future.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -58,7 +60,8 @@ DeallocateResourceOperationResponseInner virtualMachinesSubmitDeallocate(String
SubmitDeallocateRequest requestBody);

/**
* virtualMachinesSubmitHibernate: submitHibernate for a virtual machine.
* VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in
* future.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -73,7 +76,8 @@ Response<HibernateResourceOperationResponseInner> virtualMachinesSubmitHibernate
String locationparameter, SubmitHibernateRequest requestBody, Context context);

/**
* virtualMachinesSubmitHibernate: submitHibernate for a virtual machine.
* VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in
* future.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -87,7 +91,7 @@ HibernateResourceOperationResponseInner virtualMachinesSubmitHibernate(String lo
SubmitHibernateRequest requestBody);

/**
* virtualMachinesSubmitStart: submitStart for a virtual machine.
* VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -102,7 +106,7 @@ Response<StartResourceOperationResponseInner> virtualMachinesSubmitStartWithResp
SubmitStartRequest requestBody, Context context);

/**
* virtualMachinesSubmitStart: submitStart for a virtual machine.
* VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -116,7 +120,8 @@ StartResourceOperationResponseInner virtualMachinesSubmitStart(String locationpa
SubmitStartRequest requestBody);

/**
* virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine.
* VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is
* triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -131,7 +136,8 @@ Response<DeallocateResourceOperationResponseInner> virtualMachinesExecuteDealloc
String locationparameter, ExecuteDeallocateRequest requestBody, Context context);

/**
* virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine.
* VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is
* triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -145,7 +151,8 @@ DeallocateResourceOperationResponseInner virtualMachinesExecuteDeallocate(String
ExecuteDeallocateRequest requestBody);

/**
* virtualMachinesExecuteHibernate: executeHibernate for a virtual machine.
* VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is
* triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -160,7 +167,8 @@ Response<HibernateResourceOperationResponseInner> virtualMachinesExecuteHibernat
String locationparameter, ExecuteHibernateRequest requestBody, Context context);

/**
* virtualMachinesExecuteHibernate: executeHibernate for a virtual machine.
* VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is
* triggered as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -174,7 +182,8 @@ HibernateResourceOperationResponseInner virtualMachinesExecuteHibernate(String l
ExecuteHibernateRequest requestBody);

/**
* virtualMachinesExecuteStart: executeStart for a virtual machine.
* VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered
* as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -189,7 +198,8 @@ Response<StartResourceOperationResponseInner> virtualMachinesExecuteStartWithRes
ExecuteStartRequest requestBody, Context context);

/**
* virtualMachinesExecuteStart: executeStart for a virtual machine.
* VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered
* as soon as Computeschedule receives it.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -203,7 +213,7 @@ StartResourceOperationResponseInner virtualMachinesExecuteStart(String locationp
ExecuteStartRequest requestBody);

/**
* virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine.
* VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -218,7 +228,7 @@ Response<GetOperationStatusResponseInner> virtualMachinesGetOperationStatusWithR
GetOperationStatusRequest requestBody, Context context);

/**
* virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine.
* VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -232,7 +242,7 @@ GetOperationStatusResponseInner virtualMachinesGetOperationStatus(String locatio
GetOperationStatusRequest requestBody);

/**
* virtualMachinesCancelOperations: cancelOperations for a virtual machine.
* VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -247,7 +257,7 @@ Response<CancelOperationsResponseInner> virtualMachinesCancelOperationsWithRespo
CancelOperationsRequest requestBody, Context context);

/**
* virtualMachinesCancelOperations: cancelOperations for a virtual machine.
* VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -261,7 +271,8 @@ CancelOperationsResponseInner virtualMachinesCancelOperations(String locationpar
CancelOperationsRequest requestBody);

/**
* virtualMachinesGetOperationErrors: getOperationErrors associated with an operation on a virtual machine.
* VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered,
* additional logs) if they exist.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand All @@ -276,7 +287,8 @@ Response<GetOperationErrorsResponseInner> virtualMachinesGetOperationErrorsWithR
GetOperationErrorsRequest requestBody, Context context);

/**
* virtualMachinesGetOperationErrors: getOperationErrors associated with an operation on a virtual machine.
* VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered,
* additional logs) if they exist.
*
* @param locationparameter The location name.
* @param requestBody The request body.
Expand Down
Loading

0 comments on commit 602ba50

Please sign in to comment.