Skip to content
Closed
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/**
* 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.kusto.v2019_01_21;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.kusto.v2019_01_21.implementation.AttachedDatabaseConfigurationInner;

/**
* Class representing an attached database configuration for a all attached
* database kind.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("All")
@JsonFlatten
public class AllAttachedDatabaseConfiguration extends AttachedDatabaseConfigurationInner {
/**
* The list of current databases that are attached.
*/
@JsonProperty(value = "properties.databaseNames", access = JsonProperty.Access.WRITE_ONLY)
private List<String> databaseNames;

/**
* The resource id of the cluster where the databases you would like to
* attach reside.
*/
@JsonProperty(value = "properties.clusterResourceId", required = true)
private String clusterResourceId;

/**
* Get the list of current databases that are attached.
*
* @return the databaseNames value
*/
public List<String> databaseNames() {
return this.databaseNames;
}

/**
* Get the resource id of the cluster where the databases you would like to attach reside.
*
* @return the clusterResourceId value
*/
public String clusterResourceId() {
return this.clusterResourceId;
}

/**
* Set the resource id of the cluster where the databases you would like to attach reside.
*
* @param clusterResourceId the clusterResourceId value to set
* @return the AllAttachedDatabaseConfiguration object itself.
*/
public AllAttachedDatabaseConfiguration withClusterResourceId(String clusterResourceId) {
this.clusterResourceId = clusterResourceId;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
/**
* 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.kusto.v2019_01_21;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.kusto.v2019_01_21.implementation.AttachedDatabaseConfigurationInner;
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.kusto.v2019_01_21.implementation.KustoManager;
import java.util.List;

/**
* Type representing AttachedDatabaseConfiguration.
*/
public interface AttachedDatabaseConfiguration extends HasInner<AttachedDatabaseConfigurationInner>, Indexable, Refreshable<AttachedDatabaseConfiguration>, Updatable<AttachedDatabaseConfiguration.Update>, HasManager<KustoManager> {
/**
* @return the attachedDatabaseNames value.
*/
List<String> attachedDatabaseNames();

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

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

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

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

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

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

/**
* The entirety of the AttachedDatabaseConfiguration definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCluster, DefinitionStages.WithClusterResourceId, DefinitionStages.WithDatabaseName, DefinitionStages.WithCreate {
}

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

/**
* The stage of the attacheddatabaseconfiguration definition allowing to specify Cluster.
*/
interface WithCluster {
/**
* Specifies resourceGroupName, clusterName.
* @param resourceGroupName The name of the resource group containing the Kusto cluster
* @param clusterName The name of the Kusto cluster
* @return the next definition stage
*/
WithClusterResourceId withExistingCluster(String resourceGroupName, String clusterName);
}

/**
* The stage of the attacheddatabaseconfiguration definition allowing to specify ClusterResourceId.
*/
interface WithClusterResourceId {
/**
* Specifies clusterResourceId.
* @param clusterResourceId The resource id of the cluster where the databases you would like to attach reside
* @return the next definition stage
*/
WithDatabaseName withClusterResourceId(String clusterResourceId);
}

/**
* The stage of the attacheddatabaseconfiguration definition allowing to specify DatabaseName.
*/
interface WithDatabaseName {
/**
* Specifies databaseName.
* @param databaseName The name of the database which you would like to attach, use * if you want to follow all current and future databases
* @return the next definition stage
*/
WithCreate withDatabaseName(String databaseName);
}

/**
* The stage of the attacheddatabaseconfiguration definition allowing to specify Location.
*/
interface WithLocation {
/**
* Specifies location.
* @param location Resource location
* @return the next definition stage
*/
WithCreate withLocation(String location);
}

/**
* 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<AttachedDatabaseConfiguration>, DefinitionStages.WithLocation {
}
}
/**
* The template for a AttachedDatabaseConfiguration update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<AttachedDatabaseConfiguration>, UpdateStages.WithLocation {
}

/**
* Grouping of AttachedDatabaseConfiguration update stages.
*/
interface UpdateStages {
/**
* The stage of the attacheddatabaseconfiguration update allowing to specify Location.
*/
interface WithLocation {
/**
* Specifies location.
* @param location Resource location
* @return the next update stage
*/
Update withLocation(String location);
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* 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.kusto.v2019_01_21;

import com.microsoft.azure.arm.collection.SupportsCreating;
import rx.Completable;
import rx.Observable;
import com.microsoft.azure.management.kusto.v2019_01_21.implementation.AttachedDatabaseConfigurationsInner;
import com.microsoft.azure.arm.model.HasInner;

/**
* Type representing AttachedDatabaseConfigurations.
*/
public interface AttachedDatabaseConfigurations extends SupportsCreating<AttachedDatabaseConfiguration.DefinitionStages.Blank>, HasInner<AttachedDatabaseConfigurationsInner> {
/**
* Returns an attached database configuration.
*
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
* @param clusterName The name of the Kusto cluster.
* @param attachedDatabaseConfigurationName The name of the attached database configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AttachedDatabaseConfiguration> getAsync(String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName);

/**
* Returns the list of attached database configurations of the given Kusto cluster.
*
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
* @param clusterName The name of the Kusto cluster.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AttachedDatabaseConfiguration> listByClusterAsync(String resourceGroupName, String clusterName);

/**
* Deletes the attached database configuration with the given name.
*
* @param resourceGroupName The name of the resource group containing the Kusto cluster.
* @param clusterName The name of the Kusto cluster.
* @param attachedDatabaseConfigurationName The name of the attached database configuration.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable deleteAsync(String resourceGroupName, String clusterName, String attachedDatabaseConfigurationName);

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,92 @@

package com.microsoft.azure.management.kusto.v2019_01_21;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.kusto.v2019_01_21.implementation.KustoManager;
import com.microsoft.azure.management.kusto.v2019_01_21.implementation.AzureSkuInner;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Type representing AzureSku.
* Azure SKU definition.
*/
public interface AzureSku extends HasInner<AzureSkuInner>, HasManager<KustoManager> {
public class AzureSku {
/**
* @return the capacity value.
* SKU name. Possible values include: 'Standard_DS13_v2+1TB_PS',
* 'Standard_DS13_v2+2TB_PS', 'Standard_DS14_v2+3TB_PS',
* 'Standard_DS14_v2+4TB_PS', 'Standard_D13_v2', 'Standard_D14_v2',
* 'Standard_L8s', 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2',
* 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2'.
*/
Integer capacity();
@JsonProperty(value = "name", required = true)
private AzureSkuName name;

/**
* @return the name value.
* SKU capacity.
*/
AzureSkuName name();
@JsonProperty(value = "capacity")
private Integer capacity;

/**
* @return the tier value.
* SKU tier. Possible values include: 'Basic', 'Standard'.
*/
String tier();
@JsonProperty(value = "tier", required = true)
private AzureSkuTier tier;

/**
* Get sKU name. Possible values include: 'Standard_DS13_v2+1TB_PS', 'Standard_DS13_v2+2TB_PS', 'Standard_DS14_v2+3TB_PS', 'Standard_DS14_v2+4TB_PS', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_L8s', 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2'.
*
* @return the name value
*/
public AzureSkuName name() {
return this.name;
}

/**
* Set sKU name. Possible values include: 'Standard_DS13_v2+1TB_PS', 'Standard_DS13_v2+2TB_PS', 'Standard_DS14_v2+3TB_PS', 'Standard_DS14_v2+4TB_PS', 'Standard_D13_v2', 'Standard_D14_v2', 'Standard_L8s', 'Standard_L16s', 'Standard_D11_v2', 'Standard_D12_v2', 'Standard_L4s', 'Dev(No SLA)_Standard_D11_v2'.
*
* @param name the name value to set
* @return the AzureSku object itself.
*/
public AzureSku withName(AzureSkuName name) {
this.name = name;
return this;
}

/**
* Get sKU capacity.
*
* @return the capacity value
*/
public Integer capacity() {
return this.capacity;
}

/**
* Set sKU capacity.
*
* @param capacity the capacity value to set
* @return the AzureSku object itself.
*/
public AzureSku withCapacity(Integer capacity) {
this.capacity = capacity;
return this;
}

/**
* Get sKU tier. Possible values include: 'Basic', 'Standard'.
*
* @return the tier value
*/
public AzureSkuTier tier() {
return this.tier;
}

/**
* Set sKU tier. Possible values include: 'Basic', 'Standard'.
*
* @param tier the tier value to set
* @return the AzureSku object itself.
*/
public AzureSku withTier(AzureSkuTier tier) {
this.tier = tier;
return this;
}

}
Loading