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
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.6 (Unreleased)
## 1.0.0-beta.1 (2022-02-10)

- 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.5</version>
<version>1.0.0-beta.6</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
85 changes: 85 additions & 0 deletions sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,12 @@
- [Get](#workspacemanagedsqlserverblobauditingpolicies_get)
- [ListByWorkspace](#workspacemanagedsqlserverblobauditingpolicies_listbyworkspace)

## WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings

- [Get](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_get)
- [List](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_list)
- [Update](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_update)

## WorkspaceManagedSqlServerEncryptionProtector

- [CreateOrUpdate](#workspacemanagedsqlserverencryptionprotector_createorupdate)
Expand Down Expand Up @@ -5986,6 +5992,85 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceS
}
```

### WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_Get

```java
import com.azure.core.util.Context;

/** Samples for WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings Get. */
public final class WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsGetSamples {
/*
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json
*/
/**
* Sample code: Get workspace managed sql server dedicated sql minimal tls settings.
*
* @param manager Entry point to SynapseManager.
*/
public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(
com.azure.resourcemanager.synapse.SynapseManager manager) {
manager
.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings()
.getWithResponse("workspace-6852", "workspace-2080", "default", Context.NONE);
}
}
```

### WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_List

```java
import com.azure.core.util.Context;

/** Samples for WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings List. */
public final class WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsListSamples {
/*
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json
*/
/**
* Sample code: List dedicated sql minimal tls settings of the workspace managed sql server.
*
* @param manager Entry point to SynapseManager.
*/
public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer(
com.azure.resourcemanager.synapse.SynapseManager manager) {
manager
.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings()
.list("workspace-6852", "workspace-2080", Context.NONE);
}
}
```

### WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_Update

```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner;
import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName;

/** Samples for WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings Update. */
public final class WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsUpdateSamples {
/*
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json
*/
/**
* Sample code: Update tls version of the workspace managed sql server.
*
* @param manager Entry point to SynapseManager.
*/
public static void updateTlsVersionOfTheWorkspaceManagedSqlServer(
com.azure.resourcemanager.synapse.SynapseManager manager) {
manager
.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings()
.update(
"workspace-6852",
"workspace-2080",
DedicatedSqlMinimalTlsSettingsName.DEFAULT,
new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"),
Context.NONE);
}
}
```

### WorkspaceManagedSqlServerEncryptionProtector_CreateOrUpdate

```java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
import com.azure.resourcemanager.synapse.implementation.WorkspaceAadAdminsImpl;
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedIdentitySqlControlSettingsImpl;
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerBlobAuditingPoliciesImpl;
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsImpl;
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerEncryptionProtectorsImpl;
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl;
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerRecoverableSqlPoolsImpl;
Expand Down Expand Up @@ -159,6 +160,7 @@
import com.azure.resourcemanager.synapse.models.WorkspaceAadAdmins;
import com.azure.resourcemanager.synapse.models.WorkspaceManagedIdentitySqlControlSettings;
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerBlobAuditingPolicies;
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings;
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerEncryptionProtectors;
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerExtendedBlobAuditingPolicies;
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerRecoverableSqlPools;
Expand Down Expand Up @@ -266,6 +268,9 @@ public final class SynapseManager {

private WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRecoverableSqlPools;

private WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings
workspaceManagedSqlServerDedicatedSQLminimalTlsSettings;

private Workspaces workspaces;

private WorkspaceAadAdmins workspaceAadAdmins;
Expand Down Expand Up @@ -456,7 +461,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.synapse")
.append("/")
.append("1.0.0-beta.5");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down Expand Up @@ -909,6 +914,17 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec
return workspaceManagedSqlServerRecoverableSqlPools;
}

/** @return Resource collection API of WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings. */
public WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings
workspaceManagedSqlServerDedicatedSQLminimalTlsSettings() {
if (this.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings == null) {
this.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings =
new WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsImpl(
clientObject.getWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings(), this);
}
return workspaceManagedSqlServerDedicatedSQLminimalTlsSettings;
}

/** @return Resource collection API of Workspaces. */
public Workspaces workspaces() {
if (this.workspaces == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,14 @@ public interface SynapseManagementClient {
*/
WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSqlServerRecoverableSqlPools();

/**
* Gets the WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient object to access its operations.
*
* @return the WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient object.
*/
WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient
getWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings();

/**
* Gets the WorkspacesClient object to access its operations.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
// 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.fluent;

import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner;
import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName;
import reactor.core.publisher.Mono;

/**
* An instance of this class provides access to all the operations defined in
* WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient.
*/
public interface WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient {
/**
* Update workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
* @param parameters minimal tls settings.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link
* Mono}.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DedicatedSQLminimalTlsSettingsInner>, DedicatedSQLminimalTlsSettingsInner> beginUpdate(
String resourceGroupName,
String workspaceName,
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
DedicatedSQLminimalTlsSettingsInner parameters);

/**
* Update workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
* @param parameters minimal tls settings.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link
* Mono}.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<DedicatedSQLminimalTlsSettingsInner>, DedicatedSQLminimalTlsSettingsInner> beginUpdate(
String resourceGroupName,
String workspaceName,
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
DedicatedSQLminimalTlsSettingsInner parameters,
Context context);

/**
* Update workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
* @param parameters minimal tls settings.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dedicated Sql Minimal Tls Settings Info.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DedicatedSQLminimalTlsSettingsInner update(
String resourceGroupName,
String workspaceName,
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
DedicatedSQLminimalTlsSettingsInner parameters);

/**
* Update workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
* @param parameters minimal tls settings.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return dedicated Sql Minimal Tls Settings Info.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DedicatedSQLminimalTlsSettingsInner update(
String resourceGroupName,
String workspaceName,
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
DedicatedSQLminimalTlsSettingsInner parameters,
Context context);

/**
* Get workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return workspace managed sql server's minimal tls settings.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DedicatedSQLminimalTlsSettingsInner get(
String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName);

/**
* Get workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return workspace managed sql server's minimal tls settings along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<DedicatedSQLminimalTlsSettingsInner> getWithResponse(
String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context);

/**
* List workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of the server's dedicated sql minimal tls settings.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<DedicatedSQLminimalTlsSettingsInner> list(String resourceGroupName, String workspaceName);

/**
* List workspace managed sql server's minimal tls settings.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a list of the server's dedicated sql minimal tls settings.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<DedicatedSQLminimalTlsSettingsInner> list(
String resourceGroupName, String workspaceName, Context context);
}
Loading