Skip to content

Commit

Permalink
Generated from 1d3074c3f3f50b396875f414d62eec4195234f83 (#2451)
Browse files Browse the repository at this point in the history
Update readme.md
  • Loading branch information
AutorestCI authored Oct 4, 2018
1 parent 1cc9f13 commit a03d011
Show file tree
Hide file tree
Showing 25 changed files with 3,117 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,93 +8,168 @@

package com.microsoft.azure.management.sql.v2017_10_01_preview;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;
import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.DatabaseVulnerabilityAssessmentInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.SqlManager;

/**
* A database vulnerability assessment.
* Type representing DatabaseVulnerabilityAssessment.
*/
@JsonFlatten
public class DatabaseVulnerabilityAssessment extends ProxyResource {
public interface DatabaseVulnerabilityAssessment extends HasInner<DatabaseVulnerabilityAssessmentInner>, Indexable, Refreshable<DatabaseVulnerabilityAssessment>, Updatable<DatabaseVulnerabilityAssessment.Update>, HasManager<SqlManager> {
/**
* A blob storage container path to hold the scan results (e.g.
* https://myStorage.blob.core.windows.net/VaScans/).
* @return the id value.
*/
@JsonProperty(value = "properties.storageContainerPath", required = true)
private String storageContainerPath;
String id();

/**
* A shared access signature (SAS Key) that has write access to the blob
* container specified in 'storageContainerPath' parameter.
* @return the name value.
*/
@JsonProperty(value = "properties.storageContainerSasKey", required = true)
private String storageContainerSasKey;
String name();

/**
* The recurring scans settings.
* @return the recurringScans value.
*/
@JsonProperty(value = "properties.recurringScans")
private VulnerabilityAssessmentRecurringScansProperties recurringScans;
VulnerabilityAssessmentRecurringScansProperties recurringScans();

/**
* Get a blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
*
* @return the storageContainerPath value
* @return the storageAccountAccessKey value.
*/
public String storageContainerPath() {
return this.storageContainerPath;
}
String storageAccountAccessKey();

/**
* Set a blob storage container path to hold the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
*
* @param storageContainerPath the storageContainerPath value to set
* @return the DatabaseVulnerabilityAssessment object itself.
* @return the storageContainerPath value.
*/
public DatabaseVulnerabilityAssessment withStorageContainerPath(String storageContainerPath) {
this.storageContainerPath = storageContainerPath;
return this;
}
String storageContainerPath();

/**
* Get a shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter.
*
* @return the storageContainerSasKey value
* @return the storageContainerSasKey value.
*/
public String storageContainerSasKey() {
return this.storageContainerSasKey;
}
String storageContainerSasKey();

/**
* Set a shared access signature (SAS Key) that has write access to the blob container specified in 'storageContainerPath' parameter.
*
* @param storageContainerSasKey the storageContainerSasKey value to set
* @return the DatabaseVulnerabilityAssessment object itself.
* @return the type value.
*/
public DatabaseVulnerabilityAssessment withStorageContainerSasKey(String storageContainerSasKey) {
this.storageContainerSasKey = storageContainerSasKey;
return this;
}
String type();

/**
* Get the recurring scans settings.
*
* @return the recurringScans value
* The entirety of the DatabaseVulnerabilityAssessment definition.
*/
public VulnerabilityAssessmentRecurringScansProperties recurringScans() {
return this.recurringScans;
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithDatabasis, DefinitionStages.WithStorageContainerPath, DefinitionStages.WithCreate {
}

/**
* Set the recurring scans settings.
*
* @param recurringScans the recurringScans value to set
* @return the DatabaseVulnerabilityAssessment object itself.
* Grouping of DatabaseVulnerabilityAssessment definition stages.
*/
public DatabaseVulnerabilityAssessment withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans) {
this.recurringScans = recurringScans;
return this;
interface DefinitionStages {
/**
* The first stage of a DatabaseVulnerabilityAssessment definition.
*/
interface Blank extends WithDatabasis {
}

/**
* The stage of the databasevulnerabilityassessment definition allowing to specify Databasis.
*/
interface WithDatabasis {
/**
* Specifies resourceGroupName, managedInstanceName, databaseName.
*/
WithStorageContainerPath withExistingDatabasis(String resourceGroupName, String managedInstanceName, String databaseName);
}

/**
* The stage of the databasevulnerabilityassessment definition allowing to specify StorageContainerPath.
*/
interface WithStorageContainerPath {
/**
* Specifies storageContainerPath.
*/
WithCreate withStorageContainerPath(String storageContainerPath);
}

/**
* The stage of the databasevulnerabilityassessment definition allowing to specify RecurringScans.
*/
interface WithRecurringScans {
/**
* Specifies recurringScans.
*/
WithCreate withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans);
}

/**
* The stage of the databasevulnerabilityassessment definition allowing to specify StorageAccountAccessKey.
*/
interface WithStorageAccountAccessKey {
/**
* Specifies storageAccountAccessKey.
*/
WithCreate withStorageAccountAccessKey(String storageAccountAccessKey);
}

/**
* The stage of the databasevulnerabilityassessment definition allowing to specify StorageContainerSasKey.
*/
interface WithStorageContainerSasKey {
/**
* Specifies storageContainerSasKey.
*/
WithCreate withStorageContainerSasKey(String storageContainerSasKey);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<DatabaseVulnerabilityAssessment>, DefinitionStages.WithRecurringScans, DefinitionStages.WithStorageAccountAccessKey, DefinitionStages.WithStorageContainerSasKey {
}
}
/**
* The template for a DatabaseVulnerabilityAssessment update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<DatabaseVulnerabilityAssessment>, UpdateStages.WithRecurringScans, UpdateStages.WithStorageAccountAccessKey, UpdateStages.WithStorageContainerSasKey {
}

/**
* Grouping of DatabaseVulnerabilityAssessment update stages.
*/
interface UpdateStages {
/**
* The stage of the databasevulnerabilityassessment update allowing to specify RecurringScans.
*/
interface WithRecurringScans {
/**
* Specifies recurringScans.
*/
Update withRecurringScans(VulnerabilityAssessmentRecurringScansProperties recurringScans);
}

/**
* The stage of the databasevulnerabilityassessment update allowing to specify StorageAccountAccessKey.
*/
interface WithStorageAccountAccessKey {
/**
* Specifies storageAccountAccessKey.
*/
Update withStorageAccountAccessKey(String storageAccountAccessKey);
}

/**
* The stage of the databasevulnerabilityassessment update allowing to specify StorageContainerSasKey.
*/
interface WithStorageContainerSasKey {
/**
* Specifies storageContainerSasKey.
*/
Update withStorageContainerSasKey(String storageContainerSasKey);
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.sql.v2017_10_01_preview;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.DatabaseVulnerabilityAssessmentRuleBaselineInner;
import com.microsoft.azure.arm.model.Indexable;
import com.microsoft.azure.arm.model.Refreshable;
import com.microsoft.azure.arm.model.Updatable;
import com.microsoft.azure.arm.model.Appliable;
import com.microsoft.azure.arm.model.Creatable;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.sql.v2017_10_01_preview.implementation.SqlManager;
import java.util.List;

/**
* Type representing DatabaseVulnerabilityAssessmentRuleBaseline.
*/
public interface DatabaseVulnerabilityAssessmentRuleBaseline extends HasInner<DatabaseVulnerabilityAssessmentRuleBaselineInner>, Indexable, Refreshable<DatabaseVulnerabilityAssessmentRuleBaseline>, Updatable<DatabaseVulnerabilityAssessmentRuleBaseline.Update>, HasManager<SqlManager> {
/**
* @return the baselineResults value.
*/
List<DatabaseVulnerabilityAssessmentRuleBaselineItem> baselineResults();

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

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

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

/**
* The entirety of the DatabaseVulnerabilityAssessmentRuleBaseline definition.
*/
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithRule, DefinitionStages.WithBaselineResults, DefinitionStages.WithCreate {
}

/**
* Grouping of DatabaseVulnerabilityAssessmentRuleBaseline definition stages.
*/
interface DefinitionStages {
/**
* The first stage of a DatabaseVulnerabilityAssessmentRuleBaseline definition.
*/
interface Blank extends WithRule {
}

/**
* The stage of the databasevulnerabilityassessmentrulebaseline definition allowing to specify Rule.
*/
interface WithRule {
/**
* Specifies resourceGroupName, managedInstanceName, databaseName, ruleId.
*/
WithBaselineResults withExistingRule(String resourceGroupName, String managedInstanceName, String databaseName, String ruleId);
}

/**
* The stage of the databasevulnerabilityassessmentrulebaseline definition allowing to specify BaselineResults.
*/
interface WithBaselineResults {
/**
* Specifies baselineResults.
*/
WithCreate withBaselineResults(List<DatabaseVulnerabilityAssessmentRuleBaselineItem> baselineResults);
}

/**
* The stage of the definition which contains all the minimum required inputs for
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<DatabaseVulnerabilityAssessmentRuleBaseline> {
}
}
/**
* The template for a DatabaseVulnerabilityAssessmentRuleBaseline update operation, containing all the settings that can be modified.
*/
interface Update extends Appliable<DatabaseVulnerabilityAssessmentRuleBaseline>, UpdateStages.WithBaselineResults {
}

/**
* Grouping of DatabaseVulnerabilityAssessmentRuleBaseline update stages.
*/
interface UpdateStages {
/**
* The stage of the databasevulnerabilityassessmentrulebaseline update allowing to specify BaselineResults.
*/
interface WithBaselineResults {
/**
* Specifies baselineResults.
*/
Update withBaselineResults(List<DatabaseVulnerabilityAssessmentRuleBaselineItem> baselineResults);
}

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.sql.v2017_10_01_preview;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Properties for an Azure SQL Database Vulnerability Assessment rule
* baseline's result.
*/
public class DatabaseVulnerabilityAssessmentRuleBaselineItem {
/**
* The rule baseline result.
*/
@JsonProperty(value = "result", required = true)
private List<String> result;

/**
* Get the rule baseline result.
*
* @return the result value
*/
public List<String> result() {
return this.result;
}

/**
* Set the rule baseline result.
*
* @param result the result value to set
* @return the DatabaseVulnerabilityAssessmentRuleBaselineItem object itself.
*/
public DatabaseVulnerabilityAssessmentRuleBaselineItem withResult(List<String> result) {
this.result = result;
return this;
}

}
Loading

0 comments on commit a03d011

Please sign in to comment.