From 09c92720804c4480ee5bf70f8d733ceb886241d9 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 15 May 2018 23:42:52 +0000 Subject: [PATCH] Generated from df89a61f596ccdebf88102e1e674ff33c0e573d7 BatchAI. Remove CreateExperimentParameters --- .../batchai/ClusterCreateParameters.java | 263 ++++++++ .../batchai/ClusterUpdateParameters.java | 72 +++ .../ClustersListByResourceGroupOptions.java | 44 ++ .../ClustersListByWorkspaceOptions.java | 44 ++ .../batchai/ClustersListOptions.java | 44 ++ .../ExperimentsListByWorkspaceOptions.java | 44 ++ .../batchai/FileServerCreateParameters.java | 178 ++++++ ...FileServersListByResourceGroupOptions.java | 44 ++ .../FileServersListByWorkspaceOptions.java | 44 ++ .../batchai/FileServersListOptions.java | 44 ++ .../batchai/JobCreateParameters.java | 581 ++++++++++++++++++ .../batchai/JobsListByExperimentOptions.java | 44 ++ .../batchai/JobsListOutputFilesOptions.java | 123 ++++ .../batchai/WorkspaceCreateParameters.java | 70 +++ .../WorkspacesListByResourceGroupOptions.java | 44 ++ .../batchai/WorkspacesListOptions.java | 44 ++ .../batchai/implementation/ClusterInner.java | 2 + .../batchai/implementation/ClustersInner.java | 71 ++- .../implementation/ExperimentInner.java | 2 +- .../implementation/ExperimentsInner.java | 64 +- .../implementation/FileServerInner.java | 2 + .../implementation/FileServersInner.java | 60 +- .../batchai/implementation/JobInner.java | 2 +- .../batchai/implementation/JobsInner.java | 45 +- .../implementation/WorkspaceInner.java | 2 + .../implementation/WorkspacesInner.java | 47 +- 26 files changed, 1879 insertions(+), 145 deletions(-) create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterCreateParameters.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterUpdateParameters.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByResourceGroupOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByWorkspaceOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ExperimentsListByWorkspaceOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServerCreateParameters.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByResourceGroupOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByWorkspaceOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobCreateParameters.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListByExperimentOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListOutputFilesOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspaceCreateParameters.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListByResourceGroupOptions.java create mode 100644 azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListOptions.java diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterCreateParameters.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterCreateParameters.java new file mode 100644 index 00000000000..e5e0740142c --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterCreateParameters.java @@ -0,0 +1,263 @@ +/** + * 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.batchai; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters supplied to the Create operation. + */ +@JsonFlatten +public class ClusterCreateParameters { + /** + * The region in which to create the cluster. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * The user specified tags associated with the Cluster. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The size of the virtual machines in the cluster. + * All virtual machines in a cluster are the same size. For information + * about available VM sizes for clusters using images from the Virtual + * Machines Marketplace (see Sizes for Virtual Machines (Linux) or Sizes + * for Virtual Machines (Windows). Batch AI service supports all Azure VM + * sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, + * STANDARD_DS, and STANDARD_DSV2 series). + */ + @JsonProperty(value = "properties.vmSize", required = true) + private String vmSize; + + /** + * dedicated or lowpriority. + * Default is dedicated. Possible values include: 'dedicated', + * 'lowpriority'. + */ + @JsonProperty(value = "properties.vmPriority") + private VmPriority vmPriority; + + /** + * Desired scale for the cluster. + */ + @JsonProperty(value = "properties.scaleSettings") + private ScaleSettings scaleSettings; + + /** + * Settings for OS image and mounted data volumes. + */ + @JsonProperty(value = "properties.virtualMachineConfiguration") + private VirtualMachineConfiguration virtualMachineConfiguration; + + /** + * Setup to be done on all compute nodes in the cluster. + */ + @JsonProperty(value = "properties.nodeSetup") + private NodeSetup nodeSetup; + + /** + * Settings for user account that will be created on all compute nodes of + * the cluster. + */ + @JsonProperty(value = "properties.userAccountSettings", required = true) + private UserAccountSettings userAccountSettings; + + /** + * Specifies the identifier of the subnet. + */ + @JsonProperty(value = "properties.subnet") + private ResourceId subnet; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the tags value. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the vmSize value. + * + * @return the vmSize value + */ + public String vmSize() { + return this.vmSize; + } + + /** + * Set the vmSize value. + * + * @param vmSize the vmSize value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withVmSize(String vmSize) { + this.vmSize = vmSize; + return this; + } + + /** + * Get the vmPriority value. + * + * @return the vmPriority value + */ + public VmPriority vmPriority() { + return this.vmPriority; + } + + /** + * Set the vmPriority value. + * + * @param vmPriority the vmPriority value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withVmPriority(VmPriority vmPriority) { + this.vmPriority = vmPriority; + return this; + } + + /** + * Get the scaleSettings value. + * + * @return the scaleSettings value + */ + public ScaleSettings scaleSettings() { + return this.scaleSettings; + } + + /** + * Set the scaleSettings value. + * + * @param scaleSettings the scaleSettings value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withScaleSettings(ScaleSettings scaleSettings) { + this.scaleSettings = scaleSettings; + return this; + } + + /** + * Get the virtualMachineConfiguration value. + * + * @return the virtualMachineConfiguration value + */ + public VirtualMachineConfiguration virtualMachineConfiguration() { + return this.virtualMachineConfiguration; + } + + /** + * Set the virtualMachineConfiguration value. + * + * @param virtualMachineConfiguration the virtualMachineConfiguration value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration) { + this.virtualMachineConfiguration = virtualMachineConfiguration; + return this; + } + + /** + * Get the nodeSetup value. + * + * @return the nodeSetup value + */ + public NodeSetup nodeSetup() { + return this.nodeSetup; + } + + /** + * Set the nodeSetup value. + * + * @param nodeSetup the nodeSetup value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withNodeSetup(NodeSetup nodeSetup) { + this.nodeSetup = nodeSetup; + return this; + } + + /** + * Get the userAccountSettings value. + * + * @return the userAccountSettings value + */ + public UserAccountSettings userAccountSettings() { + return this.userAccountSettings; + } + + /** + * Set the userAccountSettings value. + * + * @param userAccountSettings the userAccountSettings value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withUserAccountSettings(UserAccountSettings userAccountSettings) { + this.userAccountSettings = userAccountSettings; + return this; + } + + /** + * Get the subnet value. + * + * @return the subnet value + */ + public ResourceId subnet() { + return this.subnet; + } + + /** + * Set the subnet value. + * + * @param subnet the subnet value to set + * @return the ClusterCreateParameters object itself. + */ + public ClusterCreateParameters withSubnet(ResourceId subnet) { + this.subnet = subnet; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterUpdateParameters.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterUpdateParameters.java new file mode 100644 index 00000000000..168cfa4c732 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClusterUpdateParameters.java @@ -0,0 +1,72 @@ +/** + * 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.batchai; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters supplied to the Update operation. + */ +@JsonFlatten +public class ClusterUpdateParameters { + /** + * The user specified tags associated with the Cluster. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Desired scale for the cluster. + */ + @JsonProperty(value = "properties.scaleSettings") + private ScaleSettings scaleSettings; + + /** + * Get the tags value. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the ClusterUpdateParameters object itself. + */ + public ClusterUpdateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the scaleSettings value. + * + * @return the scaleSettings value + */ + public ScaleSettings scaleSettings() { + return this.scaleSettings; + } + + /** + * Set the scaleSettings value. + * + * @param scaleSettings the scaleSettings value to set + * @return the ClusterUpdateParameters object itself. + */ + public ClusterUpdateParameters withScaleSettings(ScaleSettings scaleSettings) { + this.scaleSettings = scaleSettings; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByResourceGroupOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByResourceGroupOptions.java new file mode 100644 index 00000000000..9767c94913c --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByResourceGroupOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listByResourceGroup operation. + */ +public class ClustersListByResourceGroupOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the ClustersListByResourceGroupOptions object itself. + */ + public ClustersListByResourceGroupOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByWorkspaceOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByWorkspaceOptions.java new file mode 100644 index 00000000000..ee24cb5c617 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListByWorkspaceOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listByWorkspace operation. + */ +public class ClustersListByWorkspaceOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the ClustersListByWorkspaceOptions object itself. + */ + public ClustersListByWorkspaceOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListOptions.java new file mode 100644 index 00000000000..394a64cabcb --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ClustersListOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for list operation. + */ +public class ClustersListOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the ClustersListOptions object itself. + */ + public ClustersListOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ExperimentsListByWorkspaceOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ExperimentsListByWorkspaceOptions.java new file mode 100644 index 00000000000..0899906dd18 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/ExperimentsListByWorkspaceOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listByWorkspace operation. + */ +public class ExperimentsListByWorkspaceOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the ExperimentsListByWorkspaceOptions object itself. + */ + public ExperimentsListByWorkspaceOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServerCreateParameters.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServerCreateParameters.java new file mode 100644 index 00000000000..9fa9ff9cd1d --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServerCreateParameters.java @@ -0,0 +1,178 @@ +/** + * 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.batchai; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters supplied to the Create operation. + */ +@JsonFlatten +public class FileServerCreateParameters { + /** + * The region in which to create the File Server. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * The user specified tags associated with the File Server. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * The size of the virtual machine of the file server. + * For information about available VM sizes for fileservers from the + * Virtual Machines Marketplace, see Sizes for Virtual Machines (Linux). + */ + @JsonProperty(value = "properties.vmSize", required = true) + private String vmSize; + + /** + * SSH configuration for the file server. + */ + @JsonProperty(value = "properties.sshConfiguration", required = true) + private SshConfiguration sshConfiguration; + + /** + * Settings for the data disk which would be created for the file server. + */ + @JsonProperty(value = "properties.dataDisks", required = true) + private DataDisks dataDisks; + + /** + * Specifies the identifier of the subnet. + */ + @JsonProperty(value = "properties.subnet") + private ResourceId subnet; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the FileServerCreateParameters object itself. + */ + public FileServerCreateParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the tags value. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the FileServerCreateParameters object itself. + */ + public FileServerCreateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the vmSize value. + * + * @return the vmSize value + */ + public String vmSize() { + return this.vmSize; + } + + /** + * Set the vmSize value. + * + * @param vmSize the vmSize value to set + * @return the FileServerCreateParameters object itself. + */ + public FileServerCreateParameters withVmSize(String vmSize) { + this.vmSize = vmSize; + return this; + } + + /** + * Get the sshConfiguration value. + * + * @return the sshConfiguration value + */ + public SshConfiguration sshConfiguration() { + return this.sshConfiguration; + } + + /** + * Set the sshConfiguration value. + * + * @param sshConfiguration the sshConfiguration value to set + * @return the FileServerCreateParameters object itself. + */ + public FileServerCreateParameters withSshConfiguration(SshConfiguration sshConfiguration) { + this.sshConfiguration = sshConfiguration; + return this; + } + + /** + * Get the dataDisks value. + * + * @return the dataDisks value + */ + public DataDisks dataDisks() { + return this.dataDisks; + } + + /** + * Set the dataDisks value. + * + * @param dataDisks the dataDisks value to set + * @return the FileServerCreateParameters object itself. + */ + public FileServerCreateParameters withDataDisks(DataDisks dataDisks) { + this.dataDisks = dataDisks; + return this; + } + + /** + * Get the subnet value. + * + * @return the subnet value + */ + public ResourceId subnet() { + return this.subnet; + } + + /** + * Set the subnet value. + * + * @param subnet the subnet value to set + * @return the FileServerCreateParameters object itself. + */ + public FileServerCreateParameters withSubnet(ResourceId subnet) { + this.subnet = subnet; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByResourceGroupOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByResourceGroupOptions.java new file mode 100644 index 00000000000..40634fc6b80 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByResourceGroupOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listByResourceGroup operation. + */ +public class FileServersListByResourceGroupOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the FileServersListByResourceGroupOptions object itself. + */ + public FileServersListByResourceGroupOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByWorkspaceOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByWorkspaceOptions.java new file mode 100644 index 00000000000..28d138570ec --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListByWorkspaceOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listByWorkspace operation. + */ +public class FileServersListByWorkspaceOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the FileServersListByWorkspaceOptions object itself. + */ + public FileServersListByWorkspaceOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListOptions.java new file mode 100644 index 00000000000..bba0e0729ec --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/FileServersListOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for list operation. + */ +public class FileServersListOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the FileServersListOptions object itself. + */ + public FileServersListOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobCreateParameters.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobCreateParameters.java new file mode 100644 index 00000000000..4424e091905 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobCreateParameters.java @@ -0,0 +1,581 @@ +/** + * 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.batchai; + +import java.util.List; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; + +/** + * Parameters supplied to the Create operation. + */ +@JsonFlatten +public class JobCreateParameters { + /** + * Scheduling priority associated with the job. + * Scheduling priority associated with the job. Possible values include: + * 'low', 'normal', 'high'. + */ + @JsonProperty(value = "properties.schedulingPriority") + private JobPriority schedulingPriority; + + /** + * Specifies the Id of the cluster on which this job will run. + */ + @JsonProperty(value = "properties.cluster", required = true) + private ResourceId cluster; + + /** + * Information on mount volumes to be used by the job. + * These volumes will be mounted before the job execution and will be + * unmouted after the job completion. The volumes will be mounted at + * location specified by $AZ_BATCHAI_JOB_MOUNT_ROOT environment variable. + */ + @JsonProperty(value = "properties.mountVolumes") + private MountVolumes mountVolumes; + + /** + * Number of compute nodes to run the job on. + * The job will be gang scheduled on that many compute nodes. + */ + @JsonProperty(value = "properties.nodeCount", required = true) + private int nodeCount; + + /** + * If provided the job will run in the specified container. + * If the container was downloaded as part of cluster setup then the same + * container image will be used. If not provided, the job will run on the + * VM. + */ + @JsonProperty(value = "properties.containerSettings") + private ContainerSettings containerSettings; + + /** + * Specifies the settings for CNTK (aka Microsoft Cognitive Toolkit) job. + */ + @JsonProperty(value = "properties.cntkSettings") + private CNTKsettings cntkSettings; + + /** + * Specifies the settings for pyTorch job. + */ + @JsonProperty(value = "properties.pyTorchSettings") + private PyTorchSettings pyTorchSettings; + + /** + * Specifies the settings for Tensor Flow job. + */ + @JsonProperty(value = "properties.tensorFlowSettings") + private TensorFlowSettings tensorFlowSettings; + + /** + * Specifies the settings for Caffe job. + */ + @JsonProperty(value = "properties.caffeSettings") + private CaffeSettings caffeSettings; + + /** + * Specifies the settings for Caffe2 job. + */ + @JsonProperty(value = "properties.caffe2Settings") + private Caffe2Settings caffe2Settings; + + /** + * Specifies the settings for Chainer job. + */ + @JsonProperty(value = "properties.chainerSettings") + private ChainerSettings chainerSettings; + + /** + * Specifies the settings for custom tool kit job. + */ + @JsonProperty(value = "properties.customToolkitSettings") + private CustomToolkitSettings customToolkitSettings; + + /** + * Specifies the settings for custom MPI job. + */ + @JsonProperty(value = "properties.customMpiSettings") + private CustomMpiSettings customMpiSettings; + + /** + * Specifies the settings for Horovod job. + */ + @JsonProperty(value = "properties.horovodSettings") + private HorovodSettings horovodSettings; + + /** + * Specifies the command line to be executed before tool kit is launched. + * The specified actions will run on all the nodes that are part of the + * job. + */ + @JsonProperty(value = "properties.jobPreparation") + private JobPreparation jobPreparation; + + /** + * The path where the Batch AI service will upload stdout and stderror of + * the job. + */ + @JsonProperty(value = "properties.stdOutErrPathPrefix", required = true) + private String stdOutErrPathPrefix; + + /** + * Specifies the list of input directories for the Job. + */ + @JsonProperty(value = "properties.inputDirectories") + private List inputDirectories; + + /** + * Specifies the list of output directories. + */ + @JsonProperty(value = "properties.outputDirectories") + private List outputDirectories; + + /** + * Additional environment variables to set on the job. + * Batch AI will setup these additional environment variables for the job. + */ + @JsonProperty(value = "properties.environmentVariables") + private List environmentVariables; + + /** + * Additional environment variables with secret values to set on the job. + * Batch AI will setup these additional environment variables for the job. + * Server will never report values of these variables back. + */ + @JsonProperty(value = "properties.secrets") + private List secrets; + + /** + * Constraints associated with the Job. + */ + @JsonProperty(value = "properties.constraints") + private JobBasePropertiesConstraints constraints; + + /** + * Get the schedulingPriority value. + * + * @return the schedulingPriority value + */ + public JobPriority schedulingPriority() { + return this.schedulingPriority; + } + + /** + * Set the schedulingPriority value. + * + * @param schedulingPriority the schedulingPriority value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withSchedulingPriority(JobPriority schedulingPriority) { + this.schedulingPriority = schedulingPriority; + return this; + } + + /** + * Get the cluster value. + * + * @return the cluster value + */ + public ResourceId cluster() { + return this.cluster; + } + + /** + * Set the cluster value. + * + * @param cluster the cluster value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withCluster(ResourceId cluster) { + this.cluster = cluster; + return this; + } + + /** + * Get the mountVolumes value. + * + * @return the mountVolumes value + */ + public MountVolumes mountVolumes() { + return this.mountVolumes; + } + + /** + * Set the mountVolumes value. + * + * @param mountVolumes the mountVolumes value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withMountVolumes(MountVolumes mountVolumes) { + this.mountVolumes = mountVolumes; + return this; + } + + /** + * Get the nodeCount value. + * + * @return the nodeCount value + */ + public int nodeCount() { + return this.nodeCount; + } + + /** + * Set the nodeCount value. + * + * @param nodeCount the nodeCount value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withNodeCount(int nodeCount) { + this.nodeCount = nodeCount; + return this; + } + + /** + * Get the containerSettings value. + * + * @return the containerSettings value + */ + public ContainerSettings containerSettings() { + return this.containerSettings; + } + + /** + * Set the containerSettings value. + * + * @param containerSettings the containerSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withContainerSettings(ContainerSettings containerSettings) { + this.containerSettings = containerSettings; + return this; + } + + /** + * Get the cntkSettings value. + * + * @return the cntkSettings value + */ + public CNTKsettings cntkSettings() { + return this.cntkSettings; + } + + /** + * Set the cntkSettings value. + * + * @param cntkSettings the cntkSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withCntkSettings(CNTKsettings cntkSettings) { + this.cntkSettings = cntkSettings; + return this; + } + + /** + * Get the pyTorchSettings value. + * + * @return the pyTorchSettings value + */ + public PyTorchSettings pyTorchSettings() { + return this.pyTorchSettings; + } + + /** + * Set the pyTorchSettings value. + * + * @param pyTorchSettings the pyTorchSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withPyTorchSettings(PyTorchSettings pyTorchSettings) { + this.pyTorchSettings = pyTorchSettings; + return this; + } + + /** + * Get the tensorFlowSettings value. + * + * @return the tensorFlowSettings value + */ + public TensorFlowSettings tensorFlowSettings() { + return this.tensorFlowSettings; + } + + /** + * Set the tensorFlowSettings value. + * + * @param tensorFlowSettings the tensorFlowSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withTensorFlowSettings(TensorFlowSettings tensorFlowSettings) { + this.tensorFlowSettings = tensorFlowSettings; + return this; + } + + /** + * Get the caffeSettings value. + * + * @return the caffeSettings value + */ + public CaffeSettings caffeSettings() { + return this.caffeSettings; + } + + /** + * Set the caffeSettings value. + * + * @param caffeSettings the caffeSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withCaffeSettings(CaffeSettings caffeSettings) { + this.caffeSettings = caffeSettings; + return this; + } + + /** + * Get the caffe2Settings value. + * + * @return the caffe2Settings value + */ + public Caffe2Settings caffe2Settings() { + return this.caffe2Settings; + } + + /** + * Set the caffe2Settings value. + * + * @param caffe2Settings the caffe2Settings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withCaffe2Settings(Caffe2Settings caffe2Settings) { + this.caffe2Settings = caffe2Settings; + return this; + } + + /** + * Get the chainerSettings value. + * + * @return the chainerSettings value + */ + public ChainerSettings chainerSettings() { + return this.chainerSettings; + } + + /** + * Set the chainerSettings value. + * + * @param chainerSettings the chainerSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withChainerSettings(ChainerSettings chainerSettings) { + this.chainerSettings = chainerSettings; + return this; + } + + /** + * Get the customToolkitSettings value. + * + * @return the customToolkitSettings value + */ + public CustomToolkitSettings customToolkitSettings() { + return this.customToolkitSettings; + } + + /** + * Set the customToolkitSettings value. + * + * @param customToolkitSettings the customToolkitSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings) { + this.customToolkitSettings = customToolkitSettings; + return this; + } + + /** + * Get the customMpiSettings value. + * + * @return the customMpiSettings value + */ + public CustomMpiSettings customMpiSettings() { + return this.customMpiSettings; + } + + /** + * Set the customMpiSettings value. + * + * @param customMpiSettings the customMpiSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withCustomMpiSettings(CustomMpiSettings customMpiSettings) { + this.customMpiSettings = customMpiSettings; + return this; + } + + /** + * Get the horovodSettings value. + * + * @return the horovodSettings value + */ + public HorovodSettings horovodSettings() { + return this.horovodSettings; + } + + /** + * Set the horovodSettings value. + * + * @param horovodSettings the horovodSettings value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withHorovodSettings(HorovodSettings horovodSettings) { + this.horovodSettings = horovodSettings; + return this; + } + + /** + * Get the jobPreparation value. + * + * @return the jobPreparation value + */ + public JobPreparation jobPreparation() { + return this.jobPreparation; + } + + /** + * Set the jobPreparation value. + * + * @param jobPreparation the jobPreparation value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withJobPreparation(JobPreparation jobPreparation) { + this.jobPreparation = jobPreparation; + return this; + } + + /** + * Get the stdOutErrPathPrefix value. + * + * @return the stdOutErrPathPrefix value + */ + public String stdOutErrPathPrefix() { + return this.stdOutErrPathPrefix; + } + + /** + * Set the stdOutErrPathPrefix value. + * + * @param stdOutErrPathPrefix the stdOutErrPathPrefix value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withStdOutErrPathPrefix(String stdOutErrPathPrefix) { + this.stdOutErrPathPrefix = stdOutErrPathPrefix; + return this; + } + + /** + * Get the inputDirectories value. + * + * @return the inputDirectories value + */ + public List inputDirectories() { + return this.inputDirectories; + } + + /** + * Set the inputDirectories value. + * + * @param inputDirectories the inputDirectories value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withInputDirectories(List inputDirectories) { + this.inputDirectories = inputDirectories; + return this; + } + + /** + * Get the outputDirectories value. + * + * @return the outputDirectories value + */ + public List outputDirectories() { + return this.outputDirectories; + } + + /** + * Set the outputDirectories value. + * + * @param outputDirectories the outputDirectories value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withOutputDirectories(List outputDirectories) { + this.outputDirectories = outputDirectories; + return this; + } + + /** + * Get the environmentVariables value. + * + * @return the environmentVariables value + */ + public List environmentVariables() { + return this.environmentVariables; + } + + /** + * Set the environmentVariables value. + * + * @param environmentVariables the environmentVariables value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withEnvironmentVariables(List environmentVariables) { + this.environmentVariables = environmentVariables; + return this; + } + + /** + * Get the secrets value. + * + * @return the secrets value + */ + public List secrets() { + return this.secrets; + } + + /** + * Set the secrets value. + * + * @param secrets the secrets value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withSecrets(List secrets) { + this.secrets = secrets; + return this; + } + + /** + * Get the constraints value. + * + * @return the constraints value + */ + public JobBasePropertiesConstraints constraints() { + return this.constraints; + } + + /** + * Set the constraints value. + * + * @param constraints the constraints value to set + * @return the JobCreateParameters object itself. + */ + public JobCreateParameters withConstraints(JobBasePropertiesConstraints constraints) { + this.constraints = constraints; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListByExperimentOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListByExperimentOptions.java new file mode 100644 index 00000000000..0498ee36d06 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListByExperimentOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listByExperiment operation. + */ +public class JobsListByExperimentOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the JobsListByExperimentOptions object itself. + */ + public JobsListByExperimentOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListOutputFilesOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListOutputFilesOptions.java new file mode 100644 index 00000000000..103804ed4ac --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/JobsListOutputFilesOptions.java @@ -0,0 +1,123 @@ +/** + * 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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listOutputFiles operation. + */ +public class JobsListOutputFilesOptions { + /** + * Id of the job output directory. This is the OutputDirectory-->id + * parameter that is given by the user during Create Job. + */ + @JsonProperty(value = "", required = true) + private String outputdirectoryid; + + /** + * The path to the directory. + */ + @JsonProperty(value = "") + private String directory; + + /** + * The number of minutes after which the download link will expire. + */ + @JsonProperty(value = "") + private Integer linkexpiryinminutes; + + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the outputdirectoryid value. + * + * @return the outputdirectoryid value + */ + public String outputdirectoryid() { + return this.outputdirectoryid; + } + + /** + * Set the outputdirectoryid value. + * + * @param outputdirectoryid the outputdirectoryid value to set + * @return the JobsListOutputFilesOptions object itself. + */ + public JobsListOutputFilesOptions withOutputdirectoryid(String outputdirectoryid) { + this.outputdirectoryid = outputdirectoryid; + return this; + } + + /** + * Get the directory value. + * + * @return the directory value + */ + public String directory() { + return this.directory; + } + + /** + * Set the directory value. + * + * @param directory the directory value to set + * @return the JobsListOutputFilesOptions object itself. + */ + public JobsListOutputFilesOptions withDirectory(String directory) { + this.directory = directory; + return this; + } + + /** + * Get the linkexpiryinminutes value. + * + * @return the linkexpiryinminutes value + */ + public Integer linkexpiryinminutes() { + return this.linkexpiryinminutes; + } + + /** + * Set the linkexpiryinminutes value. + * + * @param linkexpiryinminutes the linkexpiryinminutes value to set + * @return the JobsListOutputFilesOptions object itself. + */ + public JobsListOutputFilesOptions withLinkexpiryinminutes(Integer linkexpiryinminutes) { + this.linkexpiryinminutes = linkexpiryinminutes; + return this; + } + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the JobsListOutputFilesOptions object itself. + */ + public JobsListOutputFilesOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspaceCreateParameters.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspaceCreateParameters.java new file mode 100644 index 00000000000..db079f6d30c --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspaceCreateParameters.java @@ -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.batchai; + +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Parameters supplied to the Create operation. + */ +public class WorkspaceCreateParameters { + /** + * The region in which to create the Workspace. + */ + @JsonProperty(value = "location", required = true) + private String location; + + /** + * The user specified tags associated with the Workspace. + */ + @JsonProperty(value = "tags") + private Map tags; + + /** + * Get the location value. + * + * @return the location value + */ + public String location() { + return this.location; + } + + /** + * Set the location value. + * + * @param location the location value to set + * @return the WorkspaceCreateParameters object itself. + */ + public WorkspaceCreateParameters withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the tags value. + * + * @return the tags value + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags value. + * + * @param tags the tags value to set + * @return the WorkspaceCreateParameters object itself. + */ + public WorkspaceCreateParameters withTags(Map tags) { + this.tags = tags; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListByResourceGroupOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListByResourceGroupOptions.java new file mode 100644 index 00000000000..7d20aa1b563 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListByResourceGroupOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for listByResourceGroup operation. + */ +public class WorkspacesListByResourceGroupOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the WorkspacesListByResourceGroupOptions object itself. + */ + public WorkspacesListByResourceGroupOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListOptions.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListOptions.java new file mode 100644 index 00000000000..150cdae7918 --- /dev/null +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/WorkspacesListOptions.java @@ -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.batchai; + +import com.fasterxml.jackson.annotation.JsonProperty; + +/** + * Additional parameters for list operation. + */ +public class WorkspacesListOptions { + /** + * The maximum number of items to return in the response. A maximum of 1000 + * files can be returned. + */ + @JsonProperty(value = "") + private Integer maxResults; + + /** + * Get the maxResults value. + * + * @return the maxResults value + */ + public Integer maxResults() { + return this.maxResults; + } + + /** + * Set the maxResults value. + * + * @param maxResults the maxResults value to set + * @return the WorkspacesListOptions object itself. + */ + public WorkspacesListOptions withMaxResults(Integer maxResults) { + this.maxResults = maxResults; + return this; + } + +} diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClusterInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClusterInner.java index 0965e0a2dfd..db875fdd3ef 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClusterInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClusterInner.java @@ -22,12 +22,14 @@ import com.microsoft.azure.management.batchai.NodeStateCounts; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource; /** * Contains information about a Cluster. */ @JsonFlatten +@SkipParentValidation public class ClusterInner extends Resource { /** * The size of the virtual machines in the cluster. diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClustersInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClustersInner.java index bb077161fe1..2268441add4 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClustersInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ClustersInner.java @@ -14,6 +14,11 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.batchai.ClusterCreateParameters; +import com.microsoft.azure.management.batchai.ClustersListByResourceGroupOptions; +import com.microsoft.azure.management.batchai.ClustersListByWorkspaceOptions; +import com.microsoft.azure.management.batchai.ClustersListOptions; +import com.microsoft.azure.management.batchai.ClusterUpdateParameters; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -74,15 +79,15 @@ interface ClustersService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Clusters create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}") - Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Clusters beginCreate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}") - Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Clusters update" }) @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}") - Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterUpdateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> update(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("clusterName") String clusterName, @Path("subscriptionId") String subscriptionId, @Body ClusterUpdateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Clusters delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/clusters/{clusterName}", method = "DELETE", hasBody = true) @@ -208,7 +213,7 @@ public Observable>> listSinglePageAsync() { if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final ClustersListOptionsInner clustersListOptions = null; + final ClustersListOptions clustersListOptions = null; Integer maxResults = null; return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -233,7 +238,7 @@ public Observable>> call(Response list(final ClustersListOptionsInner clustersListOptions) { + public PagedList list(final ClustersListOptions clustersListOptions) { ServiceResponse> response = listSinglePageAsync(clustersListOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -251,7 +256,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listAsync(final ClustersListOptionsInner clustersListOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listAsync(final ClustersListOptions clustersListOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listSinglePageAsync(clustersListOptions), new Func1>>>() { @@ -270,7 +275,7 @@ public Observable>> call(String nextPageLink) * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ClusterInner> object */ - public Observable> listAsync(final ClustersListOptionsInner clustersListOptions) { + public Observable> listAsync(final ClustersListOptions clustersListOptions) { return listWithServiceResponseAsync(clustersListOptions) .map(new Func1>, Page>() { @Override @@ -287,7 +292,7 @@ public Page call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ClusterInner> object */ - public Observable>> listWithServiceResponseAsync(final ClustersListOptionsInner clustersListOptions) { + public Observable>> listWithServiceResponseAsync(final ClustersListOptions clustersListOptions) { return listSinglePageAsync(clustersListOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -308,7 +313,7 @@ public Observable>> call(ServiceResponse>> listSinglePageAsync(final ClustersListOptionsInner clustersListOptions) { + public Observable>> listSinglePageAsync(final ClustersListOptions clustersListOptions) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -435,7 +440,7 @@ public Observable>> listByResourceGroupSingle if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final ClustersListByResourceGroupOptionsInner clustersListByResourceGroupOptions = null; + final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions = null; Integer maxResults = null; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -461,7 +466,7 @@ public Observable>> call(Response listByResourceGroup(final String resourceGroupName, final ClustersListByResourceGroupOptionsInner clustersListByResourceGroupOptions) { + public PagedList listByResourceGroup(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName, clustersListByResourceGroupOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -480,7 +485,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ClustersListByResourceGroupOptionsInner clustersListByResourceGroupOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupSinglePageAsync(resourceGroupName, clustersListByResourceGroupOptions), new Func1>>>() { @@ -500,7 +505,7 @@ public Observable>> call(String nextPageLink) * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ClusterInner> object */ - public Observable> listByResourceGroupAsync(final String resourceGroupName, final ClustersListByResourceGroupOptionsInner clustersListByResourceGroupOptions) { + public Observable> listByResourceGroupAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName, clustersListByResourceGroupOptions) .map(new Func1>, Page>() { @Override @@ -518,7 +523,7 @@ public Page call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ClusterInner> object */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final ClustersListByResourceGroupOptionsInner clustersListByResourceGroupOptions) { + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { return listByResourceGroupSinglePageAsync(resourceGroupName, clustersListByResourceGroupOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -540,7 +545,7 @@ public Observable>> call(ServiceResponse>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final ClustersListByResourceGroupOptionsInner clustersListByResourceGroupOptions) { + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final ClustersListByResourceGroupOptions clustersListByResourceGroupOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -588,7 +593,7 @@ private ServiceResponse> listByResourceGroupDelegate(Resp * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ClusterInner object if successful. */ - public ClusterInner create(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters) { + public ClusterInner create(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().last().body(); } @@ -603,7 +608,7 @@ public ClusterInner create(String resourceGroupName, String workspaceName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); } @@ -617,7 +622,7 @@ public ServiceFuture createAsync(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters) { + public Observable createAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { @Override public ClusterInner call(ServiceResponse response) { @@ -636,7 +641,7 @@ public ClusterInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters) { + public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -672,7 +677,7 @@ public Observable> createWithServiceResponseAsync( * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ClusterInner object if successful. */ - public ClusterInner beginCreate(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters) { + public ClusterInner beginCreate(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().single().body(); } @@ -687,7 +692,7 @@ public ClusterInner beginCreate(String resourceGroupName, String workspaceName, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); } @@ -701,7 +706,7 @@ public ServiceFuture beginCreateAsync(String resourceGroupName, St * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters) { + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { @Override public ClusterInner call(ServiceResponse response) { @@ -720,7 +725,7 @@ public ClusterInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParametersInner parameters) { + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -774,7 +779,7 @@ private ServiceResponse beginCreateDelegate(Response * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ClusterInner object if successful. */ - public ClusterInner update(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParametersInner parameters) { + public ClusterInner update(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters) { return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).toBlocking().single().body(); } @@ -789,7 +794,7 @@ public ClusterInner update(String resourceGroupName, String workspaceName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture updateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture updateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters), serviceCallback); } @@ -803,7 +808,7 @@ public ServiceFuture updateAsync(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable updateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParametersInner parameters) { + public Observable updateAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters) { return updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, parameters).map(new Func1, ClusterInner>() { @Override public ClusterInner call(ServiceResponse response) { @@ -822,7 +827,7 @@ public ClusterInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ClusterInner object */ - public Observable> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParametersInner parameters) { + public Observable> updateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String clusterName, ClusterUpdateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1358,7 +1363,7 @@ public Observable>> listByWorkspaceSinglePage if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final ClustersListByWorkspaceOptionsInner clustersListByWorkspaceOptions = null; + final ClustersListByWorkspaceOptions clustersListByWorkspaceOptions = null; Integer maxResults = null; return service.listByWorkspace(resourceGroupName, workspaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -1385,7 +1390,7 @@ public Observable>> call(Response listByWorkspace(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptionsInner clustersListByWorkspaceOptions) { + public PagedList listByWorkspace(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptions clustersListByWorkspaceOptions) { ServiceResponse> response = listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, clustersListByWorkspaceOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -1405,7 +1410,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptionsInner clustersListByWorkspaceOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptions clustersListByWorkspaceOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, clustersListByWorkspaceOptions), new Func1>>>() { @@ -1426,7 +1431,7 @@ public Observable>> call(String nextPageLink) * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ClusterInner> object */ - public Observable> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptionsInner clustersListByWorkspaceOptions) { + public Observable> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptions clustersListByWorkspaceOptions) { return listByWorkspaceWithServiceResponseAsync(resourceGroupName, workspaceName, clustersListByWorkspaceOptions) .map(new Func1>, Page>() { @Override @@ -1445,7 +1450,7 @@ public Page call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ClusterInner> object */ - public Observable>> listByWorkspaceWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptionsInner clustersListByWorkspaceOptions) { + public Observable>> listByWorkspaceWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptions clustersListByWorkspaceOptions) { return listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, clustersListByWorkspaceOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -1468,7 +1473,7 @@ public Observable>> call(ServiceResponse>> listByWorkspaceSinglePageAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptionsInner clustersListByWorkspaceOptions) { + public Observable>> listByWorkspaceSinglePageAsync(final String resourceGroupName, final String workspaceName, final ClustersListByWorkspaceOptions clustersListByWorkspaceOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentInner.java index 0c8399a606a..805cf764e34 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentInner.java @@ -12,7 +12,7 @@ import com.microsoft.azure.management.batchai.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; -import com.microsoft.azure.management.batchai.ProxyResource; +import com.microsoft.azure.ProxyResource; /** * Contains information about the experiment. diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentsInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentsInner.java index bdeeda1b656..af0d16a27f0 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentsInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/ExperimentsInner.java @@ -13,6 +13,7 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.batchai.ExperimentsListByWorkspaceOptions; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -22,7 +23,6 @@ import java.io.IOException; import java.util.List; import okhttp3.ResponseBody; -import retrofit2.http.Body; import retrofit2.http.GET; import retrofit2.http.Header; import retrofit2.http.Headers; @@ -67,11 +67,11 @@ interface ExperimentsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Experiments create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}") - Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("subscriptionId") String subscriptionId, @Body Object parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Experiments beginCreate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}") - Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("subscriptionId") String subscriptionId, @Body Object parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Experiments delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}", method = "DELETE", hasBody = true) @@ -193,7 +193,7 @@ public Observable>> listByWorkspaceSingleP if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final ExperimentsListByWorkspaceOptionsInner experimentsListByWorkspaceOptions = null; + final ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions = null; Integer maxResults = null; return service.listByWorkspace(resourceGroupName, workspaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -220,7 +220,7 @@ public Observable>> call(Response listByWorkspace(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptionsInner experimentsListByWorkspaceOptions) { + public PagedList listByWorkspace(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions) { ServiceResponse> response = listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, experimentsListByWorkspaceOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -240,7 +240,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptionsInner experimentsListByWorkspaceOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, experimentsListByWorkspaceOptions), new Func1>>>() { @@ -261,7 +261,7 @@ public Observable>> call(String nextPageLi * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ExperimentInner> object */ - public Observable> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptionsInner experimentsListByWorkspaceOptions) { + public Observable> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions) { return listByWorkspaceWithServiceResponseAsync(resourceGroupName, workspaceName, experimentsListByWorkspaceOptions) .map(new Func1>, Page>() { @Override @@ -280,7 +280,7 @@ public Page call(ServiceResponse> respons * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<ExperimentInner> object */ - public Observable>> listByWorkspaceWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptionsInner experimentsListByWorkspaceOptions) { + public Observable>> listByWorkspaceWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions) { return listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, experimentsListByWorkspaceOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -303,7 +303,7 @@ public Observable>> call(ServiceResponse

>> listByWorkspaceSinglePageAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptionsInner experimentsListByWorkspaceOptions) { + public Observable>> listByWorkspaceSinglePageAsync(final String resourceGroupName, final String workspaceName, final ExperimentsListByWorkspaceOptions experimentsListByWorkspaceOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -348,14 +348,13 @@ private ServiceResponse> listByWorkspaceDelegate(Respo * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExperimentInner object if successful. */ - public ExperimentInner create(String resourceGroupName, String workspaceName, String experimentName, Object parameters) { - return createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, parameters).toBlocking().last().body(); + public ExperimentInner create(String resourceGroupName, String workspaceName, String experimentName) { + return createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName).toBlocking().last().body(); } /** @@ -364,13 +363,12 @@ public ExperimentInner create(String resourceGroupName, String workspaceName, St * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String experimentName, Object parameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, parameters), serviceCallback); + public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String experimentName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName), serviceCallback); } /** @@ -379,12 +377,11 @@ public ServiceFuture createAsync(String resourceGroupName, Stri * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createAsync(String resourceGroupName, String workspaceName, String experimentName, Object parameters) { - return createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, parameters).map(new Func1, ExperimentInner>() { + public Observable createAsync(String resourceGroupName, String workspaceName, String experimentName) { + return createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName).map(new Func1, ExperimentInner>() { @Override public ExperimentInner call(ServiceResponse response) { return response.body(); @@ -398,11 +395,10 @@ public ExperimentInner call(ServiceResponse response) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName, Object parameters) { + public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -415,13 +411,10 @@ public Observable> createWithServiceResponseAsy if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (parameters == null) { - throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - Observable> observable = service.create(resourceGroupName, workspaceName, experimentName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); + Observable> observable = service.create(resourceGroupName, workspaceName, experimentName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()); return client.getAzureClient().getPutOrPatchResultAsync(observable, new TypeToken() { }.getType()); } @@ -431,14 +424,13 @@ public Observable> createWithServiceResponseAsy * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @throws CloudException thrown if the request is rejected by server * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the ExperimentInner object if successful. */ - public ExperimentInner beginCreate(String resourceGroupName, String workspaceName, String experimentName, Object parameters) { - return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, parameters).toBlocking().single().body(); + public ExperimentInner beginCreate(String resourceGroupName, String workspaceName, String experimentName) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName).toBlocking().single().body(); } /** @@ -447,13 +439,12 @@ public ExperimentInner beginCreate(String resourceGroupName, String workspaceNam * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName, Object parameters, final ServiceCallback serviceCallback) { - return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, parameters), serviceCallback); + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName), serviceCallback); } /** @@ -462,12 +453,11 @@ public ServiceFuture beginCreateAsync(String resourceGroupName, * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExperimentInner object */ - public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName, Object parameters) { - return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, parameters).map(new Func1, ExperimentInner>() { + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName) { + return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName).map(new Func1, ExperimentInner>() { @Override public ExperimentInner call(ServiceResponse response) { return response.body(); @@ -481,11 +471,10 @@ public ExperimentInner call(ServiceResponse response) { * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. * @param experimentName The name of the experiment. Experiment names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long. - * @param parameters The parameters to provide for the experiment creation. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the ExperimentInner object */ - public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName, Object parameters) { + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -498,13 +487,10 @@ public Observable> beginCreateWithServiceRespon if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } - if (parameters == null) { - throw new IllegalArgumentException("Parameter parameters is required and cannot be null."); - } if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - return service.beginCreate(resourceGroupName, workspaceName, experimentName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + return service.beginCreate(resourceGroupName, workspaceName, experimentName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) .flatMap(new Func1, Observable>>() { @Override public Observable> call(Response response) { diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServerInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServerInner.java index f6dedf6a4bb..9f6dea052eb 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServerInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServerInner.java @@ -16,12 +16,14 @@ import com.microsoft.azure.management.batchai.FileServerProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource; /** * Contains information about the File Server. */ @JsonFlatten +@SkipParentValidation public class FileServerInner extends Resource { /** * The size of the virtual machine of the File Server. diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServersInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServersInner.java index a7b123b0cc7..06ac58c1616 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServersInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/FileServersInner.java @@ -14,6 +14,10 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.batchai.FileServerCreateParameters; +import com.microsoft.azure.management.batchai.FileServersListByResourceGroupOptions; +import com.microsoft.azure.management.batchai.FileServersListByWorkspaceOptions; +import com.microsoft.azure.management.batchai.FileServersListOptions; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -72,11 +76,11 @@ interface FileServersService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.FileServers create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}") - Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Body FileServerCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Body FileServerCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.FileServers beginCreate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}") - Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Body FileServerCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("fileServerName") String fileServerName, @Path("subscriptionId") String subscriptionId, @Body FileServerCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.FileServers delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/fileServers/{fileServerName}", method = "DELETE", hasBody = true) @@ -194,7 +198,7 @@ public Observable>> listSinglePageAsync() if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final FileServersListOptionsInner fileServersListOptions = null; + final FileServersListOptions fileServersListOptions = null; Integer maxResults = null; return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -219,7 +223,7 @@ public Observable>> call(Response list(final FileServersListOptionsInner fileServersListOptions) { + public PagedList list(final FileServersListOptions fileServersListOptions) { ServiceResponse> response = listSinglePageAsync(fileServersListOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -237,7 +241,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listAsync(final FileServersListOptionsInner fileServersListOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listAsync(final FileServersListOptions fileServersListOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listSinglePageAsync(fileServersListOptions), new Func1>>>() { @@ -256,7 +260,7 @@ public Observable>> call(String nextPageLi * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileServerInner> object */ - public Observable> listAsync(final FileServersListOptionsInner fileServersListOptions) { + public Observable> listAsync(final FileServersListOptions fileServersListOptions) { return listWithServiceResponseAsync(fileServersListOptions) .map(new Func1>, Page>() { @Override @@ -273,7 +277,7 @@ public Page call(ServiceResponse> respons * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileServerInner> object */ - public Observable>> listWithServiceResponseAsync(final FileServersListOptionsInner fileServersListOptions) { + public Observable>> listWithServiceResponseAsync(final FileServersListOptions fileServersListOptions) { return listSinglePageAsync(fileServersListOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -294,7 +298,7 @@ public Observable>> call(ServiceResponse

>> listSinglePageAsync(final FileServersListOptionsInner fileServersListOptions) { + public Observable>> listSinglePageAsync(final FileServersListOptions fileServersListOptions) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -421,7 +425,7 @@ public Observable>> listByResourceGroupSin if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final FileServersListByResourceGroupOptionsInner fileServersListByResourceGroupOptions = null; + final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions = null; Integer maxResults = null; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -447,7 +451,7 @@ public Observable>> call(Response listByResourceGroup(final String resourceGroupName, final FileServersListByResourceGroupOptionsInner fileServersListByResourceGroupOptions) { + public PagedList listByResourceGroup(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName, fileServersListByResourceGroupOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -466,7 +470,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final FileServersListByResourceGroupOptionsInner fileServersListByResourceGroupOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupSinglePageAsync(resourceGroupName, fileServersListByResourceGroupOptions), new Func1>>>() { @@ -486,7 +490,7 @@ public Observable>> call(String nextPageLi * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileServerInner> object */ - public Observable> listByResourceGroupAsync(final String resourceGroupName, final FileServersListByResourceGroupOptionsInner fileServersListByResourceGroupOptions) { + public Observable> listByResourceGroupAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName, fileServersListByResourceGroupOptions) .map(new Func1>, Page>() { @Override @@ -504,7 +508,7 @@ public Page call(ServiceResponse> respons * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileServerInner> object */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final FileServersListByResourceGroupOptionsInner fileServersListByResourceGroupOptions) { + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { return listByResourceGroupSinglePageAsync(resourceGroupName, fileServersListByResourceGroupOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -526,7 +530,7 @@ public Observable>> call(ServiceResponse

>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final FileServersListByResourceGroupOptionsInner fileServersListByResourceGroupOptions) { + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final FileServersListByResourceGroupOptions fileServersListByResourceGroupOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -574,7 +578,7 @@ private ServiceResponse> listByResourceGroupDelegate(R * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the FileServerInner object if successful. */ - public FileServerInner create(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters) { + public FileServerInner create(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName, parameters).toBlocking().last().body(); } @@ -589,7 +593,7 @@ public FileServerInner create(String resourceGroupName, String workspaceName, St * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName, parameters), serviceCallback); } @@ -603,7 +607,7 @@ public ServiceFuture createAsync(String resourceGroupName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters) { + public Observable createAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName, parameters).map(new Func1, FileServerInner>() { @Override public FileServerInner call(ServiceResponse response) { @@ -622,7 +626,7 @@ public FileServerInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters) { + public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -658,7 +662,7 @@ public Observable> createWithServiceResponseAsy * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the FileServerInner object if successful. */ - public FileServerInner beginCreate(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters) { + public FileServerInner beginCreate(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName, parameters).toBlocking().single().body(); } @@ -673,7 +677,7 @@ public FileServerInner beginCreate(String resourceGroupName, String workspaceNam * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName, parameters), serviceCallback); } @@ -687,7 +691,7 @@ public ServiceFuture beginCreateAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the FileServerInner object */ - public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters) { + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, fileServerName, parameters).map(new Func1, FileServerInner>() { @Override public FileServerInner call(ServiceResponse response) { @@ -706,7 +710,7 @@ public FileServerInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the FileServerInner object */ - public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParametersInner parameters) { + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String fileServerName, FileServerCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -1112,7 +1116,7 @@ public Observable>> listByWorkspaceSingleP if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final FileServersListByWorkspaceOptionsInner fileServersListByWorkspaceOptions = null; + final FileServersListByWorkspaceOptions fileServersListByWorkspaceOptions = null; Integer maxResults = null; return service.listByWorkspace(resourceGroupName, workspaceName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -1139,7 +1143,7 @@ public Observable>> call(Response listByWorkspace(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptionsInner fileServersListByWorkspaceOptions) { + public PagedList listByWorkspace(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptions fileServersListByWorkspaceOptions) { ServiceResponse> response = listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, fileServersListByWorkspaceOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -1159,7 +1163,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptionsInner fileServersListByWorkspaceOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptions fileServersListByWorkspaceOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, fileServersListByWorkspaceOptions), new Func1>>>() { @@ -1180,7 +1184,7 @@ public Observable>> call(String nextPageLi * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileServerInner> object */ - public Observable> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptionsInner fileServersListByWorkspaceOptions) { + public Observable> listByWorkspaceAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptions fileServersListByWorkspaceOptions) { return listByWorkspaceWithServiceResponseAsync(resourceGroupName, workspaceName, fileServersListByWorkspaceOptions) .map(new Func1>, Page>() { @Override @@ -1199,7 +1203,7 @@ public Page call(ServiceResponse> respons * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileServerInner> object */ - public Observable>> listByWorkspaceWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptionsInner fileServersListByWorkspaceOptions) { + public Observable>> listByWorkspaceWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptions fileServersListByWorkspaceOptions) { return listByWorkspaceSinglePageAsync(resourceGroupName, workspaceName, fileServersListByWorkspaceOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -1222,7 +1226,7 @@ public Observable>> call(ServiceResponse

>> listByWorkspaceSinglePageAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptionsInner fileServersListByWorkspaceOptions) { + public Observable>> listByWorkspaceSinglePageAsync(final String resourceGroupName, final String workspaceName, final FileServersListByWorkspaceOptions fileServersListByWorkspaceOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobInner.java index ba3df384e8c..184175449eb 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobInner.java @@ -34,7 +34,7 @@ import com.microsoft.azure.management.batchai.JobPropertiesExecutionInfo; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; -import com.microsoft.azure.management.batchai.ProxyResource; +import com.microsoft.azure.ProxyResource; /** * Contains information about a Job. diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobsInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobsInner.java index 2232a21902c..ca2567f6bf0 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobsInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/JobsInner.java @@ -13,6 +13,9 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.batchai.JobCreateParameters; +import com.microsoft.azure.management.batchai.JobsListByExperimentOptions; +import com.microsoft.azure.management.batchai.JobsListOutputFilesOptions; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -68,11 +71,11 @@ interface JobsService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Jobs create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs/{jobName}") - Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("jobName") String jobName, @Path("subscriptionId") String subscriptionId, @Body JobCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("jobName") String jobName, @Path("subscriptionId") String subscriptionId, @Body JobCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Jobs beginCreate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs/{jobName}") - Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("jobName") String jobName, @Path("subscriptionId") String subscriptionId, @Body JobCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("experimentName") String experimentName, @Path("jobName") String jobName, @Path("subscriptionId") String subscriptionId, @Body JobCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Jobs delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}/experiments/{experimentName}/jobs/{jobName}", method = "DELETE", hasBody = true) @@ -226,7 +229,7 @@ public Observable>> listByExperimentSinglePageAsy if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final JobsListByExperimentOptionsInner jobsListByExperimentOptions = null; + final JobsListByExperimentOptions jobsListByExperimentOptions = null; Integer maxResults = null; return service.listByExperiment(resourceGroupName, workspaceName, experimentName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -254,7 +257,7 @@ public Observable>> call(Response r * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<JobInner> object if successful. */ - public PagedList listByExperiment(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptionsInner jobsListByExperimentOptions) { + public PagedList listByExperiment(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptions jobsListByExperimentOptions) { ServiceResponse> response = listByExperimentSinglePageAsync(resourceGroupName, workspaceName, experimentName, jobsListByExperimentOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -275,7 +278,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByExperimentAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptionsInner jobsListByExperimentOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByExperimentAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptions jobsListByExperimentOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listByExperimentSinglePageAsync(resourceGroupName, workspaceName, experimentName, jobsListByExperimentOptions), new Func1>>>() { @@ -297,7 +300,7 @@ public Observable>> call(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<JobInner> object */ - public Observable> listByExperimentAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptionsInner jobsListByExperimentOptions) { + public Observable> listByExperimentAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptions jobsListByExperimentOptions) { return listByExperimentWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, jobsListByExperimentOptions) .map(new Func1>, Page>() { @Override @@ -317,7 +320,7 @@ public Page call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<JobInner> object */ - public Observable>> listByExperimentWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptionsInner jobsListByExperimentOptions) { + public Observable>> listByExperimentWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptions jobsListByExperimentOptions) { return listByExperimentSinglePageAsync(resourceGroupName, workspaceName, experimentName, jobsListByExperimentOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -341,7 +344,7 @@ public Observable>> call(ServiceResponse>> listByExperimentSinglePageAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptionsInner jobsListByExperimentOptions) { + public Observable>> listByExperimentSinglePageAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final JobsListByExperimentOptions jobsListByExperimentOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -396,7 +399,7 @@ private ServiceResponse> listByExperimentDelegate(Response createAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture createAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, jobName, parameters), serviceCallback); } @@ -427,7 +430,7 @@ public ServiceFuture createAsync(String resourceGroupName, String work * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParametersInner parameters) { + public Observable createAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, jobName, parameters).map(new Func1, JobInner>() { @Override public JobInner call(ServiceResponse response) { @@ -447,7 +450,7 @@ public JobInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParametersInner parameters) { + public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -487,7 +490,7 @@ public Observable> createWithServiceResponseAsync(Stri * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the JobInner object if successful. */ - public JobInner beginCreate(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParametersInner parameters) { + public JobInner beginCreate(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, jobName, parameters).toBlocking().single().body(); } @@ -503,7 +506,7 @@ public JobInner beginCreate(String resourceGroupName, String workspaceName, Stri * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, jobName, parameters), serviceCallback); } @@ -518,7 +521,7 @@ public ServiceFuture beginCreateAsync(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the JobInner object */ - public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParametersInner parameters) { + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, jobName, parameters).map(new Func1, JobInner>() { @Override public JobInner call(ServiceResponse response) { @@ -538,7 +541,7 @@ public JobInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the JobInner object */ - public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParametersInner parameters) { + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, String experimentName, String jobName, JobCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -879,7 +882,7 @@ private ServiceResponse getDelegate(Response response) t * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the PagedList<FileInner> object if successful. */ - public PagedList listOutputFiles(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptionsInner jobsListOutputFilesOptions) { + public PagedList listOutputFiles(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions) { ServiceResponse> response = listOutputFilesSinglePageAsync(resourceGroupName, workspaceName, experimentName, jobName, jobsListOutputFilesOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -901,7 +904,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listOutputFilesAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptionsInner jobsListOutputFilesOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listOutputFilesAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listOutputFilesSinglePageAsync(resourceGroupName, workspaceName, experimentName, jobName, jobsListOutputFilesOptions), new Func1>>>() { @@ -924,7 +927,7 @@ public Observable>> call(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileInner> object */ - public Observable> listOutputFilesAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptionsInner jobsListOutputFilesOptions) { + public Observable> listOutputFilesAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions) { return listOutputFilesWithServiceResponseAsync(resourceGroupName, workspaceName, experimentName, jobName, jobsListOutputFilesOptions) .map(new Func1>, Page>() { @Override @@ -945,7 +948,7 @@ public Page call(ServiceResponse> response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<FileInner> object */ - public Observable>> listOutputFilesWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptionsInner jobsListOutputFilesOptions) { + public Observable>> listOutputFilesWithServiceResponseAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions) { return listOutputFilesSinglePageAsync(resourceGroupName, workspaceName, experimentName, jobName, jobsListOutputFilesOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -970,7 +973,7 @@ public Observable>> call(ServiceResponse>> listOutputFilesSinglePageAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptionsInner jobsListOutputFilesOptions) { + public Observable>> listOutputFilesSinglePageAsync(final String resourceGroupName, final String workspaceName, final String experimentName, final String jobName, final JobsListOutputFilesOptions jobsListOutputFilesOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspaceInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspaceInner.java index 2af8dc8e3b1..66841e80906 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspaceInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspaceInner.java @@ -12,12 +12,14 @@ import com.microsoft.azure.management.batchai.ProvisioningState; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; import com.microsoft.azure.Resource; /** * Describes Batch AI Workspace. */ @JsonFlatten +@SkipParentValidation public class WorkspaceInner extends Resource { /** * Time when the Workspace was created. diff --git a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspacesInner.java b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspacesInner.java index 78191564106..5eb2608e92b 100644 --- a/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspacesInner.java +++ b/azure-mgmt-batchai/src/main/java/com/microsoft/azure/management/batchai/implementation/WorkspacesInner.java @@ -16,6 +16,9 @@ import com.microsoft.azure.AzureServiceFuture; import com.microsoft.azure.CloudException; import com.microsoft.azure.ListOperationCallback; +import com.microsoft.azure.management.batchai.WorkspaceCreateParameters; +import com.microsoft.azure.management.batchai.WorkspacesListByResourceGroupOptions; +import com.microsoft.azure.management.batchai.WorkspacesListOptions; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.microsoft.rest.ServiceCallback; @@ -74,11 +77,11 @@ interface WorkspacesService { @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Workspaces create" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}") - Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Body WorkspaceCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> create(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Body WorkspaceCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Workspaces beginCreate" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}") - Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Body WorkspaceCreateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + Observable> beginCreate(@Path("resourceGroupName") String resourceGroupName, @Path("workspaceName") String workspaceName, @Path("subscriptionId") String subscriptionId, @Body WorkspaceCreateParameters parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.batchai.Workspaces delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BatchAI/workspaces/{workspaceName}", method = "DELETE", hasBody = true) @@ -188,7 +191,7 @@ public Observable>> listSinglePageAsync() { if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final WorkspacesListOptionsInner workspacesListOptions = null; + final WorkspacesListOptions workspacesListOptions = null; Integer maxResults = null; return service.list(this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -213,7 +216,7 @@ public Observable>> call(Response list(final WorkspacesListOptionsInner workspacesListOptions) { + public PagedList list(final WorkspacesListOptions workspacesListOptions) { ServiceResponse> response = listSinglePageAsync(workspacesListOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -231,7 +234,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listAsync(final WorkspacesListOptionsInner workspacesListOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listAsync(final WorkspacesListOptions workspacesListOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listSinglePageAsync(workspacesListOptions), new Func1>>>() { @@ -250,7 +253,7 @@ public Observable>> call(String nextPageLin * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<WorkspaceInner> object */ - public Observable> listAsync(final WorkspacesListOptionsInner workspacesListOptions) { + public Observable> listAsync(final WorkspacesListOptions workspacesListOptions) { return listWithServiceResponseAsync(workspacesListOptions) .map(new Func1>, Page>() { @Override @@ -267,7 +270,7 @@ public Page call(ServiceResponse> response) * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<WorkspaceInner> object */ - public Observable>> listWithServiceResponseAsync(final WorkspacesListOptionsInner workspacesListOptions) { + public Observable>> listWithServiceResponseAsync(final WorkspacesListOptions workspacesListOptions) { return listSinglePageAsync(workspacesListOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -288,7 +291,7 @@ public Observable>> call(ServiceResponse>> listSinglePageAsync(final WorkspacesListOptionsInner workspacesListOptions) { + public Observable>> listSinglePageAsync(final WorkspacesListOptions workspacesListOptions) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); } @@ -415,7 +418,7 @@ public Observable>> listByResourceGroupSing if (this.client.apiVersion() == null) { throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); } - final WorkspacesListByResourceGroupOptionsInner workspacesListByResourceGroupOptions = null; + final WorkspacesListByResourceGroupOptions workspacesListByResourceGroupOptions = null; Integer maxResults = null; return service.listByResourceGroup(resourceGroupName, this.client.subscriptionId(), this.client.apiVersion(), this.client.acceptLanguage(), maxResults, this.client.userAgent()) .flatMap(new Func1, Observable>>>() { @@ -441,7 +444,7 @@ public Observable>> call(Response listByResourceGroup(final String resourceGroupName, final WorkspacesListByResourceGroupOptionsInner workspacesListByResourceGroupOptions) { + public PagedList listByResourceGroup(final String resourceGroupName, final WorkspacesListByResourceGroupOptions workspacesListByResourceGroupOptions) { ServiceResponse> response = listByResourceGroupSinglePageAsync(resourceGroupName, workspacesListByResourceGroupOptions).toBlocking().single(); return new PagedList(response.body()) { @Override @@ -460,7 +463,7 @@ public Page nextPage(String nextPageLink) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptionsInner workspacesListByResourceGroupOptions, final ListOperationCallback serviceCallback) { + public ServiceFuture> listByResourceGroupAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptions workspacesListByResourceGroupOptions, final ListOperationCallback serviceCallback) { return AzureServiceFuture.fromPageResponse( listByResourceGroupSinglePageAsync(resourceGroupName, workspacesListByResourceGroupOptions), new Func1>>>() { @@ -480,7 +483,7 @@ public Observable>> call(String nextPageLin * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<WorkspaceInner> object */ - public Observable> listByResourceGroupAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptionsInner workspacesListByResourceGroupOptions) { + public Observable> listByResourceGroupAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptions workspacesListByResourceGroupOptions) { return listByResourceGroupWithServiceResponseAsync(resourceGroupName, workspacesListByResourceGroupOptions) .map(new Func1>, Page>() { @Override @@ -498,7 +501,7 @@ public Page call(ServiceResponse> response) * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the PagedList<WorkspaceInner> object */ - public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptionsInner workspacesListByResourceGroupOptions) { + public Observable>> listByResourceGroupWithServiceResponseAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptions workspacesListByResourceGroupOptions) { return listByResourceGroupSinglePageAsync(resourceGroupName, workspacesListByResourceGroupOptions) .concatMap(new Func1>, Observable>>>() { @Override @@ -520,7 +523,7 @@ public Observable>> call(ServiceResponse>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptionsInner workspacesListByResourceGroupOptions) { + public Observable>> listByResourceGroupSinglePageAsync(final String resourceGroupName, final WorkspacesListByResourceGroupOptions workspacesListByResourceGroupOptions) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -567,7 +570,7 @@ private ServiceResponse> listByResourceGroupDelegate(Re * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the WorkspaceInner object if successful. */ - public WorkspaceInner create(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters) { + public WorkspaceInner create(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, parameters).toBlocking().last().body(); } @@ -581,7 +584,7 @@ public WorkspaceInner create(String resourceGroupName, String workspaceName, Wor * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture createAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture createAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(createWithServiceResponseAsync(resourceGroupName, workspaceName, parameters), serviceCallback); } @@ -594,7 +597,7 @@ public ServiceFuture createAsync(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable createAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters) { + public Observable createAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters) { return createWithServiceResponseAsync(resourceGroupName, workspaceName, parameters).map(new Func1, WorkspaceInner>() { @Override public WorkspaceInner call(ServiceResponse response) { @@ -612,7 +615,7 @@ public WorkspaceInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable for the request */ - public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters) { + public Observable> createWithServiceResponseAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); } @@ -644,7 +647,7 @@ public Observable> createWithServiceResponseAsyn * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent * @return the WorkspaceInner object if successful. */ - public WorkspaceInner beginCreate(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters) { + public WorkspaceInner beginCreate(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, parameters).toBlocking().single().body(); } @@ -658,7 +661,7 @@ public WorkspaceInner beginCreate(String resourceGroupName, String workspaceName * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */ - public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters, final ServiceCallback serviceCallback) { + public ServiceFuture beginCreateAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters, final ServiceCallback serviceCallback) { return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, parameters), serviceCallback); } @@ -671,7 +674,7 @@ public ServiceFuture beginCreateAsync(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the WorkspaceInner object */ - public Observable beginCreateAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters) { + public Observable beginCreateAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters) { return beginCreateWithServiceResponseAsync(resourceGroupName, workspaceName, parameters).map(new Func1, WorkspaceInner>() { @Override public WorkspaceInner call(ServiceResponse response) { @@ -689,7 +692,7 @@ public WorkspaceInner call(ServiceResponse response) { * @throws IllegalArgumentException thrown if parameters fail the validation * @return the observable to the WorkspaceInner object */ - public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParametersInner parameters) { + public Observable> beginCreateWithServiceResponseAsync(String resourceGroupName, String workspaceName, WorkspaceCreateParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); }