Skip to content

Commit d2880ec

Browse files
author
SDKAuto
committed
CodeGen from PR 17476 in Azure/azure-rest-api-specs
Merge 171e14c3fe61c42d5a2714796568d24b47feb8db into f75c8508441d7c300a9a39abf433116ba9f6e232
1 parent 0faae6e commit d2880ec

19 files changed

+1837
-3
lines changed

sdk/synapse/azure-resourcemanager-synapse/CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

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

57
### Features Added
68

sdk/synapse/azure-resourcemanager-synapse/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
3232
<dependency>
3333
<groupId>com.azure.resourcemanager</groupId>
3434
<artifactId>azure-resourcemanager-synapse</artifactId>
35-
<version>1.0.0-beta.5</version>
35+
<version>1.0.0-beta.6</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,12 @@
387387
- [Get](#workspacemanagedsqlserverblobauditingpolicies_get)
388388
- [ListByWorkspace](#workspacemanagedsqlserverblobauditingpolicies_listbyworkspace)
389389

390+
## WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings
391+
392+
- [Get](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_get)
393+
- [List](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_list)
394+
- [Update](#workspacemanagedsqlserverdedicatedsqlminimaltlssettings_update)
395+
390396
## WorkspaceManagedSqlServerEncryptionProtector
391397

392398
- [CreateOrUpdate](#workspacemanagedsqlserverencryptionprotector_createorupdate)
@@ -5986,6 +5992,85 @@ public final class WorkspaceManagedSqlServerBlobAuditingPoliciesListByWorkspaceS
59865992
}
59875993
```
59885994

5995+
### WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_Get
5996+
5997+
```java
5998+
import com.azure.core.util.Context;
5999+
6000+
/** Samples for WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings Get. */
6001+
public final class WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsGetSamples {
6002+
/*
6003+
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/GetWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json
6004+
*/
6005+
/**
6006+
* Sample code: Get workspace managed sql server dedicated sql minimal tls settings.
6007+
*
6008+
* @param manager Entry point to SynapseManager.
6009+
*/
6010+
public static void getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(
6011+
com.azure.resourcemanager.synapse.SynapseManager manager) {
6012+
manager
6013+
.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings()
6014+
.getWithResponse("workspace-6852", "workspace-2080", "default", Context.NONE);
6015+
}
6016+
}
6017+
```
6018+
6019+
### WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_List
6020+
6021+
```java
6022+
import com.azure.core.util.Context;
6023+
6024+
/** Samples for WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings List. */
6025+
public final class WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsListSamples {
6026+
/*
6027+
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/ListWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json
6028+
*/
6029+
/**
6030+
* Sample code: List dedicated sql minimal tls settings of the workspace managed sql server.
6031+
*
6032+
* @param manager Entry point to SynapseManager.
6033+
*/
6034+
public static void listDedicatedSqlMinimalTlsSettingsOfTheWorkspaceManagedSqlServer(
6035+
com.azure.resourcemanager.synapse.SynapseManager manager) {
6036+
manager
6037+
.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings()
6038+
.list("workspace-6852", "workspace-2080", Context.NONE);
6039+
}
6040+
}
6041+
```
6042+
6043+
### WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings_Update
6044+
6045+
```java
6046+
import com.azure.core.util.Context;
6047+
import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner;
6048+
import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName;
6049+
6050+
/** Samples for WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings Update. */
6051+
public final class WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsUpdateSamples {
6052+
/*
6053+
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/UpdateWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings.json
6054+
*/
6055+
/**
6056+
* Sample code: Update tls version of the workspace managed sql server.
6057+
*
6058+
* @param manager Entry point to SynapseManager.
6059+
*/
6060+
public static void updateTlsVersionOfTheWorkspaceManagedSqlServer(
6061+
com.azure.resourcemanager.synapse.SynapseManager manager) {
6062+
manager
6063+
.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings()
6064+
.update(
6065+
"workspace-6852",
6066+
"workspace-2080",
6067+
DedicatedSqlMinimalTlsSettingsName.DEFAULT,
6068+
new DedicatedSQLminimalTlsSettingsInner().withMinimalTlsVersion("1.1"),
6069+
Context.NONE);
6070+
}
6071+
}
6072+
```
6073+
59896074
### WorkspaceManagedSqlServerEncryptionProtector_CreateOrUpdate
59906075

59916076
```java

sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/SynapseManager.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
import com.azure.resourcemanager.synapse.implementation.WorkspaceAadAdminsImpl;
8888
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedIdentitySqlControlSettingsImpl;
8989
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerBlobAuditingPoliciesImpl;
90+
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsImpl;
9091
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerEncryptionProtectorsImpl;
9192
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerExtendedBlobAuditingPoliciesImpl;
9293
import com.azure.resourcemanager.synapse.implementation.WorkspaceManagedSqlServerRecoverableSqlPoolsImpl;
@@ -159,6 +160,7 @@
159160
import com.azure.resourcemanager.synapse.models.WorkspaceAadAdmins;
160161
import com.azure.resourcemanager.synapse.models.WorkspaceManagedIdentitySqlControlSettings;
161162
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerBlobAuditingPolicies;
163+
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings;
162164
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerEncryptionProtectors;
163165
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerExtendedBlobAuditingPolicies;
164166
import com.azure.resourcemanager.synapse.models.WorkspaceManagedSqlServerRecoverableSqlPools;
@@ -266,6 +268,9 @@ public final class SynapseManager {
266268

267269
private WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRecoverableSqlPools;
268270

271+
private WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings
272+
workspaceManagedSqlServerDedicatedSQLminimalTlsSettings;
273+
269274
private Workspaces workspaces;
270275

271276
private WorkspaceAadAdmins workspaceAadAdmins;
@@ -456,7 +461,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
456461
.append("-")
457462
.append("com.azure.resourcemanager.synapse")
458463
.append("/")
459-
.append("1.0.0-beta.5");
464+
.append("1.0.0-beta.1");
460465
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
461466
userAgentBuilder
462467
.append(" (")
@@ -909,6 +914,17 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec
909914
return workspaceManagedSqlServerRecoverableSqlPools;
910915
}
911916

917+
/** @return Resource collection API of WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings. */
918+
public WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings
919+
workspaceManagedSqlServerDedicatedSQLminimalTlsSettings() {
920+
if (this.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings == null) {
921+
this.workspaceManagedSqlServerDedicatedSQLminimalTlsSettings =
922+
new WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsImpl(
923+
clientObject.getWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings(), this);
924+
}
925+
return workspaceManagedSqlServerDedicatedSQLminimalTlsSettings;
926+
}
927+
912928
/** @return Resource collection API of Workspaces. */
913929
public Workspaces workspaces() {
914930
if (this.workspaces == null) {

sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/fluent/SynapseManagementClient.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,14 @@ public interface SynapseManagementClient {
353353
*/
354354
WorkspaceManagedSqlServerRecoverableSqlPoolsClient getWorkspaceManagedSqlServerRecoverableSqlPools();
355355

356+
/**
357+
* Gets the WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient object to access its operations.
358+
*
359+
* @return the WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient object.
360+
*/
361+
WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient
362+
getWorkspaceManagedSqlServerDedicatedSQLminimalTlsSettings();
363+
356364
/**
357365
* Gets the WorkspacesClient object to access its operations.
358366
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
5+
package com.azure.resourcemanager.synapse.fluent;
6+
7+
import com.azure.core.annotation.ReturnType;
8+
import com.azure.core.annotation.ServiceMethod;
9+
import com.azure.core.http.rest.PagedIterable;
10+
import com.azure.core.http.rest.Response;
11+
import com.azure.core.management.polling.PollResult;
12+
import com.azure.core.util.Context;
13+
import com.azure.core.util.polling.SyncPoller;
14+
import com.azure.resourcemanager.synapse.fluent.models.DedicatedSQLminimalTlsSettingsInner;
15+
import com.azure.resourcemanager.synapse.models.DedicatedSqlMinimalTlsSettingsName;
16+
import reactor.core.publisher.Mono;
17+
18+
/**
19+
* An instance of this class provides access to all the operations defined in
20+
* WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient.
21+
*/
22+
public interface WorkspaceManagedSqlServerDedicatedSQLminimalTlsSettingsClient {
23+
/**
24+
* Update workspace managed sql server's minimal tls settings.
25+
*
26+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
27+
* @param workspaceName The name of the workspace.
28+
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
29+
* @param parameters minimal tls settings.
30+
* @throws IllegalArgumentException thrown if parameters fail the validation.
31+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
32+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
33+
* @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link
34+
* Mono}.
35+
*/
36+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
37+
SyncPoller<PollResult<DedicatedSQLminimalTlsSettingsInner>, DedicatedSQLminimalTlsSettingsInner> beginUpdate(
38+
String resourceGroupName,
39+
String workspaceName,
40+
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
41+
DedicatedSQLminimalTlsSettingsInner parameters);
42+
43+
/**
44+
* Update workspace managed sql server's minimal tls settings.
45+
*
46+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
47+
* @param workspaceName The name of the workspace.
48+
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
49+
* @param parameters minimal tls settings.
50+
* @param context The context to associate with this operation.
51+
* @throws IllegalArgumentException thrown if parameters fail the validation.
52+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
53+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
54+
* @return dedicated Sql Minimal Tls Settings Info along with {@link Response} on successful completion of {@link
55+
* Mono}.
56+
*/
57+
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
58+
SyncPoller<PollResult<DedicatedSQLminimalTlsSettingsInner>, DedicatedSQLminimalTlsSettingsInner> beginUpdate(
59+
String resourceGroupName,
60+
String workspaceName,
61+
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
62+
DedicatedSQLminimalTlsSettingsInner parameters,
63+
Context context);
64+
65+
/**
66+
* Update workspace managed sql server's minimal tls settings.
67+
*
68+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
69+
* @param workspaceName The name of the workspace.
70+
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
71+
* @param parameters minimal tls settings.
72+
* @throws IllegalArgumentException thrown if parameters fail the validation.
73+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
74+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
75+
* @return dedicated Sql Minimal Tls Settings Info.
76+
*/
77+
@ServiceMethod(returns = ReturnType.SINGLE)
78+
DedicatedSQLminimalTlsSettingsInner update(
79+
String resourceGroupName,
80+
String workspaceName,
81+
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
82+
DedicatedSQLminimalTlsSettingsInner parameters);
83+
84+
/**
85+
* Update workspace managed sql server's minimal tls settings.
86+
*
87+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
88+
* @param workspaceName The name of the workspace.
89+
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
90+
* @param parameters minimal tls settings.
91+
* @param context The context to associate with this operation.
92+
* @throws IllegalArgumentException thrown if parameters fail the validation.
93+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
94+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
95+
* @return dedicated Sql Minimal Tls Settings Info.
96+
*/
97+
@ServiceMethod(returns = ReturnType.SINGLE)
98+
DedicatedSQLminimalTlsSettingsInner update(
99+
String resourceGroupName,
100+
String workspaceName,
101+
DedicatedSqlMinimalTlsSettingsName dedicatedSQLminimalTlsSettingsName,
102+
DedicatedSQLminimalTlsSettingsInner parameters,
103+
Context context);
104+
105+
/**
106+
* Get workspace managed sql server's minimal tls settings.
107+
*
108+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
109+
* @param workspaceName The name of the workspace.
110+
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
111+
* @throws IllegalArgumentException thrown if parameters fail the validation.
112+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
113+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
114+
* @return workspace managed sql server's minimal tls settings.
115+
*/
116+
@ServiceMethod(returns = ReturnType.SINGLE)
117+
DedicatedSQLminimalTlsSettingsInner get(
118+
String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName);
119+
120+
/**
121+
* Get workspace managed sql server's minimal tls settings.
122+
*
123+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
124+
* @param workspaceName The name of the workspace.
125+
* @param dedicatedSQLminimalTlsSettingsName The name of the dedicated sql minimal tls settings.
126+
* @param context The context to associate with this operation.
127+
* @throws IllegalArgumentException thrown if parameters fail the validation.
128+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
129+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
130+
* @return workspace managed sql server's minimal tls settings along with {@link Response}.
131+
*/
132+
@ServiceMethod(returns = ReturnType.SINGLE)
133+
Response<DedicatedSQLminimalTlsSettingsInner> getWithResponse(
134+
String resourceGroupName, String workspaceName, String dedicatedSQLminimalTlsSettingsName, Context context);
135+
136+
/**
137+
* List workspace managed sql server's minimal tls settings.
138+
*
139+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
140+
* @param workspaceName The name of the workspace.
141+
* @throws IllegalArgumentException thrown if parameters fail the validation.
142+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
143+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
144+
* @return a list of the server's dedicated sql minimal tls settings.
145+
*/
146+
@ServiceMethod(returns = ReturnType.COLLECTION)
147+
PagedIterable<DedicatedSQLminimalTlsSettingsInner> list(String resourceGroupName, String workspaceName);
148+
149+
/**
150+
* List workspace managed sql server's minimal tls settings.
151+
*
152+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
153+
* @param workspaceName The name of the workspace.
154+
* @param context The context to associate with this operation.
155+
* @throws IllegalArgumentException thrown if parameters fail the validation.
156+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
157+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
158+
* @return a list of the server's dedicated sql minimal tls settings.
159+
*/
160+
@ServiceMethod(returns = ReturnType.COLLECTION)
161+
PagedIterable<DedicatedSQLminimalTlsSettingsInner> list(
162+
String resourceGroupName, String workspaceName, Context context);
163+
}

0 commit comments

Comments
 (0)