Skip to content

Commit

Permalink
Datamigration: update package 2018-07-15-preview. (#4937)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaohaizh authored and pull[bot] committed Aug 14, 2019
1 parent 6a1e6ee commit 63cee62
Show file tree
Hide file tree
Showing 168 changed files with 7,906 additions and 200 deletions.
4 changes: 3 additions & 1 deletion datamigration/resource-manager/v2018_07_15_preview/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-datamigration</artifactId>
<version>1.0.0-beta</version>
<version>1.0.0-beta-1</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for DataMigration Management</name>
<description>This package contains Microsoft DataMigration 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
@@ -0,0 +1,95 @@
/**
* 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.datamigration.v2018_07_15_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Azure Active Directory Application.
*/
public class AzureActiveDirectoryApp {
/**
* Application ID of the Azure Active Directory Application.
*/
@JsonProperty(value = "applicationId", required = true)
private String applicationId;

/**
* Key used to authenticate to the Azure Active Directory Application.
*/
@JsonProperty(value = "appKey", required = true)
private String appKey;

/**
* Tenant id of the customer.
*/
@JsonProperty(value = "tenantId", required = true)
private String tenantId;

/**
* Get application ID of the Azure Active Directory Application.
*
* @return the applicationId value
*/
public String applicationId() {
return this.applicationId;
}

/**
* Set application ID of the Azure Active Directory Application.
*
* @param applicationId the applicationId value to set
* @return the AzureActiveDirectoryApp object itself.
*/
public AzureActiveDirectoryApp withApplicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}

/**
* Get key used to authenticate to the Azure Active Directory Application.
*
* @return the appKey value
*/
public String appKey() {
return this.appKey;
}

/**
* Set key used to authenticate to the Azure Active Directory Application.
*
* @param appKey the appKey value to set
* @return the AzureActiveDirectoryApp object itself.
*/
public AzureActiveDirectoryApp withAppKey(String appKey) {
this.appKey = appKey;
return this;
}

/**
* Get tenant id of the customer.
*
* @return the tenantId value
*/
public String tenantId() {
return this.tenantId;
}

/**
* Set tenant id of the customer.
*
* @param tenantId the tenantId value to set
* @return the AzureActiveDirectoryApp object itself.
*/
public AzureActiveDirectoryApp withTenantId(String tenantId) {
this.tenantId = tenantId;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/**
* 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.datamigration.v2018_07_15_preview;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Information of the backup file.
*/
public class BackupFileInfo {
/**
* Location of the backup file in shared folder.
*/
@JsonProperty(value = "fileLocation")
private String fileLocation;

/**
* Sequence number of the backup file in the backup set.
*/
@JsonProperty(value = "familySequenceNumber")
private Integer familySequenceNumber;

/**
* Status of the backup file during migration. Possible values include:
* 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored',
* 'Cancelled'.
*/
@JsonProperty(value = "status")
private BackupFileStatus status;

/**
* Get location of the backup file in shared folder.
*
* @return the fileLocation value
*/
public String fileLocation() {
return this.fileLocation;
}

/**
* Set location of the backup file in shared folder.
*
* @param fileLocation the fileLocation value to set
* @return the BackupFileInfo object itself.
*/
public BackupFileInfo withFileLocation(String fileLocation) {
this.fileLocation = fileLocation;
return this;
}

/**
* Get sequence number of the backup file in the backup set.
*
* @return the familySequenceNumber value
*/
public Integer familySequenceNumber() {
return this.familySequenceNumber;
}

/**
* Set sequence number of the backup file in the backup set.
*
* @param familySequenceNumber the familySequenceNumber value to set
* @return the BackupFileInfo object itself.
*/
public BackupFileInfo withFamilySequenceNumber(Integer familySequenceNumber) {
this.familySequenceNumber = familySequenceNumber;
return this;
}

/**
* Get status of the backup file during migration. Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored', 'Cancelled'.
*
* @return the status value
*/
public BackupFileStatus status() {
return this.status;
}

/**
* Set status of the backup file during migration. Possible values include: 'Arrived', 'Queued', 'Uploading', 'Uploaded', 'Restoring', 'Restored', 'Cancelled'.
*
* @param status the status value to set
* @return the BackupFileInfo object itself.
*/
public BackupFileInfo withStatus(BackupFileStatus status) {
this.status = status;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
/**
* 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.datamigration.v2018_07_15_preview;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for BackupFileStatus.
*/
public final class BackupFileStatus extends ExpandableStringEnum<BackupFileStatus> {
/** Static value Arrived for BackupFileStatus. */
public static final BackupFileStatus ARRIVED = fromString("Arrived");

/** Static value Queued for BackupFileStatus. */
public static final BackupFileStatus QUEUED = fromString("Queued");

/** Static value Uploading for BackupFileStatus. */
public static final BackupFileStatus UPLOADING = fromString("Uploading");

/** Static value Uploaded for BackupFileStatus. */
public static final BackupFileStatus UPLOADED = fromString("Uploaded");

/** Static value Restoring for BackupFileStatus. */
public static final BackupFileStatus RESTORING = fromString("Restoring");

/** Static value Restored for BackupFileStatus. */
public static final BackupFileStatus RESTORED = fromString("Restored");

/** Static value Cancelled for BackupFileStatus. */
public static final BackupFileStatus CANCELLED = fromString("Cancelled");

/**
* Creates or finds a BackupFileStatus from its string representation.
* @param name a name to look for
* @return the corresponding BackupFileStatus
*/
@JsonCreator
public static BackupFileStatus fromString(String name) {
return fromString(name, BackupFileStatus.class);
}

/**
* @return known BackupFileStatus values
*/
public static Collection<BackupFileStatus> values() {
return values(BackupFileStatus.class);
}
}
Loading

0 comments on commit 63cee62

Please sign in to comment.