Skip to content

Commit

Permalink
CodeGen from PR 31541 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 5c040587f558fe1d0fc10acb7924b240afec087f into 60c67f112c66537f1d006bf1b497857ccd2afacd
  • Loading branch information
SDKAuto committed Nov 15, 2024
1 parent 491e436 commit 81a8747
Show file tree
Hide file tree
Showing 97 changed files with 1,843 additions and 1,993 deletions.
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-11-15)

- Azure Resource Manager computeschedule client library for Java. This package contains Microsoft Azure SDK for computeschedule Management SDK. Microsoft.ComputeSchedule Resource Provider management API. Package tag package-2024-10-01. 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
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Azure Resource Manager Compute Schedule client library for Java
# Azure Resource Manager computeschedule client library for Java

Azure Resource Manager Compute Schedule client library for Java.
Azure Resource Manager computeschedule 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).
This package contains Microsoft Azure SDK for computeschedule Management SDK. Microsoft.ComputeSchedule Resource Provider management API. Package tag package-2024-10-01. 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 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-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand All @@ -56,7 +56,7 @@ AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
TokenCredential credential = new DefaultAzureCredentialBuilder()
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
.build();
ComputeScheduleManager manager = ComputeScheduleManager
ComputescheduleManager manager = ComputescheduleManager
.authenticate(credential, profile);
```

Expand Down
408 changes: 212 additions & 196 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
@@ -1,7 +1,7 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) TypeSpec Code Generator.
~ Code generated by Microsoft (R) AutoRest 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 @@ -17,8 +17,8 @@
<version>1.0.0-beta.2</version> <!-- {x-version-update;com.azure.resourcemanager:azure-resourcemanager-computeschedule;current} -->
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Compute Schedule Management</name>
<description>This package contains Microsoft Azure SDK for Compute Schedule Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.ComputeSchedule Resource Provider management API.</description>
<name>Microsoft Azure SDK for computeschedule Management</name>
<description>This package contains Microsoft Azure SDK for computeschedule Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft.ComputeSchedule Resource Provider management API. Package tag package-2024-10-01.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
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 @@ -63,6 +59,11 @@
<artifactId>azure-core-management</artifactId>
<version>1.15.6</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
<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-test</artifactId>
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) TypeSpec Code Generator.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.computeschedule;

Expand All @@ -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.MicrosoftComputeSchedule;
import com.azure.resourcemanager.computeschedule.implementation.MicrosoftComputeScheduleBuilder;
import com.azure.resourcemanager.computeschedule.implementation.OperationsImpl;
import com.azure.resourcemanager.computeschedule.implementation.ScheduledActionsImpl;
import com.azure.resourcemanager.computeschedule.models.Operations;
Expand All @@ -37,59 +37,59 @@
import java.util.stream.Collectors;

/**
* Entry point to ComputeScheduleManager.
* Entry point to ComputescheduleManager.
* Microsoft.ComputeSchedule Resource Provider management API.
*/
public final class ComputeScheduleManager {
public final class ComputescheduleManager {
private Operations operations;

private ScheduledActions scheduledActions;

private final ComputeScheduleClient clientObject;
private final MicrosoftComputeSchedule clientObject;

private ComputeScheduleManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
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 MicrosoftComputeScheduleBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
.buildClient();
}

/**
* Creates an instance of Compute Schedule service API entry point.
* Creates an instance of computeschedule service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the Compute Schedule service API instance.
* @return the computeschedule service API instance.
*/
public static ComputeScheduleManager authenticate(TokenCredential credential, AzureProfile profile) {
public static ComputescheduleManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return configure().authenticate(credential, profile);
}

/**
* Creates an instance of Compute Schedule service API entry point.
* Creates an instance of computeschedule service API entry point.
*
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the Compute Schedule service API instance.
* @return the computeschedule service API instance.
*/
public static ComputeScheduleManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
public static ComputescheduleManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
return new ComputeScheduleManager(httpPipeline, profile, null);
return new ComputescheduleManager(httpPipeline, profile, null);
}

/**
* Gets a Configurable instance that can be used to create ComputeScheduleManager with optional configuration.
* Gets a Configurable instance that can be used to create ComputescheduleManager with optional configuration.
*
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new ComputeScheduleManager.Configurable();
return new ComputescheduleManager.Configurable();
}

/**
Expand Down Expand Up @@ -194,13 +194,13 @@ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
}

/**
* Creates an instance of Compute Schedule service API entry point.
* Creates an instance of computeschedule service API entry point.
*
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the Compute Schedule service API instance.
* @return the computeschedule service API instance.
*/
public ComputeScheduleManager authenticate(TokenCredential credential, AzureProfile profile) {
public ComputescheduleManager authenticate(TokenCredential credential, AzureProfile profile) {
Objects.requireNonNull(credential, "'credential' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");

Expand Down Expand Up @@ -251,7 +251,7 @@ public ComputeScheduleManager authenticate(TokenCredential credential, AzureProf
HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
.policies(policies.toArray(new HttpPipelinePolicy[0]))
.build();
return new ComputeScheduleManager(httpPipeline, profile, defaultPollInterval);
return new ComputescheduleManager(httpPipeline, profile, 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
* Gets wrapped service client MicrosoftComputeSchedule providing direct access to the underlying auto-generated API
* implementation, based on Azure REST API.
*
* @return Wrapped service client ComputeScheduleClient.
* @return Wrapped service client MicrosoftComputeSchedule.
*/
public ComputeScheduleClient serviceClient() {
public MicrosoftComputeSchedule serviceClient() {
return this.clientObject;
}
}
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.computeschedule.fluent;

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

/**
* The interface for ComputeScheduleClient class.
* The interface for MicrosoftComputeSchedule class.
*/
public interface ComputeScheduleClient {
public interface MicrosoftComputeSchedule {
/**
* Gets Service host.
* Gets The ID of the target subscription. The value must be an UUID.
*
* @return the endpoint value.
* @return the subscriptionId value.
*/
String getEndpoint();
String getSubscriptionId();

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

/**
* Gets The ID of the target subscription. The value must be an UUID.
* Gets Api Version.
*
* @return the subscriptionId value.
* @return the apiVersion value.
*/
String getSubscriptionId();
String getApiVersion();

/**
* Gets The HTTP pipeline to send requests through.
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) TypeSpec Code Generator.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.computeschedule.fluent;

Expand Down
Loading

0 comments on commit 81a8747

Please sign in to comment.