Skip to content

Commit 02fa73f

Browse files
author
SDKAuto
committed
CodeGen from PR 22409 in Azure/azure-rest-api-specs
Merge dbaa1ebff8bdc64662cea99133943c7233481dda into b33dbb50da19083f2bcf5de2c745603ec29ffea9
1 parent 71a7dac commit 02fa73f

File tree

521 files changed

+721
-24884
lines changed

Some content is hidden

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

521 files changed

+721
-24884
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Release History
22

3-
## 1.0.0-beta.8 (Unreleased)
3+
## 1.0.0-beta.1 (2023-04-12)
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

+1-1
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.7</version>
35+
<version>1.0.0-beta.8</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

+21
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
- [CheckNameAvailability](#operations_checknameavailability)
188188
- [GetAzureAsyncHeaderResult](#operations_getazureasyncheaderresult)
189189
- [GetLocationHeaderResult](#operations_getlocationheaderresult)
190+
- [GetWorkspacePerSubscriptionQuota](#operations_getworkspacepersubscriptionquota)
190191
- [List](#operations_list)
191192

192193
## PrivateEndpointConnections
@@ -3276,6 +3277,26 @@ public final class OperationsGetLocationHeaderResultSamples {
32763277
}
32773278
```
32783279

3280+
### Operations_GetWorkspacePerSubscriptionQuota
3281+
3282+
```java
3283+
/** Samples for Operations GetWorkspacePerSubscriptionQuota. */
3284+
public final class OperationsGetWorkspacePerSubscriptionQuotaSamples {
3285+
/*
3286+
* x-ms-original-file: specification/synapse/resource-manager/Microsoft.Synapse/stable/2021-06-01/examples/WorkspacePerSubscriptionUsageGet.json
3287+
*/
3288+
/**
3289+
* Sample code: Workspace per subscription usage in given location.
3290+
*
3291+
* @param manager Entry point to SynapseManager.
3292+
*/
3293+
public static void workspacePerSubscriptionUsageInGivenLocation(
3294+
com.azure.resourcemanager.synapse.SynapseManager manager) {
3295+
manager.operations().getWorkspacePerSubscriptionQuotaWithResponse("WestUS", com.azure.core.util.Context.NONE);
3296+
}
3297+
}
3298+
```
3299+
32793300
### Operations_List
32803301

32813302
```java

sdk/synapse/azure-resourcemanager-synapse/pom.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
~ Copyright (c) Microsoft Corporation. All rights reserved.
3+
~ Licensed under the MIT License.
4+
~ Code generated by Microsoft (R) AutoRest Code Generator.
5+
-->
16
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
27
<modelVersion>4.0.0</modelVersion>
38
<parent>
@@ -38,7 +43,8 @@
3843
</developers>
3944
<properties>
4045
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
41-
<jacoco.skip>true</jacoco.skip>
46+
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
47+
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
4248
</properties>
4349
<dependencies>
4450
<dependency>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
500500
.append("-")
501501
.append("com.azure.resourcemanager.synapse")
502502
.append("/")
503-
.append("1.0.0-beta.7");
503+
.append("1.0.0-beta.1");
504504
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
505505
userAgentBuilder
506506
.append(" (")

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

+27
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import com.azure.resourcemanager.synapse.fluent.models.AvailableRpOperationInner;
1212
import com.azure.resourcemanager.synapse.fluent.models.CheckNameAvailabilityResponseInner;
1313
import com.azure.resourcemanager.synapse.fluent.models.OperationResourceInner;
14+
import com.azure.resourcemanager.synapse.fluent.models.WorkspaceUsageQuotaResponseInner;
1415
import com.azure.resourcemanager.synapse.models.CheckNameAvailabilityRequest;
1516
import java.util.List;
1617

@@ -139,4 +140,30 @@ Response<OperationResourceInner> getAzureAsyncHeaderResultWithResponse(
139140
@ServiceMethod(returns = ReturnType.SINGLE)
140141
OperationResourceInner getAzureAsyncHeaderResult(
141142
String resourceGroupName, String workspaceName, String operationId);
143+
144+
/**
145+
* Gets the current usage and quota of workspaces in a subscription/region.
146+
*
147+
* @param location The location on which resource usage is queried.
148+
* @param context The context to associate with this operation.
149+
* @throws IllegalArgumentException thrown if parameters fail the validation.
150+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
151+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
152+
* @return the current usage and quota of workspaces in a subscription/region along with {@link Response}.
153+
*/
154+
@ServiceMethod(returns = ReturnType.SINGLE)
155+
Response<WorkspaceUsageQuotaResponseInner> getWorkspacePerSubscriptionQuotaWithResponse(
156+
String location, Context context);
157+
158+
/**
159+
* Gets the current usage and quota of workspaces in a subscription/region.
160+
*
161+
* @param location The location on which resource usage is queried.
162+
* @throws IllegalArgumentException thrown if parameters fail the validation.
163+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
164+
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
165+
* @return the current usage and quota of workspaces in a subscription/region.
166+
*/
167+
@ServiceMethod(returns = ReturnType.SINGLE)
168+
WorkspaceUsageQuotaResponseInner getWorkspacePerSubscriptionQuota(String location);
142169
}

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

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public interface SqlPoolMetadataSyncConfigsClient {
2323
* @param context The context to associate with this operation.
2424
* @throws IllegalArgumentException thrown if parameters fail the validation.
2525
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
26+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
27+
* status code 404.
2628
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
2729
* @return the metadata sync configuration for a SQL pool along with {@link Response}.
2830
*/
@@ -40,6 +42,8 @@ Response<MetadataSyncConfigInner> getWithResponse(
4042
* @param sqlPoolName SQL pool name.
4143
* @throws IllegalArgumentException thrown if parameters fail the validation.
4244
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
45+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
46+
* status code 404.
4347
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
4448
* @return the metadata sync configuration for a SQL pool.
4549
*/
@@ -58,6 +62,8 @@ Response<MetadataSyncConfigInner> getWithResponse(
5862
* @param context The context to associate with this operation.
5963
* @throws IllegalArgumentException thrown if parameters fail the validation.
6064
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
65+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
66+
* status code 404.
6167
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
6268
* @return metadata sync configuration along with {@link Response}.
6369
*/
@@ -80,6 +86,8 @@ Response<MetadataSyncConfigInner> createWithResponse(
8086
* @param metadataSyncConfiguration Metadata sync configuration.
8187
* @throws IllegalArgumentException thrown if parameters fail the validation.
8288
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
89+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
90+
* status code 404.
8391
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
8492
* @return metadata sync configuration.
8593
*/

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

+8
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ SqlPoolInner update(
144144
* @param sqlPoolInfo The SQL pool to create.
145145
* @throws IllegalArgumentException thrown if parameters fail the validation.
146146
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
147+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
148+
* status code 404.
147149
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
148150
* @return the {@link SyncPoller} for polling of sQL pool.
149151
*/
@@ -163,6 +165,8 @@ SyncPoller<PollResult<SqlPoolInner>, SqlPoolInner> beginCreate(
163165
* @param context The context to associate with this operation.
164166
* @throws IllegalArgumentException thrown if parameters fail the validation.
165167
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
168+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
169+
* status code 404.
166170
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
167171
* @return the {@link SyncPoller} for polling of sQL pool.
168172
*/
@@ -181,6 +185,8 @@ SyncPoller<PollResult<SqlPoolInner>, SqlPoolInner> beginCreate(
181185
* @param sqlPoolInfo The SQL pool to create.
182186
* @throws IllegalArgumentException thrown if parameters fail the validation.
183187
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
188+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
189+
* status code 404.
184190
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
185191
* @return sQL pool.
186192
*/
@@ -199,6 +205,8 @@ SyncPoller<PollResult<SqlPoolInner>, SqlPoolInner> beginCreate(
199205
* @param context The context to associate with this operation.
200206
* @throws IllegalArgumentException thrown if parameters fail the validation.
201207
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
208+
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server on
209+
* status code 404.
202210
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
203211
* @return sQL pool.
204212
*/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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.models;
6+
7+
import com.azure.core.annotation.Immutable;
8+
import com.fasterxml.jackson.annotation.JsonProperty;
9+
10+
/** Workspaces per subscription usage and limit. */
11+
@Immutable
12+
public final class WorkspaceUsageQuotaResponseInner {
13+
/*
14+
* User-readable name of the metric.
15+
*/
16+
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
17+
private String name;
18+
19+
/*
20+
* Current value of the metric.
21+
*/
22+
@JsonProperty(value = "currentValue", access = JsonProperty.Access.WRITE_ONLY)
23+
private Double currentValue;
24+
25+
/*
26+
* Boundary value of the metric.
27+
*/
28+
@JsonProperty(value = "limit", access = JsonProperty.Access.WRITE_ONLY)
29+
private Double limit;
30+
31+
/*
32+
* Unit of the metric.
33+
*/
34+
@JsonProperty(value = "unit", access = JsonProperty.Access.WRITE_ONLY)
35+
private String unit;
36+
37+
/** Creates an instance of WorkspaceUsageQuotaResponseInner class. */
38+
public WorkspaceUsageQuotaResponseInner() {
39+
}
40+
41+
/**
42+
* Get the name property: User-readable name of the metric.
43+
*
44+
* @return the name value.
45+
*/
46+
public String name() {
47+
return this.name;
48+
}
49+
50+
/**
51+
* Get the currentValue property: Current value of the metric.
52+
*
53+
* @return the currentValue value.
54+
*/
55+
public Double currentValue() {
56+
return this.currentValue;
57+
}
58+
59+
/**
60+
* Get the limit property: Boundary value of the metric.
61+
*
62+
* @return the limit value.
63+
*/
64+
public Double limit() {
65+
return this.limit;
66+
}
67+
68+
/**
69+
* Get the unit property: Unit of the metric.
70+
*
71+
* @return the unit value.
72+
*/
73+
public String unit() {
74+
return this.unit;
75+
}
76+
77+
/**
78+
* Validates the instance.
79+
*
80+
* @throws IllegalArgumentException thrown if the instance is not valid.
81+
*/
82+
public void validate() {
83+
}
84+
}

sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/AzureADOnlyAuthenticationsClientImpl.java

+3-6
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ public final class AzureADOnlyAuthenticationsClientImpl implements AzureADOnlyAu
6868
public interface AzureADOnlyAuthenticationsService {
6969
@Headers({"Content-Type: application/json"})
7070
@Get(
71-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
72-
+ "/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}")
71+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}")
7372
@ExpectedResponses({200})
7473
@UnexpectedResponseExceptionType(ManagementException.class)
7574
Mono<Response<AzureADOnlyAuthenticationInner>> get(
@@ -84,8 +83,7 @@ Mono<Response<AzureADOnlyAuthenticationInner>> get(
8483

8584
@Headers({"Content-Type: application/json"})
8685
@Put(
87-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
88-
+ "/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}")
86+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications/{azureADOnlyAuthenticationName}")
8987
@ExpectedResponses({200, 201, 202})
9088
@UnexpectedResponseExceptionType(ManagementException.class)
9189
Mono<Response<Flux<ByteBuffer>>> create(
@@ -101,8 +99,7 @@ Mono<Response<Flux<ByteBuffer>>> create(
10199

102100
@Headers({"Content-Type: application/json"})
103101
@Get(
104-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
105-
+ "/{workspaceName}/azureADOnlyAuthentications")
102+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/azureADOnlyAuthentications")
106103
@ExpectedResponses({200})
107104
@UnexpectedResponseExceptionType(ManagementException.class)
108105
Mono<Response<AzureADOnlyAuthenticationListResult>> list(

sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/BigDataPoolsClientImpl.java

+5-10
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ public final class BigDataPoolsClientImpl implements BigDataPoolsClient {
6868
public interface BigDataPoolsService {
6969
@Headers({"Content-Type: application/json"})
7070
@Get(
71-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
72-
+ "/{workspaceName}/bigDataPools/{bigDataPoolName}")
71+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}")
7372
@ExpectedResponses({200})
7473
@UnexpectedResponseExceptionType(ManagementException.class)
7574
Mono<Response<BigDataPoolResourceInfoInner>> get(
@@ -84,8 +83,7 @@ Mono<Response<BigDataPoolResourceInfoInner>> get(
8483

8584
@Headers({"Content-Type: application/json"})
8685
@Patch(
87-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
88-
+ "/{workspaceName}/bigDataPools/{bigDataPoolName}")
86+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}")
8987
@ExpectedResponses({200})
9088
@UnexpectedResponseExceptionType(ManagementException.class)
9189
Mono<Response<BigDataPoolResourceInfoInner>> update(
@@ -101,8 +99,7 @@ Mono<Response<BigDataPoolResourceInfoInner>> update(
10199

102100
@Headers({"Content-Type: application/json"})
103101
@Put(
104-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
105-
+ "/{workspaceName}/bigDataPools/{bigDataPoolName}")
102+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}")
106103
@ExpectedResponses({200, 202})
107104
@UnexpectedResponseExceptionType(ManagementException.class)
108105
Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
@@ -119,8 +116,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
119116

120117
@Headers({"Content-Type: application/json"})
121118
@Delete(
122-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
123-
+ "/{workspaceName}/bigDataPools/{bigDataPoolName}")
119+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools/{bigDataPoolName}")
124120
@ExpectedResponses({200, 202, 204})
125121
@UnexpectedResponseExceptionType(ManagementException.class)
126122
Mono<Response<Flux<ByteBuffer>>> delete(
@@ -135,8 +131,7 @@ Mono<Response<Flux<ByteBuffer>>> delete(
135131

136132
@Headers({"Content-Type: application/json"})
137133
@Get(
138-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
139-
+ "/{workspaceName}/bigDataPools")
134+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/bigDataPools")
140135
@ExpectedResponses({200})
141136
@UnexpectedResponseExceptionType(ManagementException.class)
142137
Mono<Response<BigDataPoolResourceInfoListResult>> listByWorkspace(

sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/DataMaskingPoliciesClientImpl.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ public final class DataMaskingPoliciesClientImpl implements DataMaskingPoliciesC
5555
public interface DataMaskingPoliciesService {
5656
@Headers({"Content-Type: application/json"})
5757
@Put(
58-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
59-
+ "/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}")
58+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}")
6059
@ExpectedResponses({200})
6160
@UnexpectedResponseExceptionType(ManagementException.class)
6261
Mono<Response<DataMaskingPolicyInner>> createOrUpdate(
@@ -73,8 +72,7 @@ Mono<Response<DataMaskingPolicyInner>> createOrUpdate(
7372

7473
@Headers({"Content-Type: application/json"})
7574
@Get(
76-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces"
77-
+ "/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}")
75+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/sqlPools/{sqlPoolName}/dataMaskingPolicies/{dataMaskingPolicyName}")
7876
@ExpectedResponses({200})
7977
@UnexpectedResponseExceptionType(ManagementException.class)
8078
Mono<Response<DataMaskingPolicyInner>> get(

0 commit comments

Comments
 (0)