Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR mgmt-v2019_06_01_preview] Adding managedBy property that is returned by the API but not in swagger #6443

Closed
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
6 changes: 3 additions & 3 deletions sdk/synapse/mgmt-v2019_06_01_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.3.2</version>
<relativePath>../../parents/azure-arm-parent/pom.xml</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-synapse</artifactId>
<version>1.0.0-beta-4</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for Synapse Management</name>
<description>This package contains Microsoft Synapse Management SDK.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public interface DataMaskingPolicy extends HasInner<DataMaskingPolicyInner>, Ind
*/
String location();

/**
* @return the managedBy value.
*/
String managedBy();

/**
* @return the maskingLevel value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ public String location() {
return this.inner().location();
}

@Override
public String managedBy() {
return this.inner().managedBy();
}

@Override
public String maskingLevel() {
return this.inner().maskingLevel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ public class DataMaskingPolicyInner extends ProxyResource {
@JsonProperty(value = "kind", access = JsonProperty.Access.WRITE_ONLY)
private String kind;

/**
* Fully qualified resource ID of the sql pool.
*/
@JsonProperty(value = "managedBy", access = JsonProperty.Access.WRITE_ONLY)
private String managedBy;

/**
* Get the state of the data masking policy. Possible values include: 'Disabled', 'Enabled'.
*
Expand Down Expand Up @@ -135,4 +141,13 @@ public String kind() {
return this.kind;
}

/**
* Get fully qualified resource ID of the sql pool.
*
* @return the managedBy value
*/
public String managedBy() {
return this.managedBy;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.ManagedIntegrationRuntime;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.SelfHostedIntegrationRuntime;

/**
* Azure Synapse nested object which serves as a compute resource for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public Observable<SensitivityLabels> updateResourceAsync() {
@Override
protected Observable<SensitivityLabelInner> getInnerAsync() {
SqlPoolSensitivityLabelsInner client = this.manager().inner().sqlPoolSensitivityLabels();
return client.getAsync(this.resourceGroupName, this.workspaceName, this.sqlPoolName, this.schemaName, this.tableName, this.columnName, null);
return client.getAsync(this.resourceGroupName, this.workspaceName, this.sqlPoolName, this.schemaName, this.tableName, this.columnName);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
package com.microsoft.azure.management.synapse.v2019_06_01_preview.implementation;

import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.SensitivityLabelSource;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolSensitivityLabels;
import rx.Completable;
import rx.Observable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ class SqlPoolVulnerabilityAssessmentRuleBaselineImpl extends CreatableUpdatableI
super(name, new SqlPoolVulnerabilityAssessmentRuleBaselineInner());
this.manager = manager;
// Set resource name
this.baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(name);
this.baselineName = name;
//
}

SqlPoolVulnerabilityAssessmentRuleBaselineImpl(SqlPoolVulnerabilityAssessmentRuleBaselineInner inner, SynapseManager manager) {
super(inner.name(), inner);
this.manager = manager;
// Set resource name
this.baselineName = VulnerabilityAssessmentPolicyBaselineName.fromString(inner.name());
this.baselineName = inner.name();
// set resource ancestor and positional variables
this.resourceGroupName = IdParsingUtils.getValueFromIdByName(inner.id(), "resourceGroups");
this.workspaceName = IdParsingUtils.getValueFromIdByName(inner.id(), "workspaces");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

import com.microsoft.azure.arm.model.implementation.WrapperImpl;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolVulnerabilityAssessmentRuleBaselines;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.VulnerabilityAssessmentPolicyBaselineName;
import rx.Observable;
import rx.functions.Func1;
import com.microsoft.azure.management.synapse.v2019_06_01_preview.SqlPoolVulnerabilityAssessmentRuleBaseline;
Expand Down Expand Up @@ -47,7 +46,7 @@ private Observable<SqlPoolVulnerabilityAssessmentRuleBaselineInner> getSqlPoolVu
String workspaceName = IdParsingUtils.getValueFromIdByName(id, "workspaces");
String sqlPoolName = IdParsingUtils.getValueFromIdByName(id, "sqlPools");
String ruleId = IdParsingUtils.getValueFromIdByName(id, "rules");
VulnerabilityAssessmentPolicyBaselineName baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(IdParsingUtils.getValueFromIdByName(id, "baselines"));
String baselineName = VulnerabilityAssessmentPolicyBaselineName.valueOf(IdParsingUtils.getValueFromIdByName(id, "baselines"));
SqlPoolVulnerabilityAssessmentRuleBaselinesInner client = this.inner();
return client.getAsync(resourceGroupName, workspaceName, sqlPoolName, ruleId, baselineName);
}
Expand Down