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 sdk/datalakeanalytics/mgmt-v2016_11_01] Update readme for onboard autorest.schema to sdkautomation #3607

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
8 changes: 5 additions & 3 deletions sdk/datalakeanalytics/mgmt-v2016_11_01/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.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-datalakeanalytics</artifactId>
<version>1.0.0-beta-2</version>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for DataLakeAnalytics Management</name>
<description>This package contains Microsoft DataLakeAnalytics Management SDK.</description>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ interface WithDataLakeStoreAccounts {
* @param dataLakeStoreAccounts The list of Data Lake Store accounts associated with this account
* @return the next definition stage
*/
WithDefaultDataLakeStoreAccount withDataLakeStoreAccountsForCreate(List<AddDataLakeStoreWithAccountParameters> dataLakeStoreAccounts);
WithDefaultDataLakeStoreAccount withDataLakeStoreAccounts(List<AddDataLakeStoreWithAccountParameters> dataLakeStoreAccounts);
}

/**
Expand All @@ -192,7 +192,7 @@ interface WithComputePolicies {
* @param computePolicies The list of compute policies associated with this account
* @return the next definition stage
*/
WithCreate withComputePoliciesForCreate(List<CreateComputePolicyWithAccountParameters> computePolicies);
WithCreate withComputePolicies(List<CreateComputePolicyWithAccountParameters> computePolicies);
}

/**
Expand All @@ -216,7 +216,7 @@ interface WithFirewallRules {
* @param firewallRules The list of firewall rules associated with this account
* @return the next definition stage
*/
WithCreate withFirewallRulesForCreate(List<CreateFirewallRuleWithAccountParameters> firewallRules);
WithCreate withFirewallRules(List<CreateFirewallRuleWithAccountParameters> firewallRules);
}

/**
Expand Down Expand Up @@ -312,7 +312,7 @@ interface WithStorageAccounts {
* @param storageAccounts The list of Azure Blob Storage accounts associated with this account
* @return the next definition stage
*/
WithCreate withStorageAccountsForCreate(List<AddStorageAccountWithAccountParameters> storageAccounts);
WithCreate withStorageAccounts(List<AddStorageAccountWithAccountParameters> storageAccounts);
}

/**
Expand Down Expand Up @@ -342,7 +342,7 @@ interface WithComputePolicies {
* @param computePolicies The list of compute policies associated with this account
* @return the next update stage
*/
Update withComputePoliciesForUpdate(List<UpdateComputePolicyWithAccountParameters> computePolicies);
Update withComputePolicies(List<UpdateComputePolicyWithAccountParameters> computePolicies);
}

/**
Expand All @@ -354,7 +354,7 @@ interface WithDataLakeStoreAccounts {
* @param dataLakeStoreAccounts The list of Data Lake Store accounts associated with this account
* @return the next update stage
*/
Update withDataLakeStoreAccountsForUpdate(List<UpdateDataLakeStoreWithAccountParameters> dataLakeStoreAccounts);
Update withDataLakeStoreAccounts(List<UpdateDataLakeStoreWithAccountParameters> dataLakeStoreAccounts);
}

/**
Expand All @@ -378,7 +378,7 @@ interface WithFirewallRules {
* @param firewallRules The list of firewall rules associated with this account
* @return the next update stage
*/
Update withFirewallRulesForUpdate(List<UpdateFirewallRuleWithAccountParameters> firewallRules);
Update withFirewallRules(List<UpdateFirewallRuleWithAccountParameters> firewallRules);
}

/**
Expand Down Expand Up @@ -474,7 +474,7 @@ interface WithStorageAccounts {
* @param storageAccounts The list of Azure Blob storage accounts associated with this account
* @return the next update stage
*/
Update withStorageAccountsForUpdate(List<UpdateStorageAccountWithAccountParameters> storageAccounts);
Update withStorageAccounts(List<UpdateStorageAccountWithAccountParameters> storageAccounts);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public ComputePolicy call(ComputePolicyInner inner) {
public Observable<ComputePolicy> getAsync(String resourceGroupName, String accountName, String computePolicyName) {
ComputePoliciesInner client = this.inner();
return client.getAsync(resourceGroupName, accountName, computePolicyName)
.map(new Func1<ComputePolicyInner, ComputePolicy>() {
.flatMap(new Func1<ComputePolicyInner, Observable<ComputePolicy>>() {
@Override
public ComputePolicy call(ComputePolicyInner inner) {
return wrapModel(inner);
public Observable<ComputePolicy> call(ComputePolicyInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((ComputePolicy)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public Integer systemMaxJobCount() {
}

@Override
public DataLakeAnalyticsAccountImpl withDataLakeStoreAccountsForCreate(List<AddDataLakeStoreWithAccountParameters> dataLakeStoreAccounts) {
public DataLakeAnalyticsAccountImpl withDataLakeStoreAccounts(List<AddDataLakeStoreWithAccountParameters> dataLakeStoreAccounts) {
this.createParameter.withDataLakeStoreAccounts(dataLakeStoreAccounts);
return this;
}
Expand All @@ -238,43 +238,43 @@ public DataLakeAnalyticsAccountImpl withDefaultDataLakeStoreAccount(String defau
}

@Override
public DataLakeAnalyticsAccountImpl withComputePoliciesForCreate(List<CreateComputePolicyWithAccountParameters> computePolicies) {
public DataLakeAnalyticsAccountImpl withComputePolicies(List<CreateComputePolicyWithAccountParameters> computePolicies) {
this.createParameter.withComputePolicies(computePolicies);
return this;
}

@Override
public DataLakeAnalyticsAccountImpl withFirewallRulesForCreate(List<CreateFirewallRuleWithAccountParameters> firewallRules) {
public DataLakeAnalyticsAccountImpl withFirewallRules(List<CreateFirewallRuleWithAccountParameters> firewallRules) {
this.createParameter.withFirewallRules(firewallRules);
return this;
}

@Override
public DataLakeAnalyticsAccountImpl withStorageAccountsForCreate(List<AddStorageAccountWithAccountParameters> storageAccounts) {
public DataLakeAnalyticsAccountImpl withStorageAccounts(List<AddStorageAccountWithAccountParameters> storageAccounts) {
this.createParameter.withStorageAccounts(storageAccounts);
return this;
}

@Override
public DataLakeAnalyticsAccountImpl withComputePoliciesForUpdate(List<UpdateComputePolicyWithAccountParameters> computePolicies) {
public DataLakeAnalyticsAccountImpl withComputePolicies(List<UpdateComputePolicyWithAccountParameters> computePolicies) {
this.updateParameter.withComputePolicies(computePolicies);
return this;
}

@Override
public DataLakeAnalyticsAccountImpl withDataLakeStoreAccountsForUpdate(List<UpdateDataLakeStoreWithAccountParameters> dataLakeStoreAccounts) {
public DataLakeAnalyticsAccountImpl withDataLakeStoreAccounts(List<UpdateDataLakeStoreWithAccountParameters> dataLakeStoreAccounts) {
this.updateParameter.withDataLakeStoreAccounts(dataLakeStoreAccounts);
return this;
}

@Override
public DataLakeAnalyticsAccountImpl withFirewallRulesForUpdate(List<UpdateFirewallRuleWithAccountParameters> firewallRules) {
public DataLakeAnalyticsAccountImpl withFirewallRules(List<UpdateFirewallRuleWithAccountParameters> firewallRules) {
this.updateParameter.withFirewallRules(firewallRules);
return this;
}

@Override
public DataLakeAnalyticsAccountImpl withStorageAccountsForUpdate(List<UpdateStorageAccountWithAccountParameters> storageAccounts) {
public DataLakeAnalyticsAccountImpl withStorageAccounts(List<UpdateStorageAccountWithAccountParameters> storageAccounts) {
this.updateParameter.withStorageAccounts(storageAccounts);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ public DataLakeStoreAccountInformation call(DataLakeStoreAccountInformationInner
public Observable<DataLakeStoreAccountInformation> getAsync(String resourceGroupName, String accountName, String dataLakeStoreAccountName) {
DataLakeStoreAccountsInner client = this.inner();
return client.getAsync(resourceGroupName, accountName, dataLakeStoreAccountName)
.map(new Func1<DataLakeStoreAccountInformationInner, DataLakeStoreAccountInformation>() {
.flatMap(new Func1<DataLakeStoreAccountInformationInner, Observable<DataLakeStoreAccountInformation>>() {
@Override
public DataLakeStoreAccountInformation call(DataLakeStoreAccountInformationInner inner) {
return wrapModel(inner);
public Observable<DataLakeStoreAccountInformation> call(DataLakeStoreAccountInformationInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((DataLakeStoreAccountInformation)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public FirewallRule call(FirewallRuleInner inner) {
public Observable<FirewallRule> getAsync(String resourceGroupName, String accountName, String firewallRuleName) {
FirewallRulesInner client = this.inner();
return client.getAsync(resourceGroupName, accountName, firewallRuleName)
.map(new Func1<FirewallRuleInner, FirewallRule>() {
.flatMap(new Func1<FirewallRuleInner, Observable<FirewallRule>>() {
@Override
public FirewallRule call(FirewallRuleInner inner) {
return wrapModel(inner);
public Observable<FirewallRule> call(FirewallRuleInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((FirewallRule)wrapModel(inner));
}
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,14 @@ public StorageAccountInformation call(StorageAccountInformationInner inner) {
public Observable<StorageAccountInformation> getAsync(String resourceGroupName, String accountName, String storageAccountName) {
StorageAccountsInner client = this.inner();
return client.getAsync(resourceGroupName, accountName, storageAccountName)
.map(new Func1<StorageAccountInformationInner, StorageAccountInformation>() {
.flatMap(new Func1<StorageAccountInformationInner, Observable<StorageAccountInformation>>() {
@Override
public StorageAccountInformation call(StorageAccountInformationInner inner) {
return wrapModel(inner);
public Observable<StorageAccountInformation> call(StorageAccountInformationInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((StorageAccountInformation)wrapModel(inner));
}
}
});
}
Expand Down Expand Up @@ -101,10 +105,14 @@ public Completable addAsync(String resourceGroupName, String accountName, String
public Observable<StorageContainer> getStorageContainerAsync(String resourceGroupName, String accountName, String storageAccountName, String containerName) {
StorageAccountsInner client = this.inner();
return client.getStorageContainerAsync(resourceGroupName, accountName, storageAccountName, containerName)
.map(new Func1<StorageContainerInner, StorageContainer>() {
.flatMap(new Func1<StorageContainerInner, Observable<StorageContainer>>() {
@Override
public StorageContainer call(StorageContainerInner inner) {
return wrapStorageContainerModel(inner);
public Observable<StorageContainer> call(StorageContainerInner inner) {
if (inner == null) {
return Observable.empty();
} else {
return Observable.just((StorageContainer)wrapStorageContainerModel(inner));
}
}
});
}
Expand Down