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-synapse] Add batch tag 10/14 #11156

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
4 changes: 3 additions & 1 deletion sdk/synapse/azure-resourcemanager-synapse/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-10-14)

- Azure Resource Manager Synapse client library for Java. This package contains Microsoft Azure SDK for Synapse Management SDK. Azure Synapse Analytics Management Client. Package tag package-composite-v2. 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
2 changes: 1 addition & 1 deletion sdk/synapse/azure-resourcemanager-synapse/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-synapse</artifactId>
<version>1.0.0-beta.3</version>
<version>1.0.0-beta.4</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
6 changes: 4 additions & 2 deletions sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5501,6 +5501,7 @@ public final class SqlPoolWorkloadGroupListSamples {
### SqlPools_Create

```java
import com.azure.resourcemanager.synapse.models.CreateMode;
import com.azure.resourcemanager.synapse.models.Sku;
import com.azure.resourcemanager.synapse.models.StorageAccountType;
import java.util.HashMap;
Expand Down Expand Up @@ -5528,7 +5529,7 @@ public final class SqlPoolsCreateSamples {
.withCollation("")
.withSourceDatabaseId("")
.withRecoverableDatabaseId("")
.withCreateMode("")
.withCreateMode(CreateMode.fromString(""))
.withStorageAccountType(StorageAccountType.LRS)
.create();
}
Expand Down Expand Up @@ -5699,6 +5700,7 @@ public final class SqlPoolsResumeSamples {

```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.synapse.models.CreateMode;
import com.azure.resourcemanager.synapse.models.Sku;
import com.azure.resourcemanager.synapse.models.SqlPool;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -5730,7 +5732,7 @@ public final class SqlPoolsUpdateSamples {
.withSourceDatabaseId("")
.withRecoverableDatabaseId("")
.withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z"))
.withCreateMode("")
.withCreateMode(CreateMode.fromString(""))
.withCreationDate(OffsetDateTime.parse("1970-01-01T00:00:00.000Z"))
.apply();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.synapse")
.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 @@ -69,6 +69,13 @@ public final class EventHubConnectionProperties {
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private ResourceProvisioningState provisioningState;

/*
* The resource ID of a managed identity (system or user assigned) to be
* used to authenticate with event hub.
*/
@JsonProperty(value = "managedIdentityResourceId")
private String managedIdentityResourceId;

/**
* Get the eventHubResourceId property: The resource ID of the event hub to be used to create a data connection.
*
Expand Down Expand Up @@ -224,6 +231,28 @@ public ResourceProvisioningState provisioningState() {
return this.provisioningState;
}

/**
* Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be
* used to authenticate with event hub.
*
* @return the managedIdentityResourceId value.
*/
public String managedIdentityResourceId() {
return this.managedIdentityResourceId;
}

/**
* Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be
* used to authenticate with event hub.
*
* @param managedIdentityResourceId the managedIdentityResourceId value to set.
* @return the EventHubConnectionProperties object itself.
*/
public EventHubConnectionProperties withManagedIdentityResourceId(String managedIdentityResourceId) {
this.managedIdentityResourceId = managedIdentityResourceId;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.azure.core.annotation.Fluent;
import com.azure.core.management.Resource;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.CreateMode;
import com.azure.resourcemanager.synapse.models.Sku;
import com.azure.resourcemanager.synapse.models.StorageAccountType;
import com.fasterxml.jackson.annotation.JsonIgnore;
Expand Down Expand Up @@ -236,21 +237,45 @@ public SqlPoolInner withRestorePointInTime(OffsetDateTime restorePointInTime) {
}

/**
* Get the createMode property: What is this?.
* Get the createMode property: Specifies the mode of sql pool creation.
*
* <p>Default: regular sql pool creation.
*
* <p>PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool.
* sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be
* specified.
*
* <p>Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the
* recoverableDatabaseId to restore.
*
* <p>Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql
* pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
*
* @return the createMode value.
*/
public String createMode() {
public CreateMode createMode() {
return this.innerProperties() == null ? null : this.innerProperties().createMode();
}

/**
* Set the createMode property: What is this?.
* Set the createMode property: Specifies the mode of sql pool creation.
*
* <p>Default: regular sql pool creation.
*
* <p>PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool.
* sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be
* specified.
*
* <p>Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the
* recoverableDatabaseId to restore.
*
* <p>Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql
* pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
*
* @param createMode the createMode value to set.
* @return the SqlPoolInner object itself.
*/
public SqlPoolInner withCreateMode(String createMode) {
public SqlPoolInner withCreateMode(CreateMode createMode) {
if (this.innerProperties() == null) {
this.innerProperties = new SqlPoolResourceProperties();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.CreateMode;
import com.azure.resourcemanager.synapse.models.StorageAccountType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand Down Expand Up @@ -59,10 +60,25 @@ public final class SqlPoolResourceProperties {
private OffsetDateTime restorePointInTime;

/*
* What is this?
* Specifies the mode of sql pool creation.
*
* Default: regular sql pool creation.
*
* PointInTimeRestore: Creates a sql pool by restoring a point in time
* backup of an existing sql pool. sourceDatabaseId must be specified as
* the resource ID of the existing sql pool, and restorePointInTime must be
* specified.
*
* Recovery: Creates a sql pool by a geo-replicated backup.
* sourceDatabaseId must be specified as the recoverableDatabaseId to
* restore.
*
* Restore: Creates a sql pool by restoring a backup of a deleted sql
* pool. SourceDatabaseId should be the sql pool's original resource ID.
* SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
*/
@JsonProperty(value = "createMode")
private String createMode;
private CreateMode createMode;

/*
* Date the SQL pool was created
Expand Down Expand Up @@ -223,21 +239,45 @@ public SqlPoolResourceProperties withRestorePointInTime(OffsetDateTime restorePo
}

/**
* Get the createMode property: What is this?.
* Get the createMode property: Specifies the mode of sql pool creation.
*
* <p>Default: regular sql pool creation.
*
* <p>PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool.
* sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be
* specified.
*
* <p>Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the
* recoverableDatabaseId to restore.
*
* <p>Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql
* pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
*
* @return the createMode value.
*/
public String createMode() {
public CreateMode createMode() {
return this.createMode;
}

/**
* Set the createMode property: What is this?.
* Set the createMode property: Specifies the mode of sql pool creation.
*
* <p>Default: regular sql pool creation.
*
* <p>PointInTimeRestore: Creates a sql pool by restoring a point in time backup of an existing sql pool.
* sourceDatabaseId must be specified as the resource ID of the existing sql pool, and restorePointInTime must be
* specified.
*
* <p>Recovery: Creates a sql pool by a geo-replicated backup. sourceDatabaseId must be specified as the
* recoverableDatabaseId to restore.
*
* <p>Restore: Creates a sql pool by restoring a backup of a deleted sql pool. SourceDatabaseId should be the sql
* pool's original resource ID. SourceDatabaseId and sourceDatabaseDeletionDate must be specified.
*
* @param createMode the createMode value to set.
* @return the SqlPoolResourceProperties object itself.
*/
public SqlPoolResourceProperties withCreateMode(String createMode) {
public SqlPoolResourceProperties withCreateMode(CreateMode createMode) {
this.createMode = createMode;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resourcemanager.synapse.fluent.models.SqlPoolInner;
import com.azure.resourcemanager.synapse.models.CreateMode;
import com.azure.resourcemanager.synapse.models.ResourceMoveDefinition;
import com.azure.resourcemanager.synapse.models.Sku;
import com.azure.resourcemanager.synapse.models.SqlPool;
Expand Down Expand Up @@ -79,7 +80,7 @@ public OffsetDateTime restorePointInTime() {
return this.innerModel().restorePointInTime();
}

public String createMode() {
public CreateMode createMode() {
return this.innerModel().createMode();
}

Expand Down Expand Up @@ -328,7 +329,7 @@ public SqlPoolImpl withRestorePointInTime(OffsetDateTime restorePointInTime) {
}
}

public SqlPoolImpl withCreateMode(String createMode) {
public SqlPoolImpl withCreateMode(CreateMode createMode) {
if (isInCreateMode()) {
this.innerModel().withCreateMode(createMode);
return this;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.synapse.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for CreateMode. */
public final class CreateMode extends ExpandableStringEnum<CreateMode> {
/** Static value Default for CreateMode. */
public static final CreateMode DEFAULT = fromString("Default");

/** Static value PointInTimeRestore for CreateMode. */
public static final CreateMode POINT_IN_TIME_RESTORE = fromString("PointInTimeRestore");

/** Static value Recovery for CreateMode. */
public static final CreateMode RECOVERY = fromString("Recovery");

/** Static value Restore for CreateMode. */
public static final CreateMode RESTORE = fromString("Restore");

/**
* Creates or finds a CreateMode from its string representation.
*
* @param name a name to look for.
* @return the corresponding CreateMode.
*/
@JsonCreator
public static CreateMode fromString(String name) {
return fromString(name, CreateMode.class);
}

/** @return known CreateMode values. */
public static Collection<CreateMode> values() {
return values(CreateMode.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,31 @@ public ResourceProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}

/**
* Get the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be
* used to authenticate with event hub.
*
* @return the managedIdentityResourceId value.
*/
public String managedIdentityResourceId() {
return this.innerProperties() == null ? null : this.innerProperties().managedIdentityResourceId();
}

/**
* Set the managedIdentityResourceId property: The resource ID of a managed identity (system or user assigned) to be
* used to authenticate with event hub.
*
* @param managedIdentityResourceId the managedIdentityResourceId value to set.
* @return the EventHubDataConnection object itself.
*/
public EventHubDataConnection withManagedIdentityResourceId(String managedIdentityResourceId) {
if (this.innerProperties() == null) {
this.innerProperties = new EventHubConnectionProperties();
}
this.innerProperties().withManagedIdentityResourceId(managedIdentityResourceId);
return this;
}

/**
* Validates the instance.
*
Expand Down
Loading