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

[AutoPR azure-resourcemanager-kusto] Agent pool start/stop #10795

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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: 3 additions & 1 deletion sdk/kusto/azure-resourcemanager-kusto/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Release History

## 1.0.0-beta.4 (Unreleased)
## 1.0.0-beta.1 (2021-09-21)

- Azure Resource Manager Kusto client library for Java. This package contains Microsoft Azure SDK for Kusto Management SDK. The Azure Kusto management API provides a RESTful set of web services that interact with Azure Kusto services to manage your clusters and databases. The API enables you to create, update, and delete clusters and databases. Package tag package-2021-08-27. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
3 changes: 1 addition & 2 deletions sdk/kusto/azure-resourcemanager-kusto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-kusto</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down Expand Up @@ -74,7 +74,6 @@ See [API design][design] for general introduction on design and key concepts on

## Examples

[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/kusto/azure-resourcemanager-kusto/SAMPLE.md)


## Troubleshooting
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public KustoManager authenticate(TokenCredential credential, AzureProfile profil
.append("-")
.append("com.azure.resourcemanager.kusto")
.append("/")
.append("1.0.0-beta.3");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package com.azure.resourcemanager.kusto.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.azure.core.management.ProxyResource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.kusto.models.DefaultPrincipalsModificationKind;
Expand All @@ -15,8 +16,9 @@
import java.util.List;

/** Class representing an attached database configuration. */
@JsonFlatten
@Fluent
public final class AttachedDatabaseConfigurationInner extends ProxyResource {
public class AttachedDatabaseConfigurationInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(AttachedDatabaseConfigurationInner.class);

/*
Expand All @@ -26,10 +28,43 @@ public final class AttachedDatabaseConfigurationInner extends ProxyResource {
private String location;

/*
* The properties of the attached database configuration.
* The provisioned state of the resource.
*/
@JsonProperty(value = "properties")
private AttachedDatabaseConfigurationProperties innerProperties;
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ProvisioningState provisioningState;

/*
* The name of the database which you would like to attach, use * if you
* want to follow all current and future databases.
*/
@JsonProperty(value = "properties.databaseName")
private String databaseName;

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

/*
* The list of databases from the clusterResourceId which are currently
* attached to the cluster.
*/
@JsonProperty(value = "properties.attachedDatabaseNames", access = JsonProperty.Access.WRITE_ONLY)
private List<String> attachedDatabaseNames;

/*
* The default principals modification kind
*/
@JsonProperty(value = "properties.defaultPrincipalsModificationKind")
private DefaultPrincipalsModificationKind defaultPrincipalsModificationKind;

/*
* Table level sharing specifications
*/
@JsonProperty(value = "properties.tableLevelSharingProperties")
private TableLevelSharingProperties tableLevelSharingProperties;

/**
* Get the location property: Resource location.
Expand All @@ -51,22 +86,13 @@ public AttachedDatabaseConfigurationInner withLocation(String location) {
return this;
}

/**
* Get the innerProperties property: The properties of the attached database configuration.
*
* @return the innerProperties value.
*/
private AttachedDatabaseConfigurationProperties innerProperties() {
return this.innerProperties;
}

/**
* Get the provisioningState property: The provisioned state of the resource.
*
* @return the provisioningState value.
*/
public ProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
return this.provisioningState;
}

/**
Expand All @@ -76,7 +102,7 @@ public ProvisioningState provisioningState() {
* @return the databaseName value.
*/
public String databaseName() {
return this.innerProperties() == null ? null : this.innerProperties().databaseName();
return this.databaseName;
}

/**
Expand All @@ -87,10 +113,7 @@ public String databaseName() {
* @return the AttachedDatabaseConfigurationInner object itself.
*/
public AttachedDatabaseConfigurationInner withDatabaseName(String databaseName) {
if (this.innerProperties() == null) {
this.innerProperties = new AttachedDatabaseConfigurationProperties();
}
this.innerProperties().withDatabaseName(databaseName);
this.databaseName = databaseName;
return this;
}

Expand All @@ -101,7 +124,7 @@ public AttachedDatabaseConfigurationInner withDatabaseName(String databaseName)
* @return the clusterResourceId value.
*/
public String clusterResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().clusterResourceId();
return this.clusterResourceId;
}

/**
Expand All @@ -112,10 +135,7 @@ public String clusterResourceId() {
* @return the AttachedDatabaseConfigurationInner object itself.
*/
public AttachedDatabaseConfigurationInner withClusterResourceId(String clusterResourceId) {
if (this.innerProperties() == null) {
this.innerProperties = new AttachedDatabaseConfigurationProperties();
}
this.innerProperties().withClusterResourceId(clusterResourceId);
this.clusterResourceId = clusterResourceId;
return this;
}

Expand All @@ -126,7 +146,7 @@ public AttachedDatabaseConfigurationInner withClusterResourceId(String clusterRe
* @return the attachedDatabaseNames value.
*/
public List<String> attachedDatabaseNames() {
return this.innerProperties() == null ? null : this.innerProperties().attachedDatabaseNames();
return this.attachedDatabaseNames;
}

/**
Expand All @@ -135,7 +155,7 @@ public List<String> attachedDatabaseNames() {
* @return the defaultPrincipalsModificationKind value.
*/
public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() {
return this.innerProperties() == null ? null : this.innerProperties().defaultPrincipalsModificationKind();
return this.defaultPrincipalsModificationKind;
}

/**
Expand All @@ -146,10 +166,7 @@ public DefaultPrincipalsModificationKind defaultPrincipalsModificationKind() {
*/
public AttachedDatabaseConfigurationInner withDefaultPrincipalsModificationKind(
DefaultPrincipalsModificationKind defaultPrincipalsModificationKind) {
if (this.innerProperties() == null) {
this.innerProperties = new AttachedDatabaseConfigurationProperties();
}
this.innerProperties().withDefaultPrincipalsModificationKind(defaultPrincipalsModificationKind);
this.defaultPrincipalsModificationKind = defaultPrincipalsModificationKind;
return this;
}

Expand All @@ -159,7 +176,7 @@ public AttachedDatabaseConfigurationInner withDefaultPrincipalsModificationKind(
* @return the tableLevelSharingProperties value.
*/
public TableLevelSharingProperties tableLevelSharingProperties() {
return this.innerProperties() == null ? null : this.innerProperties().tableLevelSharingProperties();
return this.tableLevelSharingProperties;
}

/**
Expand All @@ -170,10 +187,7 @@ public TableLevelSharingProperties tableLevelSharingProperties() {
*/
public AttachedDatabaseConfigurationInner withTableLevelSharingProperties(
TableLevelSharingProperties tableLevelSharingProperties) {
if (this.innerProperties() == null) {
this.innerProperties = new AttachedDatabaseConfigurationProperties();
}
this.innerProperties().withTableLevelSharingProperties(tableLevelSharingProperties);
this.tableLevelSharingProperties = tableLevelSharingProperties;
return this;
}

Expand All @@ -183,8 +197,8 @@ public AttachedDatabaseConfigurationInner withTableLevelSharingProperties(
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
if (tableLevelSharingProperties() != null) {
tableLevelSharingProperties().validate();
}
}
}
Loading