Skip to content

Commit

Permalink
Generated from 7a341e37a79769dd5da5e242a2a6856b8cb8a44b
Browse files Browse the repository at this point in the history
fix samples
  • Loading branch information
SDK Automation committed Oct 17, 2019
1 parent 5924b9d commit ce1cd06
Show file tree
Hide file tree
Showing 9 changed files with 471 additions and 430 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,40 +25,20 @@
* Type representing CognitiveServicesAccount.
*/
public interface CognitiveServicesAccount extends HasInner<CognitiveServicesAccountInner>, Resource, GroupableResourceCore<CognitiveServicesManager, CognitiveServicesAccountInner>, HasResourceGroup, Refreshable<CognitiveServicesAccount>, Updatable<CognitiveServicesAccount.Update>, HasManager<CognitiveServicesManager> {
/**
* @return the customSubDomainName value.
*/
String customSubDomainName();

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

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

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

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

/**
* @return the networkAcls value.
* @return the properties value.
*/
NetworkRuleSet networkAcls();

/**
* @return the provisioningState value.
*/
ProvisioningState provisioningState();
CognitiveServicesAccountProperties properties();

/**
* @return the sku value.
Expand All @@ -68,7 +48,7 @@ public interface CognitiveServicesAccount extends HasInner<CognitiveServicesAcco
/**
* The entirety of the CognitiveServicesAccount definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithKind, DefinitionStages.WithProperties, DefinitionStages.WithSku, DefinitionStages.WithCreate {
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithGroup, DefinitionStages.WithCreate {
}

/**
Expand All @@ -84,42 +64,42 @@ interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {
/**
* The stage of the CognitiveServicesAccount definition allowing to specify the resource group.
*/
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithKind> {
interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCreate> {
}

/**
* The stage of the cognitiveservicesaccount definition allowing to specify Kind.
*/
interface WithKind {
/**
* Specifies kind.
* @param kind Required. Gets or sets the Kind of the resource
* @return the next definition stage
*/
WithProperties withKind(String kind);
/**
* Specifies kind.
* @param kind The Kind of the resource
* @return the next definition stage
*/
WithCreate withKind(String kind);
}

/**
* The stage of the cognitiveservicesaccount definition allowing to specify Properties.
*/
interface WithProperties {
/**
* Specifies properties.
* @param properties Must exist in the request. Must be an empty object. Must not be null
* @return the next definition stage
*/
WithSku withProperties(Object properties);
/**
* Specifies properties.
* @param properties Properties of Cognitive Services account
* @return the next definition stage
*/
WithCreate withProperties(CognitiveServicesAccountProperties properties);
}

/**
* The stage of the cognitiveservicesaccount definition allowing to specify Sku.
*/
interface WithSku {
/**
* Specifies sku.
* @param sku Required. Gets or sets the SKU of the resource
* @return the next definition stage
*/
/**
* Specifies sku.
* @param sku The SKU of Cognitive Services account
* @return the next definition stage
*/
WithCreate withSku(Sku sku);
}

Expand All @@ -128,53 +108,53 @@ interface WithSku {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<CognitiveServicesAccount>, Resource.DefinitionWithTags<WithCreate> {
interface WithCreate extends Creatable<CognitiveServicesAccount>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithKind, DefinitionStages.WithProperties, DefinitionStages.WithSku {
}
}
/**
* The template for a CognitiveServicesAccount update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<CognitiveServicesAccount>, Resource.UpdateWithTags<Update>, UpdateStages.WithSku, UpdateStages.WithTags, UpdateStages.WithProperties {
interface Update extends Appliable<CognitiveServicesAccount>, Resource.UpdateWithTags<Update>, UpdateStages.WithKind, UpdateStages.WithProperties, UpdateStages.WithSku {
}

/**
* Grouping of CognitiveServicesAccount update stages.
*/
interface UpdateStages {
/**
* The stage of the cognitiveservicesaccount update allowing to specify Sku.
* The stage of the cognitiveservicesaccount update allowing to specify Kind.
*/
interface WithSku {
interface WithKind {
/**
* Specifies sku.
* @param sku Gets or sets the SKU of the resource
* Specifies kind.
* @param kind The Kind of the resource
* @return the next update stage
*/
Update withSku(Sku sku);
Update withKind(String kind);
}

/**
* The stage of the cognitiveservicesaccount update allowing to specify Tags.
* The stage of the cognitiveservicesaccount update allowing to specify Properties.
*/
interface WithTags {
interface WithProperties {
/**
* Specifies tags.
* @param tags Gets or sets a list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups). A maximum of 15 tags can be provided for a resource. Each tag must have a key no greater than 128 characters and value no greater than 256 characters
* Specifies properties.
* @param properties Properties of Cognitive Services account
* @return the next update stage
*/
Update withTags(Map<String, String> tags);
Update withProperties(CognitiveServicesAccountProperties properties);
}

/**
* The stage of the cognitiveservicesaccount update allowing to specify Properties.
* The stage of the cognitiveservicesaccount update allowing to specify Sku.
*/
interface WithProperties {
interface WithSku {
/**
* Specifies properties.
* @param properties Additional properties for Account. Only provided fields will be updated
* Specifies sku.
* @param sku The SKU of Cognitive Services account
* @return the next update stage
*/
Update withProperties(Object properties);
Update withSku(Sku sku);
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/**
* 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 api properties for special APIs.
*/
public class CognitiveServicesAccountApiProperties {
/**
* (QnAMaker Only) The runtime endpoint of QnAMaker.
*/
@JsonProperty(value = "qnaRuntimeEndpoint")
private String qnaRuntimeEndpoint;

/**
* (Bing Search Only) The flag to enable statistics of Bing Search.
*/
@JsonProperty(value = "statisticsEnabled")
private Boolean statisticsEnabled;

/**
* (Personalization Only) The flag to enable statistics of Bing Search.
*/
@JsonProperty(value = "eventHubConnectionString")
private String eventHubConnectionString;

/**
* (Personalization Only) The storage account connection string.
*/
@JsonProperty(value = "storageAccountConnectionString")
private String storageAccountConnectionString;

/**
* Get (QnAMaker Only) The runtime endpoint of QnAMaker.
*
* @return the qnaRuntimeEndpoint value
*/
public String qnaRuntimeEndpoint() {
return this.qnaRuntimeEndpoint;
}

/**
* Set (QnAMaker Only) The runtime endpoint of QnAMaker.
*
* @param qnaRuntimeEndpoint the qnaRuntimeEndpoint value to set
* @return the CognitiveServicesAccountApiProperties object itself.
*/
public CognitiveServicesAccountApiProperties withQnaRuntimeEndpoint(String qnaRuntimeEndpoint) {
this.qnaRuntimeEndpoint = qnaRuntimeEndpoint;
return this;
}

/**
* Get (Bing Search Only) The flag to enable statistics of Bing Search.
*
* @return the statisticsEnabled value
*/
public Boolean statisticsEnabled() {
return this.statisticsEnabled;
}

/**
* Set (Bing Search Only) The flag to enable statistics of Bing Search.
*
* @param statisticsEnabled the statisticsEnabled value to set
* @return the CognitiveServicesAccountApiProperties object itself.
*/
public CognitiveServicesAccountApiProperties withStatisticsEnabled(Boolean statisticsEnabled) {
this.statisticsEnabled = statisticsEnabled;
return this;
}

/**
* Get (Personalization Only) The flag to enable statistics of Bing Search.
*
* @return the eventHubConnectionString value
*/
public String eventHubConnectionString() {
return this.eventHubConnectionString;
}

/**
* Set (Personalization Only) The flag to enable statistics of Bing Search.
*
* @param eventHubConnectionString the eventHubConnectionString value to set
* @return the CognitiveServicesAccountApiProperties object itself.
*/
public CognitiveServicesAccountApiProperties withEventHubConnectionString(String eventHubConnectionString) {
this.eventHubConnectionString = eventHubConnectionString;
return this;
}

/**
* Get (Personalization Only) The storage account connection string.
*
* @return the storageAccountConnectionString value
*/
public String storageAccountConnectionString() {
return this.storageAccountConnectionString;
}

/**
* Set (Personalization Only) The storage account connection string.
*
* @param storageAccountConnectionString the storageAccountConnectionString value to set
* @return the CognitiveServicesAccountApiProperties object itself.
*/
public CognitiveServicesAccountApiProperties withStorageAccountConnectionString(String storageAccountConnectionString) {
this.storageAccountConnectionString = storageAccountConnectionString;
return this;
}

}
Loading

0 comments on commit ce1cd06

Please sign in to comment.