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.5 (Unreleased)
## 1.0.0-beta.1 (2022-01-07)

- 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.4</version>
<version>1.0.0-beta.5</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
5 changes: 0 additions & 5 deletions sdk/synapse/azure-resourcemanager-synapse/SAMPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5693,7 +5693,6 @@ public final class SqlPoolsResumeSamples {

```java
import com.azure.core.util.Context;
import com.azure.resourcemanager.synapse.models.CreateMode;
import com.azure.resourcemanager.synapse.models.Sku;
import com.azure.resourcemanager.synapse.models.SqlPool;
import java.time.OffsetDateTime;
Expand Down Expand Up @@ -5722,11 +5721,7 @@ public final class SqlPoolsUpdateSamples {
.withSku(new Sku().withTier("").withName(""))
.withMaxSizeBytes(0L)
.withCollation("")
.withSourceDatabaseId("")
.withRecoverableDatabaseId("")
.withRestorePointInTime(OffsetDateTime.parse("1970-01-01T00:00:00.000Z"))
.withCreateMode(CreateMode.fromString(""))
.withCreationDate(OffsetDateTime.parse("1970-01-01T00:00:00.000Z"))
.apply();
}

Expand Down
23 changes: 23 additions & 0 deletions sdk/synapse/azure-resourcemanager-synapse/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,27 @@
<version>1.5.0</version> <!-- {x-version-update;com.azure:azure-core-management;dependency} -->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.revapi</groupId>
<artifactId>revapi-maven-plugin</artifactId>
<version>0.14.6</version> <!-- {x-version-update;org.revapi:revapi-maven-plugin;external_dependency} -->
<configuration>
<analysisConfiguration>
<revapi.ignore>
<item>
<code>java.method.addedToInterface</code>
</item>
<item>
<regex>true</regex>
<code>.*</code>
<package>com\.azure\.resourcemanager(\.[^.]+)+\.fluent(\.[^.]+)*</package>
</item>
</revapi.ignore>
</analysisConfiguration>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public SynapseManager authenticate(TokenCredential credential, AzureProfile prof
.append("-")
.append("com.azure.resourcemanager.synapse")
.append("/")
.append("1.0.0-beta.4");
.append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder
.append(" (")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,20 +109,6 @@ public OffsetDateTime creationDate() {
return this.innerProperties() == null ? null : this.innerProperties().creationDate();
}

/**
* Set the creationDate property: The time when the Big Data pool was created.
*
* @param creationDate the creationDate value to set.
* @return the BigDataPoolResourceInfoInner object itself.
*/
public BigDataPoolResourceInfoInner withCreationDate(OffsetDateTime creationDate) {
if (this.innerProperties() == null) {
this.innerProperties = new BigDataPoolResourceProperties();
}
this.innerProperties().withCreationDate(creationDate);
return this;
}

/**
* Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public final class BigDataPoolResourceProperties {
/*
* The time when the Big Data pool was created.
*/
@JsonProperty(value = "creationDate")
@JsonProperty(value = "creationDate", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime creationDate;

/*
Expand Down Expand Up @@ -181,17 +181,6 @@ public OffsetDateTime creationDate() {
return this.creationDate;
}

/**
* Set the creationDate property: The time when the Big Data pool was created.
*
* @param creationDate the creationDate value to set.
* @return the BigDataPoolResourceProperties object itself.
*/
public BigDataPoolResourceProperties withCreationDate(OffsetDateTime creationDate) {
this.creationDate = creationDate;
return this;
}

/**
* Get the autoPause property: Spark pool auto-pausing properties Auto-pausing properties.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.azure.core.management.ProxyResource;
import com.azure.core.management.SystemData;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.synapse.models.ReadOnlyFollowingDatabase;
import com.azure.resourcemanager.synapse.models.ReadWriteDatabase;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
Expand All @@ -22,7 +23,10 @@
property = "kind",
defaultImpl = DatabaseInner.class)
@JsonTypeName("Database")
@JsonSubTypes({@JsonSubTypes.Type(name = "ReadWrite", value = ReadWriteDatabase.class)})
@JsonSubTypes({
@JsonSubTypes.Type(name = "ReadWrite", value = ReadWriteDatabase.class),
@JsonSubTypes.Type(name = "ReadOnlyFollowing", value = ReadOnlyFollowingDatabase.class)
})
@Fluent
public class DatabaseInner extends ProxyResource {
@JsonIgnore private final ClientLogger logger = new ClientLogger(DatabaseInner.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,51 @@ public ExtendedServerBlobAuditingPolicyInner withQueueDelayMs(Integer queueDelay
return this;
}

/**
* Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
*
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
* category on the master database should also be created.
*
* <p>Diagnostic Settings URI format: PUT
* 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
*
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
*
* @return the isDevopsAuditEnabled value.
*/
public Boolean isDevopsAuditEnabled() {
return this.innerProperties() == null ? null : this.innerProperties().isDevopsAuditEnabled();
}

/**
* Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
*
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
* category on the master database should also be created.
*
* <p>Diagnostic Settings URI format: PUT
* 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
*
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
*
* @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set.
* @return the ExtendedServerBlobAuditingPolicyInner object itself.
*/
public ExtendedServerBlobAuditingPolicyInner withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) {
if (this.innerProperties() == null) {
this.innerProperties = new ExtendedServerBlobAuditingPolicyProperties();
}
this.innerProperties().withIsDevopsAuditEnabled(isDevopsAuditEnabled);
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,30 @@ public final class ExtendedServerBlobAuditingPolicyProperties {
@JsonProperty(value = "queueDelayMs")
private Integer queueDelayMs;

/*
* Specifies the state of devops audit. If state is Enabled, devops logs
* will be sent to Azure Monitor.
* In order to send the events to Azure Monitor, specify 'State' as
* 'Enabled', 'IsAzureMonitorTargetEnabled' as true and
* 'IsDevopsAuditEnabled' as true
*
* When using REST API to configure auditing, Diagnostic Settings with
* 'DevOpsOperationsAudit' diagnostic logs category on the master database
* should also be created.
*
* Diagnostic Settings URI format:
* PUT
* 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
*
* For more information, see [Diagnostic Settings REST
* API](https://go.microsoft.com/fwlink/?linkid=2033207)
* or [Diagnostic Settings
* PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043)
*
*/
@JsonProperty(value = "isDevopsAuditEnabled")
private Boolean isDevopsAuditEnabled;

/**
* Get the predicateExpression property: Specifies condition of where clause when creating an audit.
*
Expand Down Expand Up @@ -510,6 +534,48 @@ public ExtendedServerBlobAuditingPolicyProperties withQueueDelayMs(Integer queue
return this;
}

/**
* Get the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
*
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
* category on the master database should also be created.
*
* <p>Diagnostic Settings URI format: PUT
* 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
*
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
*
* @return the isDevopsAuditEnabled value.
*/
public Boolean isDevopsAuditEnabled() {
return this.isDevopsAuditEnabled;
}

/**
* Set the isDevopsAuditEnabled property: Specifies the state of devops audit. If state is Enabled, devops logs will
* be sent to Azure Monitor. In order to send the events to Azure Monitor, specify 'State' as 'Enabled',
* 'IsAzureMonitorTargetEnabled' as true and 'IsDevopsAuditEnabled' as true
*
* <p>When using REST API to configure auditing, Diagnostic Settings with 'DevOpsOperationsAudit' diagnostic logs
* category on the master database should also be created.
*
* <p>Diagnostic Settings URI format: PUT
* 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
*
* <p>For more information, see [Diagnostic Settings REST API](https://go.microsoft.com/fwlink/?linkid=2033207) or
* [Diagnostic Settings PowerShell](https://go.microsoft.com/fwlink/?linkid=2033043).
*
* @param isDevopsAuditEnabled the isDevopsAuditEnabled value to set.
* @return the ExtendedServerBlobAuditingPolicyProperties object itself.
*/
public ExtendedServerBlobAuditingPolicyProperties withIsDevopsAuditEnabled(Boolean isDevopsAuditEnabled) {
this.isDevopsAuditEnabled = isDevopsAuditEnabled;
return this;
}

/**
* Validates the instance.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
// 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.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Managed integration runtime managed virtual network reference. */
@Fluent
public final class ManagedIntegrationRuntimeManagedVirtualNetworkReference {
@JsonIgnore
private final ClientLogger logger = new ClientLogger(ManagedIntegrationRuntimeManagedVirtualNetworkReference.class);

/*
* The reference name of the managed virtual network.
*/
@JsonProperty(value = "referenceName")
private String referenceName;

/*
* The type of the managed virtual network.
*/
@JsonProperty(value = "type")
private String type;

/*
* The id of the managed virtual network.
*/
@JsonProperty(value = "id")
private String id;

/**
* Get the referenceName property: The reference name of the managed virtual network.
*
* @return the referenceName value.
*/
public String referenceName() {
return this.referenceName;
}

/**
* Set the referenceName property: The reference name of the managed virtual network.
*
* @param referenceName the referenceName value to set.
* @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself.
*/
public ManagedIntegrationRuntimeManagedVirtualNetworkReference withReferenceName(String referenceName) {
this.referenceName = referenceName;
return this;
}

/**
* Get the type property: The type of the managed virtual network.
*
* @return the type value.
*/
public String type() {
return this.type;
}

/**
* Set the type property: The type of the managed virtual network.
*
* @param type the type value to set.
* @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself.
*/
public ManagedIntegrationRuntimeManagedVirtualNetworkReference withType(String type) {
this.type = type;
return this;
}

/**
* Get the id property: The id of the managed virtual network.
*
* @return the id value.
*/
public String id() {
return this.id;
}

/**
* Set the id property: The id of the managed virtual network.
*
* @param id the id value to set.
* @return the ManagedIntegrationRuntimeManagedVirtualNetworkReference object itself.
*/
public ManagedIntegrationRuntimeManagedVirtualNetworkReference withId(String id) {
this.id = id;
return this;
}

/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
}
}
Loading