Skip to content
Draft
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

Large diffs are not rendered by default.

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

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. Package api-version 2025-04-15-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 Compute Schedule Management SDK. Microsoft.ComputeSchedule Resource Provider management API. Package api-version 2026-04-15-preview. 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.2.0-beta.1</version>
<version>1.2.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
910 changes: 643 additions & 267 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 @@ -3,7 +3,7 @@
~ Licensed under the MIT License.
~ 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">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.azure</groupId>
Expand All @@ -18,7 +18,7 @@
<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. Package api-version 2025-04-15-preview.</description>
<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. Package api-version 2026-04-15-preview.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down

Large diffs are not rendered by default.

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

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

import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.computeschedule.models.ResourceOperation;
import java.io.IOException;
import java.util.List;

/**
* The response from a create flex request.
*/
@Immutable
public final class CreateFlexResourceOperationResponseInner
implements JsonSerializable<CreateFlexResourceOperationResponseInner> {
/*
* The description of the operation response
*/
private String description;

/*
* The type of resources used in the create flex request eg virtual machines
*/
private String type;

/*
* The location of the create flex request eg westus
*/
private String location;

/*
* The results from the create flex request if no errors exist
*/
private List<ResourceOperation> results;

/**
* Creates an instance of CreateFlexResourceOperationResponseInner class.
*/
private CreateFlexResourceOperationResponseInner() {
}

/**
* Get the description property: The description of the operation response.
*
* @return the description value.
*/
public String description() {
return this.description;
}

/**
* Get the type property: The type of resources used in the create flex request eg virtual machines.
*
* @return the type value.
*/
public String type() {
return this.type;
}

/**
* Get the location property: The location of the create flex request eg westus.
*
* @return the location value.
*/
public String location() {
return this.location;
}

/**
* Get the results property: The results from the create flex request if no errors exist.
*
* @return the results value.
*/
public List<ResourceOperation> results() {
return this.results;
}

/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", this.description);
jsonWriter.writeStringField("type", this.type);
jsonWriter.writeStringField("location", this.location);
jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}

/**
* Reads an instance of CreateFlexResourceOperationResponseInner from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of CreateFlexResourceOperationResponseInner if the JsonReader was pointing to an instance of
* it, or null if it was pointing to JSON null.
* @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the CreateFlexResourceOperationResponseInner.
*/
public static CreateFlexResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
return jsonReader.readObject(reader -> {
CreateFlexResourceOperationResponseInner deserializedCreateFlexResourceOperationResponseInner
= new CreateFlexResourceOperationResponseInner();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();

if ("description".equals(fieldName)) {
deserializedCreateFlexResourceOperationResponseInner.description = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedCreateFlexResourceOperationResponseInner.type = reader.getString();
} else if ("location".equals(fieldName)) {
deserializedCreateFlexResourceOperationResponseInner.location = reader.getString();
} else if ("results".equals(fieldName)) {
List<ResourceOperation> results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
deserializedCreateFlexResourceOperationResponseInner.results = results;
} else {
reader.skipChildren();
}
}

return deserializedCreateFlexResourceOperationResponseInner;
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public OccurrenceExtensionsClient getOccurrenceExtensions() {
this.defaultPollInterval = defaultPollInterval;
this.endpoint = endpoint;
this.subscriptionId = subscriptionId;
this.apiVersion = "2025-04-15-preview";
this.apiVersion = "2026-04-15-preview";
this.operations = new OperationsClientImpl(this);
this.scheduledActions = new ScheduledActionsClientImpl(this);
this.scheduledActionExtensions = new ScheduledActionExtensionsClientImpl(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.

package com.azure.resourcemanager.computeschedule.implementation;

import com.azure.resourcemanager.computeschedule.fluent.models.CreateFlexResourceOperationResponseInner;
import com.azure.resourcemanager.computeschedule.models.CreateFlexResourceOperationResponse;
import com.azure.resourcemanager.computeschedule.models.ResourceOperation;
import java.util.Collections;
import java.util.List;

public final class CreateFlexResourceOperationResponseImpl implements CreateFlexResourceOperationResponse {
private CreateFlexResourceOperationResponseInner innerObject;

private final com.azure.resourcemanager.computeschedule.ComputeScheduleManager serviceManager;

CreateFlexResourceOperationResponseImpl(CreateFlexResourceOperationResponseInner innerObject,
com.azure.resourcemanager.computeschedule.ComputeScheduleManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
}

public String description() {
return this.innerModel().description();
}

public String type() {
return this.innerModel().type();
}

public String location() {
return this.innerModel().location();
}

public List<ResourceOperation> results() {
List<ResourceOperation> inner = this.innerModel().results();
if (inner != null) {
return Collections.unmodifiableList(inner);
} else {
return Collections.emptyList();
}
}

public CreateFlexResourceOperationResponseInner innerModel() {
return this.innerObject;
}

private com.azure.resourcemanager.computeschedule.ComputeScheduleManager manager() {
return this.serviceManager;
}
}
Loading