Skip to content

Commit 14a6008

Browse files
author
SDKAuto
committed
CodeGen from PR 18303 in Azure/azure-rest-api-specs
Merge 0e628a4161f9eb4eb223dd696c0e3f8d80d47819 into bcc31e55442c9fea21243154b626dd720ddd3058
1 parent 844ba97 commit 14a6008

File tree

560 files changed

+3312
-2868
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

560 files changed

+3312
-2868
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-03-18)
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: 22 additions & 4 deletions
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;
@@ -358,7 +363,7 @@ public static Configurable configure() {
358363

359364
/** The Configurable allowing configurations to be set. */
360365
public static final class Configurable {
361-
private final ClientLogger logger = new ClientLogger(Configurable.class);
366+
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
362367

363368
private HttpClient httpClient;
364369
private HttpLogOptions httpLogOptions;
@@ -432,9 +437,11 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
432437
* @return the configurable object itself.
433438
*/
434439
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
435-
this.defaultPollInterval = Objects.requireNonNull(defaultPollInterval, "'retryPolicy' cannot be null.");
440+
this.defaultPollInterval =
441+
Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
436442
if (this.defaultPollInterval.isNegative()) {
437-
throw logger.logExceptionAsError(new IllegalArgumentException("'httpPipeline' cannot be negative"));
443+
throw LOGGER
444+
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
438445
}
439446
return this;
440447
}
@@ -456,7 +463,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
456463
.append("-")
457464
.append("com.azure.resourcemanager.synapse")
458465
.append("/")
459-
.append("1.0.0-beta.5");
466+
.append("1.0.0-beta.1");
460467
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
461468
userAgentBuilder
462469
.append(" (")
@@ -909,6 +916,17 @@ public WorkspaceManagedSqlServerRecoverableSqlPools workspaceManagedSqlServerRec
909916
return workspaceManagedSqlServerRecoverableSqlPools;
910917
}
911918

919+
/** @return Resource collection API of WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings. */
920+
public WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings
921+
workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings() {
922+
if (this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings == null) {
923+
this.workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings =
924+
new WorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettingsImpl(
925+
clientObject.getWorkspaceManagedSqlServerDedicatedSqlMinimalTlsSettings(), this);
926+
}
927+
return workspaceManagedSqlServerDedicatedSqlMinimalTlsSettings;
928+
}
929+
912930
/** @return Resource collection API of Workspaces. */
913931
public Workspaces workspaces() {
914932
if (this.workspaces == null) {

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.synapse.fluent.models.AzureADOnlyAuthenticationInner;
1515
import com.azure.resourcemanager.synapse.models.AzureADOnlyAuthenticationName;
16-
import reactor.core.publisher.Mono;
1716

1817
/** An instance of this class provides access to all the operations defined in AzureADOnlyAuthenticationsClient. */
1918
public interface AzureADOnlyAuthenticationsClient {
@@ -61,8 +60,7 @@ Response<AzureADOnlyAuthenticationInner> getWithResponse(
6160
* @throws IllegalArgumentException thrown if parameters fail the validation.
6261
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
6362
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
64-
* @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of
65-
* {@link Mono}.
63+
* @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info.
6664
*/
6765
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
6866
SyncPoller<PollResult<AzureADOnlyAuthenticationInner>, AzureADOnlyAuthenticationInner> beginCreate(
@@ -82,8 +80,7 @@ SyncPoller<PollResult<AzureADOnlyAuthenticationInner>, AzureADOnlyAuthentication
8280
* @throws IllegalArgumentException thrown if parameters fail the validation.
8381
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
8482
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
85-
* @return azure Active Directory Only Authentication Info along with {@link Response} on successful completion of
86-
* {@link Mono}.
83+
* @return the {@link SyncPoller} for polling of azure Active Directory Only Authentication Info.
8784
*/
8885
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
8986
SyncPoller<PollResult<AzureADOnlyAuthenticationInner>, AzureADOnlyAuthenticationInner> beginCreate(
@@ -141,7 +138,8 @@ AzureADOnlyAuthenticationInner create(
141138
* @throws IllegalArgumentException thrown if parameters fail the validation.
142139
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
143140
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
144-
* @return a list of Azure Active Directory only authentication property for a workspace.
141+
* @return a list of Azure Active Directory only authentication property for a workspace as paginated response with
142+
* {@link PagedIterable}.
145143
*/
146144
@ServiceMethod(returns = ReturnType.COLLECTION)
147145
PagedIterable<AzureADOnlyAuthenticationInner> list(String resourceGroupName, String workspaceName);
@@ -155,7 +153,8 @@ AzureADOnlyAuthenticationInner create(
155153
* @throws IllegalArgumentException thrown if parameters fail the validation.
156154
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
157155
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
158-
* @return a list of Azure Active Directory only authentication property for a workspace.
156+
* @return a list of Azure Active Directory only authentication property for a workspace as paginated response with
157+
* {@link PagedIterable}.
159158
*/
160159
@ServiceMethod(returns = ReturnType.COLLECTION)
161160
PagedIterable<AzureADOnlyAuthenticationInner> list(String resourceGroupName, String workspaceName, Context context);

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import com.azure.core.util.polling.SyncPoller;
1414
import com.azure.resourcemanager.synapse.fluent.models.BigDataPoolResourceInfoInner;
1515
import com.azure.resourcemanager.synapse.models.BigDataPoolPatchInfo;
16-
import reactor.core.publisher.Mono;
1716

1817
/** An instance of this class provides access to all the operations defined in BigDataPoolsClient. */
1918
public interface BigDataPoolsClient {
@@ -98,7 +97,7 @@ Response<BigDataPoolResourceInfoInner> updateWithResponse(
9897
* @throws IllegalArgumentException thrown if parameters fail the validation.
9998
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
10099
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
101-
* @return big Data pool along with {@link Response} on successful completion of {@link Mono}.
100+
* @return the {@link SyncPoller} for polling of big Data pool.
102101
*/
103102
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
104103
SyncPoller<PollResult<BigDataPoolResourceInfoInner>, BigDataPoolResourceInfoInner> beginCreateOrUpdate(
@@ -120,7 +119,7 @@ SyncPoller<PollResult<BigDataPoolResourceInfoInner>, BigDataPoolResourceInfoInne
120119
* @throws IllegalArgumentException thrown if parameters fail the validation.
121120
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
122121
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
123-
* @return big Data pool along with {@link Response} on successful completion of {@link Mono}.
122+
* @return the {@link SyncPoller} for polling of big Data pool.
124123
*/
125124
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
126125
SyncPoller<PollResult<BigDataPoolResourceInfoInner>, BigDataPoolResourceInfoInner> beginCreateOrUpdate(
@@ -203,7 +202,7 @@ BigDataPoolResourceInfoInner createOrUpdate(
203202
* @throws IllegalArgumentException thrown if parameters fail the validation.
204203
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
205204
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
206-
* @return any object along with {@link Response} on successful completion of {@link Mono}.
205+
* @return the {@link SyncPoller} for polling of any object.
207206
*/
208207
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
209208
SyncPoller<PollResult<Object>, Object> beginDelete(
@@ -219,7 +218,7 @@ SyncPoller<PollResult<Object>, Object> beginDelete(
219218
* @throws IllegalArgumentException thrown if parameters fail the validation.
220219
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
221220
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
222-
* @return any object along with {@link Response} on successful completion of {@link Mono}.
221+
* @return the {@link SyncPoller} for polling of any object.
223222
*/
224223
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
225224
SyncPoller<PollResult<Object>, Object> beginDelete(
@@ -262,7 +261,7 @@ SyncPoller<PollResult<Object>, Object> beginDelete(
262261
* @throws IllegalArgumentException thrown if parameters fail the validation.
263262
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
264263
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
265-
* @return collection of Big Data pools.
264+
* @return collection of Big Data pools as paginated response with {@link PagedIterable}.
266265
*/
267266
@ServiceMethod(returns = ReturnType.COLLECTION)
268267
PagedIterable<BigDataPoolResourceInfoInner> listByWorkspace(String resourceGroupName, String workspaceName);
@@ -276,7 +275,7 @@ SyncPoller<PollResult<Object>, Object> beginDelete(
276275
* @throws IllegalArgumentException thrown if parameters fail the validation.
277276
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
278277
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
279-
* @return collection of Big Data pools.
278+
* @return collection of Big Data pools as paginated response with {@link PagedIterable}.
280279
*/
281280
@ServiceMethod(returns = ReturnType.COLLECTION)
282281
PagedIterable<BigDataPoolResourceInfoInner> listByWorkspace(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Response<DataMaskingRuleInner> getWithResponse(
103103
* @throws IllegalArgumentException thrown if parameters fail the validation.
104104
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
105105
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
106-
* @return a list of Sql pool data masking rules.
106+
* @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}.
107107
*/
108108
@ServiceMethod(returns = ReturnType.COLLECTION)
109109
PagedIterable<DataMaskingRuleInner> listBySqlPool(
@@ -119,7 +119,7 @@ PagedIterable<DataMaskingRuleInner> listBySqlPool(
119119
* @throws IllegalArgumentException thrown if parameters fail the validation.
120120
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
121121
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
122-
* @return a list of Sql pool data masking rules.
122+
* @return a list of Sql pool data masking rules as paginated response with {@link PagedIterable}.
123123
*/
124124
@ServiceMethod(returns = ReturnType.COLLECTION)
125125
PagedIterable<DataMaskingRuleInner> listBySqlPool(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Response<ExtendedSqlPoolBlobAuditingPolicyInner> createOrUpdateWithResponse(
9494
* @throws IllegalArgumentException thrown if parameters fail the validation.
9595
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
9696
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
97-
* @return a list of sql pool extended auditing settings.
97+
* @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}.
9898
*/
9999
@ServiceMethod(returns = ReturnType.COLLECTION)
100100
PagedIterable<ExtendedSqlPoolBlobAuditingPolicyInner> listBySqlPool(
@@ -110,7 +110,7 @@ PagedIterable<ExtendedSqlPoolBlobAuditingPolicyInner> listBySqlPool(
110110
* @throws IllegalArgumentException thrown if parameters fail the validation.
111111
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
112112
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
113-
* @return a list of sql pool extended auditing settings.
113+
* @return a list of sql pool extended auditing settings as paginated response with {@link PagedIterable}.
114114
*/
115115
@ServiceMethod(returns = ReturnType.COLLECTION)
116116
PagedIterable<ExtendedSqlPoolBlobAuditingPolicyInner> listBySqlPool(

0 commit comments

Comments
 (0)