Skip to content

Commit e3c0559

Browse files
authored
CognitiveServices: regenerate package-2017-04 (#11495)
* CognitiveServices: regenerate package-2017-04 * update pom
1 parent 08d257d commit e3c0559

27 files changed

+1906
-52
lines changed

sdk/cognitiveservices/mgmt-v2017_04_18/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
<groupId>com.microsoft.azure</groupId>
1313
<artifactId>azure-arm-parent</artifactId>
1414
<version>1.3.0</version>
15-
<relativePath>../../parents/azure-arm-parent</relativePath>
15+
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
1616
</parent>
1717
<artifactId>azure-mgmt-cognitiveservices</artifactId>
18-
<version>1.0.0-beta-3</version>
18+
<version>1.0.0-beta-4</version>
1919
<packaging>jar</packaging>
2020
<name>Microsoft Azure SDK for CognitiveServices Management</name>
2121
<description>This package contains Microsoft CognitiveServices Management SDK.</description>

sdk/cognitiveservices/mgmt-v2017_04_18/src/main/java/com/microsoft/azure/management/cognitiveservices/v2017_04_18/Accounts.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
2525
/**
2626
* Lists the account keys for the specified Cognitive Services account.
2727
*
28-
* @param resourceGroupName The name of the resource group within the user's subscription.
28+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
2929
* @param accountName The name of Cognitive Services account.
3030
* @throws IllegalArgumentException thrown if parameters fail the validation
3131
* @return the observable for the request
@@ -35,7 +35,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
3535
/**
3636
* Regenerates the specified account key for the specified Cognitive Services account.
3737
*
38-
* @param resourceGroupName The name of the resource group within the user's subscription.
38+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
3939
* @param accountName The name of Cognitive Services account.
4040
* @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'
4141
* @throws IllegalArgumentException thrown if parameters fail the validation
@@ -46,7 +46,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
4646
/**
4747
* List available SKUs for the requested Cognitive Services account.
4848
*
49-
* @param resourceGroupName The name of the resource group within the user's subscription.
49+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
5050
* @param accountName The name of Cognitive Services account.
5151
* @throws IllegalArgumentException thrown if parameters fail the validation
5252
* @return the observable for the request
@@ -56,7 +56,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
5656
/**
5757
* Get usages for the requested Cognitive Services account.
5858
*
59-
* @param resourceGroupName The name of the resource group within the user's subscription.
59+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
6060
* @param accountName The name of Cognitive Services account.
6161
* @throws IllegalArgumentException thrown if parameters fail the validation
6262
* @return the observable for the request
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.cognitiveservices.v2017_04_18;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.microsoft.azure.ProxyResource;
13+
14+
/**
15+
* The resource model definition for a Azure Resource Manager resource with an
16+
* etag.
17+
*/
18+
public class AzureEntityResource extends ProxyResource {
19+
/**
20+
* Resource Etag.
21+
*/
22+
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
23+
private String etag;
24+
25+
/**
26+
* Get resource Etag.
27+
*
28+
* @return the etag value
29+
*/
30+
public String etag() {
31+
return this.etag;
32+
}
33+
34+
}

sdk/cognitiveservices/mgmt-v2017_04_18/src/main/java/com/microsoft/azure/management/cognitiveservices/v2017_04_18/CognitiveServicesAccountProperties.java

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
package com.microsoft.azure.management.cognitiveservices.v2017_04_18;
1010

1111
import java.util.List;
12+
import com.microsoft.azure.management.cognitiveservices.v2017_04_18.implementation.PrivateEndpointConnectionInner;
1213
import com.fasterxml.jackson.annotation.JsonProperty;
1314

1415
/**
@@ -35,6 +36,14 @@ public class CognitiveServicesAccountProperties {
3536
@JsonProperty(value = "internalId", access = JsonProperty.Access.WRITE_ONLY)
3637
private String internalId;
3738

39+
/**
40+
* Gets the capabilities of the cognitive services account. Each item
41+
* indicates the capability of a specific feature. The values are read-only
42+
* and for reference only.
43+
*/
44+
@JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY)
45+
private List<SkuCapability> capabilities;
46+
3847
/**
3948
* Optional subdomain name used for token-based authentication.
4049
*/
@@ -60,6 +69,21 @@ public class CognitiveServicesAccountProperties {
6069
@JsonProperty(value = "userOwnedStorage")
6170
private List<UserOwnedStorage> userOwnedStorage;
6271

72+
/**
73+
* The private endpoint connection associated with the Cognitive Services
74+
* account.
75+
*/
76+
@JsonProperty(value = "privateEndpointConnections")
77+
private List<PrivateEndpointConnectionInner> privateEndpointConnections;
78+
79+
/**
80+
* Whether or not public endpoint access is allowed for this account. Value
81+
* is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible
82+
* values include: 'Enabled', 'Disabled'.
83+
*/
84+
@JsonProperty(value = "publicNetworkAccess")
85+
private PublicNetworkAccess publicNetworkAccess;
86+
6387
/**
6488
* The api properties for special APIs.
6589
*/
@@ -93,6 +117,15 @@ public String internalId() {
93117
return this.internalId;
94118
}
95119

120+
/**
121+
* Get gets the capabilities of the cognitive services account. Each item indicates the capability of a specific feature. The values are read-only and for reference only.
122+
*
123+
* @return the capabilities value
124+
*/
125+
public List<SkuCapability> capabilities() {
126+
return this.capabilities;
127+
}
128+
96129
/**
97130
* Get optional subdomain name used for token-based authentication.
98131
*
@@ -173,6 +206,46 @@ public CognitiveServicesAccountProperties withUserOwnedStorage(List<UserOwnedSto
173206
return this;
174207
}
175208

209+
/**
210+
* Get the private endpoint connection associated with the Cognitive Services account.
211+
*
212+
* @return the privateEndpointConnections value
213+
*/
214+
public List<PrivateEndpointConnectionInner> privateEndpointConnections() {
215+
return this.privateEndpointConnections;
216+
}
217+
218+
/**
219+
* Set the private endpoint connection associated with the Cognitive Services account.
220+
*
221+
* @param privateEndpointConnections the privateEndpointConnections value to set
222+
* @return the CognitiveServicesAccountProperties object itself.
223+
*/
224+
public CognitiveServicesAccountProperties withPrivateEndpointConnections(List<PrivateEndpointConnectionInner> privateEndpointConnections) {
225+
this.privateEndpointConnections = privateEndpointConnections;
226+
return this;
227+
}
228+
229+
/**
230+
* Get whether or not public endpoint access is allowed for this account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
231+
*
232+
* @return the publicNetworkAccess value
233+
*/
234+
public PublicNetworkAccess publicNetworkAccess() {
235+
return this.publicNetworkAccess;
236+
}
237+
238+
/**
239+
* Set whether or not public endpoint access is allowed for this account. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. Possible values include: 'Enabled', 'Disabled'.
240+
*
241+
* @param publicNetworkAccess the publicNetworkAccess value to set
242+
* @return the CognitiveServicesAccountProperties object itself.
243+
*/
244+
public CognitiveServicesAccountProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
245+
this.publicNetworkAccess = publicNetworkAccess;
246+
return this;
247+
}
248+
176249
/**
177250
* Get the api properties for special APIs.
178251
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.cognitiveservices.v2017_04_18;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* The Private Endpoint resource.
15+
*/
16+
public class PrivateEndpoint {
17+
/**
18+
* The ARM identifier for Private Endpoint.
19+
*/
20+
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
21+
private String id;
22+
23+
/**
24+
* Get the ARM identifier for Private Endpoint.
25+
*
26+
* @return the id value
27+
*/
28+
public String id() {
29+
return this.id;
30+
}
31+
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.cognitiveservices.v2017_04_18;
10+
11+
import com.microsoft.azure.arm.model.HasInner;
12+
import com.microsoft.azure.management.cognitiveservices.v2017_04_18.implementation.PrivateEndpointConnectionInner;
13+
import com.microsoft.azure.arm.model.Indexable;
14+
import com.microsoft.azure.arm.model.Refreshable;
15+
import com.microsoft.azure.arm.model.Updatable;
16+
import com.microsoft.azure.arm.model.Appliable;
17+
import com.microsoft.azure.arm.model.Creatable;
18+
import com.microsoft.azure.arm.resources.models.HasManager;
19+
import com.microsoft.azure.management.cognitiveservices.v2017_04_18.implementation.CognitiveServicesManager;
20+
import java.util.List;
21+
22+
/**
23+
* Type representing PrivateEndpointConnection.
24+
*/
25+
public interface PrivateEndpointConnection extends HasInner<PrivateEndpointConnectionInner>, Indexable, Refreshable<PrivateEndpointConnection>, Updatable<PrivateEndpointConnection.Update>, HasManager<CognitiveServicesManager> {
26+
/**
27+
* @return the id value.
28+
*/
29+
String id();
30+
31+
/**
32+
* @return the name value.
33+
*/
34+
String name();
35+
36+
/**
37+
* @return the properties value.
38+
*/
39+
PrivateEndpointConnectionProperties properties();
40+
41+
/**
42+
* @return the type value.
43+
*/
44+
String type();
45+
46+
/**
47+
* The entirety of the PrivateEndpointConnection definition.
48+
*/
49+
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithAccount, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
50+
}
51+
52+
/**
53+
* Grouping of PrivateEndpointConnection definition stages.
54+
*/
55+
interface DefinitionStages {
56+
/**
57+
* The first stage of a PrivateEndpointConnection definition.
58+
*/
59+
interface Blank extends WithAccount {
60+
}
61+
62+
/**
63+
* The stage of the privateendpointconnection definition allowing to specify Account.
64+
*/
65+
interface WithAccount {
66+
/**
67+
* Specifies resourceGroupName, accountName.
68+
* @param resourceGroupName The name of the resource group. The name is case insensitive
69+
* @param accountName The name of Cognitive Services account
70+
* @return the next definition stage
71+
*/
72+
WithProperties withExistingAccount(String resourceGroupName, String accountName);
73+
}
74+
75+
/**
76+
* The stage of the privateendpointconnection definition allowing to specify Properties.
77+
*/
78+
interface WithProperties {
79+
/**
80+
* Specifies properties.
81+
* @param properties Resource properties
82+
* @return the next definition stage
83+
*/
84+
WithCreate withProperties(PrivateEndpointConnectionProperties properties);
85+
}
86+
87+
/**
88+
* The stage of the definition which contains all the minimum required inputs for
89+
* the resource to be created (via {@link WithCreate#create()}), but also allows
90+
* for any other optional settings to be specified.
91+
*/
92+
interface WithCreate extends Creatable<PrivateEndpointConnection> {
93+
}
94+
}
95+
/**
96+
* The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
97+
*/
98+
interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithProperties {
99+
}
100+
101+
/**
102+
* Grouping of PrivateEndpointConnection update stages.
103+
*/
104+
interface UpdateStages {
105+
/**
106+
* The stage of the privateendpointconnection update allowing to specify Properties.
107+
*/
108+
interface WithProperties {
109+
/**
110+
* Specifies properties.
111+
* @param properties Resource properties
112+
* @return the next update stage
113+
*/
114+
Update withProperties(PrivateEndpointConnectionProperties properties);
115+
}
116+
117+
}
118+
}

0 commit comments

Comments
 (0)