Skip to content

Commit

Permalink
[AutoPR web/resource-manager] WebApps - Add BackupName to backup API …
Browse files Browse the repository at this point in the history
…models (#2293)

* Generated from 6162973ef0993464a1806f8db5ca913f0fa5d6c8

WebApps - Add BackupName to replace non-ARM-compliant Name property on Backup API models

* Generated from c8664a06cff19844eb381ad410872b34cba23b27

Revert breaking change to BackupItem. BackupItemName property will be fine in place of BackupName for now.
  • Loading branch information
AutorestCI authored Aug 20, 2018
1 parent d73cdad commit c5b53b3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
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 @@ -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

0 comments on commit c5b53b3

Please sign in to comment.