forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 13aa2340372f139ed06e305a040a067ad628f972
Fix spellcheck and prettier check
- Loading branch information
SDK Automation
committed
Mar 31, 2020
1 parent
c164864
commit 569d98f
Showing
13 changed files
with
1,254 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
...in/java/com/microsoft/azure/management/storage/v2019_06_01/ObjectReplicationPolicies.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/** | ||
* 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.storage.v2019_06_01; | ||
|
||
import com.microsoft.azure.arm.collection.SupportsCreating; | ||
import rx.Completable; | ||
import rx.Observable; | ||
import com.microsoft.azure.management.storage.v2019_06_01.implementation.ObjectReplicationPoliciesInner; | ||
import com.microsoft.azure.arm.model.HasInner; | ||
|
||
/** | ||
* Type representing ObjectReplicationPolicies. | ||
*/ | ||
public interface ObjectReplicationPolicies extends SupportsCreating<ObjectReplicationPolicy.DefinitionStages.Blank>, HasInner<ObjectReplicationPoliciesInner> { | ||
/** | ||
* Get the object replication policy of the storage account by policy ID. | ||
* | ||
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. | ||
* @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. | ||
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<ObjectReplicationPolicy> getAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId); | ||
|
||
/** | ||
* List the object replication policies associated with the storage account. | ||
* | ||
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. | ||
* @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Observable<ObjectReplicationPolicy> listAsync(String resourceGroupName, String accountName); | ||
|
||
/** | ||
* Deletes the object replication policy associated with the specified storage account. | ||
* | ||
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive. | ||
* @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. | ||
* @param objectReplicationPolicyId The ID of object replication policy or 'default' if the policy ID is unknown. | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable for the request | ||
*/ | ||
Completable deleteAsync(String resourceGroupName, String accountName, String objectReplicationPolicyId); | ||
|
||
} |
163 changes: 163 additions & 0 deletions
163
...main/java/com/microsoft/azure/management/storage/v2019_06_01/ObjectReplicationPolicy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
/** | ||
* 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.storage.v2019_06_01; | ||
|
||
import com.microsoft.azure.arm.model.HasInner; | ||
import com.microsoft.azure.management.storage.v2019_06_01.implementation.ObjectReplicationPolicyInner; | ||
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.storage.v2019_06_01.implementation.StorageManager; | ||
import org.joda.time.DateTime; | ||
import java.util.List; | ||
|
||
/** | ||
* Type representing ObjectReplicationPolicy. | ||
*/ | ||
public interface ObjectReplicationPolicy extends HasInner<ObjectReplicationPolicyInner>, Indexable, Refreshable<ObjectReplicationPolicy>, Updatable<ObjectReplicationPolicy.Update>, HasManager<StorageManager> { | ||
/** | ||
* @return the destinationAccount value. | ||
*/ | ||
String destinationAccount(); | ||
|
||
/** | ||
* @return the enabledTime value. | ||
*/ | ||
DateTime enabledTime(); | ||
|
||
/** | ||
* @return the id value. | ||
*/ | ||
String id(); | ||
|
||
/** | ||
* @return the name value. | ||
*/ | ||
String name(); | ||
|
||
/** | ||
* @return the policyId value. | ||
*/ | ||
String policyId(); | ||
|
||
/** | ||
* @return the rules value. | ||
*/ | ||
List<ObjectReplicationPolicyRule> rules(); | ||
|
||
/** | ||
* @return the sourceAccount value. | ||
*/ | ||
String sourceAccount(); | ||
|
||
/** | ||
* @return the type value. | ||
*/ | ||
String type(); | ||
|
||
/** | ||
* The entirety of the ObjectReplicationPolicy definition. | ||
*/ | ||
interface Definition extends DefinitionStages.Blank, DefinitionStages.WithStorageAccount, DefinitionStages.WithDestinationAccount, DefinitionStages.WithSourceAccount, DefinitionStages.WithCreate { | ||
} | ||
|
||
/** | ||
* Grouping of ObjectReplicationPolicy definition stages. | ||
*/ | ||
interface DefinitionStages { | ||
/** | ||
* The first stage of a ObjectReplicationPolicy definition. | ||
*/ | ||
interface Blank extends WithStorageAccount { | ||
} | ||
|
||
/** | ||
* The stage of the objectreplicationpolicy definition allowing to specify StorageAccount. | ||
*/ | ||
interface WithStorageAccount { | ||
/** | ||
* Specifies resourceGroupName, accountName. | ||
* @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive | ||
* @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only | ||
* @return the next definition stage | ||
*/ | ||
WithDestinationAccount withExistingStorageAccount(String resourceGroupName, String accountName); | ||
} | ||
|
||
/** | ||
* The stage of the objectreplicationpolicy definition allowing to specify DestinationAccount. | ||
*/ | ||
interface WithDestinationAccount { | ||
/** | ||
* Specifies destinationAccount. | ||
* @param destinationAccount Required. Destination account name | ||
* @return the next definition stage | ||
*/ | ||
WithSourceAccount withDestinationAccount(String destinationAccount); | ||
} | ||
|
||
/** | ||
* The stage of the objectreplicationpolicy definition allowing to specify SourceAccount. | ||
*/ | ||
interface WithSourceAccount { | ||
/** | ||
* Specifies sourceAccount. | ||
* @param sourceAccount Required. Source account name | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withSourceAccount(String sourceAccount); | ||
} | ||
|
||
/** | ||
* The stage of the objectreplicationpolicy definition allowing to specify Rules. | ||
*/ | ||
interface WithRules { | ||
/** | ||
* Specifies rules. | ||
* @param rules The storage account object replication rules | ||
* @return the next definition stage | ||
*/ | ||
WithCreate withRules(List<ObjectReplicationPolicyRule> rules); | ||
} | ||
|
||
/** | ||
* 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<ObjectReplicationPolicy>, DefinitionStages.WithRules { | ||
} | ||
} | ||
/** | ||
* The template for a ObjectReplicationPolicy update operation, containing all the settings that can be modified. | ||
*/ | ||
interface Update extends Appliable<ObjectReplicationPolicy>, UpdateStages.WithRules { | ||
} | ||
|
||
/** | ||
* Grouping of ObjectReplicationPolicy update stages. | ||
*/ | ||
interface UpdateStages { | ||
/** | ||
* The stage of the objectreplicationpolicy update allowing to specify Rules. | ||
*/ | ||
interface WithRules { | ||
/** | ||
* Specifies rules. | ||
* @param rules The storage account object replication rules | ||
* @return the next update stage | ||
*/ | ||
Update withRules(List<ObjectReplicationPolicyRule> rules); | ||
} | ||
|
||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
...ava/com/microsoft/azure/management/storage/v2019_06_01/ObjectReplicationPolicyFilter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/** | ||
* 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.storage.v2019_06_01; | ||
|
||
import java.util.List; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* Filters limit replication to a subset of blobs within the storage account. A | ||
* logical OR is performed on values in the filter. If multiple filters are | ||
* defined, a logical AND is performed on all filters. | ||
*/ | ||
public class ObjectReplicationPolicyFilter { | ||
/** | ||
* Optional. Filters the results to replicate only blobs whose names begin | ||
* with the specified prefix. | ||
*/ | ||
@JsonProperty(value = "prefixMatch") | ||
private List<String> prefixMatch; | ||
|
||
/** | ||
* Blobs created after the time will be replicated to the destination. It | ||
* must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: | ||
* 2020-02-19T16:05:00Z. | ||
*/ | ||
@JsonProperty(value = "minCreationTime") | ||
private String minCreationTime; | ||
|
||
/** | ||
* Get optional. Filters the results to replicate only blobs whose names begin with the specified prefix. | ||
* | ||
* @return the prefixMatch value | ||
*/ | ||
public List<String> prefixMatch() { | ||
return this.prefixMatch; | ||
} | ||
|
||
/** | ||
* Set optional. Filters the results to replicate only blobs whose names begin with the specified prefix. | ||
* | ||
* @param prefixMatch the prefixMatch value to set | ||
* @return the ObjectReplicationPolicyFilter object itself. | ||
*/ | ||
public ObjectReplicationPolicyFilter withPrefixMatch(List<String> prefixMatch) { | ||
this.prefixMatch = prefixMatch; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z. | ||
* | ||
* @return the minCreationTime value | ||
*/ | ||
public String minCreationTime() { | ||
return this.minCreationTime; | ||
} | ||
|
||
/** | ||
* Set blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z. | ||
* | ||
* @param minCreationTime the minCreationTime value to set | ||
* @return the ObjectReplicationPolicyFilter object itself. | ||
*/ | ||
public ObjectReplicationPolicyFilter withMinCreationTime(String minCreationTime) { | ||
this.minCreationTime = minCreationTime; | ||
return this; | ||
} | ||
|
||
} |
Oops, something went wrong.