Skip to content

Commit 47d6ddc

Browse files
author
SDKAuto
committed
CodeGen from PR 21716 in Azure/azure-rest-api-specs
Merge 284d7fdfe30979590d777b648a389428a48f4d93 into 038922fd638b28f04ad706a916b486f8392c7cef
1 parent 1940e98 commit 47d6ddc

File tree

142 files changed

+5881
-3772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+5881
-3772
lines changed

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.7 (Unreleased)
3+
## 1.0.0-beta.1 (2022-12-15)
4+
5+
- 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).
46

57
### Features Added
68

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager CognitiveServices client library for Java.
44

5-
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).
5+
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).
66

77
## We'd love to hear your feedback
88

@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-cognitiveservices</artifactId>
35-
<version>1.0.0-beta.6</version>
35+
<version>1.0.0-beta.7</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/SAMPLE.md

Lines changed: 315 additions & 36 deletions
Large diffs are not rendered by default.

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<packaging>jar</packaging>
1414

1515
<name>Microsoft Azure SDK for CognitiveServices Management</name>
16-
<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>
16+
<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>
1717
<url>https://github.com/Azure/azure-sdk-for-java</url>
1818

1919
<licenses>

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/CognitiveServicesManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public CognitiveServicesManager authenticate(TokenCredential credential, AzurePr
239239
.append("-")
240240
.append("com.azure.resourcemanager.cognitiveservices")
241241
.append("/")
242-
.append("1.0.0-beta.6");
242+
.append("1.0.0-beta.1");
243243
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
244244
userAgentBuilder
245245
.append(" (")
@@ -406,7 +406,7 @@ public Deployments deployments() {
406406
}
407407

408408
/**
409-
* Gets the resource collection API of CommitmentPlans. It manages CommitmentPlan.
409+
* Gets the resource collection API of CommitmentPlans. It manages CommitmentPlan, CommitmentPlanAccountAssociation.
410410
*
411411
* @return Resource collection API of CommitmentPlans.
412412
*/

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/CommitmentPlansClient.java

Lines changed: 471 additions & 0 deletions
Large diffs are not rendered by default.

sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/fluent/models/AccountModelInner.java

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.management.SystemData;
99
import com.azure.resourcemanager.cognitiveservices.models.DeploymentModel;
1010
import com.azure.resourcemanager.cognitiveservices.models.ModelDeprecationInfo;
11+
import com.azure.resourcemanager.cognitiveservices.models.ModelLifecycleStatus;
1112
import com.fasterxml.jackson.annotation.JsonInclude;
1213
import com.fasterxml.jackson.annotation.JsonProperty;
1314
import java.util.Map;
@@ -34,12 +35,25 @@ public final class AccountModelInner extends DeploymentModel {
3435
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
3536
private Map<String, String> capabilities;
3637

38+
/*
39+
* The capabilities for finetune models.
40+
*/
41+
@JsonProperty(value = "finetuneCapabilities")
42+
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
43+
private Map<String, String> finetuneCapabilities;
44+
3745
/*
3846
* Cognitive Services account ModelDeprecationInfo.
3947
*/
4048
@JsonProperty(value = "deprecation")
4149
private ModelDeprecationInfo deprecation;
4250

51+
/*
52+
* Model lifecycle status.
53+
*/
54+
@JsonProperty(value = "lifecycleStatus")
55+
private ModelLifecycleStatus lifecycleStatus;
56+
4357
/*
4458
* Metadata pertaining to creation and last modification of the resource.
4559
*/
@@ -110,6 +124,26 @@ public AccountModelInner withCapabilities(Map<String, String> capabilities) {
110124
return this;
111125
}
112126

127+
/**
128+
* Get the finetuneCapabilities property: The capabilities for finetune models.
129+
*
130+
* @return the finetuneCapabilities value.
131+
*/
132+
public Map<String, String> finetuneCapabilities() {
133+
return this.finetuneCapabilities;
134+
}
135+
136+
/**
137+
* Set the finetuneCapabilities property: The capabilities for finetune models.
138+
*
139+
* @param finetuneCapabilities the finetuneCapabilities value to set.
140+
* @return the AccountModelInner object itself.
141+
*/
142+
public AccountModelInner withFinetuneCapabilities(Map<String, String> finetuneCapabilities) {
143+
this.finetuneCapabilities = finetuneCapabilities;
144+
return this;
145+
}
146+
113147
/**
114148
* Get the deprecation property: Cognitive Services account ModelDeprecationInfo.
115149
*
@@ -130,6 +164,26 @@ public AccountModelInner withDeprecation(ModelDeprecationInfo deprecation) {
130164
return this;
131165
}
132166

167+
/**
168+
* Get the lifecycleStatus property: Model lifecycle status.
169+
*
170+
* @return the lifecycleStatus value.
171+
*/
172+
public ModelLifecycleStatus lifecycleStatus() {
173+
return this.lifecycleStatus;
174+
}
175+
176+
/**
177+
* Set the lifecycleStatus property: Model lifecycle status.
178+
*
179+
* @param lifecycleStatus the lifecycleStatus value to set.
180+
* @return the AccountModelInner object itself.
181+
*/
182+
public AccountModelInner withLifecycleStatus(ModelLifecycleStatus lifecycleStatus) {
183+
this.lifecycleStatus = lifecycleStatus;
184+
return this;
185+
}
186+
133187
/**
134188
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
135189
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.cognitiveservices.fluent.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.azure.core.management.ProxyResource;
9+
import com.azure.core.management.SystemData;
10+
import com.fasterxml.jackson.annotation.JsonProperty;
11+
12+
/** The commitment plan association. */
13+
@Fluent
14+
public final class CommitmentPlanAccountAssociationInner extends ProxyResource {
15+
/*
16+
* Metadata pertaining to creation and last modification of the resource.
17+
*/
18+
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
19+
private SystemData systemData;
20+
21+
/*
22+
* Resource Etag.
23+
*/
24+
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
25+
private String etag;
26+
27+
/*
28+
* Properties of Cognitive Services account commitment plan association.
29+
*/
30+
@JsonProperty(value = "properties")
31+
private CommitmentPlanAccountAssociationProperties innerProperties;
32+
33+
/** Creates an instance of CommitmentPlanAccountAssociationInner class. */
34+
public CommitmentPlanAccountAssociationInner() {
35+
}
36+
37+
/**
38+
* Get the systemData property: Metadata pertaining to creation and last modification of the resource.
39+
*
40+
* @return the systemData value.
41+
*/
42+
public SystemData systemData() {
43+
return this.systemData;
44+
}
45+
46+
/**
47+
* Get the etag property: Resource Etag.
48+
*
49+
* @return the etag value.
50+
*/
51+
public String etag() {
52+
return this.etag;
53+
}
54+
55+
/**
56+
* Get the innerProperties property: Properties of Cognitive Services account commitment plan association.
57+
*
58+
* @return the innerProperties value.
59+
*/
60+
private CommitmentPlanAccountAssociationProperties innerProperties() {
61+
return this.innerProperties;
62+
}
63+
64+
/**
65+
* Get the accountId property: The Azure resource id of the account.
66+
*
67+
* @return the accountId value.
68+
*/
69+
public String accountId() {
70+
return this.innerProperties() == null ? null : this.innerProperties().accountId();
71+
}
72+
73+
/**
74+
* Set the accountId property: The Azure resource id of the account.
75+
*
76+
* @param accountId the accountId value to set.
77+
* @return the CommitmentPlanAccountAssociationInner object itself.
78+
*/
79+
public CommitmentPlanAccountAssociationInner withAccountId(String accountId) {
80+
if (this.innerProperties() == null) {
81+
this.innerProperties = new CommitmentPlanAccountAssociationProperties();
82+
}
83+
this.innerProperties().withAccountId(accountId);
84+
return this;
85+
}
86+
87+
/**
88+
* Validates the instance.
89+
*
90+
* @throws IllegalArgumentException thrown if the instance is not valid.
91+
*/
92+
public void validate() {
93+
if (innerProperties() != null) {
94+
innerProperties().validate();
95+
}
96+
}
97+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.cognitiveservices.fluent.models;
6+
7+
import com.azure.core.annotation.Fluent;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
10+
/** The commitment plan account association properties. */
11+
@Fluent
12+
public final class CommitmentPlanAccountAssociationProperties {
13+
/*
14+
* The Azure resource id of the account.
15+
*/
16+
@JsonProperty(value = "accountId")
17+
private String accountId;
18+
19+
/** Creates an instance of CommitmentPlanAccountAssociationProperties class. */
20+
public CommitmentPlanAccountAssociationProperties() {
21+
}
22+
23+
/**
24+
* Get the accountId property: The Azure resource id of the account.
25+
*
26+
* @return the accountId value.
27+
*/
28+
public String accountId() {
29+
return this.accountId;
30+
}
31+
32+
/**
33+
* Set the accountId property: The Azure resource id of the account.
34+
*
35+
* @param accountId the accountId value to set.
36+
* @return the CommitmentPlanAccountAssociationProperties object itself.
37+
*/
38+
public CommitmentPlanAccountAssociationProperties withAccountId(String accountId) {
39+
this.accountId = accountId;
40+
return this;
41+
}
42+
43+
/**
44+
* Validates the instance.
45+
*
46+
* @throws IllegalArgumentException thrown if the instance is not valid.
47+
*/
48+
public void validate() {
49+
}
50+
}

0 commit comments

Comments
 (0)