Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CognitiveServices: regenerate package-2017-04 #11495

Merged
merged 2 commits into from
May 28, 2020
Merged
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
4 changes: 2 additions & 2 deletions sdk/cognitiveservices/mgmt-v2017_04_18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
</parent>
<artifactId>azure-mgmt-cognitiveservices</artifactId>
<version>1.0.0-beta-3</version>
<version>1.0.0-beta-4</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for CognitiveServices Management</name>
<description>This package contains Microsoft CognitiveServices Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
/**
* Lists the account keys for the specified Cognitive Services account.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -35,7 +35,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
/**
* Regenerates the specified account key for the specified Cognitive Services account.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @param keyName key name to generate (Key1|Key2). Possible values include: 'Key1', 'Key2'
* @throws IllegalArgumentException thrown if parameters fail the validation
Expand All @@ -46,7 +46,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
/**
* List available SKUs for the requested Cognitive Services account.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand All @@ -56,7 +56,7 @@ public interface Accounts extends SupportsCreating<CognitiveServicesAccount.Defi
/**
* Get usages for the requested Cognitive Services account.
*
* @param resourceGroupName The name of the resource group within the user's subscription.
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param accountName The name of Cognitive Services account.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cognitiveservices.v2017_04_18;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.azure.ProxyResource;

/**
* The resource model definition for a Azure Resource Manager resource with an
* etag.
*/
public class AzureEntityResource extends ProxyResource {
/**
* Resource Etag.
*/
@JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
private String etag;

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

}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
package com.microsoft.azure.management.cognitiveservices.v2017_04_18;

import java.util.List;
import com.microsoft.azure.management.cognitiveservices.v2017_04_18.implementation.PrivateEndpointConnectionInner;
import com.fasterxml.jackson.annotation.JsonProperty;

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

/**
* 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.
*/
@JsonProperty(value = "capabilities", access = JsonProperty.Access.WRITE_ONLY)
private List<SkuCapability> capabilities;

/**
* Optional subdomain name used for token-based authentication.
*/
Expand All @@ -60,6 +69,21 @@ public class CognitiveServicesAccountProperties {
@JsonProperty(value = "userOwnedStorage")
private List<UserOwnedStorage> userOwnedStorage;

/**
* The private endpoint connection associated with the Cognitive Services
* account.
*/
@JsonProperty(value = "privateEndpointConnections")
private List<PrivateEndpointConnectionInner> privateEndpointConnections;

/**
* 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'.
*/
@JsonProperty(value = "publicNetworkAccess")
private PublicNetworkAccess publicNetworkAccess;

/**
* The api properties for special APIs.
*/
Expand Down Expand Up @@ -93,6 +117,15 @@ public String internalId() {
return this.internalId;
}

/**
* 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.
*
* @return the capabilities value
*/
public List<SkuCapability> capabilities() {
return this.capabilities;
}

/**
* Get optional subdomain name used for token-based authentication.
*
Expand Down Expand Up @@ -173,6 +206,46 @@ public CognitiveServicesAccountProperties withUserOwnedStorage(List<UserOwnedSto
return this;
}

/**
* Get the private endpoint connection associated with the Cognitive Services account.
*
* @return the privateEndpointConnections value
*/
public List<PrivateEndpointConnectionInner> privateEndpointConnections() {
return this.privateEndpointConnections;
}

/**
* Set the private endpoint connection associated with the Cognitive Services account.
*
* @param privateEndpointConnections the privateEndpointConnections value to set
* @return the CognitiveServicesAccountProperties object itself.
*/
public CognitiveServicesAccountProperties withPrivateEndpointConnections(List<PrivateEndpointConnectionInner> privateEndpointConnections) {
this.privateEndpointConnections = privateEndpointConnections;
return this;
}

/**
* 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'.
*
* @return the publicNetworkAccess value
*/
public PublicNetworkAccess publicNetworkAccess() {
return this.publicNetworkAccess;
}

/**
* 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'.
*
* @param publicNetworkAccess the publicNetworkAccess value to set
* @return the CognitiveServicesAccountProperties object itself.
*/
public CognitiveServicesAccountProperties withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
this.publicNetworkAccess = publicNetworkAccess;
return this;
}

/**
* Get the api properties for special APIs.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cognitiveservices.v2017_04_18;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The Private Endpoint resource.
*/
public class PrivateEndpoint {
/**
* The ARM identifier for Private Endpoint.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

/**
* Get the ARM identifier for Private Endpoint.
*
* @return the id value
*/
public String id() {
return this.id;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.cognitiveservices.v2017_04_18;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.cognitiveservices.v2017_04_18.implementation.PrivateEndpointConnectionInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.cognitiveservices.v2017_04_18.implementation.CognitiveServicesManager;
import java.util.List;

/**
* Type representing PrivateEndpointConnection.
*/
public interface PrivateEndpointConnection extends HasInner<PrivateEndpointConnectionInner>, Indexable, Refreshable<PrivateEndpointConnection>, Updatable<PrivateEndpointConnection.Update>, HasManager<CognitiveServicesManager> {
/**
* @return the id value.
*/
String id();

/**
* @return the name value.
*/
String name();

/**
* @return the properties value.
*/
PrivateEndpointConnectionProperties properties();

/**
* @return the type value.
*/
String type();

/**
* The entirety of the PrivateEndpointConnection definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithAccount, DefinitionStages.WithProperties, DefinitionStages.WithCreate {
}

/**
* Grouping of PrivateEndpointConnection definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a PrivateEndpointConnection definition.
*/
interface Blank extends WithAccount {
}

/**
* The stage of the privateendpointconnection definition allowing to specify Account.
*/
interface WithAccount {
/**
* Specifies resourceGroupName, accountName.
* @param resourceGroupName The name of the resource group. The name is case insensitive
* @param accountName The name of Cognitive Services account
* @return the next definition stage
*/
WithProperties withExistingAccount(String resourceGroupName, String accountName);
}

/**
* The stage of the privateendpointconnection definition allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties Resource properties
* @return the next definition stage
*/
WithCreate withProperties(PrivateEndpointConnectionProperties properties);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<PrivateEndpointConnection> {
}
}
/**
* The template for a PrivateEndpointConnection update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithProperties {
}

/**
* Grouping of PrivateEndpointConnection update stages.
*/
interface UpdateStages {
/**
* The stage of the privateendpointconnection update allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties Resource properties
* @return the next update stage
*/
Update withProperties(PrivateEndpointConnectionProperties properties);
}

}
}
Loading