Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
[AutoPR compute/resource-manager] Added the swagger file for the new …
…service Gallery. (#156)

* Generated from b48862551b5e97eb40acb3da63e55522a9db566c

Added the swagger file for the new service Gallery.

* Generated from 0ae8adebcc75669620242663ebae391ca17bd2d0

Fixed minor issues. Added an example.

* Generated from 958b583af5cb30874efc02c325d7e62c8737afce

Merge branch 'dev/xiowei/addSwaggerForGallery' of https://github.com/vanbasten2323/azure-rest-api-specs into dev/xiowei/addSwaggerForGallery

* Generated from 29d0c5762aad64243a021fac44d65b8610304e4e

Fixed description for 202 response.

* Generated from b74f3ee0fdca928bf92a7fdd2bcd17994deadca9

Changed the operationId to conform to naming convention.

* Generated from 664c041aeed346e4fdc3a2c8c29c1c59e7505b66

Fixed some typos.

* Generated from e7ab96432e0bfc7c49839ca5d1194ec1be0c23a9

Add default error response. Make provisioningInfo a enum type.

* Generated from c26feda2acff5be97893b6e5db4270e09dbf1c25

Fixed comments according to CR.

* Generated from b757a4ec5fd9e1a35bedefd53fe3d92e111db5eb

Resolved merge conflicts.

* Generated from fa546f92703f69fabf94f3e104282d5e8d95965e

Updated the readme.md
  • Loading branch information
AutorestCI authored May 23, 2018
commit 81d5253b0b38fe6e32f3f96605c81ef0044d4488
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/**
* 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.compute;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for AggregatedReplicationState.
*/
public enum AggregatedReplicationState {
/** Enum value Unknown. */
UNKNOWN("Unknown"),

/** Enum value InProgress. */
IN_PROGRESS("InProgress"),

/** Enum value Completed. */
COMPLETED("Completed"),

/** Enum value Failed. */
FAILED("Failed");

/** The actual serialized value for a AggregatedReplicationState instance. */
private String value;

AggregatedReplicationState(String value) {
this.value = value;
}

/**
* Parses a serialized value to a AggregatedReplicationState instance.
*
* @param value the serialized value to parse.
* @return the parsed AggregatedReplicationState object, or null if unable to parse.
*/
@JsonCreator
public static AggregatedReplicationState fromString(String value) {
AggregatedReplicationState[] items = AggregatedReplicationState.values();
for (AggregatedReplicationState item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.compute;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes the disallowed disk types.
*/
public class Disallowed {
/**
* A list of disk types.
*/
@JsonProperty(value = "diskTypes")
private List<String> diskTypes;

/**
* Get the diskTypes value.
*
* @return the diskTypes value
*/
public List<String> diskTypes() {
return this.diskTypes;
}

/**
* Set the diskTypes value.
*
* @param diskTypes the diskTypes value to set
* @return the Disallowed object itself.
*/
public Disallowed withDiskTypes(List<String> diskTypes) {
this.diskTypes = diskTypes;
return this;
}

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

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes the basic gallery artifact publishing profile.
*/
public class GalleryArtifactPublishingProfileBase {
/**
* The regions where the artifact is going to be published.
*/
@JsonProperty(value = "regions")
private List<String> regions;

/**
* The source property.
*/
@JsonProperty(value = "source")
private GalleryArtifactSource source;

/**
* Get the regions value.
*
* @return the regions value
*/
public List<String> regions() {
return this.regions;
}

/**
* Set the regions value.
*
* @param regions the regions value to set
* @return the GalleryArtifactPublishingProfileBase object itself.
*/
public GalleryArtifactPublishingProfileBase withRegions(List<String> regions) {
this.regions = regions;
return this;
}

/**
* Get the source value.
*
* @return the source value
*/
public GalleryArtifactSource source() {
return this.source;
}

/**
* Set the source value.
*
* @param source the source value to set
* @return the GalleryArtifactPublishingProfileBase object itself.
*/
public GalleryArtifactPublishingProfileBase withSource(GalleryArtifactSource source) {
this.source = source;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The source of the gallery artifact.
*/
public class GalleryArtifactSource {
/**
* The managedImage property.
*/
@JsonProperty(value = "managedImage")
private ManagedArtifact managedImage;

/**
* Get the managedImage value.
*
* @return the managedImage value
*/
public ManagedArtifact managedImage() {
return this.managedImage;
}

/**
* Set the managedImage value.
*
* @param managedImage the managedImage value to set
* @return the GalleryArtifactSource object itself.
*/
public GalleryArtifactSource withManagedImage(ManagedArtifact managedImage) {
this.managedImage = managedImage;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* This is the data disk image.
*/
public class GalleryDataDiskImage extends GalleryDiskImage {
/**
* Specifies the logical unit number of the data disk. This value is used
* to identify data disks within the VM and therefore must be unique for
* each data disk attached to a VM.
*/
@JsonProperty(value = "lun")
private Integer lun;

/**
* Get the lun value.
*
* @return the lun value
*/
public Integer lun() {
return this.lun;
}

/**
* Set the lun value.
*
* @param lun the lun value to set
* @return the GalleryDataDiskImage object itself.
*/
public GalleryDataDiskImage withLun(Integer lun) {
this.lun = lun;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* This is the disk image base class.
*/
public class GalleryDiskImage {
/**
* It indicates the size of the VHD to create.
*/
@JsonProperty(value = "sizedInGB")
private Integer sizedInGB;

/**
* The host caching of the disk. Valid values are 'None', 'ReadOnly', and
* 'ReadWrite'. Possible values include: 'None', 'ReadOnly', 'ReadWrite'.
*/
@JsonProperty(value = "hostCaching")
private HostCaching hostCaching;

/**
* Get the sizedInGB value.
*
* @return the sizedInGB value
*/
public Integer sizedInGB() {
return this.sizedInGB;
}

/**
* Set the sizedInGB value.
*
* @param sizedInGB the sizedInGB value to set
* @return the GalleryDiskImage object itself.
*/
public GalleryDiskImage withSizedInGB(Integer sizedInGB) {
this.sizedInGB = sizedInGB;
return this;
}

/**
* Get the hostCaching value.
*
* @return the hostCaching value
*/
public HostCaching hostCaching() {
return this.hostCaching;
}

/**
* Set the hostCaching value.
*
* @param hostCaching the hostCaching value to set
* @return the GalleryDiskImage object itself.
*/
public GalleryDiskImage withHostCaching(HostCaching hostCaching) {
this.hostCaching = hostCaching;
return this;
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The GalleryIdentifier model.
*/
public class GalleryIdentifier {
/**
* The unique name of the gallery.
*/
@JsonProperty(value = "uniqueName", access = JsonProperty.Access.WRITE_ONLY)
private String uniqueName;

/**
* Get the uniqueName value.
*
* @return the uniqueName value
*/
public String uniqueName() {
return this.uniqueName;
}

}
Loading