Skip to content

Commit 606b512

Browse files
author
SDKAuto
committed
CodeGen from PR 17213 in Azure/azure-rest-api-specs
Merge c58257efd15d1363d43f064efd8514445e0cb706 into 23ca45b7dfce24112bc686bae70c4424f33ae69e
1 parent 3a5e6ef commit 606b512

File tree

63 files changed

+1302
-288
lines changed

Some content is hidden

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

63 files changed

+1302
-288
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.5 (Unreleased)
3+
## 1.0.0-beta.1 (2022-01-07)
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.4</version>
35+
<version>1.0.0-beta.5</version>
3636
</dependency>
3737
```
3838
[//]: # ({x-version-update-end})

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5693,7 +5693,6 @@ public final class SqlPoolsResumeSamples {
56935693

56945694
```java
56955695
import com.azure.core.util.Context;
5696-
import com.azure.resourcemanager.synapse.models.CreateMode;
56975696
import com.azure.resourcemanager.synapse.models.Sku;
56985697
import com.azure.resourcemanager.synapse.models.SqlPool;
56995698
import java.time.OffsetDateTime;
@@ -5722,11 +5721,7 @@ public final class SqlPoolsUpdateSamples {
57225721
.withSku(new Sku().withTier("").withName(""))
57235722
.withMaxSizeBytes(0L)
57245723
.withCollation("")
5725-
.withSourceDatabaseId("")
5726-
.withRecoverableDatabaseId("")
57275724
.withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z"))
5728-
.withCreateMode(CreateMode.fromString(""))
5729-
.withCreationDate(OffsetDateTime.parse("1970-01-01T00:00:00.000Z"))
57305725
.apply();
57315726
}
57325727

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,27 @@
5555
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
5656
</dependency>
5757
</dependencies>
58+
<build>
59+
<plugins>
60+
<plugin>
61+
<groupId>org.revapi</groupId>
62+
<artifactId>revapi-maven-plugin</artifactId>
63+
<version>0.14.6</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
64+
<configuration>
65+
<analysisConfiguration>
66+
<revapi.ignore>
67+
<item>
68+
<code>java.method.addedToInterface</code>
69+
</item>
70+
<item>
71+
<regex>true</regex>
72+
<code>.*</code>
73+
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package>
74+
</item>
75+
</revapi.ignore>
76+
</analysisConfiguration>
77+
</configuration>
78+
</plugin>
79+
</plugins>
80+
</build>
5881
</project>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
456456
.append("-")
457457
.append("com.azure.resourcemanager.synapse")
458458
.append("/")
459-
.append("1.0.0-beta.4");
459+
.append("1.0.0-beta.1");
460460
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
461461
userAgentBuilder
462462
.append(" (")

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,20 +109,6 @@ public OffsetDateTime creationDate() {
109109
return this.innerProperties() == null ? null : this.innerProperties().creationDate();
110110
}
111111

112-
/**
113-
* Set the creationDate property: The time when the Big Data pool was created.
114-
*
115-
* @param creationDate the creationDate value to set.
116-
* @return the BigDataPoolResourceInfoInner object itself.
117-
*/
118-
public BigDataPoolResourceInfoInner withCreationDate(OffsetDateTime creationDate) {
119-
if (this.innerProperties() == null) {
120-
this.innerProperties = new BigDataPoolResourceProperties();
121-
}
122-
this.innerProperties().withCreationDate(creationDate);
123-
return this;
124-
}
125-
126112
/**
127113
* Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties.
128114
*

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

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class BigDataPoolResourceProperties {
3838
/*
3939
* The time when the Big Data pool was created.
4040
*/
41-
@JsonProperty(value = "creationDate")
41+
@JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY)
4242
private OffsetDateTime creationDate;
4343

4444
/*
@@ -181,17 +181,6 @@ public OffsetDateTime creationDate() {
181181
return this.creationDate;
182182
}
183183

184-
/**
185-
* Set the creationDate property: The time when the Big Data pool was created.
186-
*
187-
* @param creationDate the creationDate value to set.
188-
* @return the BigDataPoolResourceProperties object itself.
189-
*/
190-
public BigDataPoolResourceProperties withCreationDate(OffsetDateTime creationDate) {
191-
this.creationDate = creationDate;
192-
return this;
193-
}
194-
195184
/**
196185
* Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties.
197186
*

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import com.azure.core.management.ProxyResource;
99
import com.azure.core.management.SystemData;
1010
import com.azure.core.util.logging.ClientLogger;
11+
import com.azure.resourcemanager.synapse.models.ReadOnlyFollowingDatabase;
1112
import com.azure.resourcemanager.synapse.models.ReadWriteDatabase;
1213
import com.fasterxml.jackson.annotation.JsonIgnore;
1314
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,7 +23,10 @@
2223
property = "kind",
2324
defaultImpl = DatabaseInner.class)
2425
@JsonTypeName("Database")
25-
@JsonSubTypes({@JsonSubTypes.Type(name = "ReadWrite", value = ReadWriteDatabase.class)})
26+
@JsonSubTypes({
27+
@JsonSubTypes.Type(name = "ReadWrite", value = ReadWriteDatabase.class),
28+
@JsonSubTypes.Type(name = "ReadOnlyFollowing", value = ReadOnlyFollowingDatabase.class)
29+
})
2630
@Fluent
2731
public class DatabaseInner extends ProxyResource {
2832
@JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class);

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

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,51 @@ public ExtendedServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelay
387387
return this;
388388
}
389389

390+
/**
391+
* Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
392+
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
393+
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
394+
*
395+
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
396+
* category on the master database should also be created.
397+
*
398+
* <p>Diagnostic Settings URI format: PUT
399+
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
400+
*
401+
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
402+
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
403+
*
404+
* @return the isDevopsAuditEnabled value.
405+
*/
406+
public Boolean isDevopsAuditEnabled() {
407+
return this.innerProperties() == null ? null : this.innerProperties().isDevopsAuditEnabled();
408+
}
409+
410+
/**
411+
* Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
412+
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
413+
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
414+
*
415+
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
416+
* category on the master database should also be created.
417+
*
418+
* <p>Diagnostic Settings URI format: PUT
419+
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
420+
*
421+
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
422+
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
423+
*
424+
* @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set.
425+
* @return the ExtendedServerBlobAuditingPolicyInner object itself.
426+
*/
427+
public ExtendedServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) {
428+
if (this.innerProperties() == null) {
429+
this.innerProperties = new ExtendedServerBlobAuditingPolicyProperties();
430+
}
431+
this.innerProperties().withIsDevopsAuditEnabled(isDevopsAuditEnabled);
432+
return this;
433+
}
434+
390435
/**
391436
* Validates the instance.
392437
*

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

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,30 @@ public final class ExtendedServerBlobAuditingPolicyProperties {
183183
@JsonProperty(value = "queueDelayMs")
184184
private Integer queueDelayMs;
185185

186+
/*
187+
* Specifies the state of devops audit. If state is Enabled, devops logs
188+
* will be sent to Azure Monitor.
189+
* In order to send the events to Azure Monitor, specify 'State' as
190+
* 'Enabled', 'IsAzureMonitorTargetEnabled' as true and
191+
* 'IsDevopsAuditEnabled' as true
192+
*
193+
* When using REST API to configure auditing, Diagnostic Settings with
194+
* 'DevOpsOperationsAudit' diagnostic logs category on the master database
195+
* should also be created.
196+
*
197+
* Diagnostic Settings URI format:
198+
* PUT
199+
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
200+
*
201+
* For more information, see [Diagnostic Settings REST
202+
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
203+
* or [Diagnostic Settings
204+
* PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)
205+
*
206+
*/
207+
@JsonProperty(value = "isDevopsAuditEnabled")
208+
private Boolean isDevopsAuditEnabled;
209+
186210
/**
187211
* Get the predicateExpression property: Specifies condition of where clause when creating an audit.
188212
*
@@ -510,6 +534,48 @@ public ExtendedServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queue
510534
return this;
511535
}
512536

537+
/**
538+
* Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
539+
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
540+
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
541+
*
542+
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
543+
* category on the master database should also be created.
544+
*
545+
* <p>Diagnostic Settings URI format: PUT
546+
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
547+
*
548+
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
549+
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
550+
*
551+
* @return the isDevopsAuditEnabled value.
552+
*/
553+
public Boolean isDevopsAuditEnabled() {
554+
return this.isDevopsAuditEnabled;
555+
}
556+
557+
/**
558+
* Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
559+
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
560+
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
561+
*
562+
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
563+
* category on the master database should also be created.
564+
*
565+
* <p>Diagnostic Settings URI format: PUT
566+
* https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Sql/servers/{serverName}/databases/master/providers/microsoft.insights/diagnosticSettings/{settingsName}?api-version=2017-05-01-preview
567+
*
568+
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
569+
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
570+
*
571+
* @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set.
572+
* @return the ExtendedServerBlobAuditingPolicyProperties object itself.
573+
*/
574+
public ExtendedServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) {
575+
this.isDevopsAuditEnabled = isDevopsAuditEnabled;
576+
return this;
577+
}
578+
513579
/**
514580
* Validates the instance.
515581
*

0 commit comments

Comments
 (0)