Skip to content

Commit

Permalink
CodeGen from PR 21716 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 2048e3a7658a74bd4b2ad3db372ce7de4fb13ec3 into 878fe925bc9f48b7b1451be3e6842bf44f938c34
  • Loading branch information
SDKAuto committed Dec 2, 2022
1 parent c381459 commit 77aff33
Show file tree
Hide file tree
Showing 142 changed files with 5,881 additions and 3,772 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.7 (Unreleased)
## 1.0.0-beta.1 (2022-12-02)

- Azure Resource Manager CognitiveServices client library for Java. This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2022-12. 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
Expand Up @@ -2,7 +2,7 @@

Azure Resource Manager CognitiveServices client library for Java.

This package contains Microsoft Azure SDK for CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2022-10. 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 CognitiveServices Management SDK. Cognitive Services Management Client. Package tag package-2022-12. 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-cognitiveservices</artifactId>
<version>1.0.0-beta.6</version>
<version>1.0.0-beta.7</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
351 changes: 315 additions & 36 deletions sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for CognitiveServices Management</name>
<description>This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package tag package-2022-10.</description>
<description>This package contains Microsoft Azure SDK for CognitiveServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Cognitive Services Management Client. Package tag package-2022-12.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public CognitiveServicesManager authenticate(TokenCredential credential, AzurePr
.append("-")
.append("com.azure.resourcemanager.cognitiveservices")
.append("/")
.append("1.0.0-beta.6");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -406,7 +406,7 @@ public Deployments deployments() {
}

/**
* Gets the resource collection API of CommitmentPlans. It manages CommitmentPlan.
* Gets the resource collection API of CommitmentPlans. It manages CommitmentPlan, CommitmentPlanAccountAssociation.
*
* @return Resource collection API of CommitmentPlans.
*/
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.management.SystemData;
import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel;
import com.azure.resourcemanager.cognitiveservices.models.ModelDeprecationInfo;
import com.azure.resourcemanager.cognitiveservices.models.ModelLifecycleStatus;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
Expand All @@ -34,12 +35,25 @@ public final class AccountModelInner extends DeploymentModel {
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map<String, String> capabilities;

/*
* The capabilities for finetune models.
*/
@JsonProperty(value = "finetuneCapabilities")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map<String, String> finetuneCapabilities;

/*
* Cognitive Services account ModelDeprecationInfo.
*/
@JsonProperty(value = "deprecation")
private ModelDeprecationInfo deprecation;

/*
* Model lifecycle status.
*/
@JsonProperty(value = "lifecycleStatus")
private ModelLifecycleStatus lifecycleStatus;

/*
* Metadata pertaining to creation and last modification of the resource.
*/
Expand Down Expand Up @@ -110,6 +124,26 @@ public AccountModelInner withCapabilities(Map<String, String> capabilities) {
return this;
}

/**
* Get the finetuneCapabilities property: The capabilities for finetune models.
*
* @return the finetuneCapabilities value.
*/
public Map<String, String> finetuneCapabilities() {
return this.finetuneCapabilities;
}

/**
* Set the finetuneCapabilities property: The capabilities for finetune models.
*
* @param finetuneCapabilities the finetuneCapabilities value to set.
* @return the AccountModelInner object itself.
*/
public AccountModelInner withFinetuneCapabilities(Map<String, String> finetuneCapabilities) {
this.finetuneCapabilities = finetuneCapabilities;
return this;
}

/**
* Get the deprecation property: Cognitive Services account ModelDeprecationInfo.
*
Expand All @@ -130,6 +164,26 @@ public AccountModelInner withDeprecation(ModelDeprecationInfo deprecation) {
return this;
}

/**
* Get the lifecycleStatus property: Model lifecycle status.
*
* @return the lifecycleStatus value.
*/
public ModelLifecycleStatus lifecycleStatus() {
return this.lifecycleStatus;
}

/**
* Set the lifecycleStatus property: Model lifecycle status.
*
* @param lifecycleStatus the lifecycleStatus value to set.
* @return the AccountModelInner object itself.
*/
public AccountModelInner withLifecycleStatus(ModelLifecycleStatus lifecycleStatus) {
this.lifecycleStatus = lifecycleStatus;
return this;
}

/**
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

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

import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The commitment plan association. */
@Fluent
public final class CommitmentPlanAccountAssociationInner extends ProxyResource {
/*
* Resource Etag.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;

/*
* Properties of Cognitive Services account commitment plan association.
*/
@JsonProperty(value = "properties")
private CommitmentPlanAccountAssociationProperties innerProperties;

/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;

/** Creates an instance of CommitmentPlanAccountAssociationInner class. */
public CommitmentPlanAccountAssociationInner() {
}

/**
* Get the etag property: Resource Etag.
*
* @return the etag value.
*/
public String etag() {
return this.etag;
}

/**
* Get the innerProperties property: Properties of Cognitive Services account commitment plan association.
*
* @return the innerProperties value.
*/
private CommitmentPlanAccountAssociationProperties innerProperties() {
return this.innerProperties;
}

/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}

/**
* Get the accountId property: The Azure resource id of the account.
*
* @return the accountId value.
*/
public String accountId() {
return this.innerProperties() == null ? null : this.innerProperties().accountId();
}

/**
* Set the accountId property: The Azure resource id of the account.
*
* @param accountId the accountId value to set.
* @return the CommitmentPlanAccountAssociationInner object itself.
*/
public CommitmentPlanAccountAssociationInner withAccountId(String accountId) {
if (this.innerProperties() == null) {
this.innerProperties = new CommitmentPlanAccountAssociationProperties();
}
this.innerProperties().withAccountId(accountId);
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

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

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The commitment plan account association properties. */
@Fluent
public final class CommitmentPlanAccountAssociationProperties {
/*
* The Azure resource id of the account.
*/
@JsonProperty(value = "accountId")
private String accountId;

/** Creates an instance of CommitmentPlanAccountAssociationProperties class. */
public CommitmentPlanAccountAssociationProperties() {
}

/**
* Get the accountId property: The Azure resource id of the account.
*
* @return the accountId value.
*/
public String accountId() {
return this.accountId;
}

/**
* Set the accountId property: The Azure resource id of the account.
*
* @param accountId the accountId value to set.
* @return the CommitmentPlanAccountAssociationProperties object itself.
*/
public CommitmentPlanAccountAssociationProperties withAccountId(String accountId) {
this.accountId = accountId;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Loading

0 comments on commit 77aff33

Please sign in to comment.