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 web/resource-manager] WebApps - Add BackupName to backup API models #2293

Merged
merged 2 commits into from
Aug 20, 2018
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public class AzureStorageInfoValue {
* State of the storage account. Possible values include: 'Ok',
* 'InvalidCredentials', 'InvalidShare'.
*/
@JsonProperty(value = "state")
@JsonProperty(value = "state", access = JsonProperty.Access.WRITE_ONLY)
private AzureStorageState state;

/**
Expand Down Expand Up @@ -160,15 +160,4 @@ public AzureStorageState state() {
return this.state;
}

/**
* Set state of the storage account. Possible values include: 'Ok', 'InvalidCredentials', 'InvalidShare'.
*
* @param state the state value to set
* @return the AzureStorageInfoValue object itself.
*/
public AzureStorageInfoValue withState(AzureStorageState state) {
this.state = state;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
* Type representing BackupRequest.
*/
public interface BackupRequest extends HasInner<BackupRequestInner>, HasManager<CertificateRegistrationManager> {
/**
* @return the backupName value.
*/
String backupName();

/**
* @return the backupSchedule value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public class CsmPublishingProfileOptions {
@JsonProperty(value = "format")
private PublishingProfileFormat format;

/**
* Include the DisasterRecover endpoint if true.
*/
@JsonProperty(value = "includeDisasterRecoveryEndpoints")
private Boolean includeDisasterRecoveryEndpoints;

/**
* Get name of the format. Valid values are:
FileZilla3
Expand All @@ -49,4 +55,24 @@ public CsmPublishingProfileOptions withFormat(PublishingProfileFormat format) {
return this;
}

/**
* Get include the DisasterRecover endpoint if true.
*
* @return the includeDisasterRecoveryEndpoints value
*/
public Boolean includeDisasterRecoveryEndpoints() {
return this.includeDisasterRecoveryEndpoints;
}

/**
* Set include the DisasterRecover endpoint if true.
*
* @param includeDisasterRecoveryEndpoints the includeDisasterRecoveryEndpoints value to set
* @return the CsmPublishingProfileOptions object itself.
*/
public CsmPublishingProfileOptions withIncludeDisasterRecoveryEndpoints(Boolean includeDisasterRecoveryEndpoints) {
this.includeDisasterRecoveryEndpoints = includeDisasterRecoveryEndpoints;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import java.util.List;
import org.joda.time.DateTime;
import java.util.Map;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PushSettingsInner;
import com.fasterxml.jackson.annotation.JsonProperty;

Expand Down Expand Up @@ -123,6 +124,12 @@ public class SiteConfig {
@JsonProperty(value = "appSettings")
private List<NameValuePair> appSettings;

/**
* User-provided Azure storage accounts.
*/
@JsonProperty(value = "azureStorageAccounts")
private Map<String, AzureStorageInfoValue> azureStorageAccounts;

/**
* Connection strings.
*/
Expand Down Expand Up @@ -674,6 +681,26 @@ public SiteConfig withAppSettings(List<NameValuePair> appSettings) {
return this;
}

/**
* Get user-provided Azure storage accounts.
*
* @return the azureStorageAccounts value
*/
public Map<String, AzureStorageInfoValue> azureStorageAccounts() {
return this.azureStorageAccounts;
}

/**
* Set user-provided Azure storage accounts.
*
* @param azureStorageAccounts the azureStorageAccounts value to set
* @return the SiteConfig object itself.
*/
public SiteConfig withAzureStorageAccounts(Map<String, AzureStorageInfoValue> azureStorageAccounts) {
this.azureStorageAccounts = azureStorageAccounts;
return this;
}

/**
* Get connection strings.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteConfigResourceInner;
import java.util.List;
import java.util.Map;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PushSettingsInner;
import org.joda.time.DateTime;

Expand Down Expand Up @@ -55,6 +56,11 @@ public interface SiteConfigResource extends HasInner<SiteConfigResourceInner>, H
*/
String autoSwapSlotName();

/**
* @return the azureStorageAccounts value.
*/
Map<String, AzureStorageInfoValue> azureStorageAccounts();

/**
* @return the connectionStrings value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ public interface SlotConfigNamesResource extends HasInner<SlotConfigNamesResourc
*/
List<String> appSettingNames();

/**
* @return the azureStorageConfigNames value.
*/
List<String> azureStorageConfigNames();

/**
* @return the connectionStringNames value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.RelayServiceConnectionEntityInner;
import com.microsoft.azure.management.appservice.v2018_02_01.BackupItem;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteAuthSettingsInner;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.AzureStoragePropertyDictionaryResourceInner;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.ConnectionStringDictionaryInner;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.SiteLogsConfigInner;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.PushSettingsInner;
Expand Down Expand Up @@ -576,10 +577,11 @@ public interface WebApps {
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name);
Completable listPublishingProfileXmlWithSecretsAsync(String resourceGroupName, String name, CsmPublishingProfileOptions publishingProfileOptions);

/**
* Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Expand Down Expand Up @@ -930,6 +932,54 @@ public interface WebApps {
*/
Observable<SiteAuthSettings> getAuthSettingsSlotAsync(String resourceGroupName, String name, String slot);

/**
* Updates the Azure storage account configurations of an app.
* Updates the Azure storage account configurations of an app.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param azureStorageAccounts Azure storage accounts of the app.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AzureStoragePropertyDictionaryResource> updateAzureStorageAccountsAsync(String resourceGroupName, String name, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts);

/**
* Gets the Azure storage account configurations of an app.
* Gets the Azure storage account configurations of an app.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AzureStoragePropertyDictionaryResource> listAzureStorageAccountsAsync(String resourceGroupName, String name);

/**
* Updates the Azure storage account configurations of an app.
* Updates the Azure storage account configurations of an app.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot.
* @param azureStorageAccounts Azure storage accounts of the app.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AzureStoragePropertyDictionaryResource> updateAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot, AzureStoragePropertyDictionaryResourceInner azureStorageAccounts);

/**
* Gets the Azure storage account configurations of an app.
* Gets the Azure storage account configurations of an app.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param slot Name of the deployment slot. If a slot is not specified, the API will update the Azure storage account configurations for the production slot.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<AzureStoragePropertyDictionaryResource> listAzureStorageAccountsSlotAsync(String resourceGroupName, String name, String slot);

/**
* Replaces the connection strings of an app.
* Replaces the connection strings of an app.
Expand Down Expand Up @@ -3347,10 +3397,11 @@ public interface WebApps {
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param slot Name of the deployment slot. If a slot is not specified, the API will get the publishing profile for the production slot.
* @param publishingProfileOptions Specifies publishingProfileOptions for publishing profile. For example, use {"format": "FileZilla3"} to get a FileZilla publishing profile.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot);
Completable listPublishingProfileXmlWithSecretsSlotAsync(String resourceGroupName, String name, String slot, CsmPublishingProfileOptions publishingProfileOptions);

/**
* Resets the configuration settings of the current slot if they were previously modified by calling the API with POST.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public CertificateRegistrationManager manager() {
return this.manager;
}

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

@Override
public BackupSchedule backupSchedule() {
return this.inner().backupSchedule();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
*/
@JsonFlatten
public class BackupRequestInner extends ProxyOnlyResource {
/**
* Name of the backup.
*/
@JsonProperty(value = "properties.backupName")
private String backupName;

/**
* True if the backup schedule is enabled (must be included in that case),
* false if the backup schedule should be disabled.
Expand All @@ -45,6 +51,26 @@ public class BackupRequestInner extends ProxyOnlyResource {
@JsonProperty(value = "properties.databases")
private List<DatabaseBackupSetting> databases;

/**
* Get name of the backup.
*
* @return the backupName value
*/
public String backupName() {
return this.backupName;
}

/**
* Set name of the backup.
*
* @param backupName the backupName value to set
* @return the BackupRequestInner object itself.
*/
public BackupRequestInner withBackupName(String backupName) {
this.backupName = backupName;
return this;
}

/**
* Get true if the backup schedule is enabled (must be included in that case), false if the backup schedule should be disabled.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import java.util.List;
import com.microsoft.azure.management.appservice.v2018_02_01.NameValuePair;
import com.microsoft.azure.management.appservice.v2018_02_01.AutoHealRules;
import java.util.Map;
import com.microsoft.azure.management.appservice.v2018_02_01.AzureStorageInfoValue;
import com.microsoft.azure.management.appservice.v2018_02_01.ConnStringInfo;
import com.microsoft.azure.management.appservice.v2018_02_01.CorsSettings;
import com.microsoft.azure.management.appservice.v2018_02_01.Experiments;
Expand Down Expand Up @@ -76,6 +78,11 @@ public String autoSwapSlotName() {
return this.inner().autoSwapSlotName();
}

@Override
public Map<String, AzureStorageInfoValue> azureStorageAccounts() {
return this.inner().azureStorageAccounts();
}

@Override
public List<ConnStringInfo> connectionStrings() {
return this.inner().connectionStrings();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
import java.util.List;
import org.joda.time.DateTime;
import com.microsoft.azure.management.appservice.v2018_02_01.NameValuePair;
import java.util.Map;
import com.microsoft.azure.management.appservice.v2018_02_01.AzureStorageInfoValue;
import com.microsoft.azure.management.appservice.v2018_02_01.ConnStringInfo;
import com.microsoft.azure.management.appservice.v2018_02_01.SiteMachineKey;
import com.microsoft.azure.management.appservice.v2018_02_01.HandlerMapping;
Expand Down Expand Up @@ -141,6 +143,12 @@ public class SiteConfigResourceInner extends ProxyOnlyResource {
@JsonProperty(value = "properties.appSettings")
private List<NameValuePair> appSettings;

/**
* User-provided Azure storage accounts.
*/
@JsonProperty(value = "properties.azureStorageAccounts")
private Map<String, AzureStorageInfoValue> azureStorageAccounts;

/**
* Connection strings.
*/
Expand Down Expand Up @@ -692,6 +700,26 @@ public SiteConfigResourceInner withAppSettings(List<NameValuePair> appSettings)
return this;
}

/**
* Get user-provided Azure storage accounts.
*
* @return the azureStorageAccounts value
*/
public Map<String, AzureStorageInfoValue> azureStorageAccounts() {
return this.azureStorageAccounts;
}

/**
* Set user-provided Azure storage accounts.
*
* @param azureStorageAccounts the azureStorageAccounts value to set
* @return the SiteConfigResourceInner object itself.
*/
public SiteConfigResourceInner withAzureStorageAccounts(Map<String, AzureStorageInfoValue> azureStorageAccounts) {
this.azureStorageAccounts = azureStorageAccounts;
return this;
}

/**
* Get connection strings.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ public List<String> appSettingNames() {
return this.inner().appSettingNames();
}

@Override
public List<String> azureStorageConfigNames() {
return this.inner().azureStorageConfigNames();
}

@Override
public List<String> connectionStringNames() {
return this.inner().connectionStringNames();
Expand Down
Loading